{"type": "func", "start": 6442525552, "end": 6442525669, "name": "sub_180012370", "pseudocode": "// \n// sub_180012370 from 0x180012370 to 0x1800123e5 (117 bytes)\n// \n// 2 xrefs:\n// > sub_1800DEC00 @ 0x1800dece7\n// > <???> @ 0x1801f6ea0\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_180012370(__int64 a1, _DWORD *a2, int a3)\n{\n  __int64 v4; // rdx\n  __int64 result; // rax\n  __int64 (*v6)(void); // r9\n  __int128 v7; // [rsp+20h] [rbp-48h] BYREF\n  __int128 v8; // [rsp+30h] [rbp-38h]\n  __int128 v9; // [rsp+40h] [rbp-28h]\n  __int64 v10; // [rsp+50h] [rbp-18h]\n\n  if ( a3 == 8 )\n  {\n    v4 = *(unsigned int *)(a1 + 284);\n    v10 = 0;\n    v7 = 0;\n    v8 = 0;\n    v9 = 0;\n    result = (*(__int64 (__fastcall **)(__int64, __int64, __int128 *))(a1 + 136))(a1, v4, &v7);\n    if ( !(_DWORD)result )\n    {\n      *a2 = DWORD1(v8);\n      return 0;\n    }\n  }\n  else\n  {\n    v6 = *(__int64 (**)(void))(a1 + 104);\n    if ( v6 )\n    {\n      return v6();\n    }\n    else\n    {\n      *a2 = 0;\n      return 68;\n    }\n  }\n  return result;\n}", "assembly": "; \n; sub_180012370 from 0x180012370 to 0x1800123e5 (117 bytes)\n; \n; 2 xrefs:\n; > sub_1800DEC00 @ 0x1800dece7\n; > <???> @ 0x1801f6ea0\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; \npush    rbx                                                            ; +0x0, 0x180012370\nsub     rsp, 60h                                                       ; +0x2, 0x180012372\nmov     rbx, rdx                                                       ; +0x6, 0x180012376\nmov     rax, rcx                                                       ; +0x9, 0x180012379\ncmp     r8d, 8                                                         ; +0xc, 0x18001237c\njnz     short loc_1800123C1                                            ; +0x10, 0x180012380\nmov     edx, [rax+11Ch]                                                ; +0x12, 0x180012382\nlea     r8, [rsp+68h+var_48]                                           ; +0x18, 0x180012388\nxorps   xmm0, xmm0                                                     ; +0x1d, 0x18001238d\nxor     ecx, ecx                                                       ; +0x20, 0x180012390\nmov     [rsp+68h+var_18], rcx                                          ; +0x22, 0x180012392\nmov     rcx, rax                                                       ; +0x27, 0x180012397\nmovups  [rsp+68h+var_48], xmm0                                         ; +0x2a, 0x18001239a\nmovups  [rsp+68h+var_38], xmm0                                         ; +0x2f, 0x18001239f\nmovups  [rsp+68h+var_28], xmm0                                         ; +0x34, 0x1800123a4\ncall    qword ptr [rax+88h]                                            ; +0x39, 0x1800123a9\ntest    eax, eax                                                       ; +0x3f, 0x1800123af\njnz     short loc_1800123DF                                            ; +0x41, 0x1800123b1\nmov     eax, dword ptr [rsp+68h+var_38+4]                              ; +0x43, 0x1800123b3\nmov     [rbx], eax                                                     ; +0x47, 0x1800123b7\nxor     eax, eax                                                       ; +0x49, 0x1800123b9\nadd     rsp, 60h                                                       ; +0x4b, 0x1800123bb\npop     rbx                                                            ; +0x4f, 0x1800123bf\nretn                                                                   ; +0x50, 0x1800123c0\nmov     r9, [rcx+68h]                                                  ; +0x51, 0x1800123c1\ntest    r9, r9                                                         ; +0x55, 0x1800123c5\njnz     short loc_1800123D7                                            ; +0x58, 0x1800123c8\nmov     [rdx], r9d                                                     ; +0x5a, 0x1800123ca\nlea     eax, [r9+44h]                                                  ; +0x5d, 0x1800123cd\nadd     rsp, 60h                                                       ; +0x61, 0x1800123d1\npop     rbx                                                            ; +0x65, 0x1800123d5\nretn                                                                   ; +0x66, 0x1800123d6\nadd     rsp, 60h                                                       ; +0x67, 0x1800123d7\npop     rbx                                                            ; +0x6b, 0x1800123db\njmp     r9                                                             ; +0x6c, 0x1800123dc\nadd     rsp, 60h                                                       ; +0x6f, 0x1800123df\npop     rbx                                                            ; +0x73, 0x1800123e3\nretn                                                                   ; +0x74, 0x1800123e4", "xrefs": ["sub_1800DEC00 @ 0x1800dece7", "<???> @ 0x1801f6ea0"], "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"}