{"type": "func", "start": 6443126720, "end": 6443126865, "name": "sub_1800A4FC0", "pseudocode": "// \n// sub_1800A4FC0 from 0x1800a4fc0 to 0x1800a5051 (145 bytes)\n// \n// 2 xrefs:\n// > sub_1800A6260 @ 0x1800a6299\n// > <???> @ 0x1801fb718\n// \n// This function is hookable on this platform!\n// \n// Using BromaIDA 8.0.0 @ https://github.com/Stazzical/BromaIDA\n// Using bindings at commit ba9f177b at Thu Jul 16 22:52:06 2026 from https://github.com/geode-sdk/bindings\n// \n\n__int64 __fastcall sub_1800A4FC0(__int64 a1, _DWORD *a2)\n{\n  __int64 v2; // rbx\n  void *v5; // rax\n  __int64 result; // rax\n\n  v2 = *(_QWORD *)a1;\n  if ( !*(_QWORD *)a1 )\n  {\n    v5 = (void *)(*(__int64 (__fastcall **)(__int64, _QWORD, const char *, __int64))(a1 + 16))(\n                   984,\n                   0,\n                   \"C:\\\\buildagent1\\\\work\\\\570ad728b1678096\\\\core_api\\\\src\\\\fmod_output_winsonic.cpp\",\n                   505);\n    *(_QWORD *)a1 = v5;\n    if ( !v5 )\n      return 38;\n    memset(v5, 0, 0x3D8u);\n    v2 = *(_QWORD *)a1;\n  }\n  if ( *(_BYTE *)(v2 + 180) || (result = sub_1800A4BC0((__int64 *)a1), !(_DWORD)result) )\n  {\n    *a2 = *(_DWORD *)(v2 + 696);\n    return 0;\n  }\n  return result;\n}", "assembly": "; \n; sub_1800A4FC0 from 0x1800a4fc0 to 0x1800a5051 (145 bytes)\n; \n; 2 xrefs:\n; > sub_1800A6260 @ 0x1800a6299\n; > <???> @ 0x1801fb718\n; \n; This function is hookable on this platform!\n; \n; Using BromaIDA 8.0.0 @ https:;github.com/Stazzical/BromaIDA\n; Using bindings at commit ba9f177b at Thu Jul 16 22:52:06 2026 from https:;github.com/geode-sdk/bindings\n; \n\nmov     [rsp+arg_0], rbx                                               ; +0x0, 0x1800a4fc0\nmov     [rsp+arg_8], rsi                                               ; +0x5, 0x1800a4fc5\npush    rdi                                                            ; +0xa, 0x1800a4fca\nsub     rsp, 20h                                                       ; +0xb, 0x1800a4fcb\nmov     rbx, [rcx]                                                     ; +0xf, 0x1800a4fcf\nmov     rsi, rdx                                                       ; +0x12, 0x1800a4fd2\nmov     rdi, rcx                                                       ; +0x15, 0x1800a4fd5\ntest    rbx, rbx                                                       ; +0x18, 0x1800a4fd8\njnz     short loc_1800A5022                                            ; +0x1b, 0x1800a4fdb\nmov     r9d, 1F9h                                                      ; +0x1d, 0x1800a4fdd\nlea     r8, aCBuildagent1Wo_30; \"C:\\\\buildagent1\\\\work\\\\570ad728b1678096\"... ; +0x23, 0x1800a4fe3\nxor     edx, edx                                                       ; +0x2a, 0x1800a4fea\nmov     ecx, 3D8h                                                      ; +0x2c, 0x1800a4fec\ncall    qword ptr [rdi+10h]                                            ; +0x31, 0x1800a4ff1\nmov     [rdi], rax                                                     ; +0x34, 0x1800a4ff4\ntest    rax, rax                                                       ; +0x37, 0x1800a4ff7\njnz     short loc_1800A500F                                            ; +0x3a, 0x1800a4ffa\nlea     eax, [rbx+26h]                                                 ; +0x3c, 0x1800a4ffc\nmov     rbx, [rsp+28h+arg_0]                                           ; +0x3f, 0x1800a4fff\nmov     rsi, [rsp+28h+arg_8]                                           ; +0x44, 0x1800a5004\nadd     rsp, 20h                                                       ; +0x49, 0x1800a5009\npop     rdi                                                            ; +0x4d, 0x1800a500d\nretn                                                                   ; +0x4e, 0x1800a500e\nxor     edx, edx; Val                                                  ; +0x4f, 0x1800a500f\nmov     r8d, 3D8h; Size                                                ; +0x51, 0x1800a5011\nmov     rcx, rax; void *                                               ; +0x57, 0x1800a5017\ncall    memset                                                         ; +0x5a, 0x1800a501a\nmov     rbx, [rdi]                                                     ; +0x5f, 0x1800a501f\ncmp     byte ptr [rbx+0B4h], 0                                         ; +0x62, 0x1800a5022\njnz     short loc_1800A5037                                            ; +0x69, 0x1800a5029\nmov     rcx, rdi                                                       ; +0x6b, 0x1800a502b\ncall    sub_1800A4BC0                                                  ; +0x6e, 0x1800a502e\ntest    eax, eax                                                       ; +0x73, 0x1800a5033\njnz     short loc_1800A5041                                            ; +0x75, 0x1800a5035\nmov     eax, [rbx+2B8h]                                                ; +0x77, 0x1800a5037\nmov     [rsi], eax                                                     ; +0x7d, 0x1800a503d\nxor     eax, eax                                                       ; +0x7f, 0x1800a503f\nmov     rbx, [rsp+28h+arg_0]                                           ; +0x81, 0x1800a5041\nmov     rsi, [rsp+28h+arg_8]                                           ; +0x86, 0x1800a5046\nadd     rsp, 20h                                                       ; +0x8b, 0x1800a504b\npop     rdi                                                            ; +0x8f, 0x1800a504f\nretn                                                                   ; +0x90, 0x1800a5050", "xrefs": ["sub_1800A6260 @ 0x1800a6299", "<???> @ 0x1801fb718"], "is_objc": false, "is_arm32": false, "is_arm64": false, "bida_info": "8.0.0 @ https://github.com/Stazzical/BromaIDA", "bindings_info": "commit ba9f177b at Thu Jul 16 22:52:06 2026 from https://github.com/geode-sdk/bindings"}