Function at 0x405320
Capabilities:
Check if file exists

Disassembly:
mov eax, dword fs:[0]
push 0xffffffffffffffff
push 0x43cae9
push eax
mov eax, 0x1214
mov dword fs:[0], esp
call fcn.00439c20
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 [0x44ffe8]
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 [0x44fe90]
cmp eax, ebx
je 0x4053ad
cmp dword [0x44fe94], ebx
jne 0x405497
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 [0x44fe98]
xor esi, esi
cmp eax, ebx
jle 0x4053f0
lea eax, [esp + 0x220]
push eax
call edi
mov eax, dword [0x44fe98]
inc esi
cmp esi, eax
jl 0x4053dc
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 0x405452
lea ecx, [esp + 0x220]
push ecx
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x405456
lea edx, [esp + 0x220]
push edx
call fcn.0043a2e0
add esp, 4
test eax, eax
jne 0x405456
call fcn.0043a1e0
push eax
lea eax, [esp + 0x224]
push eax
call fcn.0043a1f0
add esp, 8
xor eax, eax
jmp 0x405464
lea ecx, [esp + 0x220]
push ecx
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
cmp eax, ebx
mov dword [0x44fe94], eax
je 0x4054a9
push str.GetMiniUI
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
cmp eax, ebx
mov dword [0x44fe90], eax
jne 0x405497
mov edx, dword [0x44fe94]
push edx
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
mov dword [0x44fe94], ebx
jmp 0x4054a9
call eax
cmp eax, ebx
je 0x4054a9
mov ecx, dword [eax]
push eax
call dword [ecx + 0x6c]
mov esi, eax
cmp esi, ebx
jne 0x4054f9
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 0x4055f5
mov edx, dword [esp + 0x1230]
lea eax, [esp + 0x18]
push ebp
mov ebp, edx
test eax, eax
je 0x405594
cmp edx, ebx
mov word [esp + 0x1c], bx
je 0x405594
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 0x405580
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 0x40558b
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