Function at 0x4950f0
Capabilities:
Hide graphical window
Terminate process

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x512417
mov eax, dword fs:[0]
push eax
sub esp, 0xa4
mov eax, dword [0x567040]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
mov dword [ebp - 0x5c], esi
mov eax, dword [ebp + 0x14]
mov ebx, dword [ebp + 0x10]
mov edi, dword [ebp + 0xc]
mov dword [eax], 1
test ebx, ebx
je 0x495147
call fcn.00456350
cmp dword [eax + 8], edi
je 0x495147
xor eax, eax
jmp 0x495637
mov esi, dword [esi + 0x248]
call fcn.0041cf40
push 0
push esi
call dword [0x572330]
add esp, 8
push 0
call fcn.00472580
mov ecx, eax
call fcn.00472ca0
call fcn.0041cf40
mov esi, dword [eax + 0x28]
test esi, esi
je 0x49518e
mov esi, dword [esi + 4]
test esi, esi
je 0x49518e
nop
mov ecx, dword [esi + 8]
mov esi, dword [esi]
mov eax, dword [ecx]
call dword [eax + 0x10]
test esi, esi
jne 0x495180
cmp ebx, 2
je 0x4951a0
push edi
call fcn.004645c0
mov ecx, eax
call fcn.00465640
call fcn.00467720
push 0
push 0
push 0
push dword [eax + 0x248]
mov dword [eax + 0x398], 1
call dword [sym.imp.USER32.dll_PostMessageW]
push 0
call fcn.004691b0
mov ecx, eax
call fcn.004692e0
call fcn.004691b0
mov ebx, eax
lea ecx, [ebx + 0x23c]
call dword [sym.imp.soui.dll_public:_int___thiscall_SOUI::CSimpleWnd::IsWindowVisible_void_const]
lea ecx, [ebx + 0x23c]
call dword [sym.imp.soui.dll_public:_int___thiscall_SOUI::CSimpleWnd::IsWindowVisible_void_const]
or edi, 0xffffffff
test eax, eax
je 0x495245
mov ecx, dword [0x572864]
test ecx, ecx
jne 0x495228
push 0xc
call fcn.004d3aeb
mov ecx, eax
add esp, 4
mov dword [ebp - 0x58], ecx
mov dword [0x572864], ecx
mov dword [ecx], vtable.SOUI::SMantleCenter.0
mov dword [ecx + 4], 0
mov dword [ecx + 8], 0
cmp dword [ecx + 4], 0
je 0x495245
mov eax, edi
lock xadd dword [ecx + 8], eax
dec eax
jne 0x495245
mov ecx, dword [ecx + 4]
push 1
push 0
call dword [sym.imp.soui.dll_public:_void___thiscall_SOUI::SWindow::SetVisible_int__int_]
push 0
push dword [ebx + 0x248]
call dword [sym.imp.USER32.dll_ShowWindow]
call fcn.00460bf0
mov ebx, eax
mov ecx, dword [ebx + 0x390]
test ecx, ecx
je 0x495270
add ecx, 0x174
call dword [sym.imp.utilities.dll_public:_void___thiscall_SOUI::TStringT_wchar_t__struct_SOUI::wchar_traits_::Empty_void_]
lea ecx, [ebx + 0x23c]
call dword [sym.imp.soui.dll_public:_int___thiscall_SOUI::CSimpleWnd::IsWindowVisible_void_const]
lea ecx, [ebx + 0x23c]
call dword [sym.imp.soui.dll_public:_int___thiscall_SOUI::CSimpleWnd::IsWindowVisible_void_const]
test eax, eax
je 0x4952d6
mov eax, dword [0x572864]
test eax, eax
jne 0x4952bb
push 0xc
call fcn.004d3aeb
mov dword [ebp - 0x58], eax
add esp, 4
mov dword [0x572864], eax
mov dword [eax], vtable.SOUI::SMantleCenter.0
mov dword [eax + 4], 0
mov dword [eax + 8], 0
cmp dword [eax + 4], 0
je 0x4952d6
lock xadd dword [eax + 8], edi
dec edi
jne 0x4952d6
mov ecx, dword [eax + 4]
push 1
push 0
call dword [sym.imp.soui.dll_public:_void___thiscall_SOUI::SWindow::SetVisible_int__int_]
push 0
push dword [ebx + 0x248]
call dword [sym.imp.USER32.dll_ShowWindow]
call fcn.0045ec40
mov ecx, dword [eax + 4]
test ecx, ecx
je 0x4952f8
mov eax, dword [ecx]
call dword [eax + 0xa0]
mov edi, dword [ebp - 0x5c]
mov esi, dword [edi + 0x3e4]
test esi, esi
je 0x495573
mov eax, dword [esi + 0x1e0]
sub eax, 1
js 0x495573
mov edi, dword [esi + 0x174]
test edi, edi
je 0x495570
push esi
lea ecx, [ebp - 0x88]
call dword [sym.imp.soui.dll_public:_void___thiscall_SOUI::EventArgs::constructor_class_SOUI::SObjectImpl_struct_SOUI::IObject___]
mov dword [ebp - 0x88], 0x529840
mov dword [ebp - 0x80], 0x529868
mov dword [ebp - 4], 0
lea ecx, [ebp - 0x88]
mov eax, dword [esi]
push ecx
mov ecx, esi
mov dword [ebp - 0x60], 0
mov dword [ebp - 0x68], edi
mov dword [ebp - 0x64], 0
call dword [eax + 0x94]
cmp dword [ebp - 0x60], 0
jne 0x49555d
mov eax, dword [esi]
lea ecx, [ebp - 0x20]
push ecx
push dword [esi + 0x174]
xorps xmm0, xmm0
mov ecx, esi
movups xmmword [ebp - 0x20], xmm0
call dword [eax + 0x110]
push 1
lea eax, [ebp - 0x20]
mov ecx, esi
push eax
call dword [sym.imp.soui.dll_public:_void___thiscall_SOUI::SWindow::InvalidateRect_class_SOUI::CRect_const___int_]
mov ecx, dword [esi + 0x1ec]
test ecx, ecx
je 0x4953b5
mov ecx, dword [ecx + 0x198]
call fcn.00451e20
mov eax, dword [esi + 0x1f0]
test eax, eax
je 0x4953ce
mov ecx, dword [eax + 0x1ac]
test ecx, ecx
je 0x4953ce
call fcn.00451e20
cmp dword [esi + 0x1f8], 0
je 0x495487
push 1
mov ecx, esi
call dword [sym.imp.soui.dll_public:_int___thiscall_SOUI::SWindow::IsVisible_int_]
test eax, eax
je 0x495487
cmp edi, 0xffffffff
je 0x4954c2
push ecx
push str.main_game_tab_ctrl
mov ecx, esi
call fcn.00452c00
test eax, eax
je 0x49544a
cmp dword [eax + 0x174], 0
jne 0x49544a
push 0x1b0
call fcn.004d3aeb
add esp, 4
mov dword [ebp - 0x58], eax
mov byte [ebp - 4], 1
mov ecx, eax
push dword [esi + 0x200]
push dword [esi + 0x1f8]
push 0
push edi
push esi
call fcn.00451430
mov byte [ebp - 4], 0
mov dword [esi + 0x1f0], eax
jmp 0x4954e3
push 0x19c
call fcn.004d3aeb
add esp, 4
mov dword [ebp - 0x58], eax
mov byte [ebp - 4], 2
mov ecx, eax
push dword [esi + 0x200]
push dword [esi + 0x1fc]
push dword [esi + 0x1f8]
push 0
push edi
push esi
call fcn.00450b20
mov byte [ebp - 4], 0
mov dword [esi + 0x1ec], eax
jmp 0x4954e3
cmp edi, 0xffffffff
je 0x4954c2
test edi, edi
js 0x4954b3
cmp edi, dword [esi + 0x1e0]
jge 0x4954b3
mov eax, dword [esi + 0x1dc]
mov ecx, edi
mov ebx, dword [sym.imp.soui.dll_public:_void___thiscall_SOUI::SWindow::SetVisible_int__int_]
add ecx, ecx
push 1
push 0
mov ecx, dword [eax + ecx*8]
call ebx
jmp 0x4954c8
mov ebx, dword [sym.imp.soui.dll_public:_void___thiscall_SOUI::SWindow::SetVisible_int__int_]
xor ecx, ecx
push 1
push ecx
call ebx
jmp 0x4954c8
mov ebx, dword [sym.imp.soui.dll_public:_void___thiscall_SOUI::SWindow::SetVisible_int__int_]
cmp dword [esi + 0x1e0], 0
jg 0x4954d5
xor ecx, ecx
jmp 0x4954dd
mov eax, dword [esi + 0x1dc]
mov ecx, dword [eax]
push 1
push 1
call ebx
mov eax, dword [esi]
lea ecx, [ebp - 0x20]
push ecx
push 0
mov ecx, esi
mov dword [esi + 0x174], 0
call dword [eax + 0x110]
push 1
lea eax, [ebp - 0x20]
mov ecx, esi
push eax
call dword [sym.imp.soui.dll_public:_void___thiscall_SOUI::SWindow::InvalidateRect_class_SOUI::CRect_const___int_]
push esi
lea ecx, [ebp - 0xb0]
call dword [sym.imp.soui.dll_public:_void___thiscall_SOUI::EventArgs::constructor_class_SOUI::SObjectImpl_struct_SOUI::IObject___]
mov dword [ebp - 0xb0], 0x5293e4
mov dword [ebp - 0xa8], 0x5298fc
mov byte [ebp - 4], 3
lea ecx, [ebp - 0xb0]
mov eax, dword [esi]
push ecx
mov ecx, esi
mov dword [ebp - 0x8c], 0
mov dword [ebp - 0x90], edi
call dword [eax + 0x94]
lea ecx, [ebp - 0xb0]
call dword [sym.imp.soui.dll_public_virtual:_void___thiscall_SOUI::EventArgs::destructor_void_]
lea ecx, [ebp - 0x88]
mov dword [ebp - 4], 0xffffffff
call dword [sym.imp.soui.dll_public_virtual:_void___thiscall_SOUI::EventArgs::destructor_void_]
mov edi, dword [ebp - 0x5c]
call fcn.00456350
mov esi, eax
xor cl, cl
lea edx, [esi + 4]
xchg byte [edx], cl
lea ecx, [ebp - 0x54]
call fcn.00455fe0
mov ebx, eax
mov dword [ebp - 4], 4
lea edx, [ebx + 8]
mov ecx, dword [ebx]
mov dword [esi + 8], ecx
mov ecx, dword [ebx + 4]
mov dword [esi + 0xc], ecx
lea ecx, [esi + 0x10]
cmp ecx, edx
je 0x4955ba
cmp dword [edx + 0x14], 7
mov eax, edx
jbe 0x4955b1
mov eax, dword [edx]
push dword [edx + 0x10]
push eax
call fcn.00416930
mov al, byte [ebx + 0x20]
lea ecx, [esi + 0x2c]
mov byte [esi + 0x28], al
lea eax, [ebx + 0x24]
push eax
call fcn.00456400
mov eax, dword [ebx + 0x30]
lea ecx, [ebp - 0x30]
mov dword [esi + 0x38], eax
call fcn.004024d0
lea ecx, [ebp - 0x4c]
call fcn.00414ec0
mov ebx, dword [edi + 0x444]
mov esi, dword [edi + 0x440]
cmp esi, ebx
je 0x49561e
push dword [esi]
push 0
push 1
call dword [sym.imp.KERNEL32.dll_OpenProcess]
mov edi, eax
test edi, edi
je 0x495614
push 0
push edi
call dword [sym.imp.KERNEL32.dll_TerminateProcess]
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
add esi, 4
cmp esi, ebx
jne 0x4955f2
mov edi, dword [ebp - 0x5c]
mov eax, dword [edi + 0x440]
cmp eax, dword [edi + 0x444]
je 0x495632
mov dword [edi + 0x444], eax
mov eax, 1
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.004d3a9e
mov esp, ebp
pop ebp
ret 0x10