Function at 0x407e31
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x410
push ebx
push esi
lea ebx, [ecx + 0x421c]
push edi
mov esi, ecx
xor eax, eax
mov ecx, dword [ebx]
add ecx, 0x58
mov edi, dword [ecx]
test edi, edi
je 0x407e64
push 0xffffffffffffffff
mov dword [ecx], eax
push edi
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
call dword [sym.imp.KERNEL32.dll_GetTickCount]
mov ecx, dword [ebx]
mov edx, dword [ecx]
mov dword [edx + 0x20], eax
mov ecx, dword [ebx]
mov edx, dword [ecx]
mov eax, dword [edx + 0x20]
mov dword [ecx + 0x74], eax
mov ecx, esi
call fcn.00408077
mov ecx, dword [ebx]
push dword [ecx + 4]
push dword [esi + 0x4220]
call fcn.00410d9d
add esp, 8
mov dword [ebp - 8], eax
mov eax, dword [ebx]
mov ecx, dword [eax + 4]
mov dword [ebp - 4], ecx
mov ecx, dword [eax]
mov eax, dword [eax + 0x70]
push dword [ecx + 8]
sub eax, dword [ecx + 0x1c]
cmp eax, 1
sbb eax, eax
neg eax
mov dword [ebp - 0x10], eax
call sub.WSOCK32.dll_closesocket
mov ecx, dword [ebx]
push dword [ecx + 0x50]
call fcn.00418440
add esp, 4
mov ecx, dword [ebx]
push dword [ecx]
call fcn.00418440
add esp, 4
mov ecx, dword [ebx]
mov dword [ecx], 0
mov edi, dword [ebx]
mov eax, dword [edi + 0x7c]
mov dword [ebp - 0x14], eax
cmp eax, 8
jne 0x407f13
xor ecx, ecx
mov eax, dword [esi + 0x4220]
mov edx, dword [eax + 0x1c]
mov dword [ebp - 0xc], edx
cmp edx, ecx
jle 0x407f13
mov eax, dword [eax + 0x18]
mov edx, dword [eax]
cmp dword [edx + 0x2c], 0
je 0x407f0a
cmp edx, dword [ebp - 4]
jne 0x407f20
add eax, 4
inc ecx
cmp ecx, dword [ebp - 0xc]
jl 0x407efd
cmp dword [ebp + 8], 0
je 0x407f3d
mov edi, 2
jmp 0x407f77
push dword [ebp - 8]
push dword [esi + 0x4220]
call fcn.00412b7b
add esp, 8
mov ecx, esi
call fcn.0040632f
jmp 0x408050
push esi
mov eax, dword [ebp - 0x14]
sub eax, 8
lea ecx, [ebp - 0x44]
cmp eax, 1
sbb eax, eax
and eax, 2
add eax, 0xa0
push eax
call fcn.00412cd0
mov dword [ebp - 0x44], 0x41b300
lea ecx, [ebp - 0x44]
mov dword [ebp - 0x14], edi
call dword [0x41b3e8]
mov edi, eax
lea ecx, [ebp - 0x44]
call fcn.00412cf7
cmp edi, 0x48f
je 0x407faf
cmp edi, 0x48b
jne 0x407fec
mov eax, dword [ebx]
cmp dword [eax + 8], 0
je 0x407f95
cmp dword [ebp - 0x10], 0
jne 0x407faf
cmp edi, 0x48b
jne 0x407fec
push 5
xor ecx, ecx
push ecx
mov eax, dword [ebx]
push ecx
add eax, 0x80
push eax
push ecx
push ecx
jmp 0x407fe6
mov ecx, dword [ebp - 4]
mov eax, dword [ecx + 0xc]
test eax, eax
jne 0x407fbf
mov ecx, dword [ebp - 4]
mov eax, dword [ecx + 0x10]
push eax
lea ecx, [ebp - 0x410]
mov eax, dword [ebx]
add eax, 0x80
push eax
push ecx
call fcn.0040c48f
add esp, 0xc
xor eax, eax
lea ecx, [ebp - 0x410]
push 5
push eax
push eax
push ecx
push eax
push eax
call dword [sym.imp.SHELL32.dll_ShellExecuteA]
cmp edi, 1
je 0x408001
cmp edi, 0x48b
je 0x408001
cmp edi, 0x48f
jne 0x408012
push dword [ebp - 8]
push dword [esi + 0x4220]
call fcn.00412b7b
add esp, 8
push dword [esi + 0x4220]
mov ebx, 0x486
push ebx
push esi
call fcn.00404e22
add esp, 0xc
mov ecx, esi
mov eax, dword [esi]
push 0
push 0
push 0
call dword [eax + 0x38]
cmp edi, 4
jne 0x40804b
push 0
mov ecx, esi
push ebx
mov eax, dword [esi]
push 0x111
call dword [eax + 0xa0]
mov eax, 1
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4