Function at 0x402510
Capabilities:
Create process on windows

Disassembly:
push 0xffffffffffffffff
push 0x41f07b
mov eax, dword fs:[0]
push eax
sub esp, 0x160
mov eax, dword [0x428b70]
xor eax, esp
mov dword [esp + 0x15c], eax
push ebp
push esi
push edi
mov eax, dword [0x428b70]
xor eax, esp
push eax
lea eax, [esp + 0x170]
mov dword fs:[0], eax
xor eax, eax
push 0x44
push eax
mov dword [esp + 0x1c], eax
mov dword [esp + 0x20], eax
mov dword [esp + 0x24], eax
mov dword [esp + 0x28], eax
lea eax, [esp + 0x2c]
push eax
mov ebp, ecx
call fcn.0040ed10
push 0x103
lea ecx, [esp + 0x79]
push 0
push ecx
mov dword [esp + 0x3c], 0x44
mov byte [esp + 0x80], 0
call fcn.0040ed10
add esp, 0x18
call fcn.00402d12
xor ecx, ecx
test eax, eax
setne cl
test ecx, ecx
jne 0x4025a9
push 0x80004005
call fcn.00401130
mov edx, dword [eax]
mov ecx, eax
mov eax, dword [edx + 0xc]
call eax
add eax, 0x10
mov dword [esp + 0x10], eax
push 0
push 0x420482
lea ecx, [esp + 0x18]
mov dword [esp + 0x180], 0
call fcn.00401700
push 1
push 0x4205f0
lea ecx, [esp + 0x18]
call fcn.00401890
mov ecx, dword [0x42bda4]
mov ecx, dword [ecx]
test ecx, ecx
jne 0x4025f4
xor eax, eax
jmp 0x402609
mov eax, ecx
lea esi, [eax + 1]
lea esp, [esp]
mov dl, byte [eax]
inc eax
test dl, dl
jne 0x402600
sub eax, esi
push eax
push ecx
lea ecx, [esp + 0x18]
call fcn.00401890
push 1
push 0x4205f0
lea ecx, [esp + 0x18]
call fcn.00401890
push 1
push 0x4205ec
lea ecx, [esp + 0x18]
call fcn.00401890
mov esi, 1
cmp dword [0x42bda0], esi
jle 0x4026a4
push 1
push 0x4205f0
lea ecx, [esp + 0x18]
call fcn.00401890
mov edx, dword [0x42bda4]
mov ecx, dword [edx + esi*4]
test ecx, ecx
jne 0x402662
xor eax, eax
jmp 0x402670
mov eax, ecx
lea edi, [eax + 1]
mov dl, byte [eax]
inc eax
test dl, dl
jne 0x402667
sub eax, edi
push eax
push ecx
lea ecx, [esp + 0x18]
call fcn.00401890
push 1
push 0x4205f0
lea ecx, [esp + 0x18]
call fcn.00401890
push 1
push 0x4205ec
lea ecx, [esp + 0x18]
call fcn.00401890
inc esi
cmp esi, dword [0x42bda0]
jl 0x402641
mov esi, dword [esp + 0x10]
mov edi, dword [esi - 0xc]
mov eax, dword [esi - 8]
mov ecx, 1
sub ecx, dword [esi - 4]
sub eax, edi
or eax, ecx
jge 0x4026ca
push edi
lea ecx, [esp + 0x14]
call fcn.004014b0
mov esi, dword [esp + 0x10]
push edi
lea eax, [esp + 0x6c]
push esi
push eax
call fcn.0040f430
mov eax, dword [ebp + 0xa4]
mov ecx, dword [ebp + 0xa8]
add esp, 0xc
lea edx, [esp + 0x14]
push edx
lea edx, [esp + 0x28]
push edx
push eax
push 0
push 0x4000000
push 0
push 0
push 0
lea eax, [esp + 0x88]
push eax
push ecx
call dword [sym.imp.KERNEL32.dll_CreateProcessA]
test eax, eax
je 0x40271d
mov ecx, dword [esp + 0x14]
push 0xffffffffffffffff
push ecx
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
mov edx, dword [esp + 0x14]
push 0x429f08
push edx
call dword [sym.imp.KERNEL32.dll_GetExitCodeProcess]
mov ecx, ebp
call fcn.00402460
lea eax, [esi - 0x10]
mov dword [esp + 0x178], 0xffffffff
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x40275b
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov ecx, dword [esp + 0x170]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
mov ecx, dword [esp + 0x15c]
xor ecx, esp
call fcn.0040ecf4
add esp, 0x16c
ret