/* DBCServer_Release_x64.exe sha256 d9e4fccdf3482e50247686d4452c0b13c75a53efc4bd7320668eece8d1ce828c * Ghidra 12.1.2 decompiler output for 0x1401b13d0 FUN_1401b13d0 * Pseudocode, not original source. */ /* WARNING: Function: __security_check_cookie replaced with injection: security_check_cookie */ undefined8 FUN_1401b13d0(longlong param_1,longlong param_2,longlong param_3) { int iVar1; char cVar2; undefined8 uVar3; undefined8 uVar4; undefined1 auStack_118 [32]; longlong local_f8; undefined8 local_e0; undefined1 local_d8 [72]; undefined1 local_90 [72]; int local_48; byte local_44; undefined4 local_40; undefined4 local_3c; ulonglong local_38; local_e0 = 0xfffffffffffffffe; local_38 = DAT_1403463c0 ^ (ulonglong)auStack_118; if (*(int *)(param_3 + 0x3c0) < 1) { FUN_14016d2a0(local_90,&DAT_140287690); /* WARNING: Subroutine does not return */ _CxxThrowException(local_90,(ThrowInfo *)&DAT_1403417f8); } iVar1 = *(int *)(param_1 + 0x18); uVar4 = 0; uVar3 = uVar4; if (iVar1 != 0) { uVar3 = *(undefined8 *)(param_1 + 0x10); } local_3c = FUN_1401c5de0(uVar3,iVar1); if (0 < *(int *)(param_3 + 0x3c0)) { local_40 = 5; cVar2 = (char)((iVar1 + 5) % *(int *)(param_3 + 0x3c4)); local_44 = 0; if (cVar2 != '\0') { local_44 = (char)*(int *)(param_3 + 0x3c4) - cVar2; } local_48 = local_44 + 5 + iVar1; FUN_14004f0e0(param_2); uVar3 = uVar4; if (*(int *)(param_2 + 0x18) != 0) { uVar3 = *(undefined8 *)(param_2 + 0x10); } if (*(int *)(param_1 + 0x18) != 0) { uVar4 = *(undefined8 *)(param_1 + 0x10); } local_f8 = param_3; FUN_1401b1230(uVar4,*(int *)(param_1 + 0x18),uVar3,&local_48); return 1; } FUN_14016d300(local_d8,L"aes key is not initialized"); /* WARNING: Subroutine does not return */ _CxxThrowException(local_d8,(ThrowInfo *)&DAT_1403417f8); }