{"type": "func", "start": 6443367724, "end": 6443368002, "name": "dllmain_crt_process_attach", "pseudocode": "// \n// dllmain_crt_process_attach from 0x1800dfd2c to 0x1800dfe42 (278 bytes)\n// \n// 3 xrefs:\n// > dllmain_crt_dispatch @ 0x1800dfd18\n// > <???> @ 0x1801bb0e8\n// > <???> @ 0x1801bb0f4\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 dllmain_crt_process_attach(HINSTANCE a1, void *const a2)\n{\n  char v2; // bl\n  char v3; // di\n  _QWORD *v4; // rax\n\n  if ( !_scrt_initialize_crt(0) )\n    return 0;\n  v2 = _scrt_acquire_startup_lock();\n  v3 = 1;\n  if ( dword_1801AC6B8 )\n  {\n    _scrt_fastfail(7);\n    __debugbreak();\n    JUMPOUT(0x1800DFE42LL);\n  }\n  dword_1801AC6B8 = 1;\n  if ( _scrt_dllmain_before_initialize_c() )\n  {\n    sub_1800E0468();\n    sub_1800DF73C();\n    _scrt_initialize_default_local_stdio_options();\n    if ( !initterm_e((_PIFV *)&First, (_PIFV *)&Last) )\n    {\n      if ( _scrt_dllmain_after_initialize_c() )\n      {\n        initterm((_PVFV *)&qword_1800E51D0, (_PVFV *)&qword_1800E5348);\n        dword_1801AC6B8 = 2;\n        v3 = 0;\n      }\n    }\n  }\n  _scrt_release_startup_lock(v2);\n  if ( v3 )\n    return 0;\n  v4 = (_QWORD *)sub_1800E0460();\n  if ( *v4 )\n  {\n    if ( _scrt_is_nonwritable_in_current_image((__int64)v4) )\n      _guard_dispatch_icall_fptr();\n  }\n  ++dword_1801AC704;\n  return 1;\n}", "assembly": "; \n; dllmain_crt_process_attach from 0x1800dfd2c to 0x1800dfe42 (278 bytes)\n; \n; 3 xrefs:\n; > dllmain_crt_dispatch @ 0x1800dfd18\n; > <???> @ 0x1801bb0e8\n; > <???> @ 0x1801bb0f4\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_0], rbx                                               ; +0x0, 0x1800dfd2c\nmov     [rsp+arg_8], rsi                                               ; +0x5, 0x1800dfd31\nmov     [rsp+arg_18], rdi                                              ; +0xa, 0x1800dfd36\npush    r14                                                            ; +0xf, 0x1800dfd3b\nsub     rsp, 20h                                                       ; +0x11, 0x1800dfd3d\nmov     rsi, rdx                                                       ; +0x15, 0x1800dfd41\nmov     r14, rcx                                                       ; +0x18, 0x1800dfd44\nxor     ecx, ecx                                                       ; +0x1b, 0x1800dfd47\ncall    __scrt_initialize_crt                                          ; +0x1d, 0x1800dfd49\ntest    al, al                                                         ; +0x22, 0x1800dfd4e\njz      loc_1800DFE1E                                                  ; +0x24, 0x1800dfd50\ncall    __scrt_acquire_startup_lock                                    ; +0x2a, 0x1800dfd56\nmov     bl, al                                                         ; +0x2f, 0x1800dfd5b\nmov     [rsp+28h+arg_10], al                                           ; +0x31, 0x1800dfd5d\nmov     dil, 1                                                         ; +0x35, 0x1800dfd61\ncmp     cs:dword_1801AC6B8, 0                                          ; +0x38, 0x1800dfd64\njnz     loc_1800DFE36                                                  ; +0x3f, 0x1800dfd6b\nmov     cs:dword_1801AC6B8, 1                                          ; +0x45, 0x1800dfd71\ncall    __scrt_dllmain_before_initialize_c                             ; +0x4f, 0x1800dfd7b\ntest    al, al                                                         ; +0x54, 0x1800dfd80\njz      short loc_1800DFDD3                                            ; +0x56, 0x1800dfd82\ncall    sub_1800E0468                                                  ; +0x58, 0x1800dfd84\ncall    sub_1800DF73C                                                  ; +0x5d, 0x1800dfd89\ncall    __scrt_initialize_default_local_stdio_options                  ; +0x62, 0x1800dfd8e\nlea     rdx, Last; Last                                                ; +0x67, 0x1800dfd93\nlea     rcx, First; First                                              ; +0x6e, 0x1800dfd9a\ncall    _initterm_e                                                    ; +0x75, 0x1800dfda1\ntest    eax, eax                                                       ; +0x7a, 0x1800dfda6\njnz     short loc_1800DFDD3                                            ; +0x7c, 0x1800dfda8\ncall    __scrt_dllmain_after_initialize_c                              ; +0x7e, 0x1800dfdaa\ntest    al, al                                                         ; +0x83, 0x1800dfdaf\njz      short loc_1800DFDD3                                            ; +0x85, 0x1800dfdb1\nlea     rdx, qword_1800E5348; Last                                     ; +0x87, 0x1800dfdb3\nlea     rcx, qword_1800E51D0; First                                    ; +0x8e, 0x1800dfdba\ncall    _initterm                                                      ; +0x95, 0x1800dfdc1\nmov     cs:dword_1801AC6B8, 2                                          ; +0x9a, 0x1800dfdc6\nxor     dil, dil                                                       ; +0xa4, 0x1800dfdd0\nmov     cl, bl                                                         ; +0xa7, 0x1800dfdd3\ncall    __scrt_release_startup_lock                                    ; +0xa9, 0x1800dfdd5\ntest    dil, dil                                                       ; +0xae, 0x1800dfdda\njnz     short loc_1800DFE1E                                            ; +0xb1, 0x1800dfddd\ncall    sub_1800E0460                                                  ; +0xb3, 0x1800dfddf\nmov     rbx, rax                                                       ; +0xb8, 0x1800dfde4\ncmp     qword ptr [rax], 0                                             ; +0xbb, 0x1800dfde7\njz      short loc_1800DFE11                                            ; +0xbf, 0x1800dfdeb\nmov     rcx, rax                                                       ; +0xc1, 0x1800dfded\ncall    __scrt_is_nonwritable_in_current_image                         ; +0xc4, 0x1800dfdf0\ntest    al, al                                                         ; +0xc9, 0x1800dfdf5\njz      short loc_1800DFE11                                            ; +0xcb, 0x1800dfdf7\nmov     r8, rsi                                                        ; +0xcd, 0x1800dfdf9\nmov     edx, 2                                                         ; +0xd0, 0x1800dfdfc\nmov     rcx, r14                                                       ; +0xd5, 0x1800dfe01\nmov     rax, [rbx]                                                     ; +0xd8, 0x1800dfe04\nmov     r9, cs:__guard_dispatch_icall_fptr                             ; +0xdb, 0x1800dfe07\ncall    r9 ; _guard_dispatch_icall_nop                                 ; +0xe2, 0x1800dfe0e\ninc     cs:dword_1801AC704                                             ; +0xe5, 0x1800dfe11\nmov     eax, 1                                                         ; +0xeb, 0x1800dfe17\njmp     short loc_1800DFE20                                            ; +0xf0, 0x1800dfe1c\nxor     eax, eax                                                       ; +0xf2, 0x1800dfe1e\nmov     rbx, [rsp+28h+arg_0]                                           ; +0xf4, 0x1800dfe20\nmov     rsi, [rsp+28h+arg_8]                                           ; +0xf9, 0x1800dfe25\nmov     rdi, [rsp+28h+arg_18]                                          ; +0xfe, 0x1800dfe2a\nadd     rsp, 20h                                                       ; +0x103, 0x1800dfe2f\npop     r14                                                            ; +0x107, 0x1800dfe33\nretn                                                                   ; +0x109, 0x1800dfe35\nmov     ecx, 7                                                         ; +0x10a, 0x1800dfe36\ncall    __scrt_fastfail                                                ; +0x10f, 0x1800dfe3b\nnop                                                                    ; +0x114, 0x1800dfe40\nint     3; Trap to Debugger                                            ; +0x115, 0x1800dfe41", "xrefs": ["dllmain_crt_dispatch @ 0x1800dfd18", "<???> @ 0x1801bb0e8", "<???> @ 0x1801bb0f4"], "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"}