{"type": "func", "start": 6443275120, "end": 6443275577, "name": "sub_1800C9370", "pseudocode": "// \n// sub_1800C9370 from 0x1800c9370 to 0x1800c9539 (457 bytes)\n// \n// 4 xrefs:\n// > <???> @ 0x18016c518\n// > <???> @ 0x18018afec\n// > <???> @ 0x18018b044\n// > <???> @ 0x1801fe328\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_1800C9370(__int64 a1, __int64 a2)\n{\n  __int64 v3; // rbx\n  __int64 v4; // rsi\n  __int64 v5; // rcx\n  __int64 v6; // rcx\n  __int64 v7; // r9\n  __int64 v8; // rax\n  __int64 v9; // rcx\n  __int64 v10; // r9\n  __int64 v11; // rcx\n  __int64 v12; // r9\n\n  if ( (*(_DWORD *)(a1 + 60) & 0x10000) == 0 && *(_QWORD *)(a1 + 768) )\n  {\n    v3 = 336;\n    v4 = 0;\n    do\n    {\n      v5 = *(_QWORD *)(*(_QWORD *)(a1 + 8) + v4 + 73784);\n      if ( v5 )\n        sub_180096490(v5, *(_QWORD *)(a1 + 768), *(_QWORD *)(v3 + *(_QWORD *)(a1 + 24)), 4);\n      v4 += 24;\n      *(_QWORD *)(v3 + *(_QWORD *)(a1 + 24)) = 0;\n      v3 += 8;\n    }\n    while ( v3 < 368 );\n    *(_QWORD *)(a1 + 768) = 0;\n  }\n  v6 = *(_QWORD *)(a1 + 744);\n  if ( v6 )\n  {\n    LOBYTE(a2) = 1;\n    (*(void (__fastcall **)(__int64, __int64, _QWORD, _QWORD))(*(_QWORD *)v6 + 40LL))(v6, a2, 0, 0);\n    sub_18009B6A0(*(_QWORD *)(a1 + 744), 0, 1u);\n    sub_180095EA0(*(_QWORD *)(a1 + 744), 0, 1, v7);\n    a2 = *(_QWORD *)(a1 + 744);\n    v8 = *(_QWORD *)(a2 + 592);\n    if ( v8 )\n    {\n      *(_BYTE *)(*(int *)(a2 + 600) + *(_QWORD *)(v8 + 32)) = 0;\n      --*(_DWORD *)(*(_QWORD *)(a2 + 592) + 16LL);\n    }\n    *(_QWORD *)(a1 + 744) = 0;\n    *(_DWORD *)(a1 + 104) = 1120403456;\n    *(_DWORD *)(a1 + 100) = 1232348160;\n  }\n  v9 = *(_QWORD *)(a1 + 736);\n  if ( v9 )\n  {\n    LOBYTE(a2) = 1;\n    (*(void (__fastcall **)(__int64, __int64, _QWORD, _QWORD))(*(_QWORD *)v9 + 40LL))(v9, a2, 0, 0);\n    sub_18009B6A0(*(_QWORD *)(a1 + 736), 0, 1u);\n    (*(void (__fastcall **)(_QWORD))(**(_QWORD **)(a1 + 736) + 16LL))(*(_QWORD *)(a1 + 736));\n    *(_QWORD *)(a1 + 736) = 0;\n  }\n  if ( *(_QWORD *)(a1 + 664) )\n  {\n    LOBYTE(a2) = 1;\n    (*(void (__fastcall **)(__int64, __int64, _QWORD, _QWORD))(*(_QWORD *)(a1 + 112) + 40LL))(a1 + 112, a2, 0, 0);\n    sub_18009B6A0(a1 + 112, 0, 1u);\n    sub_180095EA0(a1 + 112, 0, 1, v10);\n  }\n  v11 = *(_QWORD *)(a1 + 48);\n  if ( v11 )\n  {\n    sub_18009B6A0(v11, 0, 1u);\n    sub_180095EA0(*(_QWORD *)(a1 + 48), 0, 1, v12);\n  }\n  return sub_1800C7D40((__int64 *)a1);\n}", "assembly": "; \n; sub_1800C9370 from 0x1800c9370 to 0x1800c9539 (457 bytes)\n; \n; 4 xrefs:\n; > <???> @ 0x18016c518\n; > <???> @ 0x18018afec\n; > <???> @ 0x18018b044\n; > <???> @ 0x1801fe328\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    rdi                                                            ; +0x0, 0x1800c9370\nsub     rsp, 20h                                                       ; +0x2, 0x1800c9372\nmov     [rsp+28h+arg_0], rbx                                           ; +0x6, 0x1800c9376\nmov     rdi, rcx                                                       ; +0xb, 0x1800c937b\nmov     [rsp+28h+arg_8], rbp                                           ; +0xe, 0x1800c937e\nxor     ebp, ebp                                                       ; +0x13, 0x1800c9383\ntest    dword ptr [rcx+3Ch], 10000h                                    ; +0x15, 0x1800c9385\njnz     short loc_1800C9400                                            ; +0x1c, 0x1800c938c\ncmp     [rcx+300h], rbp                                                ; +0x1e, 0x1800c938e\njz      short loc_1800C9400                                            ; +0x25, 0x1800c9395\nmov     [rsp+28h+arg_10], rsi                                          ; +0x27, 0x1800c9397\nmov     ebx, 150h                                                      ; +0x2c, 0x1800c939c\nmov     esi, ebp                                                       ; +0x31, 0x1800c93a1\nnop     dword ptr [rax+00h]                                            ; +0x33, 0x1800c93a3\nnop     word ptr [rax+rax+00000000h]                                   ; +0x37, 0x1800c93a7\nmov     rax, [rdi+8]                                                   ; +0x40, 0x1800c93b0\nmov     rcx, [rax+rsi+12038h]                                          ; +0x44, 0x1800c93b4\ntest    rcx, rcx                                                       ; +0x4c, 0x1800c93bc\njz      short loc_1800C93DB                                            ; +0x4f, 0x1800c93bf\nmov     r8, [rdi+18h]                                                  ; +0x51, 0x1800c93c1\nmov     r9d, 4                                                         ; +0x55, 0x1800c93c5\nmov     rdx, [rdi+300h]                                                ; +0x5b, 0x1800c93cb\nmov     r8, [rbx+r8]                                                   ; +0x62, 0x1800c93d2\ncall    sub_180096490                                                  ; +0x66, 0x1800c93d6\nmov     rax, [rdi+18h]                                                 ; +0x6b, 0x1800c93db\nadd     rsi, 18h                                                       ; +0x6f, 0x1800c93df\nmov     [rbx+rax], rbp                                                 ; +0x73, 0x1800c93e3\nadd     rbx, 8                                                         ; +0x77, 0x1800c93e7\ncmp     rbx, 170h                                                      ; +0x7b, 0x1800c93eb\njl      short loc_1800C93B0                                            ; +0x82, 0x1800c93f2\nmov     rsi, [rsp+28h+arg_10]                                          ; +0x84, 0x1800c93f4\nmov     [rdi+300h], rbp                                                ; +0x89, 0x1800c93f9\nmov     rcx, [rdi+2E8h]                                                ; +0x90, 0x1800c9400\ntest    rcx, rcx                                                       ; +0x97, 0x1800c9407\njz      short loc_1800C9489                                            ; +0x9a, 0x1800c940a\nmov     rax, [rcx]                                                     ; +0x9c, 0x1800c940c\nxor     r9d, r9d                                                       ; +0x9f, 0x1800c940f\nxor     r8d, r8d                                                       ; +0xa2, 0x1800c9412\nmov     dl, 1                                                          ; +0xa5, 0x1800c9415\ncall    qword ptr [rax+28h]                                            ; +0xa7, 0x1800c9417\nmov     rcx, [rdi+2E8h]                                                ; +0xaa, 0x1800c941a\nmov     r8b, 1                                                         ; +0xb1, 0x1800c9421\nxor     edx, edx                                                       ; +0xb4, 0x1800c9424\ncall    sub_18009B6A0                                                  ; +0xb6, 0x1800c9426\nmov     rcx, [rdi+2E8h]                                                ; +0xbb, 0x1800c942b\nmov     r8b, 1                                                         ; +0xc2, 0x1800c9432\nxor     edx, edx                                                       ; +0xc5, 0x1800c9435\ncall    sub_180095EA0                                                  ; +0xc7, 0x1800c9437\nmov     rdx, [rdi+2E8h]                                                ; +0xcc, 0x1800c943c\nmov     rax, [rdx+250h]                                                ; +0xd3, 0x1800c9443\ntest    rax, rax                                                       ; +0xda, 0x1800c944a\njz      short loc_1800C9468                                            ; +0xdd, 0x1800c944d\nmov     rax, [rax+20h]                                                 ; +0xdf, 0x1800c944f\nmovsxd  rcx, dword ptr [rdx+258h]                                      ; +0xe3, 0x1800c9453\nmov     [rcx+rax], bpl                                                 ; +0xea, 0x1800c945a\nmov     rax, [rdx+250h]                                                ; +0xee, 0x1800c945e\ndec     dword ptr [rax+10h]                                            ; +0xf5, 0x1800c9465\nmov     [rdi+2E8h], rbp                                                ; +0xf8, 0x1800c9468\nmovss   xmm0, cs:dword_18016C4C4                                       ; +0xff, 0x1800c946f\nmovss   dword ptr [rdi+68h], xmm0                                      ; +0x107, 0x1800c9477\nmovss   xmm1, cs:dword_18016C4C8                                       ; +0x10c, 0x1800c947c\nmovss   dword ptr [rdi+64h], xmm1                                      ; +0x114, 0x1800c9484\nmov     rcx, [rdi+2E0h]                                                ; +0x119, 0x1800c9489\ntest    rcx, rcx                                                       ; +0x120, 0x1800c9490\njz      short loc_1800C94C8                                            ; +0x123, 0x1800c9493\nmov     rax, [rcx]                                                     ; +0x125, 0x1800c9495\nxor     r9d, r9d                                                       ; +0x128, 0x1800c9498\nxor     r8d, r8d                                                       ; +0x12b, 0x1800c949b\nmov     dl, 1                                                          ; +0x12e, 0x1800c949e\ncall    qword ptr [rax+28h]                                            ; +0x130, 0x1800c94a0\nmov     rcx, [rdi+2E0h]                                                ; +0x133, 0x1800c94a3\nmov     r8b, 1                                                         ; +0x13a, 0x1800c94aa\nxor     edx, edx                                                       ; +0x13d, 0x1800c94ad\ncall    sub_18009B6A0                                                  ; +0x13f, 0x1800c94af\nmov     rcx, [rdi+2E0h]                                                ; +0x144, 0x1800c94b4\nmov     rax, [rcx]                                                     ; +0x14b, 0x1800c94bb\ncall    qword ptr [rax+10h]                                            ; +0x14e, 0x1800c94be\nmov     [rdi+2E0h], rbp                                                ; +0x151, 0x1800c94c1\ncmp     qword ptr [rdi+298h], 0                                        ; +0x158, 0x1800c94c8\nmov     rbp, [rsp+28h+arg_8]                                           ; +0x160, 0x1800c94d0\njz      short loc_1800C9506                                            ; +0x165, 0x1800c94d5\nmov     rax, [rdi+70h]                                                 ; +0x167, 0x1800c94d7\nlea     rcx, [rdi+70h]                                                 ; +0x16b, 0x1800c94db\nxor     r9d, r9d                                                       ; +0x16f, 0x1800c94df\nxor     r8d, r8d                                                       ; +0x172, 0x1800c94e2\nmov     dl, 1                                                          ; +0x175, 0x1800c94e5\ncall    qword ptr [rax+28h]                                            ; +0x177, 0x1800c94e7\nmov     r8b, 1                                                         ; +0x17a, 0x1800c94ea\nlea     rcx, [rdi+70h]                                                 ; +0x17d, 0x1800c94ed\nxor     edx, edx                                                       ; +0x181, 0x1800c94f1\ncall    sub_18009B6A0                                                  ; +0x183, 0x1800c94f3\nmov     r8b, 1                                                         ; +0x188, 0x1800c94f8\nlea     rcx, [rdi+70h]                                                 ; +0x18b, 0x1800c94fb\nxor     edx, edx                                                       ; +0x18f, 0x1800c94ff\ncall    sub_180095EA0                                                  ; +0x191, 0x1800c9501\nmov     rcx, [rdi+30h]                                                 ; +0x196, 0x1800c9506\nmov     rbx, [rsp+28h+arg_0]                                           ; +0x19a, 0x1800c950a\ntest    rcx, rcx                                                       ; +0x19f, 0x1800c950f\njz      short loc_1800C952C                                            ; +0x1a2, 0x1800c9512\nmov     r8b, 1                                                         ; +0x1a4, 0x1800c9514\nxor     edx, edx                                                       ; +0x1a7, 0x1800c9517\ncall    sub_18009B6A0                                                  ; +0x1a9, 0x1800c9519\nmov     rcx, [rdi+30h]                                                 ; +0x1ae, 0x1800c951e\nmov     r8b, 1                                                         ; +0x1b2, 0x1800c9522\nxor     edx, edx                                                       ; +0x1b5, 0x1800c9525\ncall    sub_180095EA0                                                  ; +0x1b7, 0x1800c9527\nmov     rcx, rdi                                                       ; +0x1bc, 0x1800c952c\nadd     rsp, 20h                                                       ; +0x1bf, 0x1800c952f\npop     rdi                                                            ; +0x1c3, 0x1800c9533\njmp     sub_1800C7D40                                                  ; +0x1c4, 0x1800c9534", "xrefs": ["<???> @ 0x18016c518", "<???> @ 0x18018afec", "<???> @ 0x18018b044", "<???> @ 0x1801fe328"], "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"}