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
71
decomp/DBCServer_Release_x64/full/functions/0x1401e2260.c
Normal file
71
decomp/DBCServer_Release_x64/full/functions/0x1401e2260.c
Normal file
|
|
@ -0,0 +1,71 @@
|
|||
/* DBCServer_Release_x64.exe sha256 d9e4fccdf3482e50247686d4452c0b13c75a53efc4bd7320668eece8d1ce828c
|
||||
* Ghidra 12.1.2 decompiler output for 0x1401e2260 FUN_1401e2260
|
||||
* Pseudocode, not original source. */
|
||||
|
||||
undefined8 * FUN_1401e2260(undefined8 *param_1,longlong *param_2)
|
||||
|
||||
{
|
||||
longlong *plVar1;
|
||||
undefined4 uVar2;
|
||||
longlong lVar3;
|
||||
void *pvVar4;
|
||||
undefined8 *puVar5;
|
||||
undefined8 *puVar6;
|
||||
undefined8 *puVar7;
|
||||
ushort uVar8;
|
||||
|
||||
FUN_1401b3a90();
|
||||
*param_1 = Proud::CLookasideAllocatorImpl::vftable;
|
||||
plVar1 = param_1 + 1;
|
||||
FUN_1401b3aa0(plVar1);
|
||||
FUN_1401e21c0(param_1);
|
||||
puVar5 = (undefined8 *)0x0;
|
||||
*(undefined4 *)(param_1 + 8) = 0;
|
||||
*plVar1 = *param_2;
|
||||
param_1[2] = param_2[1];
|
||||
param_1[3] = param_2[2];
|
||||
if (DAT_14034c86d != '\0') {
|
||||
*(undefined4 *)((longlong)param_1 + 0x14) = 1;
|
||||
}
|
||||
if (*plVar1 == 0) {
|
||||
lVar3 = FUN_14019b310();
|
||||
*plVar1 = lVar3;
|
||||
}
|
||||
if (*(int *)((longlong)param_1 + 0x14) == 0) {
|
||||
pvVar4 = malloc(8);
|
||||
param_1[9] = pvVar4;
|
||||
pvVar4 = operator_new(0xc0);
|
||||
if (pvVar4 != (void *)0x0) {
|
||||
puVar5 = (undefined8 *)FUN_1401e1d10(pvVar4,param_1,0);
|
||||
}
|
||||
*(undefined8 **)param_1[9] = puVar5;
|
||||
}
|
||||
else {
|
||||
pvVar4 = malloc((ulonglong)DAT_14034f230 << 3);
|
||||
param_1[9] = pvVar4;
|
||||
uVar8 = 0;
|
||||
if (DAT_14034f230 != 0) {
|
||||
do {
|
||||
puVar6 = operator_new(0xc0);
|
||||
puVar7 = puVar5;
|
||||
if (puVar6 != (undefined8 *)0x0) {
|
||||
uVar2 = FUN_140171510();
|
||||
FUN_14016da70(puVar6 + 0xe,uVar2,1);
|
||||
*puVar6 = param_1;
|
||||
puVar6[0xd] = 0;
|
||||
*(undefined4 *)(puVar6 + 8) = 2;
|
||||
puVar6[9] = 0;
|
||||
puVar6[10] = 0;
|
||||
puVar6[0xb] = 0;
|
||||
*(ushort *)(puVar6 + 0xc) = uVar8;
|
||||
*(undefined1 *)(puVar6 + 0x15) = 0;
|
||||
puVar7 = puVar6;
|
||||
}
|
||||
*(undefined8 **)(param_1[9] + (ulonglong)uVar8 * 8) = puVar7;
|
||||
uVar8 = uVar8 + 1;
|
||||
} while (uVar8 < DAT_14034f230);
|
||||
}
|
||||
}
|
||||
return param_1;
|
||||
}
|
||||
|
||||
Loading…
Add table
Add a link
Reference in a new issue