Function at 0x40e660
Capabilities:
Terminate process

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x595027
mov eax, dword fs:[0]
push eax
sub esp, 0x170
mov eax, dword [0x616738]
xor eax, ebp
mov dword [ebp - 0x60], eax
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x17c], ecx
lea ecx, [ebp - 0x50]
call fcn.004a2910
mov dword [ebp - 4], 0
mov eax, dword [ebp - 0x17c]
add eax, 0x2c
push eax
lea ecx, [ebp - 0x4c]
call fcn.00408fd0
mov byte [ebp - 4], 1
mov dword [ebp - 0x10], 0xffffffff
mov dword [ebp - 0x58], 0
lea ecx, [ebp - 0x48]
call fcn.004892a0
mov byte [ebp - 4], 2
lea ecx, [ebp - 0x4c]
call fcn.00408290
movzx ecx, al
test ecx, ecx
je 0x40e71a
mov edx, dword [ebp - 0x58]
mov dword [ebp - 0x170], edx
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x48]
call fcn.004892d0
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x4c]
call fcn.00408330
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x50]
call fcn.00408330
mov eax, dword [ebp - 0x170]
jmp 0x40e8b7
push 0
lea ecx, [ebp - 0x48]
call fcn.00489310
movzx eax, al
test eax, eax
jne 0x40e766
mov ecx, dword [ebp - 0x58]
mov dword [ebp - 0x174], ecx
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x48]
call fcn.004892d0
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x4c]
call fcn.00408330
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x50]
call fcn.00408330
mov eax, dword [ebp - 0x174]
jmp 0x40e8b7
lea ecx, [ebp - 0x4c]
call fcn.0040fa20
lea ecx, [ebp - 0x48]
call fcn.00488e70
mov dword [ebp - 0x54], eax
cmp dword [ebp - 0x54], 0
je 0x40e86e
call fcn.00497520
push 0xffffffffffffffff
lea edx, [ebp - 0x16c]
push edx
mov eax, dword [ebp - 0x54]
push eax
lea ecx, [ebp - 0x48]
call fcn.00488dd0
movzx ecx, al
test ecx, ecx
je 0x40e86e
lea edx, [ebp - 0x168]
push edx
lea ecx, [ebp - 0x50]
call fcn.00409090
lea ecx, [ebp - 0x50]
call fcn.0040fa20
push 0
lea ecx, [ebp - 0x4c]
call fcn.004090f0
push eax
lea ecx, [ebp - 0x50]
call fcn.00408030
test eax, eax
jl 0x40e869
mov eax, dword [ebp - 0x16c]
push eax
push 0
push 0x1f0fff
call dword [sym.imp.KERNEL32.dll_OpenProcess]
mov dword [ebp - 0x14], eax
cmp dword [ebp - 0x14], 0
je 0x40e85f
mov ecx, dword [ebp - 0x16c]
push ecx
call fcn.00497700
add esp, 4
push 0x1388
mov edx, dword [ebp - 0x14]
push edx
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
mov dword [ebp - 0x5c], eax
cmp dword [ebp - 0x5c], 0
jne 0x40e82b
mov eax, dword [ebp - 0x17c]
mov dword [eax + 0x60], 1
lea ecx, [ebp - 0x10]
push ecx
mov edx, dword [ebp - 0x14]
push edx
call dword [sym.imp.KERNEL32.dll_GetExitCodeProcess]
test eax, eax
je 0x40e846
cmp dword [ebp - 0x10], 0x103
jne 0x40e85f
push 0
mov eax, dword [ebp - 0x14]
push eax
call dword [sym.imp.KERNEL32.dll_TerminateProcess]
mov ecx, dword [ebp - 0x17c]
mov dword [ecx + 0x60], 1
mov edx, dword [ebp - 0x14]
push edx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
jmp 0x40e788
mov eax, dword [ebp - 0x54]
push eax
lea ecx, [ebp - 0x48]
call fcn.00488f80
mov dword [ebp - 0x58], 1
mov ecx, dword [ebp - 0x58]
mov dword [ebp - 0x178], ecx
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x48]
call fcn.004892d0
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x4c]
call fcn.00408330
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x50]
call fcn.00408330
mov eax, dword [ebp - 0x178]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
mov ecx, dword [ebp - 0x60]
xor ecx, ebp
call fcn.0056edd3
mov esp, ebp
pop ebp
ret