{"type": "func", "start": 6443091568, "end": 6443091916, "name": "sub_18009C670", "pseudocode": "// \n// sub_18009C670 from 0x18009c670 to 0x18009c7cc (348 bytes)\n// \n// 6 xrefs:\n// > sub_180099840 @ 0x180099a1e\n// > sub_18009C670 @ 0x18009c6ec\n// > sub_18009C670 @ 0x18009c74c\n// > <???> @ 0x180185170\n// > <???> @ 0x1801851a4\n// > <???> @ 0x1801fac68\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:53:50 +0000\n// \n\n__int64 __fastcall sub_18009C670(__int64 a1, __int64 a2, int a3, int a4, int a5, int a6, _BYTE *a7)\n{\n  int v7; // r14d\n  __int64 v12; // rcx\n  _QWORD *i; // rdi\n\n  v7 = a6;\n  if ( a6 != *(_DWORD *)(a1 + 88) && (*(_DWORD *)(a1 + 92) & 0x100000) == 0 )\n  {\n    if ( (*(_DWORD *)(a1 + 92) & 0x2000) != 0 )\n    {\n      LOBYTE(a6) = 0;\n      _InterlockedOr((volatile signed __int32 *)(a1 + 92), 0x100000u);\n      v12 = *(_QWORD *)(a1 + 104);\n      if ( v12 )\n      {\n        sub_18009C670(v12 + 8, a2, a3, a4, a5, v7, (__int64)&a6);\n      }\n      else\n      {\n        for ( i = *(_QWORD **)(a1 + 112); i != (_QWORD *)(a1 + 112); i = (_QWORD *)*i )\n          sub_18009C670(*(_QWORD *)(i[2] + 88LL) + 8, a2, a3, a4, a5, v7, (__int64)&a6);\n      }\n      if ( a7 )\n        *a7 = 1;\n      if ( *(_DWORD *)(*(_QWORD *)(a1 + 96) + 248LL) && (*(_DWORD *)(a1 + 92) & 0x80000) == 0 )\n      {\n        sub_1800931D0(a2, a1);\n        return 0;\n      }\n    }\n    else if ( a7 )\n    {\n      *a7 = 0;\n    }\n  }\n  return 0;\n}", "assembly": "; \n; sub_18009C670 from 0x18009c670 to 0x18009c7cc (348 bytes)\n; \n; 6 xrefs:\n; > sub_180099840 @ 0x180099a1e\n; > sub_18009C670 @ 0x18009c6ec\n; > sub_18009C670 @ 0x18009c74c\n; > <???> @ 0x180185170\n; > <???> @ 0x1801851a4\n; > <???> @ 0x1801fac68\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:53:50 +0000\n; \nmov     r11, rsp                                                       ; +0x0, 0x18009c670\npush    rbx                                                            ; +0x3, 0x18009c673\npush    rbp                                                            ; +0x4, 0x18009c674\npush    r12                                                            ; +0x5, 0x18009c675\npush    r14                                                            ; +0x7, 0x18009c677\npush    r15                                                            ; +0x9, 0x18009c679\nsub     rsp, 40h                                                       ; +0xb, 0x18009c67b\nmov     r14d, [rsp+68h+arg_28]                                         ; +0xf, 0x18009c67f\nmov     r15d, r9d                                                      ; +0x17, 0x18009c687\nmov     r12d, r8d                                                      ; +0x1a, 0x18009c68a\nmov     rbp, rdx                                                       ; +0x1d, 0x18009c68d\nmov     rbx, rcx                                                       ; +0x20, 0x18009c690\ncmp     r14d, [rcx+58h]                                                ; +0x23, 0x18009c693\njz      loc_18009C7BD                                                  ; +0x27, 0x18009c697\nmov     eax, [rcx+5Ch]                                                 ; +0x2d, 0x18009c69d\nnop                                                                    ; +0x30, 0x18009c6a0\nshr     eax, 14h                                                       ; +0x31, 0x18009c6a1\ntest    al, 1                                                          ; +0x34, 0x18009c6a4\njnz     loc_18009C7BD                                                  ; +0x36, 0x18009c6a6\nmov     eax, [rcx+5Ch]                                                 ; +0x3c, 0x18009c6ac\nnop                                                                    ; +0x3f, 0x18009c6af\nshr     eax, 0Dh                                                       ; +0x40, 0x18009c6b0\ntest    al, 1                                                          ; +0x43, 0x18009c6b3\njz      loc_18009C7AD                                                  ; +0x45, 0x18009c6b5\nmov     byte ptr [r11+30h], 0                                          ; +0x4b, 0x18009c6bb\nlock or dword ptr [rcx+5Ch], 100000h                                   ; +0x50, 0x18009c6c0\nmov     rcx, [rcx+68h]                                                 ; +0x58, 0x18009c6c8\ntest    rcx, rcx                                                       ; +0x5c, 0x18009c6cc\njz      short loc_18009C6F3                                            ; +0x5f, 0x18009c6cf\nlea     rax, [r11+30h]                                                 ; +0x61, 0x18009c6d1\nadd     rcx, 8                                                         ; +0x65, 0x18009c6d5\nmov     [r11-38h], rax                                                 ; +0x69, 0x18009c6d9\nmov     eax, [rsp+68h+arg_20]                                          ; +0x6d, 0x18009c6dd\nmov     [r11-40h], r14d                                                ; +0x74, 0x18009c6e4\nmov     [rsp+68h+var_48], eax                                          ; +0x78, 0x18009c6e8\ncall    sub_18009C670                                                  ; +0x7c, 0x18009c6ec\njmp     short loc_18009C76B                                            ; +0x81, 0x18009c6f1\nmov     [rsp+68h+arg_0], rsi                                           ; +0x83, 0x18009c6f3\nlea     rsi, [rbx+70h]                                                 ; +0x88, 0x18009c6f8\nmov     [rsp+68h+arg_8], rdi                                           ; +0x8c, 0x18009c6fc\nmov     rdi, [rsi]                                                     ; +0x91, 0x18009c701\ncmp     rdi, rsi                                                       ; +0x94, 0x18009c704\njz      short loc_18009C761                                            ; +0x97, 0x18009c707\nmov     [rsp+68h+arg_10], r13                                          ; +0x99, 0x18009c709\nmov     r13d, [rsp+68h+arg_20]                                         ; +0xa1, 0x18009c711\nnop     dword ptr [rax+00000000h]                                      ; +0xa9, 0x18009c719\nmov     rax, [rdi+10h]                                                 ; +0xb0, 0x18009c720\nmov     r9d, r15d                                                      ; +0xb4, 0x18009c724\nmov     r8d, r12d                                                      ; +0xb7, 0x18009c727\nmov     rdx, rbp                                                       ; +0xba, 0x18009c72a\nmov     rcx, [rax+58h]                                                 ; +0xbd, 0x18009c72d\nlea     rax, [rsp+68h+arg_28]                                          ; +0xc1, 0x18009c731\nmov     [rsp+68h+var_38], rax                                          ; +0xc9, 0x18009c739\nadd     rcx, 8                                                         ; +0xce, 0x18009c73e\nmov     [rsp+68h+var_40], r14d                                         ; +0xd2, 0x18009c742\nmov     [rsp+68h+var_48], r13d                                         ; +0xd7, 0x18009c747\ncall    sub_18009C670                                                  ; +0xdc, 0x18009c74c\nmov     rdi, [rdi]                                                     ; +0xe1, 0x18009c751\ncmp     rdi, rsi                                                       ; +0xe4, 0x18009c754\njnz     short loc_18009C720                                            ; +0xe7, 0x18009c757\nmov     r13, [rsp+68h+arg_10]                                          ; +0xe9, 0x18009c759\nmov     rsi, [rsp+68h+arg_0]                                           ; +0xf1, 0x18009c761\nmov     rdi, [rsp+68h+arg_8]                                           ; +0xf6, 0x18009c766\nmov     rax, [rsp+68h+arg_30]                                          ; +0xfb, 0x18009c76b\ntest    rax, rax                                                       ; +0x103, 0x18009c773\njz      short loc_18009C77B                                            ; +0x106, 0x18009c776\nmov     byte ptr [rax], 1                                              ; +0x108, 0x18009c778\nmov     rax, [rbx+60h]                                                 ; +0x10b, 0x18009c77b\ncmp     dword ptr [rax+0F8h], 0                                        ; +0x10f, 0x18009c77f\njz      short loc_18009C7BD                                            ; +0x116, 0x18009c786\nmov     eax, [rbx+5Ch]                                                 ; +0x118, 0x18009c788\nnop                                                                    ; +0x11b, 0x18009c78b\nshr     eax, 13h                                                       ; +0x11c, 0x18009c78c\ntest    al, 1                                                          ; +0x11f, 0x18009c78f\njnz     short loc_18009C7BD                                            ; +0x121, 0x18009c791\nmov     rdx, rbx                                                       ; +0x123, 0x18009c793\nmov     rcx, rbp                                                       ; +0x126, 0x18009c796\ncall    sub_1800931D0                                                  ; +0x129, 0x18009c799\nxor     eax, eax                                                       ; +0x12e, 0x18009c79e\nadd     rsp, 40h                                                       ; +0x130, 0x18009c7a0\npop     r15                                                            ; +0x134, 0x18009c7a4\npop     r14                                                            ; +0x136, 0x18009c7a6\npop     r12                                                            ; +0x138, 0x18009c7a8\npop     rbp                                                            ; +0x13a, 0x18009c7aa\npop     rbx                                                            ; +0x13b, 0x18009c7ab\nretn                                                                   ; +0x13c, 0x18009c7ac\nmov     rax, [rsp+68h+arg_30]                                          ; +0x13d, 0x18009c7ad\ntest    rax, rax                                                       ; +0x145, 0x18009c7b5\njz      short loc_18009C7BD                                            ; +0x148, 0x18009c7b8\nmov     byte ptr [rax], 0                                              ; +0x14a, 0x18009c7ba\nxor     eax, eax                                                       ; +0x14d, 0x18009c7bd\nadd     rsp, 40h                                                       ; +0x14f, 0x18009c7bf\npop     r15                                                            ; +0x153, 0x18009c7c3\npop     r14                                                            ; +0x155, 0x18009c7c5\npop     r12                                                            ; +0x157, 0x18009c7c7\npop     rbp                                                            ; +0x159, 0x18009c7c9\npop     rbx                                                            ; +0x15a, 0x18009c7ca\nretn                                                                   ; +0x15b, 0x18009c7cb", "xrefs": ["sub_180099840 @ 0x180099a1e", "sub_18009C670 @ 0x18009c6ec", "sub_18009C670 @ 0x18009c74c", "<???> @ 0x180185170", "<???> @ 0x1801851a4", "<???> @ 0x1801fac68"], "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"}