{"type": "func", "start": 6443287968, "end": 6443288256, "name": "sub_1800CC5A0", "pseudocode": "// \n// sub_1800CC5A0 from 0x1800cc5a0 to 0x1800cc6c0 (288 bytes)\n// \n// 4 xrefs:\n// > sub_180102CA0 @ 0x180102f8d\n// > <???> @ 0x18018b3c4\n// > <???> @ 0x18018b3d4\n// > <???> @ 0x1801fe640\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:07 +0000\n// \n\n__int64 __fastcall sub_1800CC5A0(__int64 a1, __int64 a2, __int64 a3)\n{\n  char v3; // bl\n  int v4; // esi\n  __int64 result; // rax\n  __int64 v7; // rsi\n  unsigned int v8; // ebx\n  __int64 v9; // rax\n  float v10; // xmm2_4\n  int v11; // edx\n  __int64 v12; // rax\n  __int64 v13; // rcx\n  _BYTE *i; // rax\n  __int64 v15; // [rsp+20h] [rbp-28h] BYREF\n  int v16; // [rsp+68h] [rbp+20h] BYREF\n\n  v3 = a3;\n  v4 = a2;\n  result = sub_180012140((__int64 *)a1, a2, a3, 0);\n  if ( (_DWORD)result )\n    return result;\n  if ( (*(_BYTE *)(a1 + 512) & 0x10) != 0 )\n  {\n    result = sub_1800107D0((__int64 *)a1, v4, v3);\n    if ( (_DWORD)result )\n      return result;\n  }\n  result = (*(__int64 (__fastcall **)(__int64, int *))(*(_QWORD *)a1 + 296LL))(a1, &v16);\n  if ( (_DWORD)result )\n    return result;\n  v7 = 0;\n  v8 = 0;\n  if ( v16 <= 0 )\n  {\nLABEL_14:\n    v11 = *(_DWORD *)(a1 + 72);\n    if ( (v11 & 4) == 0 )\n    {\n      v12 = *(_QWORD *)(a1 + 8);\n      v13 = *(int *)(v12 + 69104);\n      if ( v13 <= 0 )\n        return 0;\n      for ( i = (_BYTE *)(v12 + 68316); !*i; i += 112 )\n      {\n        if ( ++v7 >= v13 )\n          return 0;\n      }\n    }\n    *(_DWORD *)(a1 + 72) = v11 & 0xFFFFFFFB;\n    return 0;\n  }\n  while ( 1 )\n  {\n    result = (*(__int64 (__fastcall **)(__int64, _QWORD, __int64 *))(*(_QWORD *)a1 + 288LL))(a1, v8, &v15);\n    if ( (_DWORD)result )\n      return result;\n    if ( v15 && *(_DWORD *)(v15 + 256) == 35 )\n    {\n      v9 = *(_QWORD *)(a1 + 32);\n      if ( v9 )\n        v10 = *(float *)(v9 + 488);\n      else\n        v10 = 1.0;\n      sub_18009C0C0(v15, 8, v10);\n    }\n    if ( (int)++v8 >= v16 )\n      goto LABEL_14;\n  }\n}", "assembly": "; \n; sub_1800CC5A0 from 0x1800cc5a0 to 0x1800cc6c0 (288 bytes)\n; \n; 4 xrefs:\n; > sub_180102CA0 @ 0x180102f8d\n; > <???> @ 0x18018b3c4\n; > <???> @ 0x18018b3d4\n; > <???> @ 0x1801fe640\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:07 +0000\n; \nmov     [rsp+arg_0], rbx                                               ; +0x0, 0x1800cc5a0\nmov     [rsp+arg_8], rsi                                               ; +0x5, 0x1800cc5a5\npush    rdi                                                            ; +0xa, 0x1800cc5aa\nsub     rsp, 40h                                                       ; +0xb, 0x1800cc5ab\nxor     r9d, r9d                                                       ; +0xf, 0x1800cc5af\nmovzx   ebx, r8b                                                       ; +0x12, 0x1800cc5b2\nmov     esi, edx                                                       ; +0x16, 0x1800cc5b6\nmov     rdi, rcx                                                       ; +0x18, 0x1800cc5b8\ncall    sub_180012140                                                  ; +0x1b, 0x1800cc5bb\ntest    eax, eax                                                       ; +0x20, 0x1800cc5c0\njnz     loc_1800CC6B0                                                  ; +0x22, 0x1800cc5c2\ntest    byte ptr [rdi+200h], 10h                                       ; +0x28, 0x1800cc5c8\njz      short loc_1800CC5E7                                            ; +0x2f, 0x1800cc5cf\nmovzx   r8d, bl                                                        ; +0x31, 0x1800cc5d1\nmov     edx, esi                                                       ; +0x35, 0x1800cc5d5\nmov     rcx, rdi                                                       ; +0x37, 0x1800cc5d7\ncall    sub_1800107D0                                                  ; +0x3a, 0x1800cc5da\ntest    eax, eax                                                       ; +0x3f, 0x1800cc5df\njnz     loc_1800CC6B0                                                  ; +0x41, 0x1800cc5e1\nmov     rax, [rdi]                                                     ; +0x47, 0x1800cc5e7\nlea     rdx, [rsp+48h+arg_18]                                          ; +0x4a, 0x1800cc5ea\nmov     rcx, rdi                                                       ; +0x4f, 0x1800cc5ef\ncall    qword ptr [rax+128h]                                           ; +0x52, 0x1800cc5f2\ntest    eax, eax                                                       ; +0x58, 0x1800cc5f8\njnz     loc_1800CC6B0                                                  ; +0x5a, 0x1800cc5fa\nxor     esi, esi                                                       ; +0x60, 0x1800cc600\nmovaps  [rsp+48h+var_18], xmm6                                         ; +0x62, 0x1800cc602\nmov     ebx, esi                                                       ; +0x67, 0x1800cc607\ncmp     [rsp+48h+arg_18], ebx                                          ; +0x69, 0x1800cc609\njle     short loc_1800CC672                                            ; +0x6d, 0x1800cc60d\nmovss   xmm6, cs:dword_180145744                                       ; +0x6f, 0x1800cc60f\nnop     word ptr [rax+rax+00000000h]                                   ; +0x77, 0x1800cc617\nmov     rax, [rdi]                                                     ; +0x80, 0x1800cc620\nlea     r8, [rsp+48h+var_28]                                           ; +0x83, 0x1800cc623\nmov     edx, ebx                                                       ; +0x88, 0x1800cc628\nmov     rcx, rdi                                                       ; +0x8a, 0x1800cc62a\ncall    qword ptr [rax+120h]                                           ; +0x8d, 0x1800cc62d\ntest    eax, eax                                                       ; +0x93, 0x1800cc633\njnz     short loc_1800CC6AB                                            ; +0x95, 0x1800cc635\nmov     rcx, [rsp+48h+var_28]                                          ; +0x97, 0x1800cc637\ntest    rcx, rcx                                                       ; +0x9c, 0x1800cc63c\njz      short loc_1800CC66A                                            ; +0x9f, 0x1800cc63f\ncmp     dword ptr [rcx+100h], 23h ; '#'                                ; +0xa1, 0x1800cc641\njnz     short loc_1800CC66A                                            ; +0xa8, 0x1800cc648\nmov     rax, [rdi+20h]                                                 ; +0xaa, 0x1800cc64a\ntest    rax, rax                                                       ; +0xae, 0x1800cc64e\njz      short loc_1800CC65D                                            ; +0xb1, 0x1800cc651\nmovss   xmm2, dword ptr [rax+1E8h]                                     ; +0xb3, 0x1800cc653\njmp     short loc_1800CC660                                            ; +0xbb, 0x1800cc65b\nmovaps  xmm2, xmm6                                                     ; +0xbd, 0x1800cc65d\nmov     edx, 8                                                         ; +0xc0, 0x1800cc660\ncall    sub_18009C0C0                                                  ; +0xc5, 0x1800cc665\ninc     ebx                                                            ; +0xca, 0x1800cc66a\ncmp     ebx, [rsp+48h+arg_18]                                          ; +0xcc, 0x1800cc66c\njl      short loc_1800CC620                                            ; +0xd0, 0x1800cc670\nmov     edx, [rdi+48h]                                                 ; +0xd2, 0x1800cc672\ntest    dl, 4                                                          ; +0xd5, 0x1800cc675\njnz     short loc_1800CC6A3                                            ; +0xd8, 0x1800cc678\nmov     rax, [rdi+8]                                                   ; +0xda, 0x1800cc67a\nmovsxd  rcx, dword ptr [rax+10DF0h]                                    ; +0xde, 0x1800cc67e\ntest    rcx, rcx                                                       ; +0xe5, 0x1800cc685\njle     short loc_1800CC6A9                                            ; +0xe8, 0x1800cc688\nadd     rax, 10ADCh                                                    ; +0xea, 0x1800cc68a\ncmp     byte ptr [rax], 0                                              ; +0xf0, 0x1800cc690\njnz     short loc_1800CC6A3                                            ; +0xf3, 0x1800cc693\ninc     rsi                                                            ; +0xf5, 0x1800cc695\nadd     rax, 70h ; 'p'                                                 ; +0xf8, 0x1800cc698\ncmp     rsi, rcx                                                       ; +0xfc, 0x1800cc69c\njl      short loc_1800CC690                                            ; +0xff, 0x1800cc69f\njmp     short loc_1800CC6A9                                            ; +0x101, 0x1800cc6a1\nand     edx, 0FFFFFFFBh                                                ; +0x103, 0x1800cc6a3\nmov     [rdi+48h], edx                                                 ; +0x106, 0x1800cc6a6\nxor     eax, eax                                                       ; +0x109, 0x1800cc6a9\nmovaps  xmm6, [rsp+48h+var_18]                                         ; +0x10b, 0x1800cc6ab\nmov     rbx, [rsp+48h+arg_0]                                           ; +0x110, 0x1800cc6b0\nmov     rsi, [rsp+48h+arg_8]                                           ; +0x115, 0x1800cc6b5\nadd     rsp, 40h                                                       ; +0x11a, 0x1800cc6ba\npop     rdi                                                            ; +0x11e, 0x1800cc6be\nretn                                                                   ; +0x11f, 0x1800cc6bf", "xrefs": ["sub_180102CA0 @ 0x180102f8d", "<???> @ 0x18018b3c4", "<???> @ 0x18018b3d4", "<???> @ 0x1801fe640"], "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"}