Function at 0x408990
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x41ba58
mov eax, dword fs:[0]
push eax
sub esp, 0x6c
push ebx
push esi
push edi
mov eax, dword [0x42400c]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x18], edx
mov dword [ebp - 0x1c], ecx
mov dword [ebp - 4], 2
call fcn.00402380
mov ecx, eax
test ecx, ecx
jne 0x4089da
push 0x80004005
call fcn.00402030
mov eax, dword [ecx]
call dword [eax + 0xc]
add eax, 0x10
mov dword [ebp - 0x10], eax
mov byte [ebp - 4], 3
lea eax, [ebp - 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
push str.__s___s
push eax
call fcn.00406a00
push 0x40
lea eax, [ebp - 0x74]
mov dword [ebp - 0x78], 0x44
push 0
push eax
call fcn.0040c5f0
add esp, 0x1c
mov dword [ebp - 0x4c], 1
mov eax, 1
lea ecx, [ebp - 0x20]
mov word [ebp - 0x48], ax
push 0x4217c4
call fcn.004063a0
mov byte [ebp - 4], 4
mov ebx, dword [sym.imp.KERNEL32.dll_Sleep]
mov edi, dword [sym.imp.KERNEL32.dll_CloseHandle]
mov esi, dword [ebp - 0x10]
mov dword [ebp - 0x14], 0
nop dword [eax + eax]
mov edx, dword [esi - 0xc]
test edx, edx
js 0x408bd4
mov eax, dword [esi - 8]
mov ecx, 1
sub ecx, dword [esi - 4]
sub eax, edx
or eax, ecx
jge 0x408a78
push edx
lea ecx, [ebp - 0x10]
call fcn.00406730
mov esi, dword [ebp - 0x10]
lea eax, [ebp - 0x34]
push eax
lea eax, [ebp - 0x78]
push eax
push 0
push 0
push 0
push 0
push 0
push 0
push esi
push 0
call dword [sym.imp.KERNEL32.dll_CreateProcessA]
test eax, eax
je 0x408aba
push 0x3e8
call ebx
push dword [ebp - 0x34]
call dword [sym.imp.KERNEL32.dll_GetProcessId]
mov ecx, dword [ebp - 0x18]
push dword [ebp - 0x30]
mov dword [ecx], eax
call edi
push dword [ebp - 0x34]
call edi
jmp 0x408ac5
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, dword [ebp - 0x1c]
mov dword [ecx], eax
xor edi, edi
push ecx
mov ecx, esp
lea eax, [ebp + 0x10]
push eax
mov dword [ebp - 0x24], ecx
call fcn.00406650
call fcn.00408800
add esp, 4
test eax, eax
jne 0x408aef
push 0xc8
call ebx
inc edi
cmp edi, 0xa
jl 0x408ac7
push ecx
mov ecx, esp
lea eax, [ebp + 0x10]
push eax
mov dword [ebp - 0x24], ecx
call fcn.00406650
call fcn.00408800
add esp, 4
test eax, eax
jne 0x408b24
mov eax, dword [ebp - 0x14]
mov edi, dword [sym.imp.KERNEL32.dll_CloseHandle]
inc eax
mov dword [ebp - 0x14], eax
cmp eax, 5
jl 0x408a50
xor ebx, ebx
jmp 0x408b29
mov ebx, 1
mov byte [ebp - 4], 3
or edi, 0xffffffff
mov edx, dword [ebp - 0x20]
mov eax, edi
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x408b4a
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov byte [ebp - 4], 2
add esi, 0xfffffff0
mov eax, edi
lock xadd dword [esi + 0xc], eax
dec eax
test eax, eax
jg 0x408b65
mov ecx, dword [esi]
push esi
mov eax, dword [ecx]
call dword [eax + 4]
mov byte [ebp - 4], 1
mov eax, edi
mov edx, dword [ebp + 8]
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x408b83
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov byte [ebp - 4], 0
mov eax, edi
mov edx, dword [ebp + 0xc]
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x408ba1
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov dword [ebp - 4], 0xffffffff
mov eax, dword [ebp + 0x10]
add eax, 0xfffffff0
lock xadd dword [eax + 0xc], edi
dec edi
test edi, edi
jg 0x408bc0
mov ecx, dword [eax]
push eax
mov edx, dword [ecx]
call dword [edx + 4]
mov eax, ebx
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
push 0x80070057
call fcn.00402030
int3