Function at 0x408810
Capabilities:
Check if file exists

Disassembly:
push 0xffffffffffffffff
mov eax, dword fs:[0]
push 0x43cf3b
push eax
mov eax, 0x100c
mov dword fs:[0], esp
call fcn.00439c20
push ebx
push ebp
push esi
mov esi, ecx
push edi
mov eax, dword [esi + 0x60]
push eax
push 0x6f
call sub.MFC42u.DLL_CWnd::SetDlgItemTextW
xor ebx, ebx
cmp esi, ebx
mov dword [esp + 0x10], ebx
je 0x408982
mov eax, dword [esi + 0x20]
cmp eax, ebx
je 0x408865
push 0x406
push eax
call dword [sym.imp.USER32.dll_GetDlgItem]
mov ebp, eax
jmp 0x408867
xor ebp, ebp
mov eax, dword [0x44fe90]
cmp eax, ebx
je 0x40887c
cmp dword [0x44fe94], ebx
jne 0x408931
lea eax, [esp + 0x81c]
push 0x400
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
lea ecx, [esp + 0x81c]
push ecx
call dword [sym.imp.SHLWAPI.dll_PathRemoveFileSpecW]
mov eax, dword [0x44fe98]
xor edi, edi
cmp eax, ebx
jle 0x4088c1
lea edx, [esp + 0x81c]
push edx
call dword [sym.imp.SHLWAPI.dll_PathRemoveFileSpecW]
mov eax, dword [0x44fe98]
inc edi
cmp edi, eax
jl 0x4088a9
lea eax, [esp + 0x81c]
push str.MiniUI.dll
lea ecx, [esp + 0x820]
push eax
push ecx
call dword [sym.imp.SHLWAPI.dll_PathCombineW]
lea edx, [esp + 0x81c]
push edx
call fcn.00405a80
add esp, 4
test eax, eax
je 0x4088fe
lea eax, [esp + 0x81c]
push eax
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
cmp eax, ebx
mov dword [0x44fe94], eax
je 0x408948
push str.GetMiniUI
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
cmp eax, ebx
mov dword [0x44fe90], eax
jne 0x408931
mov ecx, dword [0x44fe94]
push ecx
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
mov dword [0x44fe94], ebx
jmp 0x408948
call eax
cmp eax, ebx
je 0x408948
mov edx, dword [eax]
lea ecx, [esp + 0x10]
push ecx
push 0x29cd
push ebp
push eax
call dword [edx + 0x20]
cmp dword [esp + 0x10], ebx
je 0x408982
lea edx, [esp + 0x18]
mov ecx, esi
push edx
call fcn.004086d0
mov ecx, dword [esp + 0x10]
mov eax, dword [eax]
push eax
push ecx
mov edx, dword [ecx]
mov dword [esp + 0x102c], ebx
call dword [edx + 0x14]
lea ecx, [esp + 0x18]
mov dword [esp + 0x1024], 0xffffffff
call sub.MFC42u.DLL_CString::CString
cmp esi, ebx
mov dword [esp + 0x14], ebx
je 0x408ab2
mov esi, dword [esi + 0x20]
cmp esi, ebx
je 0x4089a5
push 0x408
push esi
call dword [sym.imp.USER32.dll_GetDlgItem]
mov edi, eax
jmp 0x4089a7
xor edi, edi
mov eax, dword [0x44fe90]
cmp eax, ebx
je 0x4089bc
cmp dword [0x44fe94], ebx
jne 0x408a88
lea eax, [esp + 0x1c]
push 0x400
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
mov ebp, dword [sym.imp.SHLWAPI.dll_PathRemoveFileSpecW]
lea ecx, [esp + 0x1c]
push ecx
call ebp
mov eax, dword [0x44fe98]
xor esi, esi
cmp eax, ebx
jle 0x4089f6
lea edx, [esp + 0x1c]
push edx
call ebp
mov eax, dword [0x44fe98]
inc esi
cmp esi, eax
jl 0x4089e5
lea eax, [esp + 0x1c]
push str.MiniUI.dll
lea ecx, [esp + 0x20]
push eax
push ecx
call dword [sym.imp.SHLWAPI.dll_PathCombineW]
lea edx, [esp + 0x1c]
test edx, edx
je 0x408a46
lea eax, [esp + 0x1c]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x408a4a
lea ecx, [esp + 0x1c]
push ecx
call fcn.0043a2e0
add esp, 4
test eax, eax
jne 0x408a4a
call fcn.0043a1e0
lea edx, [esp + 0x1c]
push eax
push edx
call fcn.0043a1f0
add esp, 8
xor eax, eax
jmp 0x408a55
lea eax, [esp + 0x1c]
push eax
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
cmp eax, ebx
mov dword [0x44fe94], eax
je 0x408a9f
push str.GetMiniUI
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
cmp eax, ebx
mov dword [0x44fe90], eax
jne 0x408a88
mov ecx, dword [0x44fe94]
push ecx
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
mov dword [0x44fe94], ebx
jmp 0x408a9f
call eax
cmp eax, ebx
je 0x408a9f
mov edx, dword [eax]
lea ecx, [esp + 0x14]
push ecx
push 0x2710
push edi
push eax
call dword [edx + 0x20]
mov eax, dword [esp + 0x14]
cmp eax, ebx
je 0x408ab2
mov edx, dword [eax]
push 0x808080
push eax
call dword [edx + 0x1c]
mov ecx, dword [esp + 0x101c]
pop edi
pop esi
pop ebp
mov eax, 1
pop ebx
mov dword fs:[0], ecx
add esp, 0x1018
ret