Function at 0x420d40
Capabilities:
Check if file exists

Disassembly:
push 0xffffffffffffffff
mov eax, dword fs:[0]
push 0x43f30b
push eax
mov eax, 0x1810
mov dword fs:[0], esp
call fcn.00439c20
push ebx
push ebp
push esi
lea eax, [esp + 0xc]
push edi
mov ebx, ecx
push eax
call fcn.0041fdb0
mov edx, dword [esp + 0x10]
xor ebp, ebp
cmp edx, ebp
mov dword [esp + 0x1828], ebp
mov esi, edx
je 0x420fb9
mov ecx, 0x200
xor eax, eax
lea edi, [esp + 0x20]
rep stosd dword es:[edi], eax
lea ecx, [esp + 0x20]
test ecx, ecx
je 0x420fb9
mov ecx, 0x400
lea edi, [esp + 0x820]
rep stosd dword es:[edi], eax
push edx
mov word [esp + 0x24], bp
call dword [sym.imp.SHLWAPI.dll_PathIsRelativeW]
mov edi, dword [sym.imp.SHLWAPI.dll_PathRemoveFileSpecW]
test eax, eax
je 0x420e0c
lea edx, [esp + 0x820]
push 0x800
push edx
push ebp
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
lea eax, [esp + 0x820]
push eax
call edi
lea ecx, [esp + 0x820]
push esi
lea edx, [esp + 0x824]
push ecx
push edx
call dword [sym.imp.SHLWAPI.dll_PathCombineW]
lea eax, [esp + 0x820]
push 0x400
lea ecx, [esp + 0x24]
push eax
push ecx
jmp 0x420e17
push 0x400
lea edx, [esp + 0x24]
push esi
push edx
call dword [sym.imp.MSVCRT.dll_wcsncpy]
add esp, 0xc
lea eax, [esp + 0x20]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
cmp eax, ebp
je 0x420fb9
cmp ebx, ebp
mov dword [esp + 0x18], ebp
je 0x420fb9
mov eax, dword [ebx + 0x20]
cmp eax, ebp
je 0x420e56
push 0x3eb
push eax
call dword [sym.imp.USER32.dll_GetDlgItem]
mov esi, eax
jmp 0x420e58
xor esi, esi
call fcn.00405ac0
cmp eax, ebp
je 0x420fb9
mov ecx, dword [eax]
lea edx, [esp + 0x18]
push edx
push 0x2774
push esi
push eax
call dword [ecx + 0x20]
cmp eax, ebp
je 0x420fb9
mov eax, dword [esp + 0x18]
mov dword [esp + 0x14], ebp
push eax
mov ecx, dword [eax]
call dword [ecx]
lea edx, [esp + 0x14]
mov ebx, eax
test edx, edx
je 0x420f69
cmp ebx, ebp
mov dword [esp + 0x14], ebp
je 0x420fb9
mov eax, dword [0x44fe90]
cmp eax, ebp
je 0x420eba
cmp dword [0x44fe94], ebp
jne 0x420f52
lea eax, [esp + 0x20]
push 0x400
push eax
push ebp
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
lea ecx, [esp + 0x20]
push ecx
call edi
mov eax, dword [0x44fe98]
xor esi, esi
cmp eax, ebp
jle 0x420eee
lea edx, [esp + 0x20]
push edx
call edi
mov eax, dword [0x44fe98]
inc esi
cmp esi, eax
jl 0x420edd
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 0x420f1f
lea eax, [esp + 0x20]
push eax
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
cmp eax, ebp
mov dword [0x44fe94], eax
je 0x420f69
push str.GetMiniUI
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
cmp eax, ebp
mov dword [0x44fe90], eax
jne 0x420f52
mov ecx, dword [0x44fe94]
push ecx
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
mov dword [0x44fe94], ebp
jmp 0x420f69
call eax
cmp eax, ebp
je 0x420f69
mov edx, dword [eax]
lea ecx, [esp + 0x14]
push ecx
push 0x2710
push ebx
push eax
call dword [edx + 0x20]
cmp dword [esp + 0x14], ebp
je 0x420fb9
lea edx, [esp + 0x1c]
push 4
push edx
lea ecx, [esp + 0x18]
call sub.MFC42u.DLL_CString::Right
mov eax, dword [eax]
push str..png
push eax
call dword [sym.imp.MSVCRT.dll__wcsicmp]
add esp, 8
cmp eax, ebp
lea ecx, [esp + 0x1c]
sete bl
call sub.MFC42u.DLL_CString::CString
test bl, bl
je 0x420fb9
mov eax, dword [esp + 0x14]
mov edx, dword [esp + 0x10]
push 0x1f40
push edx
mov ecx, dword [eax]
push eax
call dword [ecx + 0x88]
lea ecx, [esp + 0x10]
mov dword [esp + 0x1828], 0xffffffff
call sub.MFC42u.DLL_CString::CString
mov ecx, dword [esp + 0x1820]
pop edi
pop esi
pop ebp
pop ebx
mov dword fs:[0], ecx
add esp, 0x181c
ret