{"type": "func", "start": 6443366656, "end": 6443366795, "name": "__scrt_initialize_onexit_tables", "pseudocode": "// \n// __scrt_initialize_onexit_tables from 0x1800df900 to 0x1800df98b (139 bytes)\n// \n// 2 xrefs:\n// > __scrt_dllmain_before_initialize_c @ 0x1800df7ce\n// > <???> @ 0x1801bb088\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\nchar __fastcall _scrt_initialize_onexit_tables(unsigned int a1)\n{\n  int v2; // eax\n\n  if ( !byte_1801AC6C9 )\n  {\n    if ( a1 > 1 )\n    {\n      _scrt_fastfail(5);\n      JUMPOUT(0x1800DF98ALL);\n    }\n    LOBYTE(v2) = __uncaught_exception();\n    if ( !v2 || a1 )\n    {\n      *(__m128i *)&Table._first = _mm_load_si128((const __m128i *)&xmmword_180122920);\n      Table._end = (_PVFV *)-1LL;\n      *(_OWORD *)&stru_1801AC6E8._first = *(_OWORD *)&Table._first;\n      stru_1801AC6E8._end = (_PVFV *)-1LL;\n    }\n    else if ( initialize_onexit_table(&Table) || initialize_onexit_table(&stru_1801AC6E8) )\n    {\n      return 0;\n    }\n    byte_1801AC6C9 = 1;\n  }\n  return 1;\n}", "assembly": "; \n; __scrt_initialize_onexit_tables from 0x1800df900 to 0x1800df98b (139 bytes)\n; \n; 2 xrefs:\n; > __scrt_dllmain_before_initialize_c @ 0x1800df7ce\n; > <???> @ 0x1801bb088\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\npush    rbx                                                            ; +0x0, 0x1800df900\nsub     rsp, 20h                                                       ; +0x2, 0x1800df902\ncmp     cs:byte_1801AC6C9, 0                                           ; +0x6, 0x1800df906\nmov     ebx, ecx                                                       ; +0xd, 0x1800df90d\njnz     short loc_1800DF978                                            ; +0xf, 0x1800df90f\ncmp     ecx, 1                                                         ; +0x11, 0x1800df911\nja      short loc_1800DF980                                            ; +0x14, 0x1800df914\ncall    ?__uncaught_exception@@YA_NXZ                                  ; +0x16, 0x1800df916\ntest    eax, eax                                                       ; +0x1b, 0x1800df91b\njz      short loc_1800DF947                                            ; +0x1d, 0x1800df91d\ntest    ebx, ebx                                                       ; +0x1f, 0x1800df91f\njnz     short loc_1800DF947                                            ; +0x21, 0x1800df921\nlea     rcx, Table; Table                                              ; +0x23, 0x1800df923\ncall    _initialize_onexit_table                                       ; +0x2a, 0x1800df92a\ntest    eax, eax                                                       ; +0x2f, 0x1800df92f\njnz     short loc_1800DF943                                            ; +0x31, 0x1800df931\nlea     rcx, stru_1801AC6E8; Table                                     ; +0x33, 0x1800df933\ncall    _initialize_onexit_table                                       ; +0x3a, 0x1800df93a\ntest    eax, eax                                                       ; +0x3f, 0x1800df93f\njz      short loc_1800DF971                                            ; +0x41, 0x1800df941\nxor     al, al                                                         ; +0x43, 0x1800df943\njmp     short loc_1800DF97A                                            ; +0x45, 0x1800df945\nmovdqa  xmm0, cs:xmmword_180122920                                     ; +0x47, 0x1800df947\nor      rax, 0FFFFFFFFFFFFFFFFh                                        ; +0x4f, 0x1800df94f\nmovdqu  xmmword ptr cs:Table._first, xmm0                              ; +0x53, 0x1800df953\nmov     cs:Table._end, rax                                             ; +0x5b, 0x1800df95b\nmovdqu  xmmword ptr cs:stru_1801AC6E8._first, xmm0                     ; +0x62, 0x1800df962\nmov     cs:stru_1801AC6E8._end, rax                                    ; +0x6a, 0x1800df96a\nmov     cs:byte_1801AC6C9, 1                                           ; +0x71, 0x1800df971\nmov     al, 1                                                          ; +0x78, 0x1800df978\nadd     rsp, 20h                                                       ; +0x7a, 0x1800df97a\npop     rbx                                                            ; +0x7e, 0x1800df97e\nretn                                                                   ; +0x7f, 0x1800df97f\nmov     ecx, 5                                                         ; +0x80, 0x1800df980\ncall    __scrt_fastfail                                                ; +0x85, 0x1800df985\ndb 0CCh                                                                ; +0x8a, 0x1800df98a", "xrefs": ["__scrt_dllmain_before_initialize_c @ 0x1800df7ce", "<???> @ 0x1801bb088"], "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"}