54 lines
1.5 KiB
C
54 lines
1.5 KiB
C
/* DBCServer_Release_x64.exe sha256 d9e4fccdf3482e50247686d4452c0b13c75a53efc4bd7320668eece8d1ce828c
|
|
* Ghidra 12.1.2 decompiler output for 0x1401f7560 FUN_1401f7560
|
|
* Pseudocode, not original source. */
|
|
|
|
longlong * FUN_1401f7560(longlong param_1,undefined8 *param_2)
|
|
|
|
{
|
|
char cVar1;
|
|
ulonglong uVar2;
|
|
int iVar3;
|
|
char *pcVar4;
|
|
longlong *plVar5;
|
|
undefined *puVar6;
|
|
uint uVar7;
|
|
char *pcVar8;
|
|
|
|
pcVar8 = (char *)*param_2;
|
|
pcVar4 = pcVar8;
|
|
if (pcVar8 == (char *)0x0) {
|
|
pcVar4 = PTR_DAT_140344098;
|
|
}
|
|
if (pcVar4 == (char *)0x0) {
|
|
/* WARNING: Subroutine does not return */
|
|
FUN_14004dc60(0x80004005);
|
|
}
|
|
uVar7 = 0;
|
|
if (pcVar8 == (char *)0x0) {
|
|
pcVar8 = PTR_DAT_140344098;
|
|
}
|
|
cVar1 = *pcVar8;
|
|
while (cVar1 != '\0') {
|
|
pcVar8 = pcVar8 + 1;
|
|
uVar7 = uVar7 * 0x21 + (int)cVar1;
|
|
cVar1 = *pcVar8;
|
|
}
|
|
uVar2 = (ulonglong)uVar7 % (ulonglong)*(uint *)(param_1 + 0x28);
|
|
if (*(longlong *)(param_1 + 8) != 0) {
|
|
for (plVar5 = *(longlong **)(*(longlong *)(param_1 + 8) + uVar2 * 8);
|
|
(plVar5 != (longlong *)0x0 &&
|
|
((uint)uVar2 == *(uint *)(plVar5 + 4) % *(uint *)(param_1 + 0x28)));
|
|
plVar5 = (longlong *)plVar5[2]) {
|
|
puVar6 = (undefined *)*plVar5;
|
|
if ((undefined *)*plVar5 == (undefined *)0x0) {
|
|
puVar6 = PTR_DAT_140344098;
|
|
}
|
|
iVar3 = FUN_14016d840(puVar6);
|
|
if (iVar3 == 0) goto LAB_1401f7640;
|
|
}
|
|
}
|
|
plVar5 = (longlong *)FUN_1401f6f90(param_1,param_2,uVar2,uVar7);
|
|
LAB_1401f7640:
|
|
return plVar5 + 1;
|
|
}
|
|
|