Function at 0x407ee5
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x11c
push ebx
mov dword [ebp - 4], ecx
push esi
xor eax, eax
push edi
lea edi, [ecx + 0x421c]
mov ecx, dword [edi]
add ecx, 0x58
mov esi, dword [ecx]
test esi, esi
je 0x407f19
push 0xffffffffffffffff
mov dword [ecx], eax
push esi
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
call dword [sym.imp.KERNEL32.dll_GetTickCount]
mov ecx, dword [edi]
mov edx, dword [ecx]
mov dword [edx + 0x20], eax
mov ecx, dword [edi]
mov edx, dword [ecx]
mov eax, dword [edx + 0x20]
mov dword [ecx + 0x74], eax
mov ecx, dword [ebp - 4]
call fcn.00408130
mov eax, dword [ebp - 4]
mov ecx, dword [edi]
add eax, 0x4220
push dword [ecx + 4]
push dword [eax]
mov dword [ebp - 8], eax
call fcn.00410979
add esp, 8
mov dword [ebp - 0xc], eax
mov eax, dword [edi]
mov ebx, dword [eax + 4]
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 - 0x18], eax
call sub.WSOCK32.dll_closesocket
mov ecx, dword [edi]
push dword [ecx + 0x50]
call fcn.004179e0
add esp, 4
mov ecx, dword [edi]
push dword [ecx]
call fcn.004179e0
add esp, 4
mov ecx, dword [edi]
mov dword [ecx], 0
mov esi, dword [edi]
mov ecx, dword [esi + 0x7c]
cmp ecx, 8
jne 0x407fd5
mov eax, dword [ebp - 8]
mov dword [ebp - 0x14], 0
mov edx, dword [eax]
mov dword [ebp - 0x1c], edx
mov eax, dword [edx + 0x1c]
mov dword [ebp - 0x10], eax
test eax, eax
jle 0x407fd5
mov eax, dword [edx + 0x18]
mov edx, dword [eax]
cmp dword [edx + 0x2c], 0
je 0x407fc7
cmp edx, ebx
jne 0x407fe2
add eax, 4
inc dword [ebp - 0x14]
mov edx, dword [ebp - 0x14]
cmp edx, dword [ebp - 0x10]
jl 0x407fbb
cmp dword [ebp + 8], 0
je 0x407ffd
mov esi, 2
jmp 0x408036
push dword [ebp - 0xc]
push dword [ebp - 0x1c]
call fcn.00412752
add esp, 8
mov ecx, dword [ebp - 4]
call fcn.0040640b
jmp 0x408109
push dword [ebp - 4]
sub ecx, 8
cmp ecx, 1
lea ecx, [ebp - 0x4c]
sbb eax, eax
and eax, 2
add eax, 0xa0
push eax
call fcn.004128a7
mov dword [ebp - 0x4c], 0x41b300
lea ecx, [ebp - 0x4c]
mov dword [ebp - 0x1c], esi
call dword [0x41b3e8]
mov esi, eax
lea ecx, [ebp - 0x4c]
call fcn.004128ce
cmp esi, 0x48f
je 0x40806e
cmp esi, 0x48b
jne 0x4080a5
mov eax, dword [edi]
cmp dword [eax + 8], 0
je 0x408054
cmp dword [ebp - 0x18], 0
jne 0x40806e
cmp esi, 0x48b
jne 0x4080a5
push 5
xor ecx, ecx
push ecx
mov eax, dword [edi]
push ecx
add eax, 0x80
push eax
push ecx
push ecx
jmp 0x40809f
mov eax, dword [ebx + 0xc]
test eax, eax
jne 0x408078
mov eax, dword [ebx + 0x10]
push eax
lea ecx, [ebp - 0x11c]
mov eax, dword [edi]
add eax, 0x80
push eax
push ecx
call fcn.0040c414
add esp, 0xc
xor eax, eax
lea ecx, [ebp - 0x11c]
push 5
push eax
push eax
push ecx
push eax
push eax
call dword [sym.imp.SHELL32.dll_ShellExecuteA]
cmp esi, 1
je 0x4080ba
cmp esi, 0x48b
je 0x4080ba
cmp esi, 0x48f
jne 0x4080ca
mov ecx, dword [ebp - 8]
push dword [ebp - 0xc]
push dword [ecx]
call fcn.00412752
add esp, 8
mov eax, dword [ebp - 8]
mov edi, 0x486
push dword [eax]
push edi
push dword [ebp - 4]
call fcn.00404ec4
add esp, 0xc
mov ecx, dword [ebp - 4]
xor ebx, ebx
push ebx
mov eax, dword [ecx]
push ebx
push ebx
call dword [eax + 0x38]
cmp esi, 4
jne 0x408104
push ebx
mov ecx, dword [ebp - 4]
mov ebx, dword [ecx]
push edi
push 0x111
call dword [ebx + 0xa0]
mov eax, 1
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4