Function at 0x406eb0
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x419c78
mov eax, dword fs:[0]
push eax
sub esp, 0x6c
push ebx
push esi
push edi
mov eax, dword [0x42b00c]
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.004023e0
mov ecx, eax
test ecx, ecx
jne 0x406efa
push 0x80004005
call fcn.00401fc0
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 0x427e14
push eax
call fcn.00404f20
push 0x40
lea eax, [ebp - 0x74]
mov dword [ebp - 0x78], 0x44
push 0
push eax
call fcn.0040aab0
add esp, 0x1c
mov dword [ebp - 0x4c], 1
mov eax, 1
lea ecx, [ebp - 0x20]
mov word [ebp - 0x48], ax
push 0x423793
call fcn.004048b0
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 0x4070f4
mov eax, dword [esi - 8]
mov ecx, 1
sub ecx, dword [esi - 4]
sub eax, edx
or eax, ecx
jge 0x406f98
push edx
lea ecx, [ebp - 0x10]
call fcn.00404c40
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 0x406fda
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 0x406fe5
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.00404b60
call fcn.00406d20
add esp, 4
test eax, eax
jne 0x40700f
push 0xc8
call ebx
inc edi
cmp edi, 0xa
jl 0x406fe7
push ecx
mov ecx, esp
lea eax, [ebp + 0x10]
push eax
mov dword [ebp - 0x24], ecx
call fcn.00404b60
call fcn.00406d20
add esp, 4
test eax, eax
jne 0x407044
mov eax, dword [ebp - 0x14]
mov edi, dword [sym.imp.KERNEL32.dll_CloseHandle]
inc eax
mov dword [ebp - 0x14], eax
cmp eax, 5
jl 0x406f70
xor ebx, ebx
jmp 0x407049
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 0x40706a
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 0x407085
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 0x4070a3
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 0x4070c1
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 0x4070e0
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.00401fc0
int3