Function at 0x404490
Capabilities:
Check if file exists

Disassembly:
push 0xffffffffffffffff
mov eax, dword fs:[0]
push 0x4206bc
push eax
mov eax, 0x28c4
mov dword fs:[0], esp
call fcn.00414240
push ebx
push ebp
push esi
mov esi, ecx
push edi
xor ebx, ebx
mov ecx, 0x93
xor eax, eax
lea edi, [esp + 0x28]
mov dword [esp + 0x24], ebx
rep stosd dword es:[edi], eax
lea ecx, [esp + 0x14]
call sub.MFC42u.DLL_CString::CString_3
mov ax, word [0x42b98c]
mov ecx, 0x81
mov word [esp + 0x274], ax
xor eax, eax
lea edi, [esp + 0x276]
mov ebp, dword [0x4224f0]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
mov ecx, 0x200
xor eax, eax
lea edi, [esp + 0x18d4]
mov dword [esp + 0x28dc], ebx
rep stosd dword es:[edi], eax
mov ecx, 0x200
lea edi, [esp + 0x20d4]
rep stosd dword es:[edi], eax
lea ecx, [esp + 0x18d4]
test ecx, ecx
je 0x404579
lea edx, [esp + 0x8d4]
mov ecx, 0x400
lea edi, [esp + 0x8d4]
push 0x800
push edx
push ebx
rep stosd dword es:[edi], eax
mov word [esp + 0x18e0], bx
call dword [0x4220c8]
lea eax, [esp + 0x8d4]
push eax
call ebp
lea ecx, [esp + 0x8d4]
push 0x400
lea edx, [esp + 0x18d8]
push ecx
push edx
call dword [sym.imp.MSVCRT.dll_wcsncpy]
add esp, 0xc
mov eax, dword [esi + 8]
xor edi, edi
cmp eax, ebx
jle 0x404594
lea eax, [esp + 0x18d4]
push eax
call ebp
mov eax, dword [esi + 8]
inc edi
cmp edi, eax
jl 0x404582
lea ecx, [esp + 0x18d4]
push str.config
lea edx, [esp + 0x278]
push ecx
push edx
call dword [0x4224e0]
lea eax, [esp + 0x274]
lea ecx, [esp + 0x14]
push eax
call sub.MFC42u.DLL_CString::operator_1
push 0x429328
lea ecx, [esp + 0x18]
call fcn.00413e5c
mov edx, dword [esp + 0x14]
lea ecx, [esp + 0x24]
push ecx
push edx
call dword [0x422094]
cmp eax, ebx
mov dword [esp + 0x20], eax
je 0x4048fa
test byte [esp + 0x24], 0x10
je 0x4048db
mov esi, dword [sym.imp.MSVCRT.dll_wcscmp]
lea eax, [esp + 0x50]
push 0x429324
push eax
call esi
add esp, 8
test eax, eax
je 0x4048db
lea ecx, [esp + 0x50]
push 0x42931c
push ecx
call esi
add esp, 8
test eax, eax
je 0x4048db
lea edx, [esp + 0x50]
lea eax, [esp + 0x274]
push edx
lea ecx, [esp + 0x20d8]
push eax
push ecx
call dword [0x4224e0]
lea edx, [esp + 0x20d4]
test edx, edx
je 0x4048db
lea ecx, [esp + 0x1c]
call sub.MFC42u.DLL_CString::CString_3
lea ecx, [esp + 0x10]
mov byte [esp + 0x28dc], 1
call sub.MFC42u.DLL_CString::CString_3
mov ecx, 0x93
xor eax, eax
lea edi, [esp + 0x688]
mov dword [esp + 0x684], ebx
rep stosd dword es:[edi], eax
lea ecx, [esp + 0x18]
mov byte [esp + 0x28dc], 2
call sub.MFC42u.DLL_CString::CString_3
mov ax, word [0x42b98c]
mov ecx, 0x81
mov word [esp + 0x47c], ax
xor eax, eax
lea edi, [esp + 0x47e]
mov byte [esp + 0x28dc], 3
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
mov eax, dword [0x42b894]
cmp eax, ebx
je 0x4046d2
cmp dword [0x42b898], ebx
jne 0x4047d3
lea ecx, [esp + 0x8d4]
push 0x400
push ecx
push ebx
call dword [0x4220c8]
lea edx, [esp + 0x8d4]
push edx
call ebp
mov eax, dword [0x42b89c]
xor esi, esi
cmp eax, ebx
jle 0x40470f
lea eax, [esp + 0x8d4]
push eax
call ebp
mov eax, dword [0x42b89c]
inc esi
cmp esi, eax
jl 0x4046fb
lea ecx, [esp + 0x8d4]
push str.MiniUI.dll
lea edx, [esp + 0x8d8]
push ecx
push edx
call dword [0x4224e0]
push ebx
call dword [0x4220b4]
push eax
call fcn.00404930
add esp, 8
cmp eax, ebx
jne 0x40478b
lea eax, [esp + 0x8d4]
test eax, eax
je 0x404787
lea ecx, [esp + 0x8d4]
push ecx
call dword [0x4224ec]
test eax, eax
je 0x40478b
lea edx, [esp + 0x8d4]
push edx
call fcn.00401ac0
add esp, 4
test eax, eax
jne 0x40478b
push 1
call fcn.0041ef80
push eax
lea eax, [esp + 0x8dc]
push eax
call fcn.0041f210
add esp, 0xc
xor eax, eax
jmp 0x404799
lea ecx, [esp + 0x8d4]
push ecx
call dword [0x4220cc]
cmp eax, ebx
mov dword [0x42b898], eax
je 0x4048a9
push str.GetMiniUI
push eax
call dword [0x4220d0]
cmp eax, ebx
mov dword [0x42b894], eax
jne 0x4047d3
mov edx, dword [0x42b898]
push edx
call dword [0x4220d4]
mov dword [0x42b898], ebx
jmp 0x4048a9
call eax
cmp eax, ebx
je 0x4048a9
mov ecx, dword [eax]
push eax
call dword [ecx + 0x6c]
mov esi, eax
cmp esi, ebx
je 0x4048a9
lea edx, [esp + 0x20d4]
push 0x104
lea eax, [esp + 0x480]
push edx
push eax
call dword [sym.imp.MSVCRT.dll_wcsncpy]
add esp, 0xc
lea ecx, [esp + 0x20d4]
push ecx
lea ecx, [esp + 0x14]
call sub.MFC42u.DLL_CString::operator_1
push str..ui
lea ecx, [esp + 0x14]
call fcn.00413e5c
mov eax, dword [esp + 0x10]
lea edx, [esp + 0x684]
push edx
push eax
call dword [0x422094]
cmp eax, ebx
je 0x404871
push eax
call dword [0x422098]
lea ecx, [esp + 0x47c]
push ecx
lea ecx, [esp + 0x14]
call sub.MFC42u.DLL_CString::operator_1
push 0x429100
lea ecx, [esp + 0x14]
call fcn.00413e5c
lea edx, [esp + 0x6b0]
push edx
jmp 0x404895
lea eax, [esp + 0x47c]
lea ecx, [esp + 0x10]
push eax
call sub.MFC42u.DLL_CString::operator_1
push 0x429100
lea ecx, [esp + 0x14]
call fcn.00413e5c
push str.noui.ui
lea ecx, [esp + 0x14]
call fcn.00413e5c
mov edx, dword [esp + 0x10]
mov ecx, dword [esi]
push edx
push ebx
push esi
call dword [ecx]
lea ecx, [esp + 0x18]
mov byte [esp + 0x28dc], 2
call sub.MFC42u.DLL_CString::CString
lea ecx, [esp + 0x10]
mov byte [esp + 0x28dc], 1
call sub.MFC42u.DLL_CString::CString
lea ecx, [esp + 0x1c]
mov byte [esp + 0x28dc], bl
call sub.MFC42u.DLL_CString::CString
mov esi, dword [esp + 0x20]
lea eax, [esp + 0x24]
push eax
push esi
call dword [0x42209c]
test eax, eax
jne 0x4045ea
push esi
call dword [0x422098]
lea ecx, [esp + 0x14]
mov dword [esp + 0x28dc], 0xffffffff
call sub.MFC42u.DLL_CString::CString
mov ecx, dword [esp + 0x28d4]
pop edi
pop esi
pop ebp
pop ebx
mov dword fs:[0], ecx
add esp, 0x28d0
ret