{"type": "func", "start": 6443286688, "end": 6443286874, "name": "sub_1800CC0A0", "pseudocode": "// \n// sub_1800CC0A0 from 0x1800cc0a0 to 0x1800cc15a (186 bytes)\n// \n// 4 xrefs:\n// > sub_1800CAC90 @ 0x1800cae39\n// > sub_1800CBEE0 @ 0x1800cbf36\n// > sub_1800CC0A0 @ 0x1800cc0fd\n// > <???> @ 0x1801fe5ec\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_1800CC0A0(__int64 a1, char a2)\n{\n  int v2; // r9d\n  _QWORD *v3; // rdi\n  _QWORD *v4; // rbx\n  char v5; // r8\n  unsigned int v7; // r9d\n  __int64 v8; // rdx\n  _QWORD *v9; // rsi\n  _QWORD *i; // rbx\n  __int64 v11; // rdi\n  unsigned __int8 v13; // [rsp+38h] [rbp+10h] BYREF\n\n  v2 = *(_DWORD *)(a1 + 72);\n  v3 = (_QWORD *)(a1 + 400);\n  v4 = *(_QWORD **)(a1 + 400);\n  v5 = 1;\n  if ( (v2 & 1) == 0 )\n    v5 = a2;\n  v7 = v2 | 0x10;\n  if ( !v5 )\n    v7 = *(_DWORD *)(a1 + 72) & 0xFFFFFFEF;\n  for ( *(_DWORD *)(a1 + 72) = v7; v4 != v3; v4 = (_QWORD *)*v4 )\n  {\n    v8 = *(_DWORD *)(a1 + 72) >> 4;\n    LOBYTE(v8) = (*(_DWORD *)(a1 + 72) & 0x10) != 0;\n    sub_1800CC0A0(v4[2], v8);\n  }\n  v9 = (_QWORD *)(a1 + 424);\n  for ( i = (_QWORD *)*v9; i != v9; i = (_QWORD *)*i )\n  {\n    v11 = i[2];\n    (*(void (__fastcall **)(__int64, unsigned __int8 *))(*(_QWORD *)v11 + 24LL))(v11, &v13);\n    (*(void (__fastcall **)(__int64, _QWORD))(*(_QWORD *)v11 + 16LL))(v11, v13);\n  }\n  return 0;\n}", "assembly": "; \n; sub_1800CC0A0 from 0x1800cc0a0 to 0x1800cc15a (186 bytes)\n; \n; 4 xrefs:\n; > sub_1800CAC90 @ 0x1800cae39\n; > sub_1800CBEE0 @ 0x1800cbf36\n; > sub_1800CC0A0 @ 0x1800cc0fd\n; > <???> @ 0x1801fe5ec\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, 0x1800cc0a0\nmov     [rsp+arg_10], rsi                                              ; +0x5, 0x1800cc0a5\npush    rdi                                                            ; +0xa, 0x1800cc0aa\nsub     rsp, 20h                                                       ; +0xb, 0x1800cc0ab\nmov     r9d, [rcx+48h]                                                 ; +0xf, 0x1800cc0af\nlea     rdi, [rcx+190h]                                                ; +0x13, 0x1800cc0b3\nmov     rbx, [rdi]                                                     ; +0x1a, 0x1800cc0ba\ntest    r9b, 1                                                         ; +0x1d, 0x1800cc0bd\nmovzx   eax, dl                                                        ; +0x21, 0x1800cc0c1\nmov     r8d, 1                                                         ; +0x24, 0x1800cc0c4\ncmovz   r8d, eax                                                       ; +0x2a, 0x1800cc0ca\nmov     rsi, rcx                                                       ; +0x2e, 0x1800cc0ce\nmov     eax, r9d                                                       ; +0x31, 0x1800cc0d1\nor      r9d, 10h                                                       ; +0x34, 0x1800cc0d4\nand     eax, 0FFFFFFEFh                                                ; +0x38, 0x1800cc0d8\ntest    r8b, r8b                                                       ; +0x3b, 0x1800cc0db\ncmovz   r9d, eax                                                       ; +0x3e, 0x1800cc0de\nmov     [rcx+48h], r9d                                                 ; +0x42, 0x1800cc0e2\ncmp     rbx, rdi                                                       ; +0x46, 0x1800cc0e6\njz      short loc_1800CC10A                                            ; +0x49, 0x1800cc0e9\nnop     dword ptr [rax+rax+00h]                                        ; +0x4b, 0x1800cc0eb\nmov     edx, [rsi+48h]                                                 ; +0x50, 0x1800cc0f0\nmov     rcx, [rbx+10h]                                                 ; +0x53, 0x1800cc0f3\nshr     edx, 4                                                         ; +0x57, 0x1800cc0f7\nand     dl, 1                                                          ; +0x5a, 0x1800cc0fa\ncall    sub_1800CC0A0                                                  ; +0x5d, 0x1800cc0fd\nmov     rbx, [rbx]                                                     ; +0x62, 0x1800cc102\ncmp     rbx, rdi                                                       ; +0x65, 0x1800cc105\njnz     short loc_1800CC0F0                                            ; +0x68, 0x1800cc108\nadd     rsi, 1A8h                                                      ; +0x6a, 0x1800cc10a\nmov     rbx, [rsi]                                                     ; +0x71, 0x1800cc111\ncmp     rbx, rsi                                                       ; +0x74, 0x1800cc114\njz      short loc_1800CC148                                            ; +0x77, 0x1800cc117\nnop     dword ptr [rax+00000000h]                                      ; +0x79, 0x1800cc119\nmov     rdi, [rbx+10h]                                                 ; +0x80, 0x1800cc120\nlea     rdx, [rsp+28h+arg_8]                                           ; +0x84, 0x1800cc124\nmov     rcx, rdi                                                       ; +0x89, 0x1800cc129\nmov     rax, [rdi]                                                     ; +0x8c, 0x1800cc12c\ncall    qword ptr [rax+18h]                                            ; +0x8f, 0x1800cc12f\nmov     rax, [rdi]                                                     ; +0x92, 0x1800cc132\nmov     rcx, rdi                                                       ; +0x95, 0x1800cc135\nmovzx   edx, [rsp+28h+arg_8]                                           ; +0x98, 0x1800cc138\ncall    qword ptr [rax+10h]                                            ; +0x9d, 0x1800cc13d\nmov     rbx, [rbx]                                                     ; +0xa0, 0x1800cc140\ncmp     rbx, rsi                                                       ; +0xa3, 0x1800cc143\njnz     short loc_1800CC120                                            ; +0xa6, 0x1800cc146\nmov     rbx, [rsp+28h+arg_0]                                           ; +0xa8, 0x1800cc148\nxor     eax, eax                                                       ; +0xad, 0x1800cc14d\nmov     rsi, [rsp+28h+arg_10]                                          ; +0xaf, 0x1800cc14f\nadd     rsp, 20h                                                       ; +0xb4, 0x1800cc154\npop     rdi                                                            ; +0xb8, 0x1800cc158\nretn                                                                   ; +0xb9, 0x1800cc159", "xrefs": ["sub_1800CAC90 @ 0x1800cae39", "sub_1800CBEE0 @ 0x1800cbf36", "sub_1800CC0A0 @ 0x1800cc0fd", "<???> @ 0x1801fe5ec"], "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"}