Function at 0x407d40
Capabilities:
Hide graphical window
Terminate process

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x41e13d
mov eax, dword fs:[0]
push eax
sub esp, 0x244
push esi
push edi
mov eax, dword [0x42e040]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, ecx
mov dword [ebp - 0x14], edi
cmp dword [ebp + 0x1c], 0
jne 0x408175
mov esi, dword [ebp + 0xc]
mov eax, dword [ebp + 0x10]
cmp esi, 2
jne 0x407e40
mov eax, dword [edi + 0x248]
mov dword [edi + 0x38c], 1
mov dword [ebp - 0x14], eax
mov dword [ebp - 0x18], eax
call fcn.00408e70
cmp dword [ebp - 0x14], 0
mov dword [ebp - 0x10], eax
je 0x407e33
lea esi, [eax + 4]
push esi
call fcn.00409daf
add esp, 4
test eax, eax
jne 0x40818a
mov eax, dword [esi + 0x2c]
cmp eax, 0x7fffffff
je 0x408191
mov eax, dword [ebp - 0x10]
lea ecx, [ebp - 0x18]
push ecx
lea ecx, [ebp - 0x24]
push ecx
lea ecx, [eax + 0x34]
call fcn.004096d0
mov eax, dword [ebp - 0x1c]
cmp byte [eax + 0xd], 0
jne 0x407e27
mov ecx, dword [ebp - 0x14]
cmp ecx, dword [eax + 0x10]
jb 0x407e27
mov ecx, dword [ebp - 0x10]
add ecx, 0x34
cmp eax, dword [ecx]
je 0x407e27
push eax
call fcn.004092c0
push 0x20
push eax
call fcn.0040a1c1
push esi
call fcn.00409dc0
mov esi, dword [ebp + 0xc]
add esp, 0xc
mov ecx, edi
call dword [sym.imp.soui.dll_protected:_void___thiscall_SOUI::SHostWnd::OnDestroy_void_]
jmp 0x4080ef
push esi
call fcn.00409dc0
mov esi, dword [ebp + 0xc]
add esp, 4
mov ecx, edi
call dword [sym.imp.soui.dll_protected:_void___thiscall_SOUI::SHostWnd::OnDestroy_void_]
jmp 0x4080ef
cmp esi, 0x110
jne 0x407e64
sub esp, 8
mov dword [edi + 0x38c], 1
call fcn.004082d0
mov ecx, dword [ebp + 0x18]
mov dword [ecx], eax
jmp 0x4080f8
cmp esi, 0x10
jne 0x407fc1
neg ecx
mov dword [edi + 0x38c], 1
lea eax, [edi + 0x388]
mov dword [0x430194], 0
sbb ecx, ecx
and ecx, eax
mov eax, dword [edi]
push ecx
mov ecx, edi
mov eax, dword [eax + 0x74]
call eax
mov ecx, eax
call dword [sym.imp.soui.dll_public:_int___thiscall_SOUI::SMessageLoop::RemoveIdleHandler_struct_SOUI::IIdleHandler__]
call dword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
mov dword [ebp - 0x18], eax
mov dword [ebp - 0x24], 0
mov dword [ebp - 0x20], 0
mov dword [ebp - 0x1c], 0
sub esp, 0x18
mov dword [ebp - 4], 0
mov ecx, esp
xorps xmm0, xmm0
push 0xe
movups xmmword [ecx], xmm0
push str.subprocess.exe
mov dword [ecx + 0x10], 0
mov dword [ecx + 0x14], 0
call fcn.00402730
lea edx, [ebp - 0x24]
lea ecx, [ebp - 0x18]
call fcn.00402d40
mov edx, dword [ebp - 0x24]
add esp, 0x18
test al, al
je 0x407f5e
mov eax, edx
mov dword [ebp - 0x10], eax
cmp eax, dword [ebp - 0x20]
je 0x407f5e
nop dword [eax + eax]
mov esi, eax
lea edi, [ebp - 0x250]
mov ecx, 0x8b
rep movsd dword es:[edi], dword [esi]
push dword [ebp - 0x248]
push 0
push 1
call dword [sym.imp.KERNEL32.dll_OpenProcess]
mov esi, eax
test esi, esi
je 0x407f45
push 0
push esi
call dword [sym.imp.KERNEL32.dll_TerminateProcess]
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [ebp - 0x10]
add eax, 0x22c
mov dword [ebp - 0x10], eax
cmp eax, dword [ebp - 0x20]
jne 0x407f10
mov edi, dword [ebp - 0x14]
mov esi, dword [ebp + 0xc]
mov edx, dword [ebp - 0x24]
mov dword [ebp - 4], 0xffffffff
test edx, edx
je 0x407fb0
mov ecx, dword [ebp - 0x1c]
mov eax, 0x75ded953
sub ecx, edx
imul ecx
mov ecx, dword [ebp - 0x24]
sar edx, 8
mov eax, edx
shr eax, 0x1f
add eax, edx
imul edx, eax, 0x22c
mov eax, ecx
cmp edx, 0x1000
jb 0x407fa6
mov ecx, dword [eax - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x40819c
push edx
push ecx
call fcn.0040a1c1
add esp, 8
lea ecx, [edi + 0x23c]
call dword [sym.imp.soui.dll_public:_int___thiscall_SOUI::CSimpleWnd::DestroyWindow_void_]
jmp 0x4080ef
cmp esi, 0x4a
jne 0x408066
mov ecx, dword [ebp + 0x14]
mov eax, 1
mov dword [ebp + 0x1c], eax
test ecx, ecx
jne 0x407ff6
mov eax, dword [ebp + 0x18]
mov dword [eax], ecx
mov eax, 1
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov esp, ebp
pop ebp
ret 0x18
cmp dword [ecx], 0x100
jne 0x408056
mov edi, dword [edi + 0x248]
call dword [sym.imp.USER32.dll_GetForegroundWindow]
push 0
push eax
call dword [sym.imp.USER32.dll_GetWindowThreadProcessId]
call dword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
push 1
push edi
call dword [sym.imp.USER32.dll_ShowWindow]
mov esi, dword [sym.imp.USER32.dll_SetWindowPos]
push 3
push 0
push 0
push 0
push 0
push 0xffffffffffffffff
push edi
call esi
push 3
push 0
push 0
push 0
push 0
push 0xfffffffffffffffe
push edi
call esi
push edi
call dword [sym.imp.USER32.dll_SetForegroundWindow]
mov eax, dword [ebp + 0x1c]
mov edi, dword [ebp - 0x14]
mov esi, dword [ebp + 0xc]
mov ecx, dword [ebp + 0x18]
test eax, eax
mov dword [ecx], 1
jmp 0x4080ff
cmp esi, 0x113
jne 0x408105
mov dword [edi + 0x38c], 1
cmp eax, 0x2717
jne 0x4080a6
mov ecx, dword [edi + 0x3b0]
call fcn.00402c80
test eax, eax
je 0x4080ef
push 0
push 0
push 0x10
push dword [edi + 0x248]
call dword [sym.imp.USER32.dll_PostMessageW]
jmp 0x4080ef
cmp eax, 0x2718
jne 0x4080e5
push eax
call dword [sym.imp.soui.dll_public:_int___thiscall_SOUI::SHostWnd::KillTimer_unsigned_int_]
cmp dword [edi + 0x394], 0
je 0x4080ef
cmp dword [edi + 0x3ac], 7
lea eax, [edi + 0x398]
jbe 0x4080ce
mov eax, dword [eax]
push ecx
mov ecx, esp
push eax
call dword [sym.imp.utilities.dll_public:_void___thiscall_SOUI::TStringT_wchar_t__struct_SOUI::wchar_traits_::constructor_wchar_t_const__]
mov ecx, dword [edi + 0x394]
call fcn.00404290
jmp 0x4080ef
mov dword [edi + 0x38c], 0
mov ecx, dword [ebp + 0x18]
mov dword [ecx], 0
cmp dword [edi + 0x38c], 0
jne 0x407fde
push 0
lea eax, [edi + 0x23c]
mov edi, dword [ebp + 0x18]
push edi
push dword [ebp + 0x14]
mov ecx, eax
mov dword [ebp + 0xc], eax
push dword [ebp + 0x10]
push esi
push dword [ebp + 8]
call dword [sym.imp.soui.dll_public_virtual:_int___thiscall_SOUI::SHostWnd::ProcessWindowMessage_struct_HWND_____unsigned_int__unsigned_int__long_int__long_int___unsigned_long_int_]
test eax, eax
jne 0x407fde
mov ecx, dword [ebp + 0xc]
lea eax, [ebp + 0x1c]
push eax
push dword [ebp + 0x14]
mov dword [ebp + 0x1c], 1
push dword [ebp + 0x10]
push esi
call dword [sym.imp.soui.dll_public:_long_int___thiscall_SOUI::CSimpleWnd::ReflectNotifications_unsigned_int__unsigned_int__long_int__int__]
mov dword [edi], eax
test eax, eax
jne 0x40815a
lea eax, [esi - 0x132]
cmp eax, 6
jbe 0x408175
xor eax, eax
cmp dword [ebp + 0x1c], eax
setne al
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov esp, ebp
pop ebp
ret 0x18
xor eax, eax
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov esp, ebp
pop ebp
ret 0x18
push 5
call fcn.00409b94
dec eax
push 6
mov dword [esi + 0x2c], eax
call fcn.00409b94
call fcn.0040d8ef
int3