Function at 0x418bb0
Capabilities:
Check if file exists
Print debug messages

Disassembly:
push 0xffffffffffffffff
mov eax, dword fs:[0]
push 0x45ad67
push eax
mov eax, 0x242c
mov dword fs:[0], esp
call fcn.00456620
push ebx
push ebp
push esi
mov esi, ecx
push edi
lea ecx, [esp + 0x18]
mov dword [esp + 0x24], esi
call sub.MFC42u.DLL_CString::CString_4
lea ecx, [esp + 0x14]
mov dword [esp + 0x2444], 0
call sub.MFC42u.DLL_CString::CString_4
lea ecx, [esp + 0x20]
mov byte [esp + 0x2444], 1
call sub.MFC42u.DLL_CString::CString_4
lea ecx, [esp + 0x10]
mov byte [esp + 0x2444], 2
call sub.MFC42u.DLL_CString::CString_4
lea ecx, [esp + 0x1c]
mov byte [esp + 0x2444], 3
call sub.MFC42u.DLL_CString::CString_4
mov ax, word [0x473258]
mov ecx, 0x81
mov word [esp + 0x2c], ax
xor eax, eax
lea edi, [esp + 0x2e]
mov byte [esp + 0x2444], 4
rep stosd dword es:[edi], eax
mov ecx, dword [esp + 0x244c]
test ecx, ecx
stosw word es:[edi], ax
jl 0x418ffd
mov eax, dword [esi + 0x78]
test eax, eax
je 0x418ffd
mov edx, dword [esi + 0x7c]
sub edx, eax
sar edx, 3
cmp ecx, edx
jae 0x418ffd
mov ecx, dword [esi + 0xb4]
lea edx, [eax + ecx*8]
lea ecx, [esp + 0x18]
push edx
call sub.MFC42u.DLL_CString::operator
mov esi, dword [esp + 0x18]
mov ebx, dword [sym.imp.SHLWAPI.dll_PathRemoveFileSpecW]
mov ebp, dword [sym.imp.MSVCRT.dll_wcsncpy]
lea eax, [esp + 0x2c]
test eax, eax
je 0x418d24
test esi, esi
mov word [esp + 0x2c], 0
je 0x418d24
mov ecx, 0x400
xor eax, eax
lea edi, [esp + 0x43c]
push esi
rep stosd dword es:[edi], eax
call dword [sym.imp.SHLWAPI.dll_PathIsRelativeW]
test eax, eax
je 0x418d14
lea ecx, [esp + 0x43c]
push 0x800
push ecx
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
lea edx, [esp + 0x43c]
push edx
call ebx
lea eax, [esp + 0x43c]
push esi
lea ecx, [esp + 0x440]
push eax
push ecx
call dword [sym.imp.SHLWAPI.dll_PathCombineW]
lea edx, [esp + 0x43c]
push 0x104
lea eax, [esp + 0x30]
push edx
push eax
jmp 0x418d1f
push 0x104
lea ecx, [esp + 0x30]
push esi
push ecx
call ebp
add esp, 0xc
lea edx, [esp + 0x2c]
push edx
call ebx
lea eax, [esp + 0x2c]
lea ecx, [esp + 0x10]
push eax
call fcn.00456320
mov ecx, dword [esp + 0x10]
mov eax, dword [ecx - 8]
test eax, eax
je 0x418d5a
cmp word [ecx + eax*2 - 2], 0x5c
je 0x418d5a
push 0x46d988
lea ecx, [esp + 0x14]
call fcn.004562cc
lea ecx, [esp + 0x2c]
push ecx
lea ecx, [esp + 0x20]
call fcn.00456320
push 0x5c
lea ecx, [esp + 0x20]
call sub.MFC42u.DLL_CString::ReverseFind
push eax
push 0
lea ecx, [esp + 0x24]
call sub.MFC42u.DLL_CString::Delete
lea edx, [esp + 0x10]
lea ecx, [esp + 0x20]
push edx
call sub.MFC42u.DLL_CString::operator
push str.miniui.xml
lea ecx, [esp + 0x24]
call fcn.004562cc
lea eax, [esp + 0x10]
lea ecx, [esp + 0x14]
push eax
call sub.MFC42u.DLL_CString::operator
lea ecx, [esp + 0x1c]
push ecx
lea ecx, [esp + 0x18]
call sub.MFC42u.DLL_CString::operator_1
push 0x46d980
lea ecx, [esp + 0x18]
call fcn.004562cc
mov edx, dword [esp + 0x14]
test edx, edx
je 0x419008
mov ecx, 0x200
xor eax, eax
lea edi, [esp + 0x43c]
push 0x400
rep stosd dword es:[edi], eax
lea eax, [esp + 0x440]
push eax
push edx
push 0
call fcn.00407ac0
add esp, 0x10
test eax, eax
je 0x419008
lea ecx, [esp + 0x43c]
push ecx
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x419008
mov esi, dword [esp + 0x20]
test esi, esi
je 0x419008
lea edx, [esp + 0x43c]
mov ecx, 0x200
xor eax, eax
lea edi, [esp + 0x43c]
test edx, edx
rep stosd dword es:[edi], eax
je 0x419008
mov ecx, 0x400
lea edi, [esp + 0x143c]
rep stosd dword es:[edi], eax
push esi
mov word [esp + 0x440], ax
call dword [sym.imp.SHLWAPI.dll_PathIsRelativeW]
test eax, eax
je 0x418eb0
lea eax, [esp + 0x143c]
push 0x800
push eax
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
lea ecx, [esp + 0x143c]
push ecx
call ebx
lea edx, [esp + 0x143c]
push esi
lea eax, [esp + 0x1440]
push edx
push eax
call dword [sym.imp.SHLWAPI.dll_PathCombineW]
lea ecx, [esp + 0x143c]
push 0x400
lea edx, [esp + 0x440]
push ecx
push edx
jmp 0x418ebe
push 0x400
lea eax, [esp + 0x440]
push esi
push eax
call ebp
add esp, 0xc
lea ecx, [esp + 0x43c]
push ecx
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x419008
mov esi, dword [esp + 0x18]
test esi, esi
je 0x419008
lea edx, [esp + 0x43c]
mov ecx, 0x200
xor eax, eax
lea edi, [esp + 0x43c]
test edx, edx
rep stosd dword es:[edi], eax
je 0x419008
mov ecx, 0x400
lea edi, [esp + 0x143c]
rep stosd dword es:[edi], eax
push esi
mov word [esp + 0x440], ax
call dword [sym.imp.SHLWAPI.dll_PathIsRelativeW]
test eax, eax
je 0x418f72
lea eax, [esp + 0x143c]
push 0x800
push eax
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
lea ecx, [esp + 0x143c]
push ecx
call ebx
lea edx, [esp + 0x143c]
push esi
lea eax, [esp + 0x1440]
push edx
push eax
call dword [sym.imp.SHLWAPI.dll_PathCombineW]
lea ecx, [esp + 0x143c]
push 0x400
lea edx, [esp + 0x440]
push ecx
push edx
jmp 0x418f80
push 0x400
lea eax, [esp + 0x440]
push esi
push eax
call ebp
add esp, 0xc
lea ecx, [esp + 0x43c]
push ecx
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x419008
mov ecx, 0x81
xor eax, eax
lea edi, [esp + 0x236]
mov word [esp + 0x234], 0
mov edx, dword [esp + 0x18]
push 0x103
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
lea eax, [esp + 0x238]
push edx
push eax
call ebp
add esp, 0xc
lea ecx, [esp + 0x234]
push ecx
call ebx
push ecx
lea edx, [esp + 0x238]
mov ecx, esp
mov dword [esp + 0x2c], esp
push edx
call sub.MFC42u.DLL_CString::CString_1
mov ecx, 0x473130
call fcn.004038a0
mov ecx, dword [esp + 0x24]
call fcn.004157d0
jmp 0x419008
push str.___Wrong____n
call dword [sym.imp.KERNEL32.dll_OutputDebugStringW]
lea ecx, [esp + 0x1c]
mov byte [esp + 0x2444], 3
call sub.MFC42u.DLL_CString::CString
lea ecx, [esp + 0x10]
mov byte [esp + 0x2444], 2
call sub.MFC42u.DLL_CString::CString
lea ecx, [esp + 0x20]
mov byte [esp + 0x2444], 1
call sub.MFC42u.DLL_CString::CString
lea ecx, [esp + 0x14]
mov byte [esp + 0x2444], 0
call sub.MFC42u.DLL_CString::CString
lea ecx, [esp + 0x18]
mov dword [esp + 0x2444], 0xffffffff
call sub.MFC42u.DLL_CString::CString
mov ecx, dword [esp + 0x243c]
pop edi
pop esi
pop ebp
mov dword fs:[0], ecx
pop ebx
add esp, 0x2438
ret 4