{"type": "func", "start": 6443484000, "end": 6443484349, "name": "sub_1800FC360", "pseudocode": "// \n// sub_1800FC360 from 0x1800fc360 to 0x1800fc4bd (349 bytes)\n// \n// 8 xrefs:\n// > sub_1800E5E80 @ 0x1800e5f40\n// > sub_1800FB2A0 @ 0x1800fb558\n// > sub_1800FB2A0 @ 0x1800fb5ee\n// > sub_1800FB9B0 @ 0x1800fba7a\n// > sub_1800FBAE0 @ 0x1800fbb2c\n// > <???> @ 0x18018f434\n// > <???> @ 0x18018f46c\n// > <???> @ 0x180200e48\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_1800FC360(__int64 a1)\n{\n  __int64 result; // rax\n  __int64 v3; // rdx\n  unsigned int v4; // edi\n  int v5; // esi\n  __int64 v6; // rbp\n  __int64 v7; // rcx\n  __int64 v8; // rcx\n  _DWORD **v9; // rcx\n\n  result = sub_180102CA0(a1, 0);\n  if ( !(_DWORD)result )\n  {\n    LOBYTE(v3) = 1;\n    result = sub_1800FC980(a1, v3);\n    v4 = result;\n    if ( !(_DWORD)result )\n    {\n      v5 = 0;\n      if ( *(int *)(a1 + 1684) <= 0 )\n      {\nLABEL_8:\n        v7 = *(_QWORD *)(a1 + 1648);\n        *(_DWORD *)(a1 + 1708) = 0;\n        sub_1800BDE20(v7);\n        sub_1800BB1F0(*(_QWORD *)(a1 + 1648));\n        v8 = *(_QWORD *)(a1 + 67952);\n        if ( v8 )\n        {\n          result = (*(__int64 (__fastcall **)(__int64))(*(_QWORD *)v8 + 16LL))(v8);\n          v4 = result;\n          if ( (_DWORD)result )\n            return result;\n          sub_1800B6AA0(*((_QWORD *)off_1801AED20 + 52), *(_DWORD **)(a1 + 67952));\n          *(_QWORD *)(a1 + 67952) = 0;\n        }\n        v9 = *(_DWORD ***)(a1 + 67960);\n        if ( v9 )\n        {\n          sub_1800BDBC0(v9);\n          if ( v4 )\n            return v4;\n          sub_1800B6AA0(*((_QWORD *)off_1801AED20 + 52), *(_DWORD **)(a1 + 67960));\n          *(_QWORD *)(a1 + 67960) = 0;\n        }\n        return 0;\n      }\n      else\n      {\n        v6 = 0;\n        while ( 1 )\n        {\n          if ( *(_QWORD *)(*(_QWORD *)(a1 + 1696) + v6 + 48) )\n          {\n            result = sub_1800E65E0(a1, v5);\n            v4 = result;\n            if ( (_DWORD)result )\n              break;\n          }\n          ++v5;\n          v6 += 56;\n          if ( v5 >= *(_DWORD *)(a1 + 1684) )\n            goto LABEL_8;\n        }\n      }\n    }\n  }\n  return result;\n}", "assembly": "; \n; sub_1800FC360 from 0x1800fc360 to 0x1800fc4bd (349 bytes)\n; \n; 8 xrefs:\n; > sub_1800E5E80 @ 0x1800e5f40\n; > sub_1800FB2A0 @ 0x1800fb558\n; > sub_1800FB2A0 @ 0x1800fb5ee\n; > sub_1800FB9B0 @ 0x1800fba7a\n; > sub_1800FBAE0 @ 0x1800fbb2c\n; > <???> @ 0x18018f434\n; > <???> @ 0x18018f46c\n; > <???> @ 0x180200e48\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\npush    rbx                                                            ; +0x0, 0x1800fc360\nsub     rsp, 30h                                                       ; +0x2, 0x1800fc362\nxor     edx, edx                                                       ; +0x6, 0x1800fc366\nmov     rbx, rcx                                                       ; +0x8, 0x1800fc368\ncall    sub_180102CA0                                                  ; +0xb, 0x1800fc36b\ntest    eax, eax                                                       ; +0x10, 0x1800fc370\njnz     loc_1800FC4B7                                                  ; +0x12, 0x1800fc372\nmov     dl, 1                                                          ; +0x18, 0x1800fc378\nmov     [rsp+38h+arg_10], rdi                                          ; +0x1a, 0x1800fc37a\nmov     rcx, rbx                                                       ; +0x1f, 0x1800fc37f\ncall    sub_1800FC980                                                  ; +0x22, 0x1800fc382\nmov     edi, eax                                                       ; +0x27, 0x1800fc387\ntest    eax, eax                                                       ; +0x29, 0x1800fc389\njnz     loc_1800FC4B2                                                  ; +0x2b, 0x1800fc38b\nmov     [rsp+38h+arg_0], rbp                                           ; +0x31, 0x1800fc391\nmov     [rsp+38h+arg_8], rsi                                           ; +0x36, 0x1800fc396\nxor     esi, esi                                                       ; +0x3b, 0x1800fc39b\ncmp     [rbx+694h], esi                                                ; +0x3d, 0x1800fc39d\njle     short loc_1800FC3E1                                            ; +0x43, 0x1800fc3a3\nxor     ebp, ebp                                                       ; +0x45, 0x1800fc3a5\nnop     word ptr [rax+rax+00000000h]                                   ; +0x47, 0x1800fc3a7\nmov     rax, [rbx+6A0h]                                                ; +0x50, 0x1800fc3b0\ncmp     qword ptr [rax+rbp+30h], 0                                     ; +0x57, 0x1800fc3b7\njz      short loc_1800FC3D3                                            ; +0x5d, 0x1800fc3bd\nmov     edx, esi                                                       ; +0x5f, 0x1800fc3bf\nmov     rcx, rbx                                                       ; +0x61, 0x1800fc3c1\ncall    sub_1800E65E0                                                  ; +0x64, 0x1800fc3c4\nmov     edi, eax                                                       ; +0x69, 0x1800fc3c9\ntest    eax, eax                                                       ; +0x6b, 0x1800fc3cb\njnz     loc_1800FC4A8                                                  ; +0x6d, 0x1800fc3cd\ninc     esi                                                            ; +0x73, 0x1800fc3d3\nadd     rbp, 38h ; '8'                                                 ; +0x75, 0x1800fc3d5\ncmp     esi, [rbx+694h]                                                ; +0x79, 0x1800fc3d9\njl      short loc_1800FC3B0                                            ; +0x7f, 0x1800fc3df\nmov     rcx, [rbx+670h]                                                ; +0x81, 0x1800fc3e1\nmov     dword ptr [rbx+6ACh], 0                                        ; +0x88, 0x1800fc3e8\ncall    sub_1800BDE20                                                  ; +0x92, 0x1800fc3f2\nmov     rcx, [rbx+670h]                                                ; +0x97, 0x1800fc3f7\ncall    sub_1800BB1F0                                                  ; +0x9e, 0x1800fc3fe\nmov     rcx, [rbx+10970h]                                              ; +0xa3, 0x1800fc403\ntest    rcx, rcx                                                       ; +0xaa, 0x1800fc40a\njz      short loc_1800FC456                                            ; +0xad, 0x1800fc40d\nmov     rax, [rcx]                                                     ; +0xaf, 0x1800fc40f\ncall    qword ptr [rax+10h]                                            ; +0xb2, 0x1800fc412\nmov     edi, eax                                                       ; +0xb5, 0x1800fc415\ntest    eax, eax                                                       ; +0xb7, 0x1800fc417\njnz     loc_1800FC4A8                                                  ; +0xb9, 0x1800fc419\nmov     rcx, cs:off_1801AED20                                          ; +0xbf, 0x1800fc41f\nlea     r8, aCBuildagent1Wo_72; \"C:\\\\buildagent1\\\\work\\\\570ad728b1678096\"... ; +0xc6, 0x1800fc426\nmov     rdx, [rbx+10970h]                                              ; +0xcd, 0x1800fc42d\nmov     r9d, 126h                                                      ; +0xd4, 0x1800fc434\nmov     [rsp+38h+var_18], 1                                            ; +0xda, 0x1800fc43a\nmov     rcx, [rcx+1A0h]                                                ; +0xdf, 0x1800fc43f\ncall    sub_1800B6AA0                                                  ; +0xe6, 0x1800fc446\nmov     qword ptr [rbx+10970h], 0                                      ; +0xeb, 0x1800fc44b\nmov     rcx, [rbx+10978h]                                              ; +0xf6, 0x1800fc456\ntest    rcx, rcx                                                       ; +0xfd, 0x1800fc45d\njz      short loc_1800FC4A6                                            ; +0x100, 0x1800fc460\ncall    sub_1800BDBC0                                                  ; +0x102, 0x1800fc462\ntest    edi, edi                                                       ; +0x107, 0x1800fc467\njz      short loc_1800FC46F                                            ; +0x109, 0x1800fc469\nmov     eax, edi                                                       ; +0x10b, 0x1800fc46b\njmp     short loc_1800FC4A8                                            ; +0x10d, 0x1800fc46d\nmov     rcx, cs:off_1801AED20                                          ; +0x10f, 0x1800fc46f\nlea     r8, aCBuildagent1Wo_72; \"C:\\\\buildagent1\\\\work\\\\570ad728b1678096\"... ; +0x116, 0x1800fc476\nmov     rdx, [rbx+10978h]                                              ; +0x11d, 0x1800fc47d\nmov     r9d, 12Fh                                                      ; +0x124, 0x1800fc484\nmov     [rsp+38h+var_18], 1                                            ; +0x12a, 0x1800fc48a\nmov     rcx, [rcx+1A0h]                                                ; +0x12f, 0x1800fc48f\ncall    sub_1800B6AA0                                                  ; +0x136, 0x1800fc496\nmov     qword ptr [rbx+10978h], 0                                      ; +0x13b, 0x1800fc49b\nxor     eax, eax                                                       ; +0x146, 0x1800fc4a6\nmov     rsi, [rsp+38h+arg_8]                                           ; +0x148, 0x1800fc4a8\nmov     rbp, [rsp+38h+arg_0]                                           ; +0x14d, 0x1800fc4ad\nmov     rdi, [rsp+38h+arg_10]                                          ; +0x152, 0x1800fc4b2\nadd     rsp, 30h                                                       ; +0x157, 0x1800fc4b7\npop     rbx                                                            ; +0x15b, 0x1800fc4bb\nretn                                                                   ; +0x15c, 0x1800fc4bc", "xrefs": ["sub_1800E5E80 @ 0x1800e5f40", "sub_1800FB2A0 @ 0x1800fb558", "sub_1800FB2A0 @ 0x1800fb5ee", "sub_1800FB9B0 @ 0x1800fba7a", "sub_1800FBAE0 @ 0x1800fbb2c", "<???> @ 0x18018f434", "<???> @ 0x18018f46c", "<???> @ 0x180200e48"], "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"}