decomp DBCServer_Release and inspect/document database
This commit is contained in:
parent
4b267cbe05
commit
7834b98bf0
28222 changed files with 843300 additions and 144 deletions
55
decomp/DBCServer_Release_x64/full/functions/0x14019a810.c
Normal file
55
decomp/DBCServer_Release_x64/full/functions/0x14019a810.c
Normal file
|
|
@ -0,0 +1,55 @@
|
|||
/* DBCServer_Release_x64.exe sha256 d9e4fccdf3482e50247686d4452c0b13c75a53efc4bd7320668eece8d1ce828c
|
||||
* Ghidra 12.1.2 decompiler output for 0x14019a810 FUN_14019a810
|
||||
* Pseudocode, not original source. */
|
||||
|
||||
ulonglong FUN_14019a810(undefined8 *param_1,char *param_2,int param_3)
|
||||
|
||||
{
|
||||
char cVar1;
|
||||
short sVar2;
|
||||
int iVar3;
|
||||
undefined8 uVar4;
|
||||
uint uVar5;
|
||||
ulonglong in_RAX;
|
||||
|
||||
*(undefined4 *)(param_1 + 0x10) = 0;
|
||||
*param_1 = param_2;
|
||||
*(int *)(param_1 + 1) = param_3;
|
||||
if (0 < param_3) {
|
||||
uVar5 = (uint)*param_2;
|
||||
in_RAX = (ulonglong)uVar5;
|
||||
*(undefined4 *)(param_1 + 0x10) = 1;
|
||||
if (uVar5 == 1) {
|
||||
if (1 < param_3) {
|
||||
cVar1 = param_2[1];
|
||||
*(undefined4 *)(param_1 + 0x10) = 2;
|
||||
param_1[0xf] = (longlong)cVar1;
|
||||
return CONCAT71(cVar1 >> 7,1);
|
||||
}
|
||||
}
|
||||
else if (uVar5 == 2) {
|
||||
if (2 < param_3) {
|
||||
sVar2 = *(short *)(param_2 + 1);
|
||||
*(undefined4 *)(param_1 + 0x10) = 3;
|
||||
param_1[0xf] = (longlong)sVar2;
|
||||
return CONCAT71((int7)(char)((ushort)sVar2 >> 8),1);
|
||||
}
|
||||
}
|
||||
else if (uVar5 == 4) {
|
||||
if (4 < param_3) {
|
||||
iVar3 = *(int *)(param_2 + 1);
|
||||
*(undefined4 *)(param_1 + 0x10) = 5;
|
||||
param_1[0xf] = (longlong)iVar3;
|
||||
return CONCAT71((int7)(int3)((uint)iVar3 >> 8),1);
|
||||
}
|
||||
}
|
||||
else if ((uVar5 == 8) && (8 < param_3)) {
|
||||
uVar4 = *(undefined8 *)(param_2 + 1);
|
||||
*(undefined4 *)(param_1 + 0x10) = 9;
|
||||
param_1[0xf] = uVar4;
|
||||
return CONCAT71((int7)((ulonglong)uVar4 >> 8),1);
|
||||
}
|
||||
}
|
||||
return in_RAX & 0xffffffffffffff00;
|
||||
}
|
||||
|
||||
Loading…
Add table
Add a link
Reference in a new issue