Function at 0x40efd8
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x444
push ebx
push esi
mov esi, ecx
push edi
xor ebx, ebx
mov eax, dword [esi + 0x421c]
mov dword [ebp - 4], ebx
mov edi, dword [eax + 0x58]
cmp edi, ebx
je 0x40f00b
push 0xffffffffffffffff
push edi
mov dword [eax + 0x58], ebx
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 + 0x421c]
mov ecx, dword [ecx]
mov dword [ecx + 0x20], eax
mov eax, dword [esi + 0x421c]
mov ecx, dword [eax]
mov ecx, dword [ecx + 0x20]
mov dword [eax + 0x74], ecx
mov ecx, esi
call fcn.0040f21a
mov eax, dword [esi + 0x421c]
push dword [eax + 4]
push dword [esi + 0x4220]
call fcn.004134c5
pop ecx
mov dword [ebp - 0xc], eax
mov eax, dword [esi + 0x421c]
pop ecx
mov ecx, dword [eax + 4]
mov edi, dword [eax + 0x70]
mov dword [ebp - 0x10], ecx
mov ecx, dword [eax]
sub edi, dword [ecx + 0x1c]
push dword [ecx + 8]
neg edi
sbb edi, edi
inc edi
call dword [sym.imp.WSOCK32.dll_closesocket]
mov eax, dword [esi + 0x421c]
push dword [eax + 0x50]
call fcn.004166e8
mov eax, dword [esi + 0x421c]
push dword [eax]
call fcn.004166e8
mov eax, dword [esi + 0x421c]
pop ecx
pop ecx
mov dword [eax], ebx
mov ebx, dword [esi + 0x421c]
cmp dword [ebx + 0x7c], 8
jne 0x40f0cb
mov eax, dword [esi + 0x4220]
and dword [ebp - 8], 0
cmp dword [eax + 0x1c], 0
jle 0x40f0cb
mov edx, dword [eax + 0x18]
mov ecx, dword [edx]
cmp dword [ecx + 0x2c], 0
je 0x40f0bd
cmp ecx, dword [ebp - 0x10]
jne 0x40f0da
inc dword [ebp - 8]
mov ecx, dword [eax + 0x1c]
add edx, 4
cmp dword [ebp - 8], ecx
jl 0x40f0b0
cmp dword [ebp + 8], 0
je 0x40f0f1
mov dword [ebp + 8], 2
jmp 0x40f12a
push dword [ebp - 0xc]
push eax
call fcn.0041504d
pop ecx
pop ecx
mov ecx, esi
call fcn.0040d53c
jmp 0x40f213
xor eax, eax
cmp dword [ebx + 0x7c], 8
push esi
lea ecx, [ebp - 0x44]
setne al
dec eax
and eax, 2
add eax, 0xa0
push eax
call fcn.0041552f
lea ecx, [ebp - 0x44]
mov dword [ebp - 0x44], 0x41b1a0
mov dword [ebp - 0x14], ebx
mov dword [ebp - 4], 1
call dword [0x41b288]
mov dword [ebp + 8], eax
test byte [ebp - 4], 1
je 0x40f138
lea ecx, [ebp - 0x44]
call fcn.00415556
cmp dword [ebp + 8], 0x48f
mov ebx, 0x48b
je 0x40f170
cmp dword [ebp + 8], ebx
jne 0x40f1b4
mov eax, dword [esi + 0x421c]
xor edx, edx
cmp dword [eax + 8], edx
je 0x40f15c
cmp edi, edx
jne 0x40f172
push 5
push edx
add eax, 0x80
push edx
push eax
push edx
push edx
call dword [sym.imp.SHELL32.dll_ShellExecuteA]
jmp 0x40f1c8
xor edx, edx
mov eax, dword [ebp - 0x10]
mov ecx, dword [eax + 0xc]
cmp ecx, edx
je 0x40f180
mov eax, ecx
jmp 0x40f183
mov eax, dword [eax + 0x10]
push eax
mov eax, dword [esi + 0x421c]
add eax, 0x80
push eax
lea eax, [ebp - 0x444]
push eax
call fcn.0040b6e8
add esp, 0xc
xor eax, eax
lea ecx, [ebp - 0x444]
push 5
push eax
push eax
push ecx
push eax
push eax
call dword [sym.imp.SHELL32.dll_ShellExecuteA]
cmp dword [ebp + 8], 1
je 0x40f1c8
cmp dword [ebp + 8], ebx
je 0x40f1c8
cmp dword [ebp + 8], 0x48f
jne 0x40f1d8
push dword [ebp - 0xc]
push dword [esi + 0x4220]
call fcn.0041504d
pop ecx
pop ecx
push dword [esi + 0x4220]
mov edi, 0x486
push edi
push esi
call fcn.004129a0
mov eax, dword [esi]
add esp, 0xc
xor ebx, ebx
mov ecx, esi
push ebx
push ebx
push ebx
call dword [eax + 0x38]
cmp dword [ebp + 8], 4
jne 0x40f210
mov eax, dword [esi]
push ebx
push edi
push 0x111
mov ecx, esi
call dword [eax + 0xa0]
push 1
pop eax
pop edi
pop esi
pop ebx
leave
ret 4