Function at 0x402890
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x41894d
mov eax, dword fs:[0]
push eax
sub esp, 0x130
mov eax, dword [0x4231e0]
xor eax, ebp
mov dword [ebp - 0x14], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x10], esp
mov dword [ebp - 0x30], 0xf
mov dword [ebp - 0x34], 0
mov byte [ebp - 0x44], 0
lea eax, [ebp - 0x44]
mov dword [ebp - 4], 0
push eax
push dword [0x42300c]
xor edx, edx
mov eax, 8
sub esp, 0x18
mov ecx, esp
mov dword [ecx + 0x14], 0xf
mov dword [ecx + 0x10], 0
mov byte [ecx], 0
cmp byte [0x41a358], dl
cmove eax, edx
push eax
push 0x41a358
call fcn.00401ab0
lea ecx, [ebp - 0xac]
call fcn.00406270
mov ecx, eax
mov byte [ebp - 4], 1
call fcn.004063f0
test al, al
mov byte [ebp - 4], 0
sete bl
cmp dword [ebp - 0x98], 0x10
jb 0x40294b
push dword [ebp - 0xac]
call fcn.004075f1
add esp, 4
test bl, bl
je 0x40296a
cmp dword [ebp - 0x30], 0x10
jb 0x402960
push dword [ebp - 0x44]
call fcn.004075f1
add esp, 4
mov eax, 0xa
jmp 0x402d4c
mov dword [ebp - 0x18], 0xf
mov dword [ebp - 0x1c], 0
mov byte [ebp - 0x2c], 0
cmp dword [ebp - 0x30], 0x10
lea ecx, [ebp - 0x2c]
push ecx
push dword [ebp - 0x34]
lea eax, [ebp - 0x44]
mov byte [ebp - 4], 2
cmovae eax, dword [ebp - 0x44]
push eax
call fcn.004068c0
add esp, 0xc
test al, al
jne 0x4029dd
cmp dword [ebp - 0x18], 0x10
jb 0x4029b0
push dword [ebp - 0x2c]
call fcn.004075f1
add esp, 4
cmp dword [ebp - 0x30], 0x10
mov dword [ebp - 0x18], 0xf
mov dword [ebp - 0x1c], 0
mov byte [ebp - 0x2c], 0
jb 0x4029d3
push dword [ebp - 0x44]
call fcn.004075f1
add esp, 4
mov eax, 0xc
jmp 0x402d4c
xor eax, eax
mov dword [ebp - 0x4c], 7
mov dword [ebp - 0x50], 0
mov word [ebp - 0x60], ax
mov dword [ebp - 0x48], 1
lea eax, [ebp - 0x60]
mov byte [ebp - 4], 3
push eax
lea eax, [ebp - 0x2c]
push eax
call fcn.00404500
add esp, 8
test al, al
je 0x402cee
cmp dword [ebp - 0x50], 0
je 0x402cee
lea eax, [ebp - 0x78]
push eax
call fcn.00404b20
add esp, 4
cmp dword [ebp - 0x68], 0
mov byte [ebp - 4], 4
jne 0x402a5e
lea ecx, [ebp - 0x78]
call fcn.004024b0
lea ecx, [ebp - 0x60]
call fcn.004024b0
lea ecx, [ebp - 0x2c]
call fcn.004024e0
lea ecx, [ebp - 0x44]
call fcn.004024e0
mov eax, 0xb
jmp 0x402d4c
sub esp, 0x18
lea eax, [ebp - 0x78]
mov ecx, esp
push eax
call fcn.00401380
lea ecx, [ebp - 0xdc]
call fcn.00404a80
lea eax, [ebp - 0x60]
mov byte [ebp - 4], 6
push eax
lea eax, [ebp - 0xa8]
push eax
call fcn.00402620
add esp, 8
cmp dword [ebp - 0x64], 8
lea ecx, [ebp - 0x78]
lea eax, [ebp - 0xa8]
mov byte [ebp - 4], 7
cmovae ecx, dword [ebp - 0x78]
cmp dword [ebp - 0x94], 8
push ecx
cmovae eax, dword [ebp - 0xa8]
push eax
call fcn.004059e0
add esp, 8
lea ecx, [ebp - 0xa8]
call fcn.004024b0
lea eax, [ebp - 0x2c]
mov dword [ebp - 4], 5
push eax
lea eax, [ebp - 0x44]
push eax
lea eax, [ebp - 0x60]
push eax
lea eax, [ebp - 0xc4]
push eax
call fcn.00402510
push 0x40
lea eax, [ebp - 0x130]
mov byte [ebp - 4], 9
push 0
push eax
call fcn.00408990
lea eax, [ebp - 0xc4]
mov dword [ebp - 0x134], 0x44
push eax
lea eax, [ebp - 0x78]
xorps xmm0, xmm0
push eax
lea eax, [ebp - 0x90]
push eax
movdqu xmmword [ebp - 0xf0], xmm0
call fcn.00404940
add esp, 0x28
cmp dword [ebp - 0x7c], 8
lea ecx, [ebp - 0xf0]
push ecx
lea ecx, [ebp - 0x134]
push ecx
push 0
push 0
push 0
push 0
push 0
lea eax, [ebp - 0x90]
cmovae eax, dword [ebp - 0x90]
push 0
push eax
push 0
call dword [sym.imp.KERNEL32.dll_CreateProcessW]
test eax, eax
jne 0x402baf
lea ecx, [ebp - 0x90]
call fcn.004024b0
lea ecx, [ebp - 0xc4]
call fcn.004024b0
lea ecx, [ebp - 0xdc]
mov byte [ebp - 4], 4
call fcn.00404ae0
lea ecx, [ebp - 0x78]
call fcn.004024b0
lea ecx, [ebp - 0x60]
call fcn.004024b0
lea ecx, [ebp - 0x2c]
call fcn.004024e0
lea ecx, [ebp - 0x44]
call fcn.004024e0
mov eax, 0xe
jmp 0x402d4c
mov esi, dword [ebp - 0xf0]
mov edi, dword [ebp - 0xec]
push 0xffffffffffffffff
push esi
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
test eax, eax
je 0x402c3d
test edi, edi
je 0x402bdc
cmp edi, 0xffffffff
je 0x402bdc
push edi
mov edi, dword [sym.imp.KERNEL32.dll_CloseHandle]
call edi
jmp 0x402be2
mov edi, dword [sym.imp.KERNEL32.dll_CloseHandle]
test esi, esi
je 0x402bee
cmp esi, 0xffffffff
je 0x402bee
push esi
call edi
lea ecx, [ebp - 0x90]
call fcn.004024b0
lea ecx, [ebp - 0xc4]
call fcn.004024b0
lea ecx, [ebp - 0xdc]
mov byte [ebp - 4], 4
call fcn.00404ae0
lea ecx, [ebp - 0x78]
call fcn.004024b0
lea ecx, [ebp - 0x60]
call fcn.004024b0
lea ecx, [ebp - 0x2c]
call fcn.004024e0
lea ecx, [ebp - 0x44]
call fcn.004024e0
mov eax, 0xf
jmp 0x402d4c
test edi, edi
je 0x402c51
cmp edi, 0xffffffff
je 0x402c51
push edi
mov edi, dword [sym.imp.KERNEL32.dll_CloseHandle]
call edi
jmp 0x402c57
mov edi, dword [sym.imp.KERNEL32.dll_CloseHandle]
test esi, esi
je 0x402c63
cmp esi, 0xffffffff
je 0x402c63
push esi
call edi
lea ecx, [ebp - 0x90]
call fcn.004024b0
lea ecx, [ebp - 0xc4]
call fcn.004024b0
lea ecx, [ebp - 0xdc]
mov byte [ebp - 4], 4
call fcn.00404ae0
lea ecx, [ebp - 0x78]
call fcn.004024b0
lea ecx, [ebp - 0x60]
call fcn.004024b0
lea ecx, [ebp - 0x2c]
call fcn.004024e0
lea ecx, [ebp - 0x44]
call fcn.004024e0
xor eax, eax
jmp 0x402d4c
cmp dword [ebp - 0x4c], 8
jb 0x402cff
push dword [ebp - 0x60]
call fcn.004075f1
add esp, 4
xor eax, eax
mov dword [ebp - 0x4c], 7
cmp dword [ebp - 0x18], 0x10
mov dword [ebp - 0x50], 0
mov word [ebp - 0x60], ax
jb 0x402d24
push dword [ebp - 0x2c]
call fcn.004075f1
add esp, 4
cmp dword [ebp - 0x30], 0x10
mov dword [ebp - 0x18], 0xf
mov dword [ebp - 0x1c], 0
mov byte [ebp - 0x2c], 0
jb 0x402d47
push dword [ebp - 0x44]
call fcn.004075f1
add esp, 4
mov eax, 0x10
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x14]
xor ecx, ebp
call fcn.00407df4
mov esp, ebp
pop ebp
ret