decomp DBCServer_Release and inspect/document database

This commit is contained in:
Benjamin Palko 2026-10-14 23:22:03 -04:00
parent 4b267cbe05
commit 7834b98bf0
28222 changed files with 843300 additions and 144 deletions

View file

@ -0,0 +1,40 @@
/* DBCServer_Release_x64.exe sha256 d9e4fccdf3482e50247686d4452c0b13c75a53efc4bd7320668eece8d1ce828c
* Ghidra 12.1.2 decompiler output for 0x14015b060 FUN_14015b060
* Pseudocode, not original source. */
void FUN_14015b060(undefined8 *param_1,LPCSTR param_2,UINT param_3)
{
code *pcVar1;
int iVar2;
int iVar3;
DWORD DVar4;
bool bVar5;
if (param_2 == (LPCSTR)0x0) {
*param_1 = 0;
return;
}
iVar2 = lstrlenA(param_2);
iVar2 = iVar2 + 1;
FUN_14015af90(param_1,iVar2,param_1 + 1,0x80);
iVar3 = MultiByteToWideChar(param_3,0,param_2,iVar2,(LPWSTR)*param_1,iVar2);
if (iVar3 == 0) {
DVar4 = GetLastError();
bVar5 = true;
if (DVar4 == 0x7a) {
iVar3 = MultiByteToWideChar(param_3,0,param_2,iVar2,(LPWSTR)0x0,0);
FUN_14015af90(param_1,iVar3,param_1 + 1,0x80);
iVar2 = MultiByteToWideChar(param_3,0,param_2,iVar2,(LPWSTR)*param_1,iVar3);
bVar5 = iVar2 == 0;
}
if (bVar5) {
FUN_14015b040();
pcVar1 = (code *)swi(3);
(*pcVar1)();
return;
}
}
return;
}