{"type": "func", "start": 6443702788, "end": 6443702879, "name": "try_cor_exit_process", "pseudocode": "// \n// try_cor_exit_process from 0x180131a04 to 0x180131a5f (91 bytes)\n// \n// 3 xrefs:\n// > common_exit @ 0x18013195e\n// > exit_or_terminate_process @ 0x1801319f4\n// > <???> @ 0x180202f30\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 10:54:59 +0000\n// \n\nvoid __fastcall try_cor_exit_process(unsigned int a1)\n{\n  FARPROC CorExitProcess; // rax\n  HMODULE phModule; // [rsp+38h] [rbp+10h] BYREF\n\n  phModule = nullptr;\n  if ( GetModuleHandleExW(0, L\"mscoree.dll\", &phModule) )\n  {\n    CorExitProcess = GetProcAddress(phModule, \"CorExitProcess\");\n    if ( CorExitProcess )\n      ((void (__fastcall *)(_QWORD))CorExitProcess)(a1);\n  }\n  if ( phModule )\n    FreeLibrary(phModule);\n}", "assembly": "; \n; try_cor_exit_process from 0x180131a04 to 0x180131a5f (91 bytes)\n; \n; 3 xrefs:\n; > common_exit @ 0x18013195e\n; > exit_or_terminate_process @ 0x1801319f4\n; > <???> @ 0x180202f30\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 10:54:59 +0000\n; \npush    rbx                                                            ; +0x0, 0x180131a04\nsub     rsp, 20h                                                       ; +0x2, 0x180131a06\nand     [rsp+28h+phModule], 0                                          ; +0x6, 0x180131a0a\nlea     r8, [rsp+28h+phModule]; phModule                               ; +0xc, 0x180131a10\nmov     ebx, ecx                                                       ; +0x11, 0x180131a15\nlea     rdx, aMscoreeDll                                               ; +0x13, 0x180131a17\nxor     ecx, ecx; dwFlags                                              ; +0x1a, 0x180131a1e\ncall    cs:GetModuleHandleExW                                          ; +0x1c, 0x180131a20\ntest    eax, eax                                                       ; +0x22, 0x180131a26\njz      short loc_180131A49                                            ; +0x24, 0x180131a28\nmov     rcx, [rsp+28h+phModule]; hModule                               ; +0x26, 0x180131a2a\nlea     rdx, aCorexitprocess                                           ; +0x2b, 0x180131a2f\ncall    cs:GetProcAddress                                              ; +0x32, 0x180131a36\ntest    rax, rax                                                       ; +0x38, 0x180131a3c\njz      short loc_180131A49                                            ; +0x3b, 0x180131a3f\nmov     ecx, ebx                                                       ; +0x3d, 0x180131a41\ncall    cs:__guard_dispatch_icall_fptr                                 ; +0x3f, 0x180131a43\nmov     rcx, [rsp+28h+phModule]; hLibModule                            ; +0x45, 0x180131a49\ntest    rcx, rcx                                                       ; +0x4a, 0x180131a4e\njz      short loc_180131A59                                            ; +0x4d, 0x180131a51\ncall    cs:FreeLibrary                                                 ; +0x4f, 0x180131a53\nadd     rsp, 20h                                                       ; +0x55, 0x180131a59\npop     rbx                                                            ; +0x59, 0x180131a5d\nretn                                                                   ; +0x5a, 0x180131a5e", "xrefs": ["common_exit @ 0x18013195e", "exit_or_terminate_process @ 0x1801319f4", "<???> @ 0x180202f30"], "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"}