{"type": "func", "start": 6443368816, "end": 6443368953, "name": "sub_1800E0170", "pseudocode": "// \n// sub_1800E0170 from 0x1800e0170 to 0x1800e01f9 (137 bytes)\n// \n// 4 xrefs:\n// > sub_1800DEF70 @ 0x1800df365\n// > <???> @ 0x18014c6dc\n// > <???> @ 0x18014c6ec\n// > <???> @ 0x1801c50b8\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 11:22:36 +0000\n// \n\nBOOL __fastcall sub_1800E0170(__int64 a1)\n{\n  int v2; // ebx\n  int v4; // [rsp+30h] [rbp+8h] BYREF\n\n  if ( !*(_QWORD *)(a1 + 72) )\n  {\n    if ( (unsigned int)sub_1800E1CB0(6) )\n    {\n      v4 = sub_1800E1CB0(6);\n      if ( v4 || (int)qword_1801B6100(&v4) >= 0 && v4 )\n      {\n        v2 = -*(_DWORD *)(a1 + 648);\n        if ( *(int *)(a1 + 648) > 0 )\n          v2 = *(_DWORD *)(a1 + 648);\n        for ( ; v2; --v2 )\n          qword_1801B6108();\n      }\n    }\n  }\n  return SwapBuffers(*(HDC *)(a1 + 632));\n}", "assembly": "; \n; sub_1800E0170 from 0x1800e0170 to 0x1800e01f9 (137 bytes)\n; \n; 4 xrefs:\n; > sub_1800DEF70 @ 0x1800df365\n; > <???> @ 0x18014c6dc\n; > <???> @ 0x18014c6ec\n; > <???> @ 0x1801c50b8\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 11:22:36 +0000\n; \npush    rdi                                                            ; +0x0, 0x1800e0170\nsub     rsp, 20h                                                       ; +0x2, 0x1800e0172\ncmp     qword ptr [rcx+48h], 0                                         ; +0x6, 0x1800e0176\nmov     rdi, rcx                                                       ; +0xb, 0x1800e017b\njnz     short loc_1800E01E6                                            ; +0xe, 0x1800e017e\nxor     edx, edx                                                       ; +0x10, 0x1800e0180\nxor     r8d, r8d                                                       ; +0x12, 0x1800e0182\nlea     ecx, [rdx+6]                                                   ; +0x15, 0x1800e0185\ncall    sub_1800E1CB0                                                  ; +0x18, 0x1800e0188\ntest    eax, eax                                                       ; +0x1d, 0x1800e018d\njz      short loc_1800E01E6                                            ; +0x1f, 0x1800e018f\nxor     r8d, r8d                                                       ; +0x21, 0x1800e0191\nlea     edx, [r8+2]                                                    ; +0x24, 0x1800e0194\nlea     ecx, [rdx+4]                                                   ; +0x28, 0x1800e0198\ncall    sub_1800E1CB0                                                  ; +0x2b, 0x1800e019b\nmov     [rsp+28h+arg_0], eax                                           ; +0x30, 0x1800e01a0\ntest    eax, eax                                                       ; +0x34, 0x1800e01a4\njnz     short loc_1800E01BE                                            ; +0x36, 0x1800e01a6\nlea     rcx, [rsp+28h+arg_0]                                           ; +0x38, 0x1800e01a8\ncall    cs:qword_1801B6100                                             ; +0x3d, 0x1800e01ad\ntest    eax, eax                                                       ; +0x43, 0x1800e01b3\njs      short loc_1800E01E6                                            ; +0x45, 0x1800e01b5\ncmp     [rsp+28h+arg_0], 0                                             ; +0x47, 0x1800e01b7\njz      short loc_1800E01E6                                            ; +0x4c, 0x1800e01bc\nmov     [rsp+28h+arg_8], rbx                                           ; +0x4e, 0x1800e01be\nmov     ebx, [rdi+288h]                                                ; +0x53, 0x1800e01c3\nneg     ebx                                                            ; +0x59, 0x1800e01c9\ncmovs   ebx, [rdi+288h]                                                ; +0x5b, 0x1800e01cb\ntest    ebx, ebx                                                       ; +0x62, 0x1800e01d2\njz      short loc_1800E01E1                                            ; +0x64, 0x1800e01d4\ncall    cs:qword_1801B6108                                             ; +0x66, 0x1800e01d6\nsub     ebx, 1                                                         ; +0x6c, 0x1800e01dc\njnz     short loc_1800E01D6                                            ; +0x6f, 0x1800e01df\nmov     rbx, [rsp+28h+arg_8]                                           ; +0x71, 0x1800e01e1\nmov     rcx, [rdi+278h]                                                ; +0x76, 0x1800e01e6\nadd     rsp, 20h                                                       ; +0x7d, 0x1800e01ed\npop     rdi                                                            ; +0x81, 0x1800e01f1\njmp     cs:SwapBuffers                                                 ; +0x82, 0x1800e01f2", "xrefs": ["sub_1800DEF70 @ 0x1800df365", "<???> @ 0x18014c6dc", "<???> @ 0x18014c6ec", "<???> @ 0x1801c50b8"], "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"}