Function at 0x476150
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4d3d5d
mov eax, dword fs:[0]
push eax
sub esp, 0x60
push esi
push edi
mov eax, dword [0x50a074]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, dword [ebp + 8]
xorps xmm0, xmm0
xor edx, edx
movlpd qword [ebp - 0x68], xmm0
mov ecx, esi
movlpd qword [ebp - 0x60], xmm0
movlpd qword [ebp - 0x58], xmm0
movlpd qword [ebp - 0x50], xmm0
movlpd qword [ebp - 0x48], xmm0
movlpd qword [ebp - 0x40], xmm0
movlpd qword [ebp - 0x38], xmm0
movlpd qword [ebp - 0x30], xmm0
mov dword [ebp - 0x6c], 0x44
movups xmmword [ebp - 0x28], xmm0
call fcn.00478b80
test eax, eax
jne 0x4763bf
call fcn.004043d0
mov ecx, eax
test ecx, ecx
je 0x4763d2
mov eax, dword [ecx]
mov eax, dword [eax + 0xc]
call eax
add eax, 0x10
mov dword [ebp - 0x10], eax
mov dword [ebp - 4], 1
mov eax, dword [ebp + 0xc]
push dword [eax]
lea eax, [ebp - 0x10]
push dword [esi]
push str.__s___s
push eax
call fcn.00408750
add esp, 0x10
lea eax, [ebp - 0x28]
push eax
lea eax, [ebp - 0x6c]
push eax
push 0
push 0
push 0
push 0
push 0
push 0
push dword [ebp - 0x10]
push dword [esi]
call dword [sym.imp.KERNEL32.dll_CreateProcessW]
or esi, 0xffffffff
test eax, eax
je 0x476233
push esi
push dword [ebp - 0x28]
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
xor edi, edi
jmp 0x47639e
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov edi, eax
call fcn.00429890
cmp byte [eax + 0x1c], 0
je 0x47639e
call fcn.00429890
test byte [eax + 0x20], 1
je 0x47639e
call fcn.00429890
mov dword [ebp - 0x18], eax
call fcn.004043d0
test eax, eax
je 0x4763d2
mov edx, dword [eax]
mov ecx, eax
mov edx, dword [edx + 0xc]
call edx
add eax, 0x10
mov dword [ebp + 0xc], eax
mov byte [ebp - 4], 4
lea ecx, [ebp + 0xc]
push 0xf
push str.CreateProcess__
call fcn.00402420
mov eax, dword [ebp + 8]
mov edx, dword [eax]
test edx, edx
je 0x4762bb
mov ecx, edx
lea eax, [ecx + 2]
mov dword [ebp + 8], eax
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x4762a1
sub ecx, dword [ebp + 8]
sar ecx, 1
push ecx
push edx
lea ecx, [ebp + 0xc]
call fcn.00402420
push 0x15
push str.__with_command_line__
lea ecx, [ebp + 0xc]
call fcn.00402420
mov eax, dword [ebp - 0x10]
test eax, eax
je 0x4762fa
mov edx, eax
lea ecx, [edx + 2]
mov dword [ebp + 8], ecx
nop dword [eax]
mov cx, word [edx]
add edx, 2
test cx, cx
jne 0x4762e0
sub edx, dword [ebp + 8]
lea ecx, [ebp + 0xc]
sar edx, 1
push edx
push eax
call fcn.00402420
push str.__failed.
lea ecx, [ebp + 0xc]
call fcn.0040d210
push 0xc
push str._LastError:
lea ecx, [ebp + 0xc]
call fcn.00402420
push edi
lea ecx, [ebp + 0xc]
call fcn.00429590
mov dword [ebp - 0x14], eax
call fcn.004043d0
test eax, eax
je 0x4763d2
mov edx, dword [eax]
mov ecx, eax
mov edx, dword [edx + 0xc]
call edx
add eax, 0x10
mov dword [ebp + 8], eax
mov byte [ebp - 4], 7
lea ecx, [ebp + 8]
push 0
push 0x4e6df8
call fcn.00402420
push ecx
push dword [ebp - 0x14]
lea eax, [ebp + 8]
push ecx
mov ecx, dword [ebp - 0x18]
push eax
call fcn.00429bd0
mov byte [ebp - 4], 4
mov eax, esi
mov edx, dword [ebp + 8]
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x476380
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov byte [ebp - 4], 1
mov eax, esi
mov edx, dword [ebp + 0xc]
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x47639e
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], esi
dec esi
test esi, esi
jg 0x4763bd
mov ecx, dword [eax]
push eax
mov edx, dword [ecx]
call dword [edx + 4]
mov eax, edi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov esp, ebp
pop ebp
ret 8
push 0x80004005
call fcn.00402570
int3