{"type": "func", "start": 6442525968, "end": 6442526089, "name": "sub_180012510", "pseudocode": "// \n// sub_180012510 from 0x180012510 to 0x180012589 (121 bytes)\n// \n// 6 xrefs:\n// > sub_1800C9FF0 @ 0x1800ca3d1\n// > sub_1800DD650 @ 0x1800dd6a0\n// > sub_1800DD7C0 @ 0x1800dd96b\n// > sub_1800E07E0 @ 0x1800e0836\n// > sub_1800E0880 @ 0x1800e0928\n// > <???> @ 0x1801f6eb8\n// \n// This function is hookable on this platform (idp: pc, 32 bit: False, 64 bit: True!\n// \n// Using BromaIDA 8.3.0 @ https://github.com/Stazzical/BromaIDA\n// Using bindings at commit 1c6ec395 at Thu Nov 26 21:29:22 2026 from https://github.com/geode-sdk/bindings\n// Generated at Fri, 27 Nov 2026 10:52:46 +0000\n// \n\n__int64 __fastcall sub_180012510(__int64 a1, _DWORD *a2, int a3)\n{\n  __int64 result; // rax\n  __int64 (__fastcall *v6)(__int64); // rax\n\n  *a2 = 0;\n  if ( *(_QWORD *)(a1 + 368) && a3 == 8 )\n  {\n    result = sub_1800B3D20();\n    if ( !(_DWORD)result )\n    {\n      *a2 -= *(_DWORD *)(a1 + 272);\n      return 0;\n    }\n  }\n  else\n  {\n    v6 = *(__int64 (__fastcall **)(__int64))(a1 + 120);\n    if ( v6 && (a3 & *(_DWORD *)(a1 + 72)) != 0 )\n      return v6(a1);\n    else\n      return 68;\n  }\n  return result;\n}", "assembly": "; \n; sub_180012510 from 0x180012510 to 0x180012589 (121 bytes)\n; \n; 6 xrefs:\n; > sub_1800C9FF0 @ 0x1800ca3d1\n; > sub_1800DD650 @ 0x1800dd6a0\n; > sub_1800DD7C0 @ 0x1800dd96b\n; > sub_1800E07E0 @ 0x1800e0836\n; > sub_1800E0880 @ 0x1800e0928\n; > <???> @ 0x1801f6eb8\n; \n; This function is hookable on this platform (idp: pc, 32 bit: False, 64 bit: True!\n; \n; Using BromaIDA 8.3.0 @ https://github.com/Stazzical/BromaIDA\n; Using bindings at commit 1c6ec395 at Thu Nov 26 21:29:22 2026 from https://github.com/geode-sdk/bindings\n; Generated at Fri, 27 Nov 2026 10:52:46 +0000\n; \nmov     [rsp+arg_0], rbx                                               ; +0x0, 0x180012510\npush    rdi                                                            ; +0x5, 0x180012515\nsub     rsp, 20h                                                       ; +0x6, 0x180012516\nmov     rbx, rcx                                                       ; +0xa, 0x18001251a\nmov     dword ptr [rdx], 0                                             ; +0xd, 0x18001251d\nmov     rcx, [rcx+170h]                                                ; +0x13, 0x180012523\nmov     rdi, rdx                                                       ; +0x1a, 0x18001252a\ntest    rcx, rcx                                                       ; +0x1d, 0x18001252d\njz      short loc_180012556                                            ; +0x20, 0x180012530\ncmp     r8d, 8                                                         ; +0x22, 0x180012532\njnz     short loc_180012556                                            ; +0x26, 0x180012536\ncall    sub_1800B3D20                                                  ; +0x28, 0x180012538\ntest    eax, eax                                                       ; +0x2d, 0x18001253d\njnz     short loc_18001257E                                            ; +0x2f, 0x18001253f\nmov     eax, [rbx+110h]                                                ; +0x31, 0x180012541\nsub     [rdi], eax                                                     ; +0x37, 0x180012547\nxor     eax, eax                                                       ; +0x39, 0x180012549\nmov     rbx, [rsp+28h+arg_0]                                           ; +0x3b, 0x18001254b\nadd     rsp, 20h                                                       ; +0x40, 0x180012550\npop     rdi                                                            ; +0x44, 0x180012554\nretn                                                                   ; +0x45, 0x180012555\nmov     rax, [rbx+78h]                                                 ; +0x46, 0x180012556\ntest    rax, rax                                                       ; +0x4a, 0x18001255a\njz      short loc_180012579                                            ; +0x4d, 0x18001255d\ntest    [rbx+48h], r8d                                                 ; +0x4f, 0x18001255f\njz      short loc_180012579                                            ; +0x53, 0x180012563\nmov     rcx, rbx                                                       ; +0x55, 0x180012565\ncall    rax                                                            ; +0x58, 0x180012568\ntest    eax, eax                                                       ; +0x5a, 0x18001256a\njnz     short loc_18001257E                                            ; +0x5c, 0x18001256c\nmov     rbx, [rsp+28h+arg_0]                                           ; +0x5e, 0x18001256e\nadd     rsp, 20h                                                       ; +0x63, 0x180012573\npop     rdi                                                            ; +0x67, 0x180012577\nretn                                                                   ; +0x68, 0x180012578\nmov     eax, 44h ; 'D'                                                 ; +0x69, 0x180012579\nmov     rbx, [rsp+28h+arg_0]                                           ; +0x6e, 0x18001257e\nadd     rsp, 20h                                                       ; +0x73, 0x180012583\npop     rdi                                                            ; +0x77, 0x180012587\nretn                                                                   ; +0x78, 0x180012588", "xrefs": ["sub_1800C9FF0 @ 0x1800ca3d1", "sub_1800DD650 @ 0x1800dd6a0", "sub_1800DD7C0 @ 0x1800dd96b", "sub_1800E07E0 @ 0x1800e0836", "sub_1800E0880 @ 0x1800e0928", "<???> @ 0x1801f6eb8"], "is_objc": false, "is_32_bit": false, "is_64_bit": true, "idp_name": "pc", "bida_info": "8.3.0 @ https://github.com/Stazzical/BromaIDA", "bindings_info": "commit 1c6ec395 at Thu Nov 26 21:29:22 2026 from https://github.com/geode-sdk/bindings"}