{"type": "func", "start": 6442792704, "end": 6442792917, "name": "sub_180053700", "pseudocode": "// \n// sub_180053700 from 0x180053700 to 0x1800537d5 (213 bytes)\n// \n// 7 xrefs:\n// > sub_1800510D0 @ 0x180051102\n// > sub_1800510D0 @ 0x180051330\n// > sub_180052A90 @ 0x180052ad2\n// > <???> @ 0x180181eac\n// > <???> @ 0x180181ec0\n// > <???> @ 0x180181ed4\n// > <???> @ 0x1801f8b5c\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_180053700(__int64 a1, __int64 a2)\n{\n  __int64 result; // rax\n  __int64 v5; // r8\n  int v6; // eax\n\n  if ( *(int *)(a2 + 128) > 3 )\n    return 0;\n  if ( *(int *)(a2 + 128) < 3 )\n    return 4294967167LL;\n  v5 = *(_QWORD *)(a2 + 104);\n  if ( *(_DWORD *)(a2 + 8) )\n    v5 += 40LL * *(int *)(a2 + 136);\n  v6 = sub_180049120(a1, a2 + 528, v5);\n  if ( v6 == -139 )\n    return 4294967157LL;\n  if ( v6 )\n    return 4294967159LL;\n  result = sub_180048460(a1, a2 + 528, a2 + 648);\n  if ( (_DWORD)result )\n    return 4294967157LL;\n  *(_DWORD *)(a2 + 128) = 4;\n  *(_QWORD *)(a2 + 140) = result;\n  return result;\n}", "assembly": "; \n; sub_180053700 from 0x180053700 to 0x1800537d5 (213 bytes)\n; \n; 7 xrefs:\n; > sub_1800510D0 @ 0x180051102\n; > sub_1800510D0 @ 0x180051330\n; > sub_180052A90 @ 0x180052ad2\n; > <???> @ 0x180181eac\n; > <???> @ 0x180181ec0\n; > <???> @ 0x180181ed4\n; > <???> @ 0x1801f8b5c\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_8], rbx                                               ; +0x0, 0x180053700\npush    rsi                                                            ; +0x5, 0x180053705\nsub     rsp, 20h                                                       ; +0x6, 0x180053706\ncmp     dword ptr [rdx+80h], 3                                         ; +0xa, 0x18005370a\nmov     rbx, rdx                                                       ; +0x11, 0x180053711\nmov     rsi, rcx                                                       ; +0x14, 0x180053714\njle     short loc_180053726                                            ; +0x17, 0x180053717\nxor     eax, eax                                                       ; +0x19, 0x180053719\nmov     rbx, [rsp+28h+arg_8]                                           ; +0x1b, 0x18005371b\nadd     rsp, 20h                                                       ; +0x20, 0x180053720\npop     rsi                                                            ; +0x24, 0x180053724\nretn                                                                   ; +0x25, 0x180053725\njge     short loc_180053738                                            ; +0x26, 0x180053726\nmov     eax, 0FFFFFF7Fh                                                ; +0x28, 0x180053728\nmov     rbx, [rsp+28h+arg_8]                                           ; +0x2d, 0x18005372d\nadd     rsp, 20h                                                       ; +0x32, 0x180053732\npop     rsi                                                            ; +0x36, 0x180053736\nretn                                                                   ; +0x37, 0x180053737\ncmp     dword ptr [rdx+8], 0                                           ; +0x38, 0x180053738\nmov     r8, [rdx+68h]                                                  ; +0x3c, 0x18005373c\nmov     [rsp+28h+arg_0], rdi                                           ; +0x40, 0x180053740\njz      short loc_180053759                                            ; +0x45, 0x180053745\nmovsxd  rax, dword ptr [rdx+88h]                                       ; +0x47, 0x180053747\nlea     rcx, [rax+rax*4]                                               ; +0x4e, 0x18005374e\nlea     r8, [r8+rcx*8]                                                 ; +0x52, 0x180053752\nmov     rcx, rsi                                                       ; +0x56, 0x180053756\nadd     rdx, 210h                                                      ; +0x59, 0x180053759\ncall    sub_180049120                                                  ; +0x60, 0x180053760\ncmp     eax, 0FFFFFF75h                                                ; +0x65, 0x180053765\njz      short loc_1800537C0                                            ; +0x6a, 0x18005376a\ntest    eax, eax                                                       ; +0x6c, 0x18005376c\njz      short loc_180053785                                            ; +0x6e, 0x18005376e\nmov     rdi, [rsp+28h+arg_0]                                           ; +0x70, 0x180053770\nmov     eax, 0FFFFFF77h                                                ; +0x75, 0x180053775\nmov     rbx, [rsp+28h+arg_8]                                           ; +0x7a, 0x18005377a\nadd     rsp, 20h                                                       ; +0x7f, 0x18005377f\npop     rsi                                                            ; +0x83, 0x180053783\nretn                                                                   ; +0x84, 0x180053784\nlea     r8, [rbx+288h]                                                 ; +0x85, 0x180053785\nmov     rcx, rsi                                                       ; +0x8c, 0x18005378c\nlea     rdx, [rbx+210h]                                                ; +0x8f, 0x18005378f\ncall    sub_180048460                                                  ; +0x96, 0x180053796\ntest    eax, eax                                                       ; +0x9b, 0x18005379b\njnz     short loc_1800537C0                                            ; +0x9d, 0x18005379d\nmov     rdi, [rsp+28h+arg_0]                                           ; +0x9f, 0x18005379f\nmov     dword ptr [rbx+80h], 4                                         ; +0xa4, 0x1800537a4\nmov     [rbx+8Ch], rax                                                 ; +0xae, 0x1800537ae\nmov     rbx, [rsp+28h+arg_8]                                           ; +0xb5, 0x1800537b5\nadd     rsp, 20h                                                       ; +0xba, 0x1800537ba\npop     rsi                                                            ; +0xbe, 0x1800537be\nretn                                                                   ; +0xbf, 0x1800537bf\nmov     rdi, [rsp+28h+arg_0]                                           ; +0xc0, 0x1800537c0\nmov     eax, 0FFFFFF75h                                                ; +0xc5, 0x1800537c5\nmov     rbx, [rsp+28h+arg_8]                                           ; +0xca, 0x1800537ca\nadd     rsp, 20h                                                       ; +0xcf, 0x1800537cf\npop     rsi                                                            ; +0xd3, 0x1800537d3\nretn                                                                   ; +0xd4, 0x1800537d4", "xrefs": ["sub_1800510D0 @ 0x180051102", "sub_1800510D0 @ 0x180051330", "sub_180052A90 @ 0x180052ad2", "<???> @ 0x180181eac", "<???> @ 0x180181ec0", "<???> @ 0x180181ed4", "<???> @ 0x1801f8b5c"], "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"}