Function at 0x4050cd
Capabilities:
Check if file exists

Disassembly:
push 0xffffffffffffffff
push 0x42077e
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x808
push ebx
push ebp
push esi
mov esi, ecx
push edi
mov dword [esp + 0x14], esi
lea ecx, [esi + 0x14]
call sub.MFC42u.DLL_CString::CString_3
mov eax, dword [esp + 0x828]
mov ebp, dword [0x4224f0]
xor ebx, ebx
mov dword [esi], eax
mov dword [esi + 4], ebx
mov dword [esi + 0x10], ebx
mov dword [esi + 8], ebx
mov eax, dword [0x42b990]
cmp eax, ebx
mov dword [esp + 0x820], ebx
je 0x405113
cmp dword [0x42b898], ebx
jne 0x4051e2
lea ecx, [esp + 0x18]
push 0x400
push ecx
push ebx
call dword [0x4220c8]
lea edx, [esp + 0x18]
push edx
call ebp
mov eax, dword [0x42b89c]
xor edi, edi
cmp eax, ebx
jle 0x405147
lea eax, [esp + 0x18]
push eax
call ebp
mov eax, dword [0x42b89c]
inc edi
cmp edi, eax
jl 0x405136
lea ecx, [esp + 0x18]
push str.MiniUI.dll
lea edx, [esp + 0x1c]
push ecx
push edx
call dword [0x4224e0]
push ebx
call dword [0x4220b4]
push eax
call fcn.00404930
add esp, 8
test eax, eax
jne 0x4051b1
lea eax, [esp + 0x18]
test eax, eax
je 0x4051ad
lea ecx, [esp + 0x18]
push ecx
call dword [0x4224ec]
test eax, eax
je 0x4051b1
lea edx, [esp + 0x18]
push edx
call fcn.00401ac0
add esp, 4
test eax, eax
jne 0x4051b1
push 1
call fcn.0041ef80
push eax
lea eax, [esp + 0x20]
push eax
call fcn.0041f210
add esp, 0xc
xor eax, eax
jmp 0x4051bc
lea ecx, [esp + 0x18]
push ecx
call dword [0x4220cc]
cmp eax, ebx
mov dword [0x42b898], eax
jne 0x4051c9
xor eax, eax
jmp 0x4051e4
push str.GetMiniUI4
push eax
call dword [0x4220d0]
cmp eax, ebx
mov dword [0x42b990], eax
jne 0x4051e2
xor eax, eax
jmp 0x4051e4
call eax
mov dword [esi + 0xc], eax
mov eax, dword [0x42b894]
cmp eax, ebx
je 0x4051fc
cmp dword [0x42b898], ebx
jne 0x405293
lea edx, [esp + 0x18]
push 0x400
push edx
push ebx
call dword [0x4220c8]
lea eax, [esp + 0x18]
push eax
call ebp
mov eax, dword [0x42b89c]
xor edi, edi
cmp eax, ebx
jle 0x405230
lea ecx, [esp + 0x18]
push ecx
call ebp
mov eax, dword [0x42b89c]
inc edi
cmp edi, eax
jl 0x40521f
lea edx, [esp + 0x18]
push str.MiniUI.dll
lea eax, [esp + 0x1c]
push edx
push eax
call dword [0x4224e0]
lea ecx, [esp + 0x18]
push ecx
call fcn.00401ba0
add esp, 4
test eax, eax
je 0x405261
lea edx, [esp + 0x18]
push edx
call dword [0x4220cc]
cmp eax, ebx
mov dword [0x42b898], eax
je 0x4052a7
push str.GetMiniUI
push eax
call dword [0x4220d0]
cmp eax, ebx
mov dword [0x42b894], eax
jne 0x405293
mov eax, dword [0x42b898]
push eax
call dword [0x4220d4]
mov dword [0x42b898], ebx
jmp 0x4052a7
call eax
cmp eax, ebx
je 0x4052a7
mov edx, dword [esp + 0x828]
mov ecx, dword [eax]
push edx
push eax
call dword [ecx + 8]
mov eax, dword [0x42b894]
mov dword [esp + 0x10], ebx
cmp eax, ebx
je 0x4052c0
cmp dword [0x42b898], ebx
jne 0x405358
lea eax, [esp + 0x18]
push 0x400
push eax
push ebx
call dword [0x4220c8]
lea ecx, [esp + 0x18]
push ecx
call ebp
mov eax, dword [0x42b89c]
xor edi, edi
cmp eax, ebx
jle 0x4052f4
lea edx, [esp + 0x18]
push edx
call ebp
mov eax, dword [0x42b89c]
inc edi
cmp edi, eax
jl 0x4052e3
lea eax, [esp + 0x18]
push str.MiniUI.dll
lea ecx, [esp + 0x1c]
push eax
push ecx
call dword [0x4224e0]
lea edx, [esp + 0x18]
push edx
call fcn.00401ba0
add esp, 4
test eax, eax
je 0x405325
lea eax, [esp + 0x18]
push eax
call dword [0x4220cc]
cmp eax, ebx
mov dword [0x42b898], eax
je 0x405376
push str.GetMiniUI
push eax
call dword [0x4220d0]
cmp eax, ebx
mov dword [0x42b894], eax
jne 0x405358
mov ecx, dword [0x42b898]
push ecx
call dword [0x4220d4]
mov dword [0x42b898], ebx
jmp 0x405376
call eax
cmp eax, ebx
je 0x405376
mov edx, dword [eax]
lea ecx, [esp + 0x10]
push ecx
mov ecx, dword [esp + 0x82c]
push 0x2719
push ecx
push eax
call dword [edx + 0x20]
mov eax, dword [esp + 0x10]
cmp eax, ebx
jne 0x405382
xor edi, edi
jmp 0x4053ae
mov ecx, dword [esp + 0x834]
mov edx, dword [eax]
push ecx
mov ecx, dword [esp + 0x830]
push ecx
push eax
call dword [edx + 0x20]
mov eax, dword [esp + 0x10]
mov ecx, dword [esp + 0x830]
push ecx
push eax
mov edx, dword [eax]
call dword [edx + 0x28]
mov edi, dword [esp + 0x10]
cmp edi, ebx
mov dword [esi + 0x10], edi
mov dword [esi + 8], ebx
je 0x405424
mov edx, dword [edi]
push edi
call dword [edx]
mov edx, dword [eax]
lea ecx, [esi + 8]
push ecx
push 0x271a
push eax
call dword [edx]
mov eax, dword [edi]
push edi
call dword [eax]
mov edx, dword [eax]
lea ecx, [esi + 4]
push ecx
push 0x2712
push eax
call dword [edx]
mov eax, dword [esi + 0xc]
push 0x400
push eax
mov ecx, dword [eax]
call dword [ecx + 0x68]
lea edx, [esp + 0x1c]
push eax
push edx
call dword [sym.imp.MSVCRT.dll_wcsncpy]
add esp, 0xc
lea eax, [esp + 0x18]
push eax
call ebp
lea ecx, [esp + 0x18]
push str.defaultskin
lea edx, [esp + 0x1c]
push ecx
push edx
call dword [0x4224e0]
lea eax, [esp + 0x18]
lea ecx, [esi + 0x14]
push eax
call sub.MFC42u.DLL_CString::operator_1
mov ecx, dword [esp + 0x818]
mov eax, esi
pop edi
pop esi
pop ebp
pop ebx
mov dword fs:[0], ecx
add esp, 0x814
ret 0x10