{"type": "func", "start": 6442546032, "end": 6442546176, "name": "sub_180017370", "pseudocode": "// \n// sub_180017370 from 0x180017370 to 0x180017400 (144 bytes)\n// \n// 2 xrefs:\n// > sub_180016420 @ 0x180016462\n// > <???> @ 0x1801f71d0\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:48 +0000\n// \n\n__int64 __fastcall sub_180017370(__int64 a1, int a2, unsigned int a3, unsigned int a4)\n{\n  __int64 result; // rax\n  __int64 v9; // rcx\n  _DWORD v10[6]; // [rsp+20h] [rbp-18h] BYREF\n\n  result = sub_1800165A0(a1, a2, 0, v10);\n  if ( !(_DWORD)result )\n  {\n    v9 = *(_QWORD *)(a1 + 288);\n    if ( v9 )\n    {\n      *(_DWORD *)(v9 + 272) = v10[0];\n      result = sub_180012B90(*(_QWORD *)(a1 + 288), a2, a3, a4);\n      if ( (_DWORD)result )\n        return result;\n    }\n    else\n    {\n      result = sub_1800B3990(*(_QWORD *)(a1 + 368), a3 + v10[0], 0);\n      if ( (_DWORD)result )\n        return result;\n    }\n    return 0;\n  }\n  return result;\n}", "assembly": "; \n; sub_180017370 from 0x180017370 to 0x180017400 (144 bytes)\n; \n; 2 xrefs:\n; > sub_180016420 @ 0x180016462\n; > <???> @ 0x1801f71d0\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:48 +0000\n; \nmov     [rsp+arg_0], rbx                                               ; +0x0, 0x180017370\nmov     [rsp+arg_8], rbp                                               ; +0x5, 0x180017375\nmov     [rsp+arg_10], rsi                                              ; +0xa, 0x18001737a\npush    rdi                                                            ; +0xf, 0x18001737f\nsub     rsp, 30h                                                       ; +0x10, 0x180017380\nmov     ebp, r9d                                                       ; +0x14, 0x180017384\nmov     edi, r8d                                                       ; +0x17, 0x180017387\nlea     r9, [rsp+38h+var_18]                                           ; +0x1a, 0x18001738a\nxor     r8d, r8d                                                       ; +0x1f, 0x18001738f\nmov     esi, edx                                                       ; +0x22, 0x180017392\nmov     rbx, rcx                                                       ; +0x24, 0x180017394\ncall    sub_1800165A0                                                  ; +0x27, 0x180017397\ntest    eax, eax                                                       ; +0x2c, 0x18001739c\njnz     short loc_1800173EB                                            ; +0x2e, 0x18001739e\nmov     rcx, [rbx+120h]                                                ; +0x30, 0x1800173a0\ntest    rcx, rcx                                                       ; +0x37, 0x1800173a7\njz      short loc_1800173D0                                            ; +0x3a, 0x1800173aa\nmov     eax, [rsp+38h+var_18]                                          ; +0x3c, 0x1800173ac\nmov     r9d, ebp                                                       ; +0x40, 0x1800173b0\nmov     [rcx+110h], eax                                                ; +0x43, 0x1800173b3\nmov     r8d, edi                                                       ; +0x49, 0x1800173b9\nmov     rcx, [rbx+120h]                                                ; +0x4c, 0x1800173bc\nmov     edx, esi                                                       ; +0x53, 0x1800173c3\ncall    sub_180012B90                                                  ; +0x55, 0x1800173c5\ntest    eax, eax                                                       ; +0x5a, 0x1800173ca\njz      short loc_1800173E9                                            ; +0x5c, 0x1800173cc\njmp     short loc_1800173EB                                            ; +0x5e, 0x1800173ce\nmov     edx, [rsp+38h+var_18]                                          ; +0x60, 0x1800173d0\nxor     r8d, r8d                                                       ; +0x64, 0x1800173d4\nmov     rcx, [rbx+170h]                                                ; +0x67, 0x1800173d7\nadd     edx, edi                                                       ; +0x6e, 0x1800173de\ncall    sub_1800B3990                                                  ; +0x70, 0x1800173e0\ntest    eax, eax                                                       ; +0x75, 0x1800173e5\njnz     short loc_1800173EB                                            ; +0x77, 0x1800173e7\nxor     eax, eax                                                       ; +0x79, 0x1800173e9\nmov     rbx, [rsp+38h+arg_0]                                           ; +0x7b, 0x1800173eb\nmov     rbp, [rsp+38h+arg_8]                                           ; +0x80, 0x1800173f0\nmov     rsi, [rsp+38h+arg_10]                                          ; +0x85, 0x1800173f5\nadd     rsp, 30h                                                       ; +0x8a, 0x1800173fa\npop     rdi                                                            ; +0x8e, 0x1800173fe\nretn                                                                   ; +0x8f, 0x1800173ff", "xrefs": ["sub_180016420 @ 0x180016462", "<???> @ 0x1801f71d0"], "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"}