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

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x48c
mov eax, dword [0x43b2c4]
xor eax, ebp
mov dword [ebp - 0x34], eax
mov dword [ebp - 0x18], 0
xor eax, eax
mov word [ebp - 0x480], ax
push 0x1fe
push 0
lea ecx, [ebp - 0x47e]
push ecx
call fcn.00401e30
add esp, 0xc
xor edx, edx
mov word [ebp - 0x238], dx
push 0x1fe
push 0
lea eax, [ebp - 0x236]
push eax
call fcn.00401e30
add esp, 0xc
mov dword [ebp - 0x280], 0
push 0x40
push 0
lea ecx, [ebp - 0x27c]
push ecx
call fcn.00401e30
add esp, 0xc
mov dword [ebp - 0x14], 0
xor edx, edx
mov dword [ebp - 0x10], edx
mov dword [ebp - 0xc], edx
mov dword [ebp - 8], edx
mov dword [ebp - 0x24], 0
xor eax, eax
mov dword [ebp - 0x20], eax
mov dword [ebp - 0x1c], eax
mov dword [ebp - 0x48c], 0
mov dword [ebp - 0x488], 0
mov dword [ebp - 0x484], 0x8000000
mov dword [ebp - 0x280], 0x44
mov dword [ebp - 0x24], 0xc
mov dword [ebp - 0x20], 0
mov dword [ebp - 0x1c], 1
cmp dword [ebp + 0xc], 0
je 0x40e7b4
mov ecx, dword [ebp + 0xc]
movzx edx, word [ecx]
cmp edx, 0x20
jg 0x40e7c3
mov dword [ebp - 0x48c], 0xffffffff
jmp 0x40e9fe
cmp dword [ebp + 8], 0
je 0x40e85d
mov eax, dword [ebp + 8]
movzx ecx, word [eax]
cmp ecx, 0x20
jle 0x40e85d
mov edx, dword [ebp + 8]
mov dword [ebp - 0x28], edx
mov dword [ebp - 0x2c], 0
jmp 0x40e7f4
mov eax, dword [ebp - 0x2c]
add eax, 1
mov dword [ebp - 0x2c], eax
mov ecx, dword [ebp - 0x2c]
mov edx, dword [ebp + 8]
movzx eax, word [edx + ecx*2]
test eax, eax
je 0x40e838
cmp dword [ebp - 0x2c], 0xff
jge 0x40e838
mov ecx, dword [ebp - 0x2c]
mov edx, dword [ebp + 8]
movzx eax, word [edx + ecx*2]
cmp eax, 0x2f
je 0x40e829
mov ecx, dword [ebp - 0x2c]
mov edx, dword [ebp + 8]
movzx eax, word [edx + ecx*2]
cmp eax, 0x5c
jne 0x40e836
mov ecx, dword [ebp - 0x2c]
mov edx, dword [ebp + 8]
lea eax, [edx + ecx*2 + 2]
mov dword [ebp - 0x28], eax
jmp 0x40e7eb
mov ecx, dword [ebp + 0xc]
push ecx
mov edx, dword [ebp - 0x28]
push edx
push 0x4325dc
lea eax, [ebp - 0x238]
push eax
call dword [sym.imp.USER32.dll_wsprintfW]
add esp, 0x10
mov ecx, dword [ebp + 8]
mov dword [ebp - 0x28], ecx
jmp 0x40e87d
mov edx, dword [ebp + 0xc]
push edx
push 0x4325e8
lea eax, [ebp - 0x238]
push eax
call dword [sym.imp.USER32.dll_wsprintfW]
add esp, 0xc
mov dword [ebp - 0x28], 0
mov dword [ebp - 0x254], 0x100
call fcn.00403ccb
mov dword [ebp - 0x248], eax
mov ecx, dword [ebp + 0x10]
mov dword [ebp - 0x244], ecx
mov edx, dword [ebp + 0x10]
mov dword [ebp - 0x240], edx
lea eax, [ebp - 0x14]
push eax
lea ecx, [ebp - 0x280]
push ecx
push 0
push 0
mov edx, dword [ebp - 0x484]
push edx
push 1
push 0
push 0
lea eax, [ebp - 0x238]
push eax
mov ecx, dword [ebp - 0x28]
push ecx
call dword [sym.imp.KERNEL32.dll_CreateProcessW]
test eax, eax
jne 0x40e966
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp - 0x488], eax
cmp dword [ebp - 0x488], 2
jne 0x40e8fa
mov dword [ebp - 0x48c], 0xfffffff5
jmp 0x40e961
cmp dword [ebp - 0x488], 5
jne 0x40e90f
mov dword [ebp - 0x48c], 0xfffffff4
jmp 0x40e961
cmp dword [ebp - 0x488], 0x3ee
jne 0x40e927
mov dword [ebp - 0x48c], 0xfffffff3
jmp 0x40e961
cmp dword [ebp - 0x488], 0x570
jne 0x40e93f
mov dword [ebp - 0x48c], 0xfffffff2
jmp 0x40e961
cmp dword [ebp - 0x488], 0xc1
jne 0x40e957
mov dword [ebp - 0x48c], 0xfffffff1
jmp 0x40e961
mov dword [ebp - 0x48c], 0xfffffff0
jmp 0x40e9fe
push 0x1388
mov edx, dword [ebp - 0x14]
push edx
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
mov dword [ebp - 0x30], eax
cmp dword [ebp - 0x30], 0xffffffff
je 0x40e9cd
cmp dword [ebp - 0x30], 0
jne 0x40e9b2
mov dword [ebp - 0x48c], 1
lea eax, [ebp - 4]
push eax
mov ecx, dword [ebp - 0x14]
push ecx
call dword [sym.imp.KERNEL32.dll_GetExitCodeProcess]
mov edx, dword [ebp - 0x10]
push edx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [ebp - 0x14]
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
jmp 0x40e9cb
cmp dword [ebp - 0x30], 0x102
jne 0x40e9cb
mov ecx, dword [ebp + 0x14]
mov edx, dword [ebp - 0x10]
mov dword [ecx], edx
mov eax, dword [ebp + 0x18]
mov ecx, dword [ebp - 0x14]
mov dword [eax], ecx
jmp 0x40e9f7
mov dword [ebp - 0x48c], 0xffffffef
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp - 0x488], eax
mov edx, dword [ebp - 0x10]
push edx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [ebp - 0x14]
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
jmp 0x40e9fe
mov eax, dword [ebp - 0x48c]
mov ecx, dword [ebp - 0x34]
xor ecx, ebp
call fcn.00401e17
mov esp, ebp
pop ebp
ret 0x14