Function at 0x42371a
Capabilities:
Check if file exists
Set current directory

Disassembly:
push 0x30
mov eax, 0x4281a7
call fcn.00427592
push dword [ebp + 0xc]
lea ecx, [ebp - 0x20]
call dword [0x42e8c8]
and dword [ebp - 4], 0
push 0x438548
push 0x43854c
lea ecx, [ebp - 0x20]
call dword [sym.imp.mfc90u.dll_ATL::CStringT_wchar_t_class_StrTraitMFC_DLL_wchar_t_class_ATL::ChTraitsCRT_wchar_t_____::Replace]
lea ecx, [ebp - 0x14]
call dword [sym.imp.mfc90u.dll_ATL::CStringT_wchar_t_class_StrTraitMFC_DLL_wchar_t_class_ATL::ChTraitsCRT_wchar_t_____::CStringT_wchar_t_class]
mov byte [ebp - 4], 1
call sub.mfc90u.dll_AfxGetModuleState
mov eax, dword [eax + 8]
lea ecx, [ebp - 0x14]
push ecx
push eax
call dword [sym.imp.K9PCUhelper.dll_wchar_t_const____cdecl_GetAppPath_struct_HINSTANCE_____class_ATL::CStringT_wchar_t__class_StrTraitMFC_DLL_wchar_t__class_ATL::ChTraitsCRT_wchar_t_____]
pop ecx
pop ecx
push dword [ebp - 0x14]
call dword [sym.imp.KERNEL32.dll_SetCurrentDirectoryW]
lea eax, [ebp - 0x14]
push eax
lea ecx, [ebp - 0x18]
call dword [0x42e8d8]
mov byte [ebp - 4], 2
push dword [ebp + 0x10]
lea ecx, [ebp - 0x28]
call dword [0x42e8c8]
lea eax, [ebp - 0x28]
push eax
lea eax, [ebp - 0x18]
mov byte [ebp - 4], 3
mov esi, dword [sym.imp.K9PCUhelper.dll_enum_PCO_ERROR_CODES___cdecl_STPathAppend_class_ATL::CStringT_wchar_t__class_StrTraitMFC_DLL_wchar_t__class_ATL::ChTraitsCRT_wchar_t______class_ATL::CStringT_wchar_t__class_StrTraitMFC_DLL_wchar_t__class_ATL::ChTraitsCRT_wchar_t____const__]
push eax
call esi
pop ecx
pop ecx
lea eax, [ebp - 0x14]
push eax
lea ecx, [ebp - 0x1c]
call dword [0x42e8d8]
push dword [ebp + 0x14]
lea ecx, [ebp - 0x24]
mov byte [ebp - 4], 4
call dword [0x42e8c8]
lea eax, [ebp - 0x24]
push eax
lea eax, [ebp - 0x1c]
push eax
mov byte [ebp - 4], 5
call esi
pop ecx
pop ecx
push dword [ebp - 0x18]
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x42391e
lea eax, [ebp + 0xc]
push eax
push 0x438648
push 1
push 0
push 0x42ecdc
call dword [sym.imp.ole32.dll_CoCreateInstance]
mov esi, eax
test esi, esi
jl 0x4238d5
mov eax, dword [ebp + 0xc]
push dword [ebp - 0x18]
mov ecx, dword [eax]
push eax
call dword [ecx + 0x50]
mov esi, eax
test esi, esi
jl 0x4238d5
mov eax, dword [ebp + 0xc]
push dword [ebp + 8]
mov ecx, dword [eax]
push eax
call dword [ecx + 0x2c]
mov esi, eax
test esi, esi
jl 0x4238d5
mov eax, dword [ebp + 0xc]
mov ecx, dword [eax]
push 0
push dword [ebp - 0x1c]
push eax
call dword [ecx + 0x44]
mov esi, eax
test esi, esi
jl 0x4238d5
mov eax, dword [ebp + 0xc]
mov ecx, dword [eax]
lea edx, [ebp + 0x10]
push edx
push 0x438628
push eax
call dword [ecx]
mov esi, eax
test esi, esi
jl 0x4238d5
push 0x1f
pop eax
mov word [ebp - 0x3c], ax
lea eax, [ebp - 0x34]
push eax
push dword [ebp - 0x20]
call dword [sym.imp.SHLWAPI.dll_SHStrDupW]
mov esi, eax
test esi, esi
jge 0x423889
xor eax, eax
lea edi, [ebp - 0x3c]
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
test esi, esi
jl 0x4238cc
mov eax, dword [ebp + 0x10]
mov ecx, dword [eax]
lea edx, [ebp - 0x3c]
push edx
push 0x42ed0c
push eax
call dword [ecx + 0x18]
mov esi, eax
test esi, esi
jl 0x4238c2
mov eax, dword [ebp + 0x10]
mov ecx, dword [eax]
push eax
call dword [ecx + 0x1c]
mov esi, eax
test esi, esi
jl 0x4238c2
push dword [ebp + 0x18]
mov eax, dword [ebp + 0xc]
mov ecx, dword [eax]
push 0x438648
push eax
call dword [ecx]
mov esi, eax
lea eax, [ebp - 0x3c]
push eax
call dword [sym.imp.ole32.dll_PropVariantClear]
mov eax, dword [ebp + 0x10]
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
mov eax, dword [ebp + 0xc]
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
lea ecx, [ebp - 0x24]
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, [ebp - 0x1c]
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, [ebp - 0x28]
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, [ebp - 0x18]
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, [ebp - 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]
lea ecx, [ebp - 0x20]
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
call fcn.00427631
ret 0x14
xor esi, esi
inc esi
jmp 0x4238de