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
35
decomp/DBCServer_Release_x64/full/functions/0x1401e5cf0.c
Normal file
35
decomp/DBCServer_Release_x64/full/functions/0x1401e5cf0.c
Normal file
|
|
@ -0,0 +1,35 @@
|
|||
/* DBCServer_Release_x64.exe sha256 d9e4fccdf3482e50247686d4452c0b13c75a53efc4bd7320668eece8d1ce828c
|
||||
* Ghidra 12.1.2 decompiler output for 0x1401e5cf0 FUN_1401e5cf0
|
||||
* Pseudocode, not original source. */
|
||||
|
||||
uint FUN_1401e5cf0(longlong *param_1,void *param_2,uint param_3)
|
||||
|
||||
{
|
||||
uint uVar1;
|
||||
undefined4 uVar2;
|
||||
uint uVar3;
|
||||
|
||||
uVar1 = *(uint *)(param_1 + 1);
|
||||
uVar3 = uVar1;
|
||||
if (param_3 < uVar1) {
|
||||
uVar3 = param_3;
|
||||
}
|
||||
if (uVar3 == 0) {
|
||||
return 0;
|
||||
}
|
||||
*(uint *)(param_1 + 1) = uVar1 - uVar3;
|
||||
if (*(int *)(param_1[5] + 0x2c) == 1) {
|
||||
uVar2 = FUN_1401e5880(*(undefined4 *)((longlong)param_1 + 0x4c),*param_1,uVar3);
|
||||
}
|
||||
else {
|
||||
if (*(int *)(param_1[5] + 0x2c) != 2) goto LAB_1401e5d63;
|
||||
uVar2 = FUN_1401c4210(*(undefined4 *)((longlong)param_1 + 0x4c),*param_1,uVar3);
|
||||
}
|
||||
*(undefined4 *)((longlong)param_1 + 0x4c) = uVar2;
|
||||
LAB_1401e5d63:
|
||||
memcpy(param_2,(void *)*param_1,(ulonglong)uVar3);
|
||||
*param_1 = *param_1 + (ulonglong)uVar3;
|
||||
*(int *)((longlong)param_1 + 0xc) = *(int *)((longlong)param_1 + 0xc) + uVar3;
|
||||
return uVar3;
|
||||
}
|
||||
|
||||
Loading…
Add table
Add a link
Reference in a new issue