Function at 0x40fd80
Capabilities:
Check if file exists

Disassembly:
push 0xffffffffffffffff
push 0x45a2a8
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x800
push ebx
push ebp
push esi
push edi
mov ebx, ecx
mov eax, dword [ebx + 0x20]
mov dword [esp + 0x818], 0
push eax
call dword [sym.imp.USER32.dll_IsWindow]
test eax, eax
je 0x40fe05
mov ecx, dword [esp + 0x824]
test ecx, ecx
jle 0x40fe05
mov edx, dword [ebx + 0xe4]
mov eax, 0x51eb851f
mov dword [ebx + 0xec], edx
imul ecx
sar edx, 5
mov ecx, dword [ebx + 0x20]
mov eax, edx
shr eax, 0x1f
add edx, eax
push 0
push edx
push 0x64
push ecx
mov dword [ebx + 0xe4], 0
mov dword [ebx + 0x100], 1
call dword [sym.imp.USER32.dll_SetTimer]
mov eax, dword [ebx + 0xe4]
mov edi, dword [sym.imp.SHLWAPI.dll_PathRemoveFileSpecW]
lea ebp, [ebx + 0xe4]
test eax, eax
jne 0x40fefe
mov eax, dword [0x47310c]
test eax, eax
je 0x40fe36
mov ecx, dword [0x4730e4]
test ecx, ecx
jne 0x40fee8
lea edx, [esp + 0x10]
push 0x400
push edx
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
lea eax, [esp + 0x10]
push eax
call edi
mov eax, dword [0x4730e8]
xor esi, esi
test eax, eax
jle 0x40fe6b
lea ecx, [esp + 0x10]
push ecx
call edi
mov eax, dword [0x4730e8]
inc esi
cmp esi, eax
jl 0x40fe5a
lea edx, [esp + 0x10]
push str.MiniUI.dll
lea eax, [esp + 0x14]
push edx
push eax
call dword [sym.imp.SHLWAPI.dll_PathCombineW]
lea ecx, [esp + 0x10]
test ecx, ecx
je 0x40febb
lea edx, [esp + 0x10]
push edx
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x40febf
lea eax, [esp + 0x10]
push eax
call fcn.00456ce0
add esp, 4
test eax, eax
jne 0x40febf
call fcn.00456be0
lea ecx, [esp + 0x10]
push eax
push ecx
call fcn.00456bf0
add esp, 8
xor eax, eax
jmp 0x40feca
lea edx, [esp + 0x10]
push edx
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
test eax, eax
mov dword [0x4730e4], eax
je 0x40fef9
push str.GetMiniUI4
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
test eax, eax
mov dword [0x47310c], eax
je 0x40fef9
call eax
test eax, eax
je 0x40fef9
mov ecx, dword [eax]
push eax
call dword [ecx + 0x98]
jmp 0x40fefb
xor eax, eax
mov dword [ebp], eax
mov ecx, dword [ebp]
test ecx, ecx
je 0x410019
mov eax, dword [esp + 0x820]
mov edx, dword [ecx]
push 0
push eax
call dword [edx + 0xc]
test eax, eax
jne 0x41000f
mov eax, dword [0x4730e0]
test eax, eax
je 0x40ff37
mov ecx, dword [0x4730e4]
test ecx, ecx
jne 0x410002
lea ecx, [esp + 0x10]
push 0x400
push ecx
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
lea edx, [esp + 0x10]
push edx
call edi
mov eax, dword [0x4730e8]
xor esi, esi
test eax, eax
jle 0x40ff6c
lea eax, [esp + 0x10]
push eax
call edi
mov eax, dword [0x4730e8]
inc esi
cmp esi, eax
jl 0x40ff5b
lea ecx, [esp + 0x10]
push str.MiniUI.dll
lea edx, [esp + 0x14]
push ecx
push edx
call dword [sym.imp.SHLWAPI.dll_PathCombineW]
lea eax, [esp + 0x10]
test eax, eax
je 0x40ffbc
lea ecx, [esp + 0x10]
push ecx
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x40ffc0
lea edx, [esp + 0x10]
push edx
call fcn.00456ce0
add esp, 4
test eax, eax
jne 0x40ffc0
call fcn.00456be0
push eax
lea eax, [esp + 0x14]
push eax
call fcn.00456bf0
add esp, 8
xor eax, eax
jmp 0x40ffcb
lea ecx, [esp + 0x10]
push ecx
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
test eax, eax
mov dword [0x4730e4], eax
je 0x41000f
push str.GetMiniUI
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
test eax, eax
mov dword [0x4730e0], eax
jne 0x410002
mov edx, dword [0x4730e4]
push edx
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
mov dword [0x4730e4], 0
jmp 0x41000f
call eax
test eax, eax
je 0x41000f
mov ecx, dword [eax]
push ebp
push eax
call dword [ecx + 0x58]
mov dword [ebx + 0xd8], 0
lea ecx, [esp + 0x820]
mov dword [esp + 0x818], 0xffffffff
call sub.MFC42u.DLL_CString::CString
mov ecx, dword [esp + 0x810]
pop edi
pop esi
pop ebp
pop ebx
mov dword fs:[0], ecx
add esp, 0x80c
ret 8