{"type": "func", "start": 6443394528, "end": 6443394787, "name": "sub_1800E65E0", "pseudocode": "// \n// sub_1800E65E0 from 0x1800e65e0 to 0x1800e66e3 (259 bytes)\n// \n// 11 xrefs:\n// > FMOD::System::recordStop @ 0x1800b027e\n// > sub_1800E2620 @ 0x1800e2693\n// > sub_1800E6450 @ 0x1800e64e7\n// > sub_1800FC360 @ 0x1800fc3c4\n// > sub_180100780 @ 0x1801007cc\n// > sub_180102CA0 @ 0x1801031cc\n// > <???> @ 0x18018d9c0\n// > <???> @ 0x18018d9d0\n// > <???> @ 0x18018d9e4\n// > <???> @ 0x18018d9f4\n// > <???> @ 0x1801ffdf8\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:54:17 +0000\n// \n\n__int64 __fastcall sub_1800E65E0(__int64 a1, int a2)\n{\n  __int64 v2; // rdi\n  __int64 result; // rax\n  __int64 v5; // rdi\n  unsigned int v6; // esi\n\n  v2 = a2;\n  result = sub_1800E8520();\n  if ( !(_DWORD)result )\n  {\n    if ( (int)v2 < 0 || (int)v2 >= *(_DWORD *)(a1 + 1684) )\n      return 31;\n    v5 = 56 * v2;\n    if ( *(_QWORD *)(v5 + *(_QWORD *)(a1 + 1696) + 48) )\n    {\n      sub_1801021C0(a1, 16);\n      v6 = sub_1800BD960(*(_QWORD *)(a1 + 1648), *(_QWORD **)(v5 + *(_QWORD *)(a1 + 1696) + 48));\n      if ( v6 )\n      {\n        sub_180102300(a1, 16);\n        return v6;\n      }\n      sub_1800B6AA0(*((_QWORD *)off_1801AED20 + 52), *(_DWORD **)(v5 + *(_QWORD *)(a1 + 1696) + 48));\n      *(_QWORD *)(v5 + *(_QWORD *)(a1 + 1696) + 48) = 0;\n      sub_180102300(a1, 16);\n    }\n    return 0;\n  }\n  return result;\n}", "assembly": "; \n; sub_1800E65E0 from 0x1800e65e0 to 0x1800e66e3 (259 bytes)\n; \n; 11 xrefs:\n; > FMOD::System::recordStop @ 0x1800b027e\n; > sub_1800E2620 @ 0x1800e2693\n; > sub_1800E6450 @ 0x1800e64e7\n; > sub_1800FC360 @ 0x1800fc3c4\n; > sub_180100780 @ 0x1801007cc\n; > sub_180102CA0 @ 0x1801031cc\n; > <???> @ 0x18018d9c0\n; > <???> @ 0x18018d9d0\n; > <???> @ 0x18018d9e4\n; > <???> @ 0x18018d9f4\n; > <???> @ 0x1801ffdf8\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:54:17 +0000\n; \nmov     [rsp+arg_8], rbx                                               ; +0x0, 0x1800e65e0\npush    rdi                                                            ; +0x5, 0x1800e65e5\nsub     rsp, 30h                                                       ; +0x6, 0x1800e65e6\nmovsxd  rdi, edx                                                       ; +0xa, 0x1800e65ea\nmov     rbx, rcx                                                       ; +0xd, 0x1800e65ed\ncall    sub_1800E8520                                                  ; +0x10, 0x1800e65f0\ntest    eax, eax                                                       ; +0x15, 0x1800e65f5\njnz     short loc_1800E6668                                            ; +0x17, 0x1800e65f7\ntest    edi, edi                                                       ; +0x19, 0x1800e65f9\njs      loc_1800E66D3                                                  ; +0x1b, 0x1800e65fb\ncmp     edi, [rbx+694h]                                                ; +0x21, 0x1800e6601\njge     loc_1800E66D3                                                  ; +0x27, 0x1800e6607\nmov     rax, [rbx+6A0h]                                                ; +0x2d, 0x1800e660d\nimul    rdi, 38h ; '8'                                                 ; +0x34, 0x1800e6614\nmov     [rsp+38h+arg_0], rsi                                           ; +0x38, 0x1800e6618\ncmp     qword ptr [rdi+rax+30h], 0                                     ; +0x3d, 0x1800e661d\njz      loc_1800E66C1                                                  ; +0x43, 0x1800e6623\nmov     edx, 10h                                                       ; +0x49, 0x1800e6629\nmov     rcx, rbx                                                       ; +0x4e, 0x1800e662e\ncall    sub_1801021C0                                                  ; +0x51, 0x1800e6631\nmov     rdx, [rbx+6A0h]                                                ; +0x56, 0x1800e6636\nmov     rcx, [rbx+670h]                                                ; +0x5d, 0x1800e663d\nmov     rdx, [rdi+rdx+30h]                                             ; +0x64, 0x1800e6644\ncall    sub_1800BD960                                                  ; +0x69, 0x1800e6649\nmov     esi, eax                                                       ; +0x6e, 0x1800e664e\ntest    eax, eax                                                       ; +0x70, 0x1800e6650\njz      short loc_1800E6673                                            ; +0x72, 0x1800e6652\nmov     edx, 10h                                                       ; +0x74, 0x1800e6654\nmov     rcx, rbx                                                       ; +0x79, 0x1800e6659\ncall    sub_180102300                                                  ; +0x7c, 0x1800e665c\nmov     eax, esi                                                       ; +0x81, 0x1800e6661\nmov     rsi, [rsp+38h+arg_0]                                           ; +0x83, 0x1800e6663\nmov     rbx, [rsp+38h+arg_8]                                           ; +0x88, 0x1800e6668\nadd     rsp, 30h                                                       ; +0x8d, 0x1800e666d\npop     rdi                                                            ; +0x91, 0x1800e6671\nretn                                                                   ; +0x92, 0x1800e6672\nmov     rdx, [rbx+6A0h]                                                ; +0x93, 0x1800e6673\nlea     r8, aCBuildagent1Wo_64; \"C:\\\\buildagent1\\\\work\\\\570ad728b1678096\"... ; +0x9a, 0x1800e667a\nmov     rcx, cs:off_1801AED20                                          ; +0xa1, 0x1800e6681\nmov     r9d, 15B3h                                                     ; +0xa8, 0x1800e6688\nmov     [rsp+38h+var_18], 1                                            ; +0xae, 0x1800e668e\nmov     rdx, [rdi+rdx+30h]                                             ; +0xb3, 0x1800e6693\nmov     rcx, [rcx+1A0h]                                                ; +0xb8, 0x1800e6698\ncall    sub_1800B6AA0                                                  ; +0xbf, 0x1800e669f\nmov     rax, [rbx+6A0h]                                                ; +0xc4, 0x1800e66a4\nmov     edx, 10h                                                       ; +0xcb, 0x1800e66ab\nmov     rcx, rbx                                                       ; +0xd0, 0x1800e66b0\nmov     qword ptr [rdi+rax+30h], 0                                     ; +0xd3, 0x1800e66b3\ncall    sub_180102300                                                  ; +0xdc, 0x1800e66bc\nmov     rsi, [rsp+38h+arg_0]                                           ; +0xe1, 0x1800e66c1\nxor     eax, eax                                                       ; +0xe6, 0x1800e66c6\nmov     rbx, [rsp+38h+arg_8]                                           ; +0xe8, 0x1800e66c8\nadd     rsp, 30h                                                       ; +0xed, 0x1800e66cd\npop     rdi                                                            ; +0xf1, 0x1800e66d1\nretn                                                                   ; +0xf2, 0x1800e66d2\nmov     rbx, [rsp+38h+arg_8]                                           ; +0xf3, 0x1800e66d3\nmov     eax, 1Fh                                                       ; +0xf8, 0x1800e66d8\nadd     rsp, 30h                                                       ; +0xfd, 0x1800e66dd\npop     rdi                                                            ; +0x101, 0x1800e66e1\nretn                                                                   ; +0x102, 0x1800e66e2", "xrefs": ["FMOD::System::recordStop @ 0x1800b027e", "sub_1800E2620 @ 0x1800e2693", "sub_1800E6450 @ 0x1800e64e7", "sub_1800FC360 @ 0x1800fc3c4", "sub_180100780 @ 0x1801007cc", "sub_180102CA0 @ 0x1801031cc", "<???> @ 0x18018d9c0", "<???> @ 0x18018d9d0", "<???> @ 0x18018d9e4", "<???> @ 0x18018d9f4", "<???> @ 0x1801ffdf8"], "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"}