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

Disassembly:
push 0xffffffffffffffff
push 0x45f5db
mov eax, dword fs:[0]
push eax
sub esp, 0x284
mov eax, dword [0x476cd4]
xor eax, esp
mov dword [esp + 0x280], eax
push ebx
push esi
push edi
mov eax, dword [0x476cd4]
xor eax, esp
push eax
lea eax, [esp + 0x294]
mov dword fs:[0], eax
sub esp, 0x1c
mov dword [esp + 0x2c], esp
mov ecx, esp
push 0xffffffffffffffff
xor ebx, ebx
push ebx
lea edx, [esp + 0x2c8]
xor eax, eax
mov dword [ecx + 0x18], 7
mov dword [ecx + 0x14], ebx
push edx
mov dword [esp + 0x2c4], 1
mov word [ecx + 4], ax
call fcn.00408e40
lea eax, [esp + 0x40]
push eax
call fcn.0040eb40
add esp, 0x20
push 0xffffffffffffffff
push ebx
push eax
lea ecx, [esp + 0x2b0]
mov byte [esp + 0x2a8], 2
call fcn.00408e40
mov esi, 8
cmp dword [esp + 0x3c], esi
jb 0x40f54d
mov ecx, dword [esp + 0x28]
push ecx
call fcn.0043e711
add esp, 4
mov eax, dword [esp + 0x2a8]
cmp dword [esp + 0x2bc], esi
jae 0x40f564
lea eax, [esp + 0x2a8]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
jne 0x40f5c4
cmp dword [esp + 0x2bc], esi
jb 0x40f588
mov edx, dword [esp + 0x2a8]
push edx
call fcn.0043e711
add esp, 4
xor eax, eax
mov dword [esp + 0x2bc], 7
mov dword [esp + 0x2b8], ebx
mov word [esp + 0x2a8], ax
cmp dword [esp + 0x2d8], esi
jb 0x40f5bd
mov ecx, dword [esp + 0x2c4]
push ecx
call fcn.0043e711
add esp, 4
xor eax, eax
jmp 0x40f6fa
push 0x40
lea edx, [esp + 0x48]
push ebx
push edx
mov dword [esp + 0x4c], 0x44
call fcn.0043f440
xor eax, eax
push 0x208
lea ecx, [esp + 0x96]
push ebx
push ecx
mov dword [esp + 0x2c], ebx
mov dword [esp + 0x30], eax
mov dword [esp + 0x34], eax
mov dword [esp + 0x38], eax
mov word [esp + 0x9c], ax
call fcn.0043f440
mov eax, dword [esp + 0x2dc]
add esp, 0x18
cmp dword [esp + 0x2d8], esi
jae 0x40f620
lea eax, [esp + 0x2c4]
push 0xffffffffffffffff
push eax
lea edx, [esp + 0x8c]
push 0x105
push edx
call fcn.0043f9cc
mov eax, dword [esp + 0x2b8]
add esp, 0x10
cmp dword [esp + 0x2bc], esi
jae 0x40f64f
lea eax, [esp + 0x2a8]
lea ecx, [esp + 0x14]
push ecx
lea edx, [esp + 0x44]
push edx
push ebx
push ebx
push ebx
push ebx
push ebx
push ebx
lea ecx, [esp + 0xa4]
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_CreateProcessW]
mov dword [esp + 0x10], ebx
cmp eax, ebx
je 0x40f6a6
mov edx, dword [esp + 0x14]
push 0xffffffffffffffff
push edx
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
mov ecx, dword [esp + 0x14]
lea eax, [esp + 0x10]
push eax
push ecx
call dword [sym.imp.KERNEL32.dll_GetExitCodeProcess]
test eax, eax
jne 0x40f69b
mov dword [esp + 0x10], ebx
mov edx, dword [esp + 0x14]
push edx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov edi, dword [esp + 0x10]
cmp dword [esp + 0x2bc], esi
jb 0x40f6c3
mov eax, dword [esp + 0x2a8]
push eax
call fcn.0043e711
add esp, 4
xor ecx, ecx
mov dword [esp + 0x2bc], 7
mov dword [esp + 0x2b8], ebx
mov word [esp + 0x2a8], cx
cmp dword [esp + 0x2d8], esi
jb 0x40f6f8
mov edx, dword [esp + 0x2c4]
push edx
call fcn.0043e711
add esp, 4
mov eax, edi
mov ecx, dword [esp + 0x294]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x280]
xor ecx, esp
call fcn.0043f03d
add esp, 0x290
ret