{"type": "func", "start": 6442542752, "end": 6442542856, "name": "sub_1800166A0", "pseudocode": "// \n// sub_1800166A0 from 0x1800166a0 to 0x180016708 (104 bytes)\n// \n// 2 xrefs:\n// > sub_180016770 @ 0x180016805\n// > <???> @ 0x18004c860\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 12:15:41 +0000\n// \n\nvoid __fastcall sub_1800166A0(_QWORD *a1)\n{\n  _QWORD *v1; // rdi\n  _QWORD *v3; // rbx\n  void *v4; // rcx\n\n  v1 = (_QWORD *)*a1;\n  v3 = *(_QWORD **)(*a1 + 8LL);\n  while ( !*((_BYTE *)v3 + 25) )\n  {\n    sub_180016710(a1, a1, v3[2]);\n    v4 = v3;\n    v3 = (_QWORD *)*v3;\n    j_j_free(v4);\n  }\n  v1[1] = v1;\n  *v1 = v1;\n  v1[2] = v1;\n  a1[1] = 0;\n}", "assembly": "; \n; sub_1800166A0 from 0x1800166a0 to 0x180016708 (104 bytes)\n; \n; 2 xrefs:\n; > sub_180016770 @ 0x180016805\n; > <???> @ 0x18004c860\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 12:15:41 +0000\n; \nmov     [rsp+arg_0], rbx                                               ; +0x0, 0x1800166a0\nmov     [rsp+arg_8], rsi                                               ; +0x5, 0x1800166a5\npush    rdi                                                            ; +0xa, 0x1800166aa\nsub     rsp, 20h                                                       ; +0xb, 0x1800166ab\nmov     rdi, [rcx]                                                     ; +0xf, 0x1800166af\nmov     rsi, rcx                                                       ; +0x12, 0x1800166b2\nmov     rbx, [rdi+8]                                                   ; +0x15, 0x1800166b5\ncmp     byte ptr [rbx+19h], 0                                          ; +0x19, 0x1800166b9\njnz     short loc_1800166E5                                            ; +0x1d, 0x1800166bd\nnop                                                                    ; +0x1f, 0x1800166bf\nmov     r8, [rbx+10h]                                                  ; +0x20, 0x1800166c0\nmov     rdx, rsi                                                       ; +0x24, 0x1800166c4\nmov     rcx, rsi                                                       ; +0x27, 0x1800166c7\ncall    sub_180016710                                                  ; +0x2a, 0x1800166ca\nmov     rcx, rbx; Block                                                ; +0x2f, 0x1800166cf\nmov     edx, 20h ; ' '                                                 ; +0x32, 0x1800166d2\nmov     rbx, [rbx]                                                     ; +0x37, 0x1800166d7\ncall    j_j_free                                                       ; +0x3a, 0x1800166da\ncmp     byte ptr [rbx+19h], 0                                          ; +0x3f, 0x1800166df\njz      short loc_1800166C0                                            ; +0x43, 0x1800166e3\nmov     rbx, [rsp+28h+arg_0]                                           ; +0x45, 0x1800166e5\nmov     [rdi+8], rdi                                                   ; +0x4a, 0x1800166ea\nmov     [rdi], rdi                                                     ; +0x4e, 0x1800166ee\nmov     [rdi+10h], rdi                                                 ; +0x51, 0x1800166f1\nmov     qword ptr [rsi+8], 0                                           ; +0x55, 0x1800166f5\nmov     rsi, [rsp+28h+arg_8]                                           ; +0x5d, 0x1800166fd\nadd     rsp, 20h                                                       ; +0x62, 0x180016702\npop     rdi                                                            ; +0x66, 0x180016706\nretn                                                                   ; +0x67, 0x180016707", "xrefs": ["sub_180016770 @ 0x180016805", "<???> @ 0x18004c860"], "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"}