Function at 0x40a6c0
Capabilities:
Check if file exists

Disassembly:
push 0xffffffffffffffff
push 0x459d70
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x804
push ebx
push ebp
push esi
push edi
mov edi, ecx
mov dword [esp + 0x10], edi
mov eax, dword [esp + 0x824]
xor ebx, ebx
mov dword [esp + 0x81c], 3
mov eax, dword [eax - 8]
cmp eax, ebx
je 0x40a74d
mov eax, dword [edi + 0xe4]
lea esi, [edi + 0xe4]
cmp eax, ebx
jne 0x40a725
call fcn.00406030
cmp eax, ebx
je 0x40a721
mov ecx, dword [eax]
push eax
call dword [ecx + 0x54]
jmp 0x40a723
xor eax, eax
mov dword [esi], eax
mov ecx, dword [esi]
cmp ecx, ebx
je 0x40a74d
mov eax, dword [esp + 0x824]
mov edx, dword [ecx]
push ebx
push eax
call dword [edx + 0xc]
test eax, eax
jne 0x40a74d
call fcn.00406030
cmp eax, ebx
je 0x40a74d
mov ecx, dword [eax]
push esi
push eax
call dword [ecx + 0x58]
mov edx, dword [esp + 0x828]
cmp dword [edx - 8], ebx
je 0x40a7a6
mov eax, dword [edi + 0xd8]
lea esi, [edi + 0xd8]
cmp eax, ebx
jne 0x40a77e
call fcn.00406030
cmp eax, ebx
je 0x40a77a
mov ecx, dword [eax]
push eax
call dword [ecx + 0x54]
jmp 0x40a77c
xor eax, eax
mov dword [esi], eax
mov ecx, dword [esi]
cmp ecx, ebx
je 0x40a7a6
mov eax, dword [esp + 0x828]
mov edx, dword [ecx]
push ebx
push eax
call dword [edx + 0xc]
test eax, eax
jne 0x40a7a6
call fcn.00406030
cmp eax, ebx
je 0x40a7a6
mov ecx, dword [eax]
push esi
push eax
call dword [ecx + 0x58]
mov edx, dword [esp + 0x82c]
mov ebp, dword [sym.imp.SHLWAPI.dll_PathRemoveFileSpecW]
mov eax, dword [edx - 8]
cmp eax, ebx
je 0x40a8bd
mov eax, dword [edi + 0xe0]
add edi, 0xe0
cmp eax, ebx
jne 0x40a7e3
call fcn.00406030
cmp eax, ebx
je 0x40a7df
mov ecx, dword [eax]
push eax
call dword [ecx + 0x54]
jmp 0x40a7e1
xor eax, eax
mov dword [edi], eax
mov ecx, dword [edi]
cmp ecx, ebx
je 0x40a8bd
mov eax, dword [esp + 0x82c]
mov edx, dword [ecx]
push ebx
push eax
call dword [edx + 0xc]
test eax, eax
jne 0x40a8bd
mov eax, dword [0x4730e0]
cmp eax, ebx
je 0x40a818
cmp dword [0x4730e4], ebx
jne 0x40a8b0
lea ecx, [esp + 0x14]
push 0x400
push ecx
push ebx
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
lea edx, [esp + 0x14]
push edx
call ebp
mov eax, dword [0x4730e8]
xor esi, esi
cmp eax, ebx
jle 0x40a84c
lea eax, [esp + 0x14]
push eax
call ebp
mov eax, dword [0x4730e8]
inc esi
cmp esi, eax
jl 0x40a83b
lea ecx, [esp + 0x14]
push str.MiniUI.dll
lea edx, [esp + 0x18]
push ecx
push edx
call dword [sym.imp.SHLWAPI.dll_PathCombineW]
lea eax, [esp + 0x14]
push eax
call fcn.00401560
add esp, 4
test eax, eax
je 0x40a87d
lea ecx, [esp + 0x14]
push ecx
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
cmp eax, ebx
mov dword [0x4730e4], eax
je 0x40a8bd
push str.GetMiniUI
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
cmp eax, ebx
mov dword [0x4730e0], eax
jne 0x40a8b0
mov edx, dword [0x4730e4]
push edx
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
mov dword [0x4730e4], ebx
jmp 0x40a8bd
call eax
cmp eax, ebx
je 0x40a8bd
mov ecx, dword [eax]
push edi
push eax
call dword [ecx + 0x58]
mov edx, dword [esp + 0x830]
cmp dword [edx - 8], ebx
je 0x40aae3
mov eax, dword [esp + 0x10]
lea edi, [eax + 0xdc]
mov eax, dword [eax + 0xdc]
cmp eax, ebx
jne 0x40a9c6
mov eax, dword [0x4730e0]
cmp eax, ebx
je 0x40a8fa
cmp dword [0x4730e4], ebx
jne 0x40aa83
lea ecx, [esp + 0x14]
push 0x400
push ecx
push ebx
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
lea edx, [esp + 0x14]
push edx
call ebp
mov eax, dword [0x4730e8]
xor esi, esi
cmp eax, ebx
jle 0x40a92e
lea eax, [esp + 0x14]
push eax
call ebp
mov eax, dword [0x4730e8]
inc esi
cmp esi, eax
jl 0x40a91d
lea ecx, [esp + 0x14]
push str.MiniUI.dll
lea edx, [esp + 0x18]
push ecx
push edx
call dword [sym.imp.SHLWAPI.dll_PathCombineW]
lea eax, [esp + 0x14]
test eax, eax
je 0x40a97e
lea ecx, [esp + 0x14]
push ecx
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x40a982
lea edx, [esp + 0x14]
push edx
call fcn.00456ce0
add esp, 4
test eax, eax
jne 0x40a982
call fcn.00456be0
push eax
lea eax, [esp + 0x18]
push eax
call fcn.00456bf0
add esp, 8
xor eax, eax
jmp 0x40a98d
lea ecx, [esp + 0x14]
push ecx
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
cmp eax, ebx
mov dword [0x4730e4], eax
je 0x40a9c2
push str.GetMiniUI
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
cmp eax, ebx
mov dword [0x4730e0], eax
jne 0x40aa83
mov edx, dword [0x4730e4]
push edx
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
mov dword [0x4730e4], ebx
xor eax, eax
mov dword [edi], eax
mov ecx, dword [edi]
cmp ecx, ebx
je 0x40aae3
mov eax, dword [esp + 0x830]
mov edx, dword [ecx]
push ebx
push eax
call dword [edx + 0xc]
test eax, eax
jne 0x40aae3
mov eax, dword [0x4730e0]
cmp eax, ebx
je 0x40a9fb
cmp dword [0x4730e4], ebx
jne 0x40aad6
lea ecx, [esp + 0x14]
push 0x400
push ecx
push ebx
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
lea edx, [esp + 0x14]
push edx
call ebp
mov eax, dword [0x4730e8]
xor esi, esi
cmp eax, ebx
jle 0x40aa2f
lea eax, [esp + 0x14]
push eax
call ebp
mov eax, dword [0x4730e8]
inc esi
cmp esi, eax
jl 0x40aa1e
lea ecx, [esp + 0x14]
push str.MiniUI.dll
lea edx, [esp + 0x18]
push ecx
push edx
call dword [sym.imp.SHLWAPI.dll_PathCombineW]
lea eax, [esp + 0x14]
test eax, eax
je 0x40aa7f
lea ecx, [esp + 0x14]
push ecx
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x40aa98
lea edx, [esp + 0x14]
push edx
call fcn.00456ce0
add esp, 4
test eax, eax
jne 0x40aa98
call fcn.00456be0
push eax
lea eax, [esp + 0x18]
push eax
call fcn.00456bf0
add esp, 8
xor eax, eax
jmp 0x40aaa3
call eax
cmp eax, ebx
je 0x40a9c2
mov ecx, dword [eax]
push eax
call dword [ecx + 0x54]
jmp 0x40a9c4
lea ecx, [esp + 0x14]
push ecx
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
cmp eax, ebx
mov dword [0x4730e4], eax
je 0x40aae3
push str.GetMiniUI
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
cmp eax, ebx
mov dword [0x4730e0], eax
jne 0x40aad6
mov edx, dword [0x4730e4]
push edx
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
mov dword [0x4730e4], ebx
jmp 0x40aae3
call eax
cmp eax, ebx
je 0x40aae3
mov ecx, dword [eax]
push edi
push eax
call dword [ecx + 0x58]
lea ecx, [esp + 0x824]
mov byte [esp + 0x81c], 2
call sub.MFC42u.DLL_CString::CString
lea ecx, [esp + 0x828]
mov byte [esp + 0x81c], 1
call sub.MFC42u.DLL_CString::CString
lea ecx, [esp + 0x82c]
mov byte [esp + 0x81c], bl
call sub.MFC42u.DLL_CString::CString
lea ecx, [esp + 0x830]
mov dword [esp + 0x81c], 0xffffffff
call sub.MFC42u.DLL_CString::CString
mov ecx, dword [esp + 0x814]
pop edi
pop esi
pop ebp
pop ebx
mov dword fs:[0], ecx
add esp, 0x810
ret 0x10