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

Disassembly:
push 0xffffffffffffffff
push 0x100ea8e4
mov eax, dword fs:[0]
push eax
sub esp, 0xc
push ebx
push edi
mov eax, dword [0x1012007c]
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 [0x100f4984]
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 0x100cf89f
lea ecx, [esp + 0xc]
push ecx
jmp 0x100cfa28
mov eax, dword [esp + 0xc]
mov ecx, dword [eax - 0xc]
cmp ecx, 4
jle 0x100cf8d6
push 4
push str.___
push eax
call dword [sym.imp.MSVCR90.dll_wcsncmp]
add esp, 0xc
test eax, eax
jne 0x100cf8d2
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 0x100cfa30
mov eax, dword [esp + 0xc]
mov ecx, dword [eax - 0xc]
cmp ecx, 0xc
mov edi, dword [sym.imp.MSVCR90.dll__wcsnicmp]
jle 0x100cf94a
push 0xc
push str.SystemRoot_
push eax
call edi
add esp, 0xc
test eax, eax
jne 0x100cf946
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.100b3e50
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 0x100cfa30
mov eax, dword [esp + 0xc]
mov ecx, dword [eax - 0xc]
cmp ecx, 8
jle 0x100cf9ab
push 8
push str.System32
push eax
call edi
add esp, 0xc
test eax, eax
je 0x100cf978
mov edx, dword [esp + 0xc]
push 8
push str.SysWow64
push edx
call edi
add esp, 0xc
test eax, eax
jne 0x100cf9ab
lea eax, [esp + 0x14]
push eax
lea ecx, [esp + 0x10]
mov ebx, str._systemroot__
call fcn.100b3e50
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 0x100cfa30
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 0x100cf9f0
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 0x100cf9f0
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 0x100cfa06
lea edx, [esp + 0xc]
push edx
jmp 0x100cfa28
push 0
push 0x1010e464
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 0x100cfa27
mov ecx, dword [esp + 0xc]
mov ebx, esi
call fcn.10001650
jmp 0x100cfa30
push ebx
mov ecx, esi
call dword [0x100f4988]
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