server-re/decomp/DBCServer_Release_x64/full/functions/0x14013ac60.c

101 lines
2.8 KiB
C

/* DBCServer_Release_x64.exe sha256 d9e4fccdf3482e50247686d4452c0b13c75a53efc4bd7320668eece8d1ce828c
* Ghidra 12.1.2 decompiler output for 0x14013ac60 FUN_14013ac60
* Pseudocode, not original source. */
/* WARNING: Function: __security_check_cookie replaced with injection: security_check_cookie */
void FUN_14013ac60(longlong param_1,undefined4 param_2,undefined4 param_3,wchar_t *param_4,
wchar_t *param_5)
{
undefined1 auStack_118 [32];
undefined1 *local_f8;
undefined8 local_e8;
undefined4 local_e0;
undefined2 local_dc;
undefined1 local_da [2];
undefined4 local_d8 [4];
undefined2 local_c8;
undefined2 uStack_c6;
undefined4 uStack_c4;
undefined4 local_c0;
undefined2 local_bc;
wchar_t local_ba [57];
ulonglong local_48;
local_48 = DAT_1403463c0 ^ (ulonglong)auStack_118;
local_ba[0] = L'\0';
local_ba[1] = L'\0';
local_ba[2] = L'\0';
local_ba[3] = L'\0';
local_ba[4] = L'\0';
local_ba[5] = L'\0';
local_ba[6] = L'\0';
local_ba[7] = L'\0';
local_ba[8] = L'\0';
local_ba[9] = L'\0';
local_ba[10] = L'\0';
local_ba[0xb] = L'\0';
local_ba[0xc] = L'\0';
local_ba[0xd] = L'\0';
local_ba[0xe] = L'\0';
local_ba[0xf] = L'\0';
local_ba[0x10] = 0;
local_ba[0x11] = L'\0';
local_ba[0x12] = L'\0';
local_ba[0x13] = L'\0';
local_ba[0x14] = L'\0';
local_ba[0x15] = L'\0';
local_ba[0x16] = L'\0';
local_ba[0x17] = L'\0';
local_ba[0x18] = L'\0';
local_ba[0x19] = L'\0';
local_ba[0x1a] = L'\0';
local_ba[0x1b] = L'\0';
local_ba[0x1c] = L'\0';
local_ba[0x1d] = L'\0';
local_ba[0x1e] = L'\0';
local_ba[0x1f] = L'\0';
local_ba[0x20] = L'\0';
local_ba[0x21] = L'\0';
local_ba[0x22] = L'\0';
local_ba[0x23] = L'\0';
local_ba[0x24] = L'\0';
local_ba[0x25] = L'\0';
local_ba[0x26] = L'\0';
local_ba[0x27] = L'\0';
local_ba[0x28] = L'\0';
local_ba[0x29] = L'\0';
local_ba[0x2a] = L'\0';
local_ba[0x2b] = L'\0';
local_ba[0x2c] = L'\0';
local_ba[0x2d] = L'\0';
local_ba[0x2e] = L'\0';
local_ba[0x2f] = L'\0';
local_ba[0x30] = L'\0';
local_ba[0x31] = 0;
local_da[0] = 0;
uStack_c6 = 0x4c2;
local_bc = 0;
local_c8 = 0x72;
local_e8 = 0;
local_e0 = 0;
local_dc = 0;
uStack_c4 = param_3;
local_c0 = param_2;
wcsncpy(local_ba,param_4,0x10);
wcsncpy(local_ba + 0x11,param_5,0x20);
local_e0 = local_c0;
local_ba[0x10] = 0;
local_dc = 0x6f;
local_ba[0x31] = 0;
local_e8 = CONCAT62((int6)(CONCAT44(uStack_c4,CONCAT22(uStack_c6,local_c8)) >> 0x10),0xf);
FUN_14012ea20(*(undefined8 *)(param_1 + 0xe0),&local_c8,&local_e8);
*(int *)(param_1 + 0x670) = *(int *)(param_1 + 0x670) + 1;
local_f8 = local_da;
local_d8[0] = param_3;
(**(code **)(*(longlong *)(param_1 + 0xa8) + 0x350))
((longlong *)(param_1 + 0xa8),param_2,&DAT_1403440f0,local_d8);
return;
}