Function at 0x4210c0
Capabilities:
Check if file exists

Disassembly:
push 0xffffffffffffffff
mov eax, dword fs:[0]
push 0x43f34b
push eax
mov eax, 0x1810
mov dword fs:[0], esp
call fcn.00439c20
push ebx
push ebp
push esi
push edi
lea eax, [esp + 0x10]
push 1
mov ebp, ecx
push eax
call fcn.00421090
mov edx, dword [esp + 0x10]
xor ebx, ebx
cmp edx, ebx
mov dword [esp + 0x1828], ebx
mov esi, edx
je 0x4212ce
mov ecx, 0x200
xor eax, eax
lea edi, [esp + 0x20]
rep stosd dword es:[edi], eax
lea ecx, [esp + 0x20]
test ecx, ecx
je 0x4212ce
mov ecx, 0x400
lea edi, [esp + 0x820]
rep stosd dword es:[edi], eax
push edx
mov word [esp + 0x24], bx
call dword [sym.imp.SHLWAPI.dll_PathIsRelativeW]
mov edi, dword [sym.imp.SHLWAPI.dll_PathRemoveFileSpecW]
test eax, eax
je 0x42118e
lea edx, [esp + 0x820]
push 0x800
push edx
push ebx
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 0x421199
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, ebx
je 0x4212ce
mov ecx, dword [esp + 0x10]
mov eax, dword [ecx - 8]
cmp eax, 4
jle 0x4212ce
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, ebx
lea ecx, [esp + 0x1c]
sete bl
call sub.MFC42u.DLL_CString::CString
test bl, bl
je 0x4212ce
xor ebx, ebx
cmp ebp, ebx
mov dword [esp + 0x18], ebx
je 0x4212ce
mov eax, dword [ebp + 0x20]
cmp eax, ebx
je 0x421221
push 0x3eb
push eax
call dword [sym.imp.USER32.dll_GetDlgItem]
mov ebp, eax
jmp 0x421223
xor ebp, ebp
mov eax, dword [0x44fe90]
cmp eax, ebx
je 0x421238
cmp dword [0x44fe94], ebx
jne 0x4212fd
lea ecx, [esp + 0x20]
push 0x400
push ecx
push ebx
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
lea edx, [esp + 0x20]
push edx
call edi
mov eax, dword [0x44fe98]
xor esi, esi
cmp eax, ebx
jle 0x42126c
lea eax, [esp + 0x20]
push eax
call edi
mov eax, dword [0x44fe98]
inc esi
cmp esi, eax
jl 0x42125b
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]
push eax
call fcn.00405a80
add esp, 4
test eax, eax
je 0x42129d
lea ecx, [esp + 0x20]
push ecx
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
cmp eax, ebx
mov dword [0x44fe94], eax
je 0x4212ce
push str.GetMiniUI
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
cmp eax, ebx
mov dword [0x44fe90], eax
jne 0x4212fd
mov edx, dword [0x44fe94]
push edx
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
mov dword [0x44fe94], ebx
lea ecx, [esp + 0x10]
mov dword [esp + 0x1828], 0xffffffff
call sub.MFC42u.DLL_CString::CString
xor eax, eax
mov ecx, dword [esp + 0x1820]
pop edi
pop esi
pop ebp
pop ebx
mov dword fs:[0], ecx
add esp, 0x181c
ret
call eax
cmp eax, ebx
je 0x4212ce
mov ecx, dword [eax]
lea edx, [esp + 0x18]
push edx
push 0x2774
push ebp
push eax
call dword [ecx + 0x20]
cmp eax, ebx
je 0x4212ce
mov eax, dword [esp + 0x18]
mov dword [esp + 0x14], ebx
push eax
mov ecx, dword [eax]
call dword [ecx]
lea edx, [esp + 0x14]
mov ebp, eax
test edx, edx
je 0x4213ff
cmp ebp, ebx
mov dword [esp + 0x14], ebx
je 0x4212ce
mov eax, dword [0x44fe90]
cmp eax, ebx
je 0x421350
cmp dword [0x44fe94], ebx
jne 0x4213e8
lea eax, [esp + 0x20]
push 0x400
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
lea ecx, [esp + 0x20]
push ecx
call edi
mov eax, dword [0x44fe98]
xor esi, esi
cmp eax, ebx
jle 0x421384
lea edx, [esp + 0x20]
push edx
call edi
mov eax, dword [0x44fe98]
inc esi
cmp esi, eax
jl 0x421373
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 0x4213b5
lea eax, [esp + 0x20]
push eax
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
cmp eax, ebx
mov dword [0x44fe94], eax
je 0x4213ff
push str.GetMiniUI
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
cmp eax, ebx
mov dword [0x44fe90], eax
jne 0x4213e8
mov ecx, dword [0x44fe94]
push ecx
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
mov dword [0x44fe94], ebx
jmp 0x4213ff
call eax
cmp eax, ebx
je 0x4213ff
mov edx, dword [eax]
lea ecx, [esp + 0x14]
push ecx
push 0x2710
push ebp
push eax
call dword [edx + 0x20]
mov eax, dword [esp + 0x14]
cmp eax, ebx
je 0x4212ce
mov ecx, dword [esp + 0x10]
mov edx, dword [eax]
push 0x1f40
push ecx
push eax
call dword [edx + 0x88]
lea ecx, [esp + 0x10]
mov dword [esp + 0x1828], 0xffffffff
call sub.MFC42u.DLL_CString::CString
mov eax, 1
jmp 0x4212e4