Function at 0x100cf4b0
Capabilities:
Accept command line arguments
Check if file exists

Disassembly:
push 0xffffffffffffffff
push 0x100ea304
mov eax, dword fs:[0]
push eax
sub esp, 0xc
push ebx
push edi
mov eax, dword [0x1011f07c]
xor eax, esp
push eax
lea eax, [esp + 0x18]
mov dword fs:[0], eax
mov ebx, ecx
lea ecx, [esp + 0xc]
mov dword [esp + 0x14], 0
call dword [0x100f3984]
push ebx
lea ecx, [esp + 0x10]
mov dword [esp + 0x24], 0
call dword [sym.imp.mfc90u.dll_ATL::CStringT_wchar_t_class_StrTraitMFC_DLL_wchar_t_class_ATL::ChTraitsCRT_wchar_t_____::operator]
lea ecx, [esp + 0xc]
call dword [sym.imp.mfc90u.dll_ATL::CStringT_wchar_t_class_StrTraitMFC_DLL_wchar_t_class_ATL::ChTraitsCRT_wchar_t_____::Trim]
mov eax, dword [esp + 0xc]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x100cf51f
lea ecx, [esp + 0xc]
push ecx
jmp 0x100cf6a8
mov eax, dword [esp + 0xc]
mov ecx, dword [eax - 0xc]
cmp ecx, 4
jle 0x100cf556
push 4
push str.___
push eax
call dword [sym.imp.MSVCR90.dll_wcsncmp]
add esp, 0xc
test eax, eax
jne 0x100cf552
push 4
push esi
lea ecx, [esp + 0x14]
call dword [sym.imp.mfc90u.dll_ATL::CStringT_wchar_t_class_StrTraitMFC_DLL_wchar_t_class_ATL::ChTraitsCRT_wchar_t_____::Mid]
jmp 0x100cf6b0
mov eax, dword [esp + 0xc]
mov ecx, dword [eax - 0xc]
cmp ecx, 0xc
mov edi, dword [sym.imp.MSVCR90.dll__wcsnicmp]
jle 0x100cf5ca
push 0xc
push str.SystemRoot_
push eax
call edi
add esp, 0xc
test eax, eax
jne 0x100cf5c6
push 0xc
lea edx, [esp + 0x18]
push edx
lea ecx, [esp + 0x14]
call dword [sym.imp.mfc90u.dll_ATL::CStringT_wchar_t_class_StrTraitMFC_DLL_wchar_t_class_ATL::ChTraitsCRT_wchar_t_____::Mid]
lea ecx, [esp + 0x10]
push ecx
mov ecx, eax
mov ebx, str._systemroot__
mov byte [esp + 0x24], 1
call fcn.100b37a0
add esp, 4
mov byte [esp + 0x20], 2
mov ecx, dword [eax]
mov ebx, esi
call fcn.10001650
lea ecx, [esp + 0x10]
call dword [sym.imp.mfc90u.dll_ATL::CStringT_wchar_t_class_StrTraitMFC_DLL_wchar_t_class_ATL::ChTraitsCRT_wchar_t_____::CStringT_wchar_t_clas]
lea ecx, [esp + 0x14]
call dword [sym.imp.mfc90u.dll_ATL::CStringT_wchar_t_class_StrTraitMFC_DLL_wchar_t_class_ATL::ChTraitsCRT_wchar_t_____::CStringT_wchar_t_clas]
jmp 0x100cf6b0
mov eax, dword [esp + 0xc]
mov ecx, dword [eax - 0xc]
cmp ecx, 8
jle 0x100cf62b
push 8
push str.System32
push eax
call edi
add esp, 0xc
test eax, eax
je 0x100cf5f8
mov edx, dword [esp + 0xc]
push 8
push str.SysWow64
push edx
call edi
add esp, 0xc
test eax, eax
jne 0x100cf62b
lea eax, [esp + 0x14]
push eax
lea ecx, [esp + 0x10]
mov ebx, str._systemroot__
call fcn.100b37a0
add esp, 4
mov byte [esp + 0x20], 3
mov ecx, dword [eax]
mov ebx, esi
call fcn.10001650
lea ecx, [esp + 0x14]
call dword [sym.imp.mfc90u.dll_ATL::CStringT_wchar_t_class_StrTraitMFC_DLL_wchar_t_class_ATL::ChTraitsCRT_wchar_t_____::CStringT_wchar_t_clas]
jmp 0x100cf6b0
push 0
push 0x22
lea ecx, [esp + 0x14]
call dword [sym.imp.mfc90u.dll_ATL::CStringT_wchar_t_class_StrTraitMFC_DLL_wchar_t_class_ATL::ChTraitsCRT_wchar_t_____::Find_1]
cmp eax, 0xffffffff
je 0x100cf670
mov edx, dword [esp + 0xc]
lea ecx, [esp + 0x14]
push ecx
push edx
mov dword [esp + 0x1c], 0
call dword [sym.imp.SHELL32.dll_CommandLineToArgvW]
mov edi, eax
test edi, edi
je 0x100cf670
mov eax, dword [edi]
push eax
lea ecx, [esp + 0x10]
call dword [sym.imp.mfc90u.dll_ATL::CStringT_wchar_t_class_StrTraitMFC_DLL_wchar_t_class_ATL::ChTraitsCRT_wchar_t_____::operator_1]
push edi
call dword [sym.imp.KERNEL32.dll_LocalFree]
mov ecx, dword [esp + 0xc]
push ecx
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x100cf686
lea edx, [esp + 0xc]
push edx
jmp 0x100cf6a8
push 0
push 0x1010d464
mov ecx, ebx
call dword [sym.imp.mfc90u.dll_ATL::CStringT_wchar_t_class_StrTraitMFC_DLL_wchar_t_class_ATL::ChTraitsCRT_wchar_t_____::Find]
cmp eax, 0xffffffff
je 0x100cf6a7
mov ecx, dword [esp + 0xc]
mov ebx, esi
call fcn.10001650
jmp 0x100cf6b0
push ebx
mov ecx, esi
call dword [0x100f3988]
lea ecx, [esp + 0xc]
call dword [sym.imp.mfc90u.dll_ATL::CStringT_wchar_t_class_StrTraitMFC_DLL_wchar_t_class_ATL::ChTraitsCRT_wchar_t_____::CStringT_wchar_t_clas]
mov eax, esi
mov ecx, dword [esp + 0x18]
mov dword fs:[0], ecx
pop ecx
pop edi
pop ebx
add esp, 0x18
ret