Function at 0x40c0c0
Capabilities:
Check if file exists

Disassembly:
push 0xffffffffffffffff
push 0x43d31f
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x804
push ebx
push ebp
push esi
mov esi, ecx
push edi
mov dword [esp + 0x10], esi
call sub.MFC42u.DLL_CWnd::CWnd
xor ebx, ebx
lea ecx, [esi + 0x7c]
mov dword [esp + 0x81c], ebx
call sub.MFC42u.DLL_CString::CString_4
lea ecx, [esi + 0x80]
mov byte [esp + 0x81c], 1
call sub.MFC42u.DLL_CString::CString_4
mov dword [esi + 0x90], ebx
mov dword [esi + 0x8c], 0x442204
lea edi, [esi + 0x94]
mov byte [esp + 0x81c], 3
mov ecx, edi
call sub.MFC42u.DLL_CWnd::CWnd
mov dword [edi], 0x442140
lea ecx, [esi + 0xd4]
mov byte [esp + 0x81c], 4
call sub.MFC42u.DLL_CString::CString_4
lea ecx, [esi + 0xd8]
mov byte [esp + 0x81c], 5
call sub.MFC42u.DLL_CString::CString_4
lea edi, [esi + 0xdc]
mov byte [esp + 0x81c], 6
mov ecx, edi
call sub.MFC42u.DLL_CWnd::CWnd
mov dword [edi], 0x441860
mov ebp, dword [sym.imp.SHLWAPI.dll_PathRemoveFileSpecW]
mov dword [esi], 0x442080
mov dword [esi + 0x40], ebx
mov eax, dword [0x44fff4]
cmp eax, ebx
mov byte [esp + 0x81c], 7
je 0x40c1a6
cmp dword [0x44fe94], ebx
jne 0x40c257
lea eax, [esp + 0x14]
push 0x400
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
lea ecx, [esp + 0x14]
push ecx
call ebp
mov eax, dword [0x44fe98]
xor edi, edi
cmp eax, ebx
jle 0x40c1da
lea edx, [esp + 0x14]
push edx
call ebp
mov eax, dword [0x44fe98]
inc edi
cmp edi, eax
jl 0x40c1c9
lea eax, [esp + 0x14]
push str.MiniUI.dll
lea ecx, [esp + 0x18]
push eax
push ecx
call dword [sym.imp.SHLWAPI.dll_PathCombineW]
lea edx, [esp + 0x14]
test edx, edx
je 0x40c22a
lea eax, [esp + 0x14]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x40c22e
lea ecx, [esp + 0x14]
push ecx
call fcn.0043a2e0
add esp, 4
test eax, eax
jne 0x40c22e
call fcn.0043a1e0
lea edx, [esp + 0x14]
push eax
push edx
call fcn.0043a1f0
add esp, 8
xor eax, eax
jmp 0x40c239
lea eax, [esp + 0x14]
push eax
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
cmp eax, ebx
mov dword [0x44fe94], eax
je 0x40c268
push str.GetMiniUI2
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
cmp eax, ebx
mov dword [0x44fff4], eax
je 0x40c268
call eax
cmp eax, ebx
je 0x40c268
mov ecx, dword [eax]
push eax
call dword [ecx + 0x84]
jmp 0x40c26a
xor eax, eax
mov dword [esi + 0x84], eax
mov dword [esi + 0x44], ebx
mov dword [esi + 0x48], ebx
mov eax, dword [0x44fff4]
cmp eax, ebx
je 0x40c28b
cmp dword [0x44fe94], ebx
jne 0x40c33c
lea edx, [esp + 0x14]
push 0x400
push edx
push ebx
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
lea eax, [esp + 0x14]
push eax
call ebp
mov eax, dword [0x44fe98]
xor edi, edi
cmp eax, ebx
jle 0x40c2bf
lea ecx, [esp + 0x14]
push ecx
call ebp
mov eax, dword [0x44fe98]
inc edi
cmp edi, eax
jl 0x40c2ae
lea edx, [esp + 0x14]
push str.MiniUI.dll
lea eax, [esp + 0x18]
push edx
push eax
call dword [sym.imp.SHLWAPI.dll_PathCombineW]
lea ecx, [esp + 0x14]
test ecx, ecx
je 0x40c30f
lea edx, [esp + 0x14]
push edx
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x40c313
lea eax, [esp + 0x14]
push eax
call fcn.0043a2e0
add esp, 4
test eax, eax
jne 0x40c313
call fcn.0043a1e0
lea ecx, [esp + 0x14]
push eax
push ecx
call fcn.0043a1f0
add esp, 8
xor eax, eax
jmp 0x40c31e
lea edx, [esp + 0x14]
push edx
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
cmp eax, ebx
mov dword [0x44fe94], eax
je 0x40c353
push str.GetMiniUI2
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
cmp eax, ebx
mov dword [0x44fff4], eax
je 0x40c353
call eax
cmp eax, ebx
je 0x40c353
mov ecx, dword [eax]
push eax
call dword [ecx + 0x84]
mov dword [esi + 0x88], eax
jmp 0x40c359
mov dword [esi + 0x88], ebx
mov ecx, dword [esp + 0x814]
mov eax, esi
pop edi
pop esi
pop ebp
pop ebx
mov dword fs:[0], ecx
add esp, 0x810
ret