Function at 0x412370
Capabilities:
Check if file exists

Disassembly:
mov eax, dword fs:[0]
push 0xffffffffffffffff
push 0x427057
push eax
mov eax, 0x1cb0
mov dword fs:[0], esp
call fcn.0041f210
push ebx
push esi
lea ecx, [esp + 8]
call sub.MFC42u.DLL_CString::CString_1
xor esi, esi
lea ecx, [esp + 0xc]
mov dword [esp + 0x1cc0], esi
call sub.MFC42u.DLL_CString::CString_1
push 0x4306d8
lea ecx, [esp + 0x10]
mov byte [esp + 0x1cc4], 1
call sub.MFC42u.DLL_CString::operator
mov dword [esp + 0x10], esi
mov dword [esp + 0x14], esi
mov dword [esp + 0x18], esi
lea ecx, [esp + 0x20]
mov byte [esp + 0x1cc0], 2
call sub.MFC42u.DLL_CString::CString_1
lea ecx, [esp + 0x3c]
mov byte [esp + 0x1cc0], 3
call fcn.00411260
lea eax, [esp + 0x2c]
mov byte [esp + 0x1cc0], 4
push eax
call dword [0x42807c]
mov ecx, dword [esp + 0x36]
mov edx, dword [esp + 0x34]
mov eax, dword [esp + 0x32]
and ecx, 0xffff
and edx, 0xffff
push ecx
mov ecx, dword [esp + 0x32]
push edx
mov edx, dword [esp + 0x34]
and eax, 0xffff
and ecx, 0xffff
push eax
and edx, 0xffff
push ecx
push edx
lea eax, [esp + 0x34]
push str._d__02d__02d__02d:_02d
push eax
call sub.MFC42u.DLL_CString::Format
mov ebx, dword [esp + 0x1ce8]
add esp, 0x1c
mov eax, dword [ebx + 4]
cmp eax, esi
jne 0x41245f
mov dword [esp + 0x1c], esi
jmp 0x41246b
mov ecx, dword [ebx + 8]
sub ecx, eax
sar ecx, 4
mov dword [esp + 0x1c], ecx
mov eax, dword [esp + 0x1c]
mov dword [esp + 0x28], esi
cmp eax, esi
jle 0x412646
push ebp
mov ebp, dword [sym.imp.MSVCRT.dll__snwprintf]
push edi
mov dword [esp + 0x2c], esi
jmp 0x41248b
xor esi, esi
push 0x4306d8
lea ecx, [esp + 0x18]
call sub.MFC42u.DLL_CString::operator
mov eax, dword [ebx + 4]
mov dword [esp + 0x18], esi
cmp eax, esi
mov dword [esp + 0x1c], esi
mov dword [esp + 0x20], esi
je 0x4124bc
mov ecx, dword [ebx + 8]
sub ecx, eax
mov eax, dword [esp + 0x30]
sar ecx, 4
cmp ecx, eax
ja 0x4124c3
mov ecx, ebx
call fcn.00410640
mov eax, dword [ebx + 4]
mov edx, dword [esp + 0x2c]
lea ecx, [esp + 0x14]
lea esi, [edx + eax]
push esi
call sub.MFC42u.DLL_CString::operator_1
mov eax, dword [esi + 4]
lea edi, [esp + 0x70]
mov dword [esp + 0x18], eax
mov ecx, dword [esi + 8]
mov dword [esp + 0x1c], ecx
mov edx, dword [esi + 0xc]
mov ecx, 0x114
xor eax, eax
rep stosd dword es:[edi], eax
mov eax, dword [esp + 0x28]
lea ecx, [esp + 0x480]
push eax
push 0x42ee50
push 0x20
push ecx
mov dword [esp + 0x30], edx
call ebp
mov edx, dword [esp + 0x24]
add esp, 0x10
lea eax, [esp + 0x70]
push edx
push 0x42ee50
push 0x208
push eax
call ebp
add esp, 0x10
lea ecx, [esp + 0x14]
push ecx
lea ecx, [esp + 0x14]
call sub.MFC42u.DLL_CString::operator_1
mov edx, dword [esp + 0x10]
test edx, edx
mov esi, edx
je 0x412616
mov ecx, 0x200
xor eax, eax
lea edi, [esp + 0x4c0]
rep stosd dword es:[edi], eax
lea eax, [esp + 0x4c0]
test eax, eax
je 0x412616
mov ecx, 0x400
xor eax, eax
lea edi, [esp + 0xcc0]
push edx
rep stosd dword es:[edi], eax
mov word [esp + 0x4c4], 0
call dword [0x4285bc]
test eax, eax
je 0x4125dc
lea ecx, [esp + 0xcc0]
push 0x800
push ecx
push 0
call dword [0x4280c0]
lea edx, [esp + 0xcc0]
push edx
call dword [0x4285c8]
lea eax, [esp + 0xcc0]
push esi
lea ecx, [esp + 0xcc4]
push eax
push ecx
call dword [0x4285cc]
lea edx, [esp + 0xcc0]
push 0x400
lea eax, [esp + 0x4c4]
push edx
push eax
jmp 0x4125ea
push 0x400
lea ecx, [esp + 0x4c4]
push esi
push ecx
call dword [sym.imp.MSVCRT.dll_wcsncpy]
add esp, 0xc
lea edx, [esp + 0x4c0]
push edx
call dword [0x4285d0]
test eax, eax
je 0x412616
lea eax, [esp + 0x10]
push eax
call fcn.004126c0
add esp, 4
test eax, eax
je 0x412624
lea ecx, [esp + 0x70]
push ecx
lea ecx, [esp + 0x48]
call fcn.004113b0
mov eax, dword [esp + 0x30]
mov edx, dword [esp + 0x2c]
mov ecx, dword [esp + 0x24]
inc eax
add edx, 0x10
cmp eax, ecx
mov dword [esp + 0x30], eax
mov dword [esp + 0x2c], edx
jl 0x412489
pop edi
pop ebp
lea ecx, [esp + 0x3c]
call fcn.00411570
lea ecx, [esp + 0x3c]
mov byte [esp + 0x1cc0], 3
call fcn.00411310
lea ecx, [esp + 0x20]
mov byte [esp + 0x1cc0], 2
call sub.MFC42u.DLL_CString::CString
lea ecx, [esp + 0xc]
mov byte [esp + 0x1cc0], 0
call sub.MFC42u.DLL_CString::CString
lea ecx, [esp + 8]
mov dword [esp + 0x1cc0], 0xffffffff
call sub.MFC42u.DLL_CString::CString
mov ecx, dword [esp + 0x1cb8]
pop esi
xor eax, eax
pop ebx
mov dword fs:[0], ecx
add esp, 0x1cbc
ret 0xc