Function at 0x402830
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x49c11b
mov eax, dword fs:[0]
push eax
sub esp, 0x2b8
mov eax, dword [0x4c20f4]
xor eax, ebp
mov dword [ebp - 0x10], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, edx
mov dword [ebp - 0x2bc], esi
mov dword [ebp - 0x2c0], ecx
mov dword [ebp - 0x2c4], ecx
mov edi, dword [ebp + 8]
xorps xmm0, xmm0
xor eax, eax
mov dword [ebp - 0x258], 0
mov dword [ebp - 0x240], 0
mov dword [ebp - 0x2c4], ecx
mov dword [ebp - 0x2a8], edi
movq qword [ebp - 0x260], xmm0
mov dword [ebp - 0x248], 0
mov dword [ebp - 0x244], 0xf
mov byte [ebp - 0x258], 0
mov dword [ebp - 0x230], 0
mov dword [ebp - 0x22c], 7
mov word [ebp - 0x240], ax
mov dword [ebp - 4], eax
lea ecx, [ebp - 0x228]
push eax
mov dword [ebp - 0x228], eax
push 0x200
mov dword [ebp - 0x218], eax
mov dword [ebp - 0x214], 7
mov word [ebp - 0x228], ax
call fcn.004068d0
push 0
push 0x4baf84
lea ecx, [ebp - 0x228]
mov byte [ebp - 4], 1
call fcn.00406a50
mov ecx, esi
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x402923
mov eax, dword [ebp - 0x214]
sub ecx, edx
mov edx, dword [ebp - 0x218]
sub eax, edx
sar ecx, 1
cmp ecx, eax
ja 0x402985
cmp dword [ebp - 0x214], 8
lea esi, [ebp - 0x228]
lea eax, [ecx + ecx]
cmovae esi, dword [ebp - 0x228]
lea edi, [edx + ecx]
push eax
push dword [ebp - 0x2bc]
mov dword [ebp - 0x218], edi
lea eax, [esi + edx*2]
push eax
call fcn.00473a90
add esp, 0xc
xor eax, eax
mov word [esi + edi*2], ax
mov edi, dword [ebp - 0x2a8]
jmp 0x4029a0
push ecx
push esi
mov byte [ebp - 0x2bc], 0
push dword [ebp - 0x2bc]
push ecx
lea ecx, [ebp - 0x228]
call fcn.00407d00
mov esi, dword [ebp - 0x214]
mov eax, esi
mov edx, dword [ebp - 0x218]
sub eax, edx
cmp eax, 1
jb 0x4029df
cmp esi, 8
lea eax, [ebp - 0x228]
lea ecx, [edx + 1]
mov esi, 0x20
cmovae eax, dword [ebp - 0x228]
mov dword [ebp - 0x218], ecx
mov word [eax + edx*2], si
xor edx, edx
mov word [eax + ecx*2], dx
jmp 0x402a00
push 1
push 0x4baf88
mov byte [ebp - 0x2bc], 0
lea ecx, [ebp - 0x228]
push dword [ebp - 0x2bc]
push 1
call fcn.00407d00
mov ecx, edi
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x402a05
mov eax, dword [ebp - 0x214]
sub ecx, edx
mov edx, dword [ebp - 0x218]
sub eax, edx
sar ecx, 1
cmp ecx, eax
ja 0x402a61
cmp dword [ebp - 0x214], 8
lea esi, [ebp - 0x228]
lea eax, [ecx + ecx]
cmovae esi, dword [ebp - 0x228]
lea edi, [edx + ecx]
push eax
push dword [ebp - 0x2a8]
mov dword [ebp - 0x218], edi
lea eax, [esi + edx*2]
push eax
call fcn.00473a90
add esp, 0xc
xor eax, eax
mov word [esi + edi*2], ax
jmp 0x402a7c
push ecx
push edi
mov byte [ebp - 0x2bc], 0
push dword [ebp - 0x2bc]
push ecx
lea ecx, [ebp - 0x228]
call fcn.00407d00
lea ecx, [ebp - 0x2b8]
mov dword [ebp - 0x2a4], 0x44
push ecx
lea ecx, [ebp - 0x2a4]
mov dword [ebp - 0x278], 1
push ecx
push 0
push 0
xor eax, eax
xorps xmm0, xmm0
cmp dword [ebp - 0x214], 8
push 0x4000010
mov word [ebp - 0x262], ax
mov eax, 3
push 0
mov word [ebp - 0x274], ax
lea eax, [ebp - 0x228]
cmovae eax, dword [ebp - 0x228]
push 0
push 0
push eax
push 0
movlpd qword [ebp - 0x2a0], xmm0
movlpd qword [ebp - 0x298], xmm0
movlpd qword [ebp - 0x290], xmm0
movlpd qword [ebp - 0x288], xmm0
movlpd qword [ebp - 0x280], xmm0
movlpd qword [ebp - 0x272], xmm0
movlpd qword [ebp - 0x26a], xmm0
movups xmmword [ebp - 0x2b8], xmm0
call dword [sym.imp.KERNEL32.dll_CreateProcessW]
test eax, eax
je 0x402b5c
mov edi, dword [ebp - 0x2b0]
push 0
mov dword [ebp - 0x260], edi
call fcn.0047b425
mov esi, dword [sym.imp.KERNEL32.dll_CloseHandle]
add esp, 4
mov dword [ebp - 0x25c], eax
push dword [ebp - 0x2b8]
call esi
push dword [ebp - 0x2b4]
call esi
jmp 0x402c48
call dword [sym.imp.KERNEL32.dll_GetLastError]
push 0
push 0
lea ecx, [ebp - 0x2a8]
push ecx
push 0x400
push eax
push 0
push 0x1100
call dword [sym.imp.KERNEL32.dll_FormatMessageW]
push dword [ebp - 0x2a8]
lea eax, [ebp - 0x210]
push 0x4baf8c
push eax
call dword [sym.imp.USER32.dll_wsprintfW]
lea ecx, [ebp - 0x210]
add esp, 0xc
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x402ba4
sub ecx, edx
sar ecx, 1
inc ecx
cmp ecx, 0x3fffffff
jg 0x402bf0
lea edi, [ecx + ecx]
mov eax, edi
call fcn.004729b0
mov esi, esp
test esi, esi
je 0x402bf0
push 0
push 0
push edi
push esi
push 0xffffffffffffffff
lea eax, [ebp - 0x210]
mov byte [esi], 0
push eax
push 0
push 3
call dword [sym.imp.KERNEL32.dll_WideCharToMultiByte]
neg eax
sbb edx, edx
and edx, esi
jmp 0x402bf2
xor edx, edx
mov ecx, edx
lea esi, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x402bf7
sub ecx, esi
push ecx
push edx
lea ecx, [ebp - 0x258]
call fcn.00406bb0
movups xmm0, xmmword [ebp - 0x258]
sub esp, 0x18
mov eax, esp
push str.start_process_error:_n
movups xmmword [eax], xmm0
movq xmm0, qword [ebp - 0x248]
movq qword [eax + 0x10], xmm0
call fcn.00401780
add esp, 0x1c
push dword [ebp - 0x2a8]
call dword [sym.imp.KERNEL32.dll_LocalFree]
mov edi, dword [ebp - 0x260]
mov esi, dword [ebp - 0x2c0]
movups xmm0, xmmword [ebp - 0x258]
mov eax, dword [ebp - 0x25c]
mov edx, dword [ebp - 0x214]
mov dword [esi + 4], eax
xor eax, eax
mov dword [esi], edi
mov dword [esi + 8], 0
mov dword [esi + 0x18], 0
mov dword [esi + 0x1c], 0
mov byte [ebp - 0x258], 0
movups xmmword [esi + 8], xmm0
movq xmm0, qword [ebp - 0x248]
movq qword [esi + 0x18], xmm0
mov dword [esi + 0x20], 0
mov dword [esi + 0x30], 0
mov dword [esi + 0x34], 0
mov dword [ebp - 0x248], 0
mov dword [ebp - 0x244], 0xf
movups xmm0, xmmword [ebp - 0x240]
mov word [ebp - 0x240], ax
movups xmmword [esi + 0x20], xmm0
movq xmm0, qword [ebp - 0x230]
movq qword [esi + 0x30], xmm0
mov dword [ebp - 0x230], 0
mov dword [ebp - 0x22c], 7
cmp edx, 8
jb 0x402d27
mov ecx, dword [ebp - 0x228]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x402d1d
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x402d72
push edx
push ecx
call fcn.00471ddf
add esp, 8
xor eax, eax
mov dword [ebp - 0x218], 0
lea ecx, [ebp - 0x260]
mov dword [ebp - 0x214], 7
mov word [ebp - 0x228], ax
call fcn.00402d80
mov eax, esi
lea esp, [ebp - 0x2d0]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.00471b4b
mov esp, ebp
pop ebp
ret
call fcn.0047caa2
int3