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

Disassembly:
push 0xffffffffffffffff
push 0x4029cf
mov eax, dword fs:[0]
push eax
mov eax, 0x31c80
call fcn.004027f0
mov eax, dword [0x405028]
xor eax, esp
mov dword [esp + 0x31c7c], eax
push esi
mov eax, dword [0x405028]
xor eax, esp
push eax
lea eax, [esp + 0x31c88]
mov dword fs:[0], eax
mov dword [esp + 0x31c90], 1
mov eax, dword [esp + 0x31c98]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x401467
mov ecx, dword [esp + 0x31c98]
push ecx
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
test eax, eax
jne 0x401467
mov edx, dword [esp + 0x31c98]
push 1
push eax
push eax
push edx
push 0x4036d0
push eax
call dword [sym.imp.SHELL32.dll_ShellExecuteW]
lea ecx, [esp + 0x31c98]
call dword [sym.imp.MFC80U.DLL_Ordinal_577]
lea ecx, [esp + 0x31c9c]
call dword [sym.imp.MFC80U.DLL_Ordinal_577]
mov eax, 0xfffffff6
jmp 0x4016a6
lea eax, [esp + 0x30]
push eax
call fcn.00401b70
lea ecx, [esp + 0xc]
mov byte [esp + 0x31c90], 2
call sub.MFC80U.DLL_Ordinal_384
lea ecx, [esp + 0x1c]
mov byte [esp + 0x31c90], 3
call sub.MFC80U.DLL_Ordinal_384
mov byte [esp + 0x31c90], 4
mov ecx, dword [esp + 0x31c9c]
mov eax, dword [ecx - 0xc]
test eax, eax
jne 0x4014d8
lea esi, [esp + 0x2c]
call fcn.00401270
push eax
lea ecx, [esp + 0x31ca0]
mov byte [esp + 0x31c94], 5
call dword [sym.imp.MFC80U.DLL_Ordinal_774]
mov ecx, esi
mov byte [esp + 0x31c90], 4
call dword [sym.imp.MFC80U.DLL_Ordinal_577]
mov eax, dword [esp + 0x31c9c]
lea edx, [esp + 0x30]
push edx
push 0x40
push eax
lea ecx, [esp + 0x18]
call sub.MFC80U.DLL_Ordinal_5083
test eax, eax
jne 0x40154a
lea ecx, [esp + 0x1c]
mov byte [esp + 0x31c90], 3
call sub.MFC80U.DLL_Ordinal_629
lea ecx, [esp + 0xc]
mov byte [esp + 0x31c90], 2
call sub.MFC80U.DLL_Ordinal_629
lea ecx, [esp + 0x40]
mov dword [esp + 0x30], vtable.CFileException.0
call dword [sym.imp.MFC80U.DLL_Ordinal_577]
lea ecx, [esp + 0x31c98]
call dword [sym.imp.MFC80U.DLL_Ordinal_577]
lea ecx, [esp + 0x31c9c]
call dword [sym.imp.MFC80U.DLL_Ordinal_577]
or eax, 0xffffffff
jmp 0x4016a6
mov ecx, dword [esp + 0x31c98]
push 0
push 0x1002
push ecx
lea ecx, [esp + 0x28]
call sub.MFC80U.DLL_Ordinal_5083
push 2
push 0xffffffffffffffff
push 0xfffffffffffffffc
lea ecx, [esp + 0x18]
call sub.MFC80U.DLL_Ordinal_5621
push 4
lea edx, [esp + 0xc]
push edx
lea ecx, [esp + 0x14]
call sub.MFC80U.DLL_Ordinal_5319
mov ecx, dword [esp + 8]
test ecx, ecx
jg 0x4015e1
lea ecx, [esp + 0x1c]
mov byte [esp + 0x31c90], 3
call sub.MFC80U.DLL_Ordinal_629
lea ecx, [esp + 0xc]
mov byte [esp + 0x31c90], 2
call sub.MFC80U.DLL_Ordinal_629
lea ecx, [esp + 0x40]
mov dword [esp + 0x30], vtable.CFileException.0
call dword [sym.imp.MFC80U.DLL_Ordinal_577]
lea ecx, [esp + 0x31c98]
call dword [sym.imp.MFC80U.DLL_Ordinal_577]
lea ecx, [esp + 0x31c9c]
call dword [sym.imp.MFC80U.DLL_Ordinal_577]
mov eax, 0xfffffffb
jmp 0x4016a6
mov eax, 0xfffffffc
sub eax, ecx
cdq
push 2
push edx
push eax
lea ecx, [esp + 0x18]
call sub.MFC80U.DLL_Ordinal_5621
mov eax, dword [esp + 8]
test eax, eax
je 0x401641
mov edi, edi
cmp eax, 0x31c40
jle 0x40160c
mov eax, 0x31c40
push eax
lea eax, [esp + 0x48]
push eax
lea ecx, [esp + 0x14]
call sub.MFC80U.DLL_Ordinal_5319
mov esi, eax
push esi
lea ecx, [esp + 0x48]
push ecx
lea ecx, [esp + 0x24]
call sub.MFC80U.DLL_Ordinal_6284
lea ecx, [esp + 0x1c]
call sub.MFC80U.DLL_Ordinal_2299
mov eax, dword [esp + 8]
sub eax, esi
mov dword [esp + 8], eax
jne 0x401600
lea ecx, [esp + 0xc]
call sub.MFC80U.DLL_Ordinal_1430
lea ecx, [esp + 0x1c]
call sub.MFC80U.DLL_Ordinal_1430
lea ecx, [esp + 0x1c]
mov byte [esp + 0x31c90], 3
call sub.MFC80U.DLL_Ordinal_629
lea ecx, [esp + 0xc]
mov byte [esp + 0x31c90], 2
call sub.MFC80U.DLL_Ordinal_629
lea ecx, [esp + 0x40]
mov dword [esp + 0x30], vtable.CFileException.0
call dword [sym.imp.MFC80U.DLL_Ordinal_577]
lea ecx, [esp + 0x31c98]
call dword [sym.imp.MFC80U.DLL_Ordinal_577]
lea ecx, [esp + 0x31c9c]
call dword [sym.imp.MFC80U.DLL_Ordinal_577]
mov eax, 1
mov ecx, dword [esp + 0x31c88]
mov dword fs:[0], ecx
pop ecx
pop esi
mov ecx, dword [esp + 0x31c7c]
xor ecx, esp
call fcn.00402235
add esp, 0x31c8c
ret