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
37
decomp/DBCServer_Release_x64/full/functions/0x14016f4e0.c
Normal file
37
decomp/DBCServer_Release_x64/full/functions/0x14016f4e0.c
Normal file
|
|
@ -0,0 +1,37 @@
|
|||
/* DBCServer_Release_x64.exe sha256 d9e4fccdf3482e50247686d4452c0b13c75a53efc4bd7320668eece8d1ce828c
|
||||
* Ghidra 12.1.2 decompiler output for 0x14016f4e0 FUN_14016f4e0
|
||||
* Pseudocode, not original source. */
|
||||
|
||||
/* WARNING: Removing unreachable block (ram,0x00014016f539) */
|
||||
|
||||
undefined8 FUN_14016f4e0(longlong *param_1,HMODULE param_2,uint param_3)
|
||||
|
||||
{
|
||||
uint uVar1;
|
||||
ushort uVar2;
|
||||
HRSRC pHVar3;
|
||||
ushort *puVar4;
|
||||
uint uVar5;
|
||||
|
||||
pHVar3 = FindResourceW(param_2,(LPCWSTR)(ulonglong)(ushort)((short)(param_3 >> 4) + 1),
|
||||
(LPCWSTR)0x6);
|
||||
if ((pHVar3 == (HRSRC)0x0) ||
|
||||
(puVar4 = (ushort *)FUN_14016ecf0(param_2,pHVar3,param_3), puVar4 == (ushort *)0x0)) {
|
||||
return 0;
|
||||
}
|
||||
uVar2 = *puVar4;
|
||||
uVar5 = (uint)uVar2;
|
||||
if ((int)(1U - *(int *)(*param_1 + -8) | *(int *)(*param_1 + -0xc) - uVar5) < 0) {
|
||||
FUN_14016f480(param_1,uVar5);
|
||||
}
|
||||
FUN_14016ee50(*param_1,uVar5,puVar4 + 1,*puVar4);
|
||||
uVar1 = *(uint *)(*param_1 + -0xc);
|
||||
if (uVar2 != uVar1 && (int)uVar1 <= (int)uVar5) {
|
||||
/* WARNING: Subroutine does not return */
|
||||
FUN_14004dc60(0x80070057);
|
||||
}
|
||||
*(uint *)(*param_1 + -0x10) = (uint)uVar2;
|
||||
*(undefined2 *)(*param_1 + (ulonglong)uVar2 * 2) = 0;
|
||||
return 1;
|
||||
}
|
||||
|
||||
Loading…
Add table
Add a link
Reference in a new issue