Function at 0x402700
Capabilities:
Check if file exists
Create process on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x41f866
mov eax, dword fs:[0]
push eax
sub esp, 0xf8
mov eax, dword [0x430098]
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, ecx
lea ecx, [ebp - 0x28]
call fcn.00404a15
lea ecx, [ebp - 0x58]
mov dword [ebp - 4], 0
call fcn.00404a73
lea eax, [ebp - 0x104]
mov byte [ebp - 4], 1
push eax
mov ecx, esi
call fcn.00402e50
mov dword [ebp - 0xb4], eax
mov edx, dword [ebp - 0x18]
mov ecx, 0x7ffffffe
sub ecx, edx
mov byte [ebp - 4], 2
mov dword [ebp - 0xb0], edx
cmp ecx, 1
jb 0x402b67
cmp dword [ebp - 0x14], 8
lea eax, [ebp - 0x28]
mov esi, 7
mov dword [ebp - 0xbc], 0
cmovae eax, dword [ebp - 0x28]
lea edi, [ebp - 0xcc]
mov dword [ebp - 0xd4], eax
lea eax, [edx + 1]
mov dword [ebp - 0xb8], 0
mov dword [ebp - 0xd0], eax
cmp eax, esi
jbe 0x402804
mov esi, eax
or esi, 7
cmp esi, 0x7ffffffe
jbe 0x4027cc
mov esi, 0x7ffffffe
jmp 0x4027d6
mov eax, 0xa
cmp esi, eax
cmovb esi, eax
xor ecx, ecx
mov eax, esi
add eax, 1
setb cl
neg ecx
or ecx, eax
push ecx
lea ecx, [ebp - 0xcc]
call fcn.004035e0
mov edx, dword [ebp - 0xb0]
mov edi, eax
mov eax, dword [ebp - 0xd0]
mov dword [ebp - 0xcc], edi
mov dword [ebp - 0xbc], eax
lea ecx, [edx + edx]
push ecx
push dword [ebp - 0xd4]
mov eax, 0x22
mov dword [ebp - 0xb8], esi
mov word [edi], ax
lea eax, [edi + 2]
push eax
call fcn.0040c560
mov eax, dword [ebp - 0xb0]
xor ecx, ecx
add esp, 0xc
mov word [edi + eax*2 + 2], cx
push 2
push 0x422408
lea ecx, [ebp - 0xcc]
mov byte [ebp - 4], 3
call fcn.00403640
xor ecx, ecx
movups xmm0, xmmword [eax]
movups xmmword [ebp - 0xec], xmm0
movq xmm0, qword [eax + 0x10]
movq qword [ebp - 0xdc], xmm0
mov dword [eax + 0x10], 0
mov dword [eax + 0x14], 7
mov word [eax], cx
push dword [ebp - 0xb4]
lea eax, [ebp - 0xec]
mov byte [ebp - 4], 4
push eax
push dword [ebp - 0xb4]
lea ecx, [ebp - 0x40]
call fcn.00401ca0
mov edx, dword [ebp - 0xd8]
cmp edx, 8
jb 0x4028da
mov ecx, dword [ebp - 0xec]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x4028d0
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x402b6c
push edx
push ecx
call fcn.0040ae87
add esp, 8
mov edx, dword [ebp - 0xb8]
cmp edx, 8
jb 0x40291a
mov ecx, dword [ebp - 0xcc]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x402910
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x402b6c
push edx
push ecx
call fcn.0040ae87
add esp, 8
mov edx, dword [ebp - 0xf0]
xor eax, eax
mov dword [ebp - 0xbc], 0
mov dword [ebp - 0xb8], 7
mov word [ebp - 0xcc], ax
cmp edx, 8
jb 0x402977
mov ecx, dword [ebp - 0x104]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x40296d
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x402b6c
push edx
push ecx
call fcn.0040ae87
add esp, 8
cmp dword [ebp - 0x14], 8
lea eax, [ebp - 0x28]
cmovae eax, dword [ebp - 0x28]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
jne 0x402995
or esi, 0xffffffff
jmp 0x402a7c
xor eax, eax
mov dword [ebp - 0x9c], 0x44
cmp dword [ebp - 0x44], 8
lea esi, [ebp - 0xac]
push esi
lea ecx, [ebp - 0x58]
mov dword [ebp - 0x6c], eax
cmovae ecx, dword [ebp - 0x58]
lea esi, [ebp - 0x9c]
cmp dword [ebp - 0x2c], 8
lea edx, [ebp - 0x40]
push esi
cmovae edx, dword [ebp - 0x40]
lea eax, [ebp - 0x28]
cmp dword [ebp - 0x14], 8
xorps xmm0, xmm0
push ecx
cmovae eax, dword [ebp - 0x28]
push 0
push 0
push 0
push 0
push 0
push edx
push eax
mov dword [ebp - 0x98], 0
mov dword [ebp - 0x94], 0
mov dword [ebp - 0x90], 0
mov dword [ebp - 0x8c], 0
mov dword [ebp - 0x88], 0
mov dword [ebp - 0x84], 0
mov dword [ebp - 0x80], 0
mov dword [ebp - 0x7c], 0
mov dword [ebp - 0x78], 0
mov dword [ebp - 0x74], 0
mov dword [ebp - 0x70], 0
movups xmmword [ebp - 0x68], xmm0
call dword [sym.imp.KERNEL32.dll_CreateProcessW]
test eax, eax
jne 0x402a5a
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, eax
jmp 0x402a7c
mov eax, dword [ebp - 0xac]
mov esi, dword [sym.imp.KERNEL32.dll_CloseHandle]
test eax, eax
je 0x402a6d
push eax
call esi
mov eax, dword [ebp - 0xa8]
test eax, eax
je 0x402a7a
push eax
call esi
xor esi, esi
mov edx, dword [ebp - 0x2c]
cmp edx, 8
jb 0x402ab6
mov ecx, dword [ebp - 0x40]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x402aac
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x402b71
push edx
push ecx
call fcn.0040ae87
add esp, 8
mov edx, dword [ebp - 0x44]
xor eax, eax
mov dword [ebp - 0x30], 0
mov dword [ebp - 0x2c], 7
mov word [ebp - 0x40], ax
cmp edx, 8
jb 0x402b00
mov ecx, dword [ebp - 0x58]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x402af6
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x402b71
push edx
push ecx
call fcn.0040ae87
add esp, 8
mov edx, dword [ebp - 0x14]
xor eax, eax
mov dword [ebp - 0x48], 0
mov dword [ebp - 0x44], 7
mov word [ebp - 0x58], ax
cmp edx, 8
jb 0x402b4a
mov ecx, dword [ebp - 0x28]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x402b40
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x402b71
push edx
push ecx
call fcn.0040ae87
add esp, 8
mov eax, esi
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.0040ae95
mov esp, ebp
pop ebp
ret
call fcn.004035d0
call fcn.0040eaba
call fcn.0040eaba
int3