{"type": "func", "start": 6443513024, "end": 6443513415, "name": "sub_1801034C0", "pseudocode": "// \n// sub_1801034C0 from 0x1801034c0 to 0x180103647 (391 bytes)\n// \n// 5 xrefs:\n// > sub_180102490 @ 0x180102490\n// > sub_180102CA0 @ 0x180103286\n// > <???> @ 0x18018fb9c\n// > <???> @ 0x18018fbd0\n// > <???> @ 0x1802012d4\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_1801034C0(__int64 a1)\n{\n  _QWORD *v2; // rax\n  _BYTE *v3; // rdi\n  _QWORD *i; // rdx\n  __int64 v5; // rax\n  __int64 v6; // rcx\n  __int64 v7; // r8\n  __int64 v8; // rcx\n  __int64 v9; // rax\n\n  sub_1800B8B60(a1 + 73068);\n  sub_1801021C0(a1, 10);\n  v2 = *(_QWORD **)(a1 + 72664);\n  for ( *(_QWORD *)(a1 + 72688) = v2; v2 != (_QWORD *)(a1 + 72664); *(_QWORD *)(a1 + 72688) = v2 )\n  {\n    v3 = (_BYTE *)v2[2];\n    *(_QWORD *)(a1 + 72696) = *v2;\n    sub_180102300(a1, 10);\n    sub_1801021C0(a1, 9);\n    if ( !v3[136] )\n      (*(void (__fastcall **)(_BYTE *))(*(_QWORD *)v3 + 64LL))(v3);\n    sub_180102300(a1, 9);\n    sub_1801021C0(a1, 10);\n    v2 = *(_QWORD **)(a1 + 72696);\n  }\n  *(_QWORD *)(a1 + 72696) = 0;\n  sub_180102300(a1, 10);\n  sub_1801021C0(a1, 10);\n  for ( i = *(_QWORD **)(a1 + 72704); i != (_QWORD *)(a1 + 72704); i = (_QWORD *)*i )\n  {\n    v5 = i[2];\n    v6 = *(_QWORD *)(v5 + 376);\n    if ( v6 )\n    {\n      if ( *(_BYTE *)(v6 + 136) )\n      {\n        _InterlockedOr((volatile signed __int32 *)(v5 + 88), 0x40u);\n        v7 = *(_QWORD *)(v5 + 160);\n        if ( v7 )\n        {\n          v8 = *(_QWORD *)(v5 + 168);\n          if ( v8 )\n          {\n            _InterlockedOr((volatile signed __int32 *)(v8 + 88), 0x40u);\n          }\n          else\n          {\n            v9 = *(_QWORD *)(v7 + 8LL * *(int *)(v5 + 192));\n            if ( v9 )\n              _InterlockedOr((volatile signed __int32 *)(v9 + 88), 0x40u);\n          }\n        }\n      }\n    }\n  }\n  sub_180102300(a1, 10);\n  sub_1800B8B80((unsigned int *)(a1 + 73068), 95);\n  return 0;\n}", "assembly": "; \n; sub_1801034C0 from 0x1801034c0 to 0x180103647 (391 bytes)\n; \n; 5 xrefs:\n; > sub_180102490 @ 0x180102490\n; > sub_180102CA0 @ 0x180103286\n; > <???> @ 0x18018fb9c\n; > <???> @ 0x18018fbd0\n; > <???> @ 0x1802012d4\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\nmov     [rsp+arg_10], rbx                                              ; +0x0, 0x1801034c0\npush    rbp                                                            ; +0x5, 0x1801034c5\nsub     rsp, 20h                                                       ; +0x6, 0x1801034c6\nmov     rbx, rcx                                                       ; +0xa, 0x1801034ca\nmov     [rsp+28h+arg_0], rsi                                           ; +0xd, 0x1801034cd\nadd     rcx, 11D6Ch                                                    ; +0x12, 0x1801034d2\ncall    sub_1800B8B60                                                  ; +0x19, 0x1801034d9\nmov     edx, 0Ah                                                       ; +0x1e, 0x1801034de\nmov     rcx, rbx                                                       ; +0x23, 0x1801034e3\ncall    sub_1801021C0                                                  ; +0x26, 0x1801034e6\nlea     rsi, [rbx+11BD8h]                                              ; +0x2b, 0x1801034eb\nmov     rax, [rsi]                                                     ; +0x32, 0x1801034f2\nmov     [rbx+11BF0h], rax                                              ; +0x35, 0x1801034f5\ncmp     rax, rsi                                                       ; +0x3c, 0x1801034fc\njz      short loc_18010357E                                            ; +0x3f, 0x1801034ff\nmov     [rsp+28h+arg_8], rdi                                           ; +0x41, 0x180103501\nnop     word ptr [rax+rax+00000000h]                                   ; +0x46, 0x180103506\nmov     rdi, [rax+10h]                                                 ; +0x50, 0x180103510\nmov     edx, 0Ah                                                       ; +0x54, 0x180103514\nmov     rax, [rax]                                                     ; +0x59, 0x180103519\nmov     rcx, rbx                                                       ; +0x5c, 0x18010351c\nmov     [rbx+11BF8h], rax                                              ; +0x5f, 0x18010351f\ncall    sub_180102300                                                  ; +0x66, 0x180103526\nmov     edx, 9                                                         ; +0x6b, 0x18010352b\nmov     rcx, rbx                                                       ; +0x70, 0x180103530\ncall    sub_1801021C0                                                  ; +0x73, 0x180103533\nmovzx   eax, byte ptr [rdi+88h]                                        ; +0x78, 0x180103538\ntest    al, al                                                         ; +0x7f, 0x18010353f\njnz     short loc_18010354C                                            ; +0x81, 0x180103541\nmov     rax, [rdi]                                                     ; +0x83, 0x180103543\nmov     rcx, rdi                                                       ; +0x86, 0x180103546\ncall    qword ptr [rax+40h]                                            ; +0x89, 0x180103549\nmov     edx, 9                                                         ; +0x8c, 0x18010354c\nmov     rcx, rbx                                                       ; +0x91, 0x180103551\ncall    sub_180102300                                                  ; +0x94, 0x180103554\nmov     edx, 0Ah                                                       ; +0x99, 0x180103559\nmov     rcx, rbx                                                       ; +0x9e, 0x18010355e\ncall    sub_1801021C0                                                  ; +0xa1, 0x180103561\nmov     rax, [rbx+11BF8h]                                              ; +0xa6, 0x180103566\nmov     [rbx+11BF0h], rax                                              ; +0xad, 0x18010356d\ncmp     rax, rsi                                                       ; +0xb4, 0x180103574\njnz     short loc_180103510                                            ; +0xb7, 0x180103577\nmov     rdi, [rsp+28h+arg_8]                                           ; +0xb9, 0x180103579\nmov     edx, 0Ah                                                       ; +0xbe, 0x18010357e\nmov     qword ptr [rbx+11BF8h], 0                                      ; +0xc3, 0x180103583\nmov     rcx, rbx                                                       ; +0xce, 0x18010358e\ncall    sub_180102300                                                  ; +0xd1, 0x180103591\nmov     edx, 0Ah                                                       ; +0xd6, 0x180103596\nmov     rcx, rbx                                                       ; +0xdb, 0x18010359b\ncall    sub_1801021C0                                                  ; +0xde, 0x18010359e\nmov     rsi, [rsp+28h+arg_0]                                           ; +0xe3, 0x1801035a3\nlea     r9, [rbx+11C00h]                                               ; +0xe8, 0x1801035a8\nmov     rdx, [r9]                                                      ; +0xef, 0x1801035af\ncmp     rdx, r9                                                        ; +0xf2, 0x1801035b2\njz      short loc_18010361C                                            ; +0xf5, 0x1801035b5\nnop     word ptr [rax+rax+00000000h]                                   ; +0xf7, 0x1801035b7\nmov     rax, [rdx+10h]                                                 ; +0x100, 0x1801035c0\nmov     rcx, [rax+178h]                                                ; +0x104, 0x1801035c4\ntest    rcx, rcx                                                       ; +0x10b, 0x1801035cb\njz      short loc_180103614                                            ; +0x10e, 0x1801035ce\nmovzx   ecx, byte ptr [rcx+88h]                                        ; +0x110, 0x1801035d0\ntest    cl, cl                                                         ; +0x117, 0x1801035d7\njz      short loc_180103614                                            ; +0x119, 0x1801035d9\nlock or dword ptr [rax+58h], 40h                                       ; +0x11b, 0x1801035db\nmov     r8, [rax+0A0h]                                                 ; +0x120, 0x1801035e0\ntest    r8, r8                                                         ; +0x127, 0x1801035e7\njz      short loc_180103614                                            ; +0x12a, 0x1801035ea\nmov     rcx, [rax+0A8h]                                                ; +0x12c, 0x1801035ec\ntest    rcx, rcx                                                       ; +0x133, 0x1801035f3\njz      short loc_1801035FF                                            ; +0x136, 0x1801035f6\nlock or dword ptr [rcx+58h], 40h                                       ; +0x138, 0x1801035f8\njmp     short loc_180103614                                            ; +0x13d, 0x1801035fd\nmovsxd  rcx, dword ptr [rax+0C0h]                                      ; +0x13f, 0x1801035ff\nmov     rax, [r8+rcx*8]                                                ; +0x146, 0x180103606\ntest    rax, rax                                                       ; +0x14a, 0x18010360a\njz      short loc_180103614                                            ; +0x14d, 0x18010360d\nlock or dword ptr [rax+58h], 40h                                       ; +0x14f, 0x18010360f\nmov     rdx, [rdx]                                                     ; +0x154, 0x180103614\ncmp     rdx, r9                                                        ; +0x157, 0x180103617\njnz     short loc_1801035C0                                            ; +0x15a, 0x18010361a\nmov     edx, 0Ah                                                       ; +0x15c, 0x18010361c\nmov     rcx, rbx                                                       ; +0x161, 0x180103621\ncall    sub_180102300                                                  ; +0x164, 0x180103624\nmov     edx, 5Fh ; '_'                                                 ; +0x169, 0x180103629\nlea     rcx, [rbx+11D6Ch]                                              ; +0x16e, 0x18010362e\ncall    sub_1800B8B80                                                  ; +0x175, 0x180103635\nmov     rbx, [rsp+28h+arg_10]                                          ; +0x17a, 0x18010363a\nxor     eax, eax                                                       ; +0x17f, 0x18010363f\nadd     rsp, 20h                                                       ; +0x181, 0x180103641\npop     rbp                                                            ; +0x185, 0x180103645\nretn                                                                   ; +0x186, 0x180103646", "xrefs": ["sub_180102490 @ 0x180102490", "sub_180102CA0 @ 0x180103286", "<???> @ 0x18018fb9c", "<???> @ 0x18018fbd0", "<???> @ 0x1802012d4"], "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"}