Function at 0x407f10
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x118
push ebx
mov dword [ebp - 4], ecx
push esi
xor eax, eax
push edi
lea esi, [ecx + 0x421c]
mov ecx, dword [esi]
add ecx, 0x58
mov edi, dword [ecx]
test edi, edi
je 0x407f44
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 [esi]
mov edx, dword [ecx]
mov dword [edx + 0x20], eax
mov ecx, dword [esi]
mov edx, dword [ecx]
mov eax, dword [edx + 0x20]
mov dword [ecx + 0x74], eax
mov ecx, dword [ebp - 4]
call fcn.00408189
mov eax, dword [ebp - 4]
mov ecx, dword [esi]
add eax, 0x4220
push dword [ecx + 4]
push dword [eax]
mov dword [ebp - 8], eax
call fcn.004108ff
add esp, 8
mov dword [ebp - 0x10], eax
mov eax, dword [esi]
mov ecx, dword [eax + 4]
mov dword [ebp - 0xc], 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 - 0x14], eax
call sub.WSOCK32.dll_closesocket
mov ecx, dword [esi]
push dword [ecx + 0x50]
call fcn.004179f0
add esp, 4
mov ecx, dword [esi]
push dword [ecx]
call fcn.004179f0
add esp, 4
mov ecx, dword [esi]
mov dword [ecx], 0
mov edi, dword [esi]
mov ecx, dword [edi + 0x7c]
cmp ecx, 8
jne 0x407ffd
mov eax, dword [ebp - 8]
mov dword [ebp - 0x18], 0
mov edx, dword [eax]
cmp dword [edx + 0x1c], 0
jle 0x407ffd
mov eax, dword [edx + 0x18]
mov ebx, dword [eax]
cmp dword [ebx + 0x2c], 0
je 0x407fef
cmp dword [ebp - 0xc], ebx
jne 0x40800a
add eax, 4
inc dword [ebp - 0x18]
mov ebx, dword [ebp - 0x18]
cmp dword [edx + 0x1c], ebx
jg 0x407fe2
cmp dword [ebp + 8], 0
je 0x408023
mov edi, 2
jmp 0x40805c
push dword [ebp - 0x10]
push edx
call fcn.00412747
add esp, 8
mov ecx, dword [ebp - 4]
call fcn.00406411
jmp 0x408162
push dword [ebp - 4]
sub ecx, 8
cmp ecx, 1
lea ecx, [ebp - 0x48]
sbb eax, eax
and eax, 2
add eax, 0xa0
push eax
call fcn.0041289c
mov dword [ebp - 0x48], 0x41b300
lea ecx, [ebp - 0x48]
mov dword [ebp - 0x18], edi
call dword [0x41b3e8]
mov edi, eax
lea ecx, [ebp - 0x48]
call fcn.004128c3
cmp edi, 0x48f
je 0x408098
cmp edi, 0x48b
jne 0x4080fc
mov eax, dword [esi]
cmp dword [eax + 8], 0
je 0x40807e
cmp dword [ebp - 0x14], 0
jne 0x408098
cmp edi, 0x48b
jne 0x4080fc
push 5
xor ecx, ecx
push ecx
mov eax, dword [esi]
push ecx
add eax, 0x80
push eax
push ecx
push ecx
jmp 0x4080f6
mov ecx, dword [ebp - 0xc]
mov ebx, dword [ecx + 0xc]
test ebx, ebx
jne 0x4080a8
mov ecx, dword [ebp - 0xc]
mov ebx, dword [ecx + 0x10]
mov esi, dword [esi]
add esi, 0x80
cmp byte [esi], 0
je 0x4080ca
push esi
call fcn.00417f20
add esp, 4
cmp byte [esi + eax - 1], 0x5c
mov eax, 0x41d880
jne 0x4080cf
mov eax, 0x41d268
push ebx
lea ecx, [ebp - 0x118]
push eax
push esi
push str._s_s_s
push ecx
call dword [sym.imp.USER32.dll_wsprintfA]
add esp, 0x14
xor eax, eax
lea ecx, [ebp - 0x118]
push 5
push eax
push eax
push ecx
push eax
push eax
call dword [sym.imp.SHELL32.dll_ShellExecuteA]
cmp edi, 1
je 0x408111
cmp edi, 0x48b
je 0x408111
cmp edi, 0x48f
jne 0x408121
mov ecx, dword [ebp - 8]
push dword [ebp - 0x10]
push dword [ecx]
call fcn.00412747
add esp, 8
mov eax, dword [ebp - 8]
mov esi, 0x486
push dword [eax]
push esi
push dword [ebp - 4]
call fcn.00404ec7
add esp, 0xc
mov eax, dword [ebp - 4]
mov ecx, eax
mov ebx, dword [eax]
push 0
push 0
push 0
call dword [ebx + 0x38]
cmp edi, 4
jne 0x40815d
push 0
mov ecx, dword [ebp - 4]
push esi
push 0x111
call dword [ebx + 0xa0]
mov eax, 1
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4