Function at 0x408fd0
Capabilities:
Check if file exists

Disassembly:
sub esp, 0x810
lea eax, [esp]
push ebx
push ebp
push esi
mov esi, ecx
push edi
push eax
mov ecx, dword [esi + 0x20]
push ecx
call dword [sym.imp.USER32.dll_GetClientRect]
mov edx, dword [esi + 0x20]
push 0x406
push edx
call dword [sym.imp.USER32.dll_GetDlgItem]
mov ebp, dword [sym.imp.SHLWAPI.dll_PathRemoveFileSpecW]
mov ebx, eax
mov eax, dword [0x44fe90]
test eax, eax
je 0x409019
mov ecx, dword [0x44fe94]
test ecx, ecx
jne 0x4090b6
lea eax, [esp + 0x20]
push 0x400
push eax
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
lea ecx, [esp + 0x20]
push ecx
call ebp
mov eax, dword [0x44fe98]
xor edi, edi
test eax, eax
jle 0x40904e
lea edx, [esp + 0x20]
push edx
call ebp
mov eax, dword [0x44fe98]
inc edi
cmp edi, eax
jl 0x40903d
lea eax, [esp + 0x20]
push str.MiniUI.dll
lea ecx, [esp + 0x24]
push eax
push ecx
call dword [sym.imp.SHLWAPI.dll_PathCombineW]
lea edx, [esp + 0x20]
push edx
call fcn.00405a80
add esp, 4
test eax, eax
je 0x40907f
lea eax, [esp + 0x20]
push eax
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
test eax, eax
mov dword [0x44fe94], eax
je 0x4090c3
push str.GetMiniUI
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
test eax, eax
mov dword [0x44fe90], eax
jne 0x4090b6
mov ecx, dword [0x44fe94]
push ecx
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
mov dword [0x44fe94], 0
jmp 0x4090c3
call eax
test eax, eax
je 0x4090c3
mov edx, dword [eax]
push ebx
push eax
call dword [edx + 8]
mov eax, dword [esi + 0x20]
push 0x407
push eax
call dword [sym.imp.USER32.dll_GetDlgItem]
mov ebx, eax
mov eax, dword [0x44fe90]
test eax, eax
je 0x4090eb
mov ecx, dword [0x44fe94]
test ecx, ecx
jne 0x4091b6
lea ecx, [esp + 0x20]
push 0x400
push ecx
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
lea edx, [esp + 0x20]
push edx
call ebp
mov eax, dword [0x44fe98]
xor edi, edi
test eax, eax
jle 0x409120
lea eax, [esp + 0x20]
push eax
call ebp
mov eax, dword [0x44fe98]
inc edi
cmp edi, eax
jl 0x40910f
lea ecx, [esp + 0x20]
push str.MiniUI.dll
lea edx, [esp + 0x24]
push ecx
push edx
call dword [sym.imp.SHLWAPI.dll_PathCombineW]
lea eax, [esp + 0x20]
test eax, eax
je 0x409170
lea ecx, [esp + 0x20]
push ecx
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x409174
lea edx, [esp + 0x20]
push edx
call fcn.0043a2e0
add esp, 4
test eax, eax
jne 0x409174
call fcn.0043a1e0
push eax
lea eax, [esp + 0x24]
push eax
call fcn.0043a1f0
add esp, 8
xor eax, eax
jmp 0x40917f
lea ecx, [esp + 0x20]
push ecx
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
test eax, eax
mov dword [0x44fe94], eax
je 0x4091c3
push str.GetMiniUI
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
test eax, eax
mov dword [0x44fe90], eax
jne 0x4091b6
mov edx, dword [0x44fe94]
push edx
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
mov dword [0x44fe94], 0
jmp 0x4091c3
call eax
test eax, eax
je 0x4091c3
mov ecx, dword [eax]
push ebx
push eax
call dword [ecx + 8]
mov edx, dword [esi + 0x20]
push 0x408
push edx
call dword [sym.imp.USER32.dll_GetDlgItem]
mov ebx, eax
mov eax, dword [0x44fe90]
test eax, eax
je 0x4091eb
mov ecx, dword [0x44fe94]
test ecx, ecx
jne 0x4092b6
lea eax, [esp + 0x20]
push 0x400
push eax
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
lea ecx, [esp + 0x20]
push ecx
call ebp
mov eax, dword [0x44fe98]
xor edi, edi
test eax, eax
jle 0x409220
lea edx, [esp + 0x20]
push edx
call ebp
mov eax, dword [0x44fe98]
inc edi
cmp edi, eax
jl 0x40920f
lea eax, [esp + 0x20]
push str.MiniUI.dll
lea ecx, [esp + 0x24]
push eax
push ecx
call dword [sym.imp.SHLWAPI.dll_PathCombineW]
lea edx, [esp + 0x20]
test edx, edx
je 0x409270
lea eax, [esp + 0x20]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x409274
lea ecx, [esp + 0x20]
push ecx
call fcn.0043a2e0
add esp, 4
test eax, eax
jne 0x409274
call fcn.0043a1e0
lea edx, [esp + 0x20]
push eax
push edx
call fcn.0043a1f0
add esp, 8
xor eax, eax
jmp 0x40927f
lea eax, [esp + 0x20]
push eax
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
test eax, eax
mov dword [0x44fe94], eax
je 0x4092c3
push str.GetMiniUI
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
test eax, eax
mov dword [0x44fe90], eax
jne 0x4092b6
mov ecx, dword [0x44fe94]
push ecx
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
mov dword [0x44fe94], 0
jmp 0x4092c3
call eax
test eax, eax
je 0x4092c3
mov edx, dword [eax]
push ebx
push eax
call dword [edx + 8]
mov eax, dword [esi + 0x20]
push 0x6f
push eax
call dword [sym.imp.USER32.dll_GetDlgItem]
mov ebx, eax
mov eax, dword [0x44fe90]
test eax, eax
je 0x4092e8
mov ecx, dword [0x44fe94]
test ecx, ecx
jne 0x4093b3
lea ecx, [esp + 0x20]
push 0x400
push ecx
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
lea edx, [esp + 0x20]
push edx
call ebp
mov eax, dword [0x44fe98]
xor edi, edi
test eax, eax
jle 0x40931d
lea eax, [esp + 0x20]
push eax
call ebp
mov eax, dword [0x44fe98]
inc edi
cmp edi, eax
jl 0x40930c
lea ecx, [esp + 0x20]
push str.MiniUI.dll
lea edx, [esp + 0x24]
push ecx
push edx
call dword [sym.imp.SHLWAPI.dll_PathCombineW]
lea eax, [esp + 0x20]
test eax, eax
je 0x40936d
lea ecx, [esp + 0x20]
push ecx
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x409371
lea edx, [esp + 0x20]
push edx
call fcn.0043a2e0
add esp, 4
test eax, eax
jne 0x409371
call fcn.0043a1e0
push eax
lea eax, [esp + 0x24]
push eax
call fcn.0043a1f0
add esp, 8
xor eax, eax
jmp 0x40937c
lea ecx, [esp + 0x20]
push ecx
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
test eax, eax
mov dword [0x44fe94], eax
je 0x4093c0
push str.GetMiniUI
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
test eax, eax
mov dword [0x44fe90], eax
jne 0x4093b3
mov edx, dword [0x44fe94]
push edx
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
mov dword [0x44fe94], 0
jmp 0x4093c0
call eax
test eax, eax
je 0x4093c0
mov ecx, dword [eax]
push ebx
push eax
call dword [ecx + 8]
lea edx, [esp + 0x10]
push 0x406
push edx
mov ecx, esi
call fcn.00408f50
lea eax, [esp + 0x10]
push 0x407
push eax
mov ecx, esi
call fcn.00408f50
lea ecx, [esp + 0x10]
push 0x408
push ecx
mov ecx, esi
call fcn.00408f50
lea edx, [esp + 0x10]
push 0x6f
push edx
mov ecx, esi
call fcn.00408f50
pop edi
pop esi
pop ebp
mov eax, 1
pop ebx
add esp, 0x810
ret