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
47
decomp/DBCServer_Release_x64/full/functions/0x1401e3dc0.c
Normal file
47
decomp/DBCServer_Release_x64/full/functions/0x1401e3dc0.c
Normal file
|
|
@ -0,0 +1,47 @@
|
|||
/* DBCServer_Release_x64.exe sha256 d9e4fccdf3482e50247686d4452c0b13c75a53efc4bd7320668eece8d1ce828c
|
||||
* Ghidra 12.1.2 decompiler output for 0x1401e3dc0 FUN_1401e3dc0
|
||||
* Pseudocode, not original source. */
|
||||
|
||||
undefined8 FUN_1401e3dc0(longlong *param_1,void *param_2,uint param_3)
|
||||
|
||||
{
|
||||
undefined8 uVar1;
|
||||
uint uVar2;
|
||||
|
||||
if (((param_1 != (longlong *)0x0) && (param_2 != (void *)0x0)) &&
|
||||
(*(uint *)((longlong)param_1 + 0x1c) < 0x41)) {
|
||||
while( true ) {
|
||||
while( true ) {
|
||||
if (param_3 == 0) {
|
||||
return 0;
|
||||
}
|
||||
if ((*(int *)((longlong)param_1 + 0x1c) == 0) && (0x3f < param_3)) break;
|
||||
uVar2 = 0x40 - *(int *)((longlong)param_1 + 0x1c);
|
||||
if (param_3 < uVar2) {
|
||||
uVar2 = param_3;
|
||||
}
|
||||
memcpy((void *)((ulonglong)*(uint *)((longlong)param_1 + 0x1c) + 0x20 + (longlong)param_1),
|
||||
param_2,(ulonglong)uVar2);
|
||||
*(int *)((longlong)param_1 + 0x1c) = *(int *)((longlong)param_1 + 0x1c) + uVar2;
|
||||
param_2 = (void *)((longlong)param_2 + (ulonglong)uVar2);
|
||||
param_3 = param_3 - uVar2;
|
||||
if (*(int *)((longlong)param_1 + 0x1c) == 0x40) {
|
||||
uVar1 = FUN_1401e38b0(param_1,param_1 + 4);
|
||||
if ((int)uVar1 != 0) {
|
||||
return uVar1;
|
||||
}
|
||||
*param_1 = *param_1 + 0x200;
|
||||
*(undefined4 *)((longlong)param_1 + 0x1c) = 0;
|
||||
}
|
||||
}
|
||||
uVar1 = FUN_1401e38b0(param_1,param_2);
|
||||
if ((int)uVar1 != 0) break;
|
||||
*param_1 = *param_1 + 0x200;
|
||||
param_2 = (void *)((longlong)param_2 + 0x40);
|
||||
param_3 = param_3 - 0x40;
|
||||
}
|
||||
return uVar1;
|
||||
}
|
||||
return 0x10;
|
||||
}
|
||||
|
||||
Loading…
Add table
Add a link
Reference in a new issue