Function at 0x40e2c8
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x413940
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
mov eax, 0x1038
call fcn.00412970
mov dword [ebp - 0x103c], ecx
mov dword [ebp - 0x1014], str.open
mov dword [ebp - 0x1028], 5
mov word [ebp - 0x1010], 0
mov word [ebp - 0x810], 0
lea eax, [ebp - 0x810]
push eax
lea ecx, [ebp - 0x1010]
push ecx
mov edx, dword [ebp + 0xc]
push edx
push 0
mov ecx, dword [ebp - 0x103c]
call fcn.0040f02f
lea eax, [ebp - 0x1010]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFindExtensionW]
mov dword [ebp - 0x1020], eax
mov ecx, dword [ebp - 0x1020]
push ecx
lea ecx, [ebp - 0x1018]
call fcn.004125b6
mov dword [ebp - 4], 0
lea ecx, [ebp - 0x1018]
call sub.MFC42u.DLL_CString::MakeLower
mov edx, dword [ebp + 0xc]
push edx
lea ecx, [ebp - 0x1024]
call fcn.004125b6
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x101c]
call sub.MFC42u.DLL_CString::CString_1
mov byte [ebp - 4], 2
lea ecx, [ebp - 0x101c]
call sub.MFC42u.DLL_CString::Empty
lea eax, [ebp - 0x101c]
push eax
lea ecx, [ebp - 0x1024]
call fcn.00404130
push eax
mov ecx, dword [ebp - 0x103c]
call fcn.0040d5d5
mov dword [ebp - 0x10], 0
push str..exe
lea ecx, [ebp - 0x1018]
call sub.MFC42u.DLL_CString::Find_1
cmp eax, 0xffffffff
je 0x40e486
lea ecx, [ebp - 0x101c]
call fcn.00404110
test eax, eax
je 0x40e44f
lea ecx, [ebp - 0x1010]
push ecx
lea ecx, [ebp - 0x101c]
call fcn.004125b0
push 0x5c
lea ecx, [ebp - 0x101c]
call sub.MFC42u.DLL_CString::ReverseFind
push eax
lea edx, [ebp - 0x102c]
push edx
lea ecx, [ebp - 0x101c]
call sub.MFC42u.DLL_CString::Left
mov dword [ebp - 0x1040], eax
mov eax, dword [ebp - 0x1040]
mov dword [ebp - 0x1044], eax
mov byte [ebp - 4], 3
mov ecx, dword [ebp - 0x1044]
push ecx
lea ecx, [ebp - 0x101c]
call fcn.004125e0
mov byte [ebp - 4], 2
lea ecx, [ebp - 0x102c]
call sub.MFC42u.DLL_CString::CString
mov edx, dword [ebp - 0x1028]
push edx
lea ecx, [ebp - 0x101c]
call fcn.00404130
push eax
lea eax, [ebp - 0x810]
push eax
lea ecx, [ebp - 0x1010]
push ecx
mov edx, dword [ebp - 0x1014]
push edx
mov eax, dword [ebp + 8]
push eax
call dword [sym.imp.SHELL32.dll_ShellExecuteW]
mov dword [ebp - 0x10], eax
jmp 0x40e4b5
mov ecx, dword [ebp - 0x1028]
push ecx
lea ecx, [ebp - 0x101c]
call fcn.00404130
push eax
mov edx, dword [ebp + 0x10]
push edx
mov eax, dword [ebp + 0xc]
push eax
mov ecx, dword [ebp - 0x1014]
push ecx
mov edx, dword [ebp + 8]
push edx
call dword [sym.imp.SHELL32.dll_ShellExecuteW]
mov dword [ebp - 0x10], eax
cmp dword [ebp - 0x10], 0x20
jg 0x40e500
mov dword [ebp - 0x1030], 0x80004005
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x101c]
call sub.MFC42u.DLL_CString::CString
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x1024]
call sub.MFC42u.DLL_CString::CString
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x1018]
call sub.MFC42u.DLL_CString::CString
mov eax, dword [ebp - 0x1030]
jmp 0x40e588
cmp dword [ebp - 0x10], 0x2a
jne 0x40e548
mov dword [ebp - 0x1034], 0x80004005
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x101c]
call sub.MFC42u.DLL_CString::CString
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x1024]
call sub.MFC42u.DLL_CString::CString
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x1018]
call sub.MFC42u.DLL_CString::CString
mov eax, dword [ebp - 0x1034]
jmp 0x40e588
mov dword [ebp - 0x1038], 0
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x101c]
call sub.MFC42u.DLL_CString::CString
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x1024]
call sub.MFC42u.DLL_CString::CString
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x1018]
call sub.MFC42u.DLL_CString::CString
mov eax, dword [ebp - 0x1038]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
mov esp, ebp
pop ebp
ret 0x10