Function at 0x1400305c0
Capabilities:
Terminate process

Disassembly:
push rdi
sub rsp, 0x70
mov qword [rsp + 0x30], 0xfffffffffffffffe
mov qword [rsp + 0x80], rbx
mov rdi, rcx
mov rcx, qword [0x140181538]
mov rax, qword [rcx]
call qword [rax + 0xc8]
test eax, eax
je 0x140030764
mov rcx, qword [rdi + 0x5f8]
test rcx, rcx
je 0x14003062f
call qword [sym.imp.USER32.dll_IsMenu]
test eax, eax
je 0x140030610
call qword [sym.imp.USER32.dll_EndMenu]
jmp 0x14003062f
xor ecx, ecx
call qword [sym.imp.soui.dll_public:_static_void___cdecl_SOUI::SMenuEx::ExitPopupMenu_int_]
mov rcx, qword [rdi + 0x5f8]
add rcx, 8
xor edx, edx
lea r8d, [rdx + 1]
call qword [sym.imp.soui.dll_public:_void___cdecl_SOUI::SWindow::SetVisible_int__int____ptr64]
lea rcx, [rdi + 8]
or r8d, 0xffffffff
lea rdx, [0x140128a20]
call qword [sym.imp.soui.dll_public:_class_SOUI::SWindow____ptr64___cdecl_SOUI::SWindow::FindChildByName_wchar_t_const____ptr64__int____ptr64]
mov qword [rsp + 0x88], rax
mov eax, dword [0x14018ada8]
test eax, eax
je 0x1400306bc
call qword [sym.imp.USER32.dll_GetActiveWindow]
mov rbx, rax
mov ecx, dword [0x14018ada8]
test ecx, ecx
je 0x1400306bc
nop dword [rax]
mov rcx, rbx
call qword [sym.imp.USER32.dll_IsWindowVisible]
test eax, eax
je 0x1400306bc
mov dword [rsp + 0x20], 1
xor r9d, r9d
xor r8d, r8d
xor edx, edx
lea rcx, [rsp + 0x38]
call qword [sym.imp.USER32.dll_PeekMessageW]
test eax, eax
je 0x1400306b2
lea rcx, [rsp + 0x38]
call qword [sym.imp.USER32.dll_TranslateMessage]
lea rcx, [rsp + 0x38]
call qword [sym.imp.USER32.dll_DispatchMessageW]
mov eax, dword [0x14018ada8]
test eax, eax
jne 0x140030670
mov dword [0x14018ada8], 1
mov rbx, qword [rsp + 0x88]
test rbx, rbx
je 0x1400306e5
mov edx, 1
mov r8d, edx
mov rcx, rbx
call qword [sym.imp.soui.dll_public:_void___cdecl_SOUI::SWindow::SetVisible_int__int____ptr64]
nop
lea rcx, [rsp + 0x90]
call fcn.140056030
nop
mov dword [rsp + 0x20], 0x64
mov r9d, 0x44
mov r8, qword [rax]
lea rdx, str.2301053
mov rcx, qword [rdi + 0x3a8]
call qword [sym.imp.soui.dll_long_long___int64____cdecl_SOUI::SMessageBox_struct_HWND______ptr64__wchar_t_const____ptr64__wchar_t_const____ptr64__unsigned_int__int_]
cmp rax, 6
sete dil
lea rcx, [rsp + 0x90]
call qword [sym.imp.mfc90u.dll_CView::CView]
test dil, dil
je 0x14003073d
or ecx, 0xffffffff
call qword [sym.imp.KERNEL32.dll_ExitProcess]
mov dword [0x14018ada8], 0
test rbx, rbx
je 0x14003087f
xor edx, edx
lea r8d, [rdx + 1]
mov rcx, rbx
call qword [sym.imp.soui.dll_public:_void___cdecl_SOUI::SWindow::SetVisible_int__int____ptr64]
jmp 0x14003087f
xor edx, edx
mov rcx, qword [rdi + 0x3a8]
call qword [sym.imp.USER32.dll_ShowWindow]
mov dword [rdi + 0x968], 1
mov rcx, qword [0x140181538]
mov rax, qword [rcx]
call qword [rax + 0xb0]
mov rcx, qword [0x140181538]
mov rax, qword [rcx]
call qword [rax + 0xc8]
test eax, eax
je 0x1400307b6
mov rcx, qword [0x140181538]
mov rax, qword [rcx]
mov edx, 1
call qword [rax + 0xd0]
mov rcx, qword [rdi + 0x680]
add rcx, 0x40
mov rax, qword [rcx]
mov ebx, 0xffff0000
mov rdx, rbx
call qword [rax + reloc.Languages.dll_Ordinal_8]
mov rcx, qword [rdi + 0x678]
add rcx, 0x40
mov rax, qword [rcx]
mov rdx, rbx
call qword [rax + reloc.Languages.dll_Ordinal_8]
lea rcx, [0x14018b030]
call fcn.14003ee10
lea rcx, [rdi + 0xa58]
call qword [sym.imp.soui.dll_public:_int___cdecl_SOUI::SHostWnd::DestroyWindow_void____ptr64]
mov rcx, rdi
call qword [sym.imp.soui.dll_public:_int___cdecl_SOUI::SHostWnd::DestroyWindow_void____ptr64]
mov rcx, qword [0x140181538]
test rcx, rcx
je 0x140030825
mov rax, qword [rcx]
call qword [rax + 0xf8]
mov qword [0x140181538], 0
mov rcx, qword [rdi + 0x658]
test rcx, rcx
je 0x140030837
mov rax, qword [rcx]
call qword [rax + reloc.Languages.dll_Ordinal_8]
mov rcx, qword [rdi + 0x650]
test rcx, rcx
je 0x140030849
mov rax, qword [rcx]
call qword [rax + reloc.Languages.dll_Ordinal_8]
mov rcx, qword [rdi + 0x688]
test rcx, rcx
je 0x14003085b
mov rax, qword [rcx]
call qword [rax + reloc.Languages.dll_Ordinal_8]
mov rcx, qword [rdi + 0x680]
test rcx, rcx
je 0x14003086d
mov rax, qword [rcx]
call qword [rax + reloc.Languages.dll_Ordinal_8]
mov rcx, qword [rdi + 0x678]
test rcx, rcx
je 0x14003087f
mov rax, qword [rcx]
call qword [rax + reloc.Languages.dll_Ordinal_8]
mov rbx, qword [rsp + 0x80]
add rsp, 0x70
pop rdi
ret