{"type": "func", "start": 6442579248, "end": 6442579544, "name": "sub_18001F530", "pseudocode": "// \n// sub_18001F530 from 0x18001f530 to 0x18001f658 (296 bytes)\n// \n// 3 xrefs:\n// > <???> @ 0x18001f52f\n// > DllEntryPoint @ 0x18001f690\n// > <???> @ 0x18004d10c\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:45 +0000\n// \n\n__int64 __fastcall sub_18001F530(HINSTANCE hinstDLL, DWORD fdwReason, LPVOID lpvReserved)\n{\n  unsigned int v7; // ebx\n  BOOL v8; // eax\n\n  if ( !fdwReason && dword_180049FD0 <= 0 )\n    return 0;\n  if ( fdwReason - 1 > 1 || (v7 = sub_18001F344((__int64)hinstDLL, fdwReason, (__int64)lpvReserved)) != 0 )\n  {\n    v8 = DllMain(hinstDLL, fdwReason, lpvReserved);\n    v7 = v8;\n    if ( fdwReason == 1 && !v8 )\n    {\n      DllMain(hinstDLL, 0, lpvReserved);\n      sub_18001F4AC(lpvReserved != nullptr);\n    }\n    if ( !fdwReason || fdwReason == 3 )\n      return (unsigned int)sub_18001F344((__int64)hinstDLL, fdwReason, (__int64)lpvReserved) != 0;\n  }\n  return v7;\n}", "assembly": "; \n; sub_18001F530 from 0x18001f530 to 0x18001f658 (296 bytes)\n; \n; 3 xrefs:\n; > <???> @ 0x18001f52f\n; > DllEntryPoint @ 0x18001f690\n; > <???> @ 0x18004d10c\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:45 +0000\n; \nmov     rax, rsp                                                       ; +0x0, 0x18001f530\nmov     [rax+20h], rbx                                                 ; +0x3, 0x18001f533\nmov     [rax+18h], r8                                                  ; +0x7, 0x18001f537\nmov     [rax+10h], edx                                                 ; +0xb, 0x18001f53b\nmov     [rax+8], rcx                                                   ; +0xe, 0x18001f53e\npush    rsi                                                            ; +0x12, 0x18001f542\npush    rdi                                                            ; +0x13, 0x18001f543\npush    r14                                                            ; +0x14, 0x18001f544\nsub     rsp, 40h                                                       ; +0x16, 0x18001f546\nmov     rsi, r8                                                        ; +0x1a, 0x18001f54a\nmov     edi, edx                                                       ; +0x1d, 0x18001f54d\nmov     r14, rcx                                                       ; +0x1f, 0x18001f54f\ntest    edx, edx                                                       ; +0x22, 0x18001f552\njnz     short loc_18001F565                                            ; +0x24, 0x18001f554\ncmp     cs:dword_180049FD0, edx                                        ; +0x26, 0x18001f556\njg      short loc_18001F565                                            ; +0x2c, 0x18001f55c\nxor     eax, eax                                                       ; +0x2e, 0x18001f55e\njmp     loc_18001F64A                                                  ; +0x30, 0x18001f560\nlea     eax, [rdx-1]                                                   ; +0x35, 0x18001f565\ncmp     eax, 1                                                         ; +0x38, 0x18001f568\nja      short loc_18001F5AD                                            ; +0x3b, 0x18001f56b\nmov     rax, cs:qword_180025820                                        ; +0x3d, 0x18001f56d\ntest    rax, rax                                                       ; +0x44, 0x18001f574\njnz     short loc_18001F57E                                            ; +0x47, 0x18001f577\nlea     ebx, [rax+1]                                                   ; +0x49, 0x18001f579\njmp     short loc_18001F586                                            ; +0x4c, 0x18001f57c\ncall    cs:__guard_dispatch_icall_fptr                                 ; +0x4e, 0x18001f57e\nmov     ebx, eax                                                       ; +0x54, 0x18001f584\nmov     [rsp+58h+var_28], ebx                                          ; +0x56, 0x18001f586\ntest    ebx, ebx                                                       ; +0x5a, 0x18001f58a\njz      loc_18001F640                                                  ; +0x5c, 0x18001f58c\nmov     r8, rsi                                                        ; +0x62, 0x18001f592\nmov     edx, edi                                                       ; +0x65, 0x18001f595\nmov     rcx, r14                                                       ; +0x67, 0x18001f597\ncall    sub_18001F344                                                  ; +0x6a, 0x18001f59a\nmov     ebx, eax                                                       ; +0x6f, 0x18001f59f\nmov     [rsp+58h+var_28], eax                                          ; +0x71, 0x18001f5a1\ntest    eax, eax                                                       ; +0x75, 0x18001f5a5\njz      loc_18001F640                                                  ; +0x77, 0x18001f5a7\nmov     r8, rsi; lpvReserved                                           ; +0x7d, 0x18001f5ad\nmov     edx, edi; fdwReason                                            ; +0x80, 0x18001f5b0\nmov     rcx, r14; hinstDLL                                             ; +0x82, 0x18001f5b2\ncall    DllMain                                                        ; +0x85, 0x18001f5b5\nmov     ebx, eax                                                       ; +0x8a, 0x18001f5ba\nmov     [rsp+58h+var_28], eax                                          ; +0x8c, 0x18001f5bc\ncmp     edi, 1                                                         ; +0x90, 0x18001f5c0\njnz     short loc_18001F5FB                                            ; +0x93, 0x18001f5c3\ntest    eax, eax                                                       ; +0x95, 0x18001f5c5\njnz     short loc_18001F5FB                                            ; +0x97, 0x18001f5c7\nmov     r8, rsi; lpvReserved                                           ; +0x99, 0x18001f5c9\nxor     edx, edx; fdwReason                                            ; +0x9c, 0x18001f5cc\nmov     rcx, r14; hinstDLL                                             ; +0x9e, 0x18001f5ce\ncall    DllMain                                                        ; +0xa1, 0x18001f5d1\ntest    rsi, rsi                                                       ; +0xa6, 0x18001f5d6\nsetnz   cl                                                             ; +0xa9, 0x18001f5d9\ncall    sub_18001F4AC                                                  ; +0xac, 0x18001f5dc\nmov     rax, cs:qword_180025820                                        ; +0xb1, 0x18001f5e1\ntest    rax, rax                                                       ; +0xb8, 0x18001f5e8\njz      short loc_18001F5FB                                            ; +0xbb, 0x18001f5eb\nmov     r8, rsi                                                        ; +0xbd, 0x18001f5ed\nxor     edx, edx                                                       ; +0xc0, 0x18001f5f0\nmov     rcx, r14                                                       ; +0xc2, 0x18001f5f2\ncall    cs:__guard_dispatch_icall_fptr                                 ; +0xc5, 0x18001f5f5\ntest    edi, edi                                                       ; +0xcb, 0x18001f5fb\njz      short loc_18001F604                                            ; +0xcd, 0x18001f5fd\ncmp     edi, 3                                                         ; +0xcf, 0x18001f5ff\njnz     short loc_18001F640                                            ; +0xd2, 0x18001f602\nmov     r8, rsi                                                        ; +0xd4, 0x18001f604\nmov     edx, edi                                                       ; +0xd7, 0x18001f607\nmov     rcx, r14                                                       ; +0xd9, 0x18001f609\ncall    sub_18001F344                                                  ; +0xdc, 0x18001f60c\nmov     ebx, eax                                                       ; +0xe1, 0x18001f611\nmov     [rsp+58h+var_28], eax                                          ; +0xe3, 0x18001f613\ntest    eax, eax                                                       ; +0xe7, 0x18001f617\njz      short loc_18001F640                                            ; +0xe9, 0x18001f619\nmov     rax, cs:qword_180025820                                        ; +0xeb, 0x18001f61b\ntest    rax, rax                                                       ; +0xf2, 0x18001f622\njnz     short loc_18001F62C                                            ; +0xf5, 0x18001f625\nlea     ebx, [rax+1]                                                   ; +0xf7, 0x18001f627\njmp     short loc_18001F63C                                            ; +0xfa, 0x18001f62a\nmov     r8, rsi                                                        ; +0xfc, 0x18001f62c\nmov     edx, edi                                                       ; +0xff, 0x18001f62f\nmov     rcx, r14                                                       ; +0x101, 0x18001f631\ncall    cs:__guard_dispatch_icall_fptr                                 ; +0x104, 0x18001f634\nmov     ebx, eax                                                       ; +0x10a, 0x18001f63a\nmov     [rsp+58h+var_28], ebx                                          ; +0x10c, 0x18001f63c\njmp     short loc_18001F648                                            ; +0x110, 0x18001f640\nxor     ebx, ebx                                                       ; +0x112, 0x18001f642\nmov     [rsp+58h+var_28], ebx                                          ; +0x114, 0x18001f644\nmov     eax, ebx                                                       ; +0x118, 0x18001f648\nmov     rbx, [rsp+58h+arg_18]                                          ; +0x11a, 0x18001f64a\nadd     rsp, 40h                                                       ; +0x11f, 0x18001f64f\npop     r14                                                            ; +0x123, 0x18001f653\npop     rdi                                                            ; +0x125, 0x18001f655\npop     rsi                                                            ; +0x126, 0x18001f656\nretn                                                                   ; +0x127, 0x18001f657", "xrefs": ["<???> @ 0x18001f52f", "DllEntryPoint @ 0x18001f690", "<???> @ 0x18004d10c"], "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"}