Function at 0x405620
Capabilities:
Check if file exists

Disassembly:
mov eax, dword fs:[0]
push 0xffffffffffffffff
push 0x4596b9
push eax
mov eax, 0x1214
mov dword fs:[0], esp
call fcn.00456620
push ebx
push esi
push edi
xor ebx, ebx
lea ecx, [esp + 0xc]
mov dword [esp + 0x1228], ebx
call sub.MFC42u.DLL_CString::CString_4
lea ecx, [esp + 0x14]
mov byte [esp + 0x1228], 1
call sub.MFC42u.DLL_CString::CString_4
lea ecx, [esp + 0x10]
mov byte [esp + 0x1228], 2
call sub.MFC42u.DLL_CString::CString_4
mov ax, word [0x473258]
mov ecx, 0x81
mov word [esp + 0x18], ax
xor eax, eax
lea edi, [esp + 0x1a]
mov byte [esp + 0x1228], 3
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
mov eax, dword [0x4730e0]
cmp eax, ebx
je 0x4056ad
cmp dword [0x4730e4], ebx
jne 0x405797
lea ecx, [esp + 0x220]
push 0x400
push ecx
push ebx
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
mov edi, dword [sym.imp.SHLWAPI.dll_PathRemoveFileSpecW]
lea edx, [esp + 0x220]
push edx
call edi
mov eax, dword [0x4730e8]
xor esi, esi
cmp eax, ebx
jle 0x4056f0
lea eax, [esp + 0x220]
push eax
call edi
mov eax, dword [0x4730e8]
inc esi
cmp esi, eax
jl 0x4056dc
lea ecx, [esp + 0x220]
push str.MiniUI.dll
lea edx, [esp + 0x224]
push ecx
push edx
call dword [sym.imp.SHLWAPI.dll_PathCombineW]
lea eax, [esp + 0x220]
test eax, eax
je 0x405752
lea ecx, [esp + 0x220]
push ecx
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x405756
lea edx, [esp + 0x220]
push edx
call fcn.00456ce0
add esp, 4
test eax, eax
jne 0x405756
call fcn.00456be0
push eax
lea eax, [esp + 0x224]
push eax
call fcn.00456bf0
add esp, 8
xor eax, eax
jmp 0x405764
lea ecx, [esp + 0x220]
push ecx
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
cmp eax, ebx
mov dword [0x4730e4], eax
je 0x4057a9
push str.GetMiniUI
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
cmp eax, ebx
mov dword [0x4730e0], eax
jne 0x405797
mov edx, dword [0x4730e4]
push edx
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
mov dword [0x4730e4], ebx
jmp 0x4057a9
call eax
cmp eax, ebx
je 0x4057a9
mov ecx, dword [eax]
push eax
call dword [ecx + 0x6c]
mov esi, eax
cmp esi, ebx
jne 0x4057f9
lea ecx, [esp + 0x10]
mov byte [esp + 0x1228], 2
call sub.MFC42u.DLL_CString::CString
lea ecx, [esp + 0x14]
mov byte [esp + 0x1228], 1
call sub.MFC42u.DLL_CString::CString
lea ecx, [esp + 0xc]
mov byte [esp + 0x1228], bl
call sub.MFC42u.DLL_CString::CString
lea ecx, [esp + 0x1230]
mov dword [esp + 0x1228], 0xffffffff
call sub.MFC42u.DLL_CString::CString
xor eax, eax
jmp 0x4058f5
mov edx, dword [esp + 0x1230]
lea eax, [esp + 0x18]
push ebp
mov ebp, edx
test eax, eax
je 0x405894
cmp edx, ebx
mov word [esp + 0x1c], bx
je 0x405894
mov ecx, 0x400
xor eax, eax
lea edi, [esp + 0x224]
push edx
rep stosd dword es:[edi], eax
call dword [sym.imp.SHLWAPI.dll_PathIsRelativeW]
test eax, eax
je 0x405880
lea ecx, [esp + 0x224]
push 0x800
push ecx
push ebx
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
lea edx, [esp + 0x224]
push edx
call dword [sym.imp.SHLWAPI.dll_PathRemoveFileSpecW]
lea eax, [esp + 0x224]
push ebp
lea ecx, [esp + 0x228]
push eax
push ecx
call dword [sym.imp.SHLWAPI.dll_PathCombineW]
lea edx, [esp + 0x224]
push 0x104
lea eax, [esp + 0x20]
push edx
push eax
jmp 0x40588b
push 0x104
lea ecx, [esp + 0x20]
push ebp
push ecx
call dword [sym.imp.MSVCRT.dll_wcsncpy]
add esp, 0xc
call sub.MFC42u.DLL_AfxGetModuleState
mov eax, dword [eax + 8]
mov edx, dword [esi]
lea ecx, [esp + 0x1c]
push ecx
push eax
push esi
call dword [edx]
lea ecx, [esp + 0x14]
mov esi, eax
mov byte [esp + 0x122c], 2
call sub.MFC42u.DLL_CString::CString
lea ecx, [esp + 0x18]
mov byte [esp + 0x122c], 1
call sub.MFC42u.DLL_CString::CString
lea ecx, [esp + 0x10]
mov byte [esp + 0x122c], bl
call sub.MFC42u.DLL_CString::CString
lea ecx, [esp + 0x1234]
mov dword [esp + 0x122c], 0xffffffff
call sub.MFC42u.DLL_CString::CString
mov eax, esi
pop ebp
mov ecx, dword [esp + 0x1220]
pop edi
pop esi
pop ebx
mov dword fs:[0], ecx
add esp, 0x1220
ret 4