Function at 0x4063b2
Capabilities:
Check if file exists

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4326ae
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x84
mov dword [ebp - 4], 0
lea ecx, [ebp + 8]
call dword [sym.imp.mfc140u.dll_Ordinal_1663]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
jne 0x40640a
mov dword [ebp - 0x18], 0
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp + 8]
call dword [sym.imp.mfc140u.dll_Ordinal_1045]
mov eax, dword [ebp - 0x18]
jmp 0x40663c
lea ecx, [ebp - 0x8c]
call dword [sym.imp.mfc140u.dll_CFileFind::CFileFind]
mov byte [ebp - 4], 1
push str..
lea eax, [ebp + 8]
push eax
lea ecx, [ebp - 0x24]
push ecx
call fcn.00405850
add esp, 0xc
mov dword [ebp - 0x1c], eax
mov edx, dword [ebp - 0x1c]
mov dword [ebp - 0x20], edx
mov byte [ebp - 4], 2
push 0
mov ecx, dword [ebp - 0x20]
call dword [sym.imp.mfc140u.dll_Ordinal_1663]
push eax
lea ecx, [ebp - 0x8c]
call dword [sym.imp.mfc140u.dll_CFileFind::FindFile]
mov dword [ebp - 0x14], eax
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x24]
call dword [sym.imp.mfc140u.dll_Ordinal_1045]
cmp dword [ebp - 0x14], 0
je 0x406606
lea ecx, [ebp - 0x8c]
call dword [sym.imp.mfc140u.dll_CFileFind::FindNextFileW]
mov dword [ebp - 0x14], eax
lea ecx, [ebp - 0x8c]
call dword [sym.imp.mfc140u.dll_CFileFind::IsDots]
test eax, eax
jne 0x406601
lea ecx, [ebp - 0x8c]
call fcn.00409390
test eax, eax
je 0x40656e
lea eax, [ebp - 0x48]
push eax
lea ecx, [ebp - 0x8c]
call dword [sym.imp.mfc140u.dll_CFileFind::GetFileName]
mov dword [ebp - 0x28], eax
mov ecx, dword [ebp - 0x28]
mov dword [ebp - 0x2c], ecx
mov byte [ebp - 4], 3
mov edx, dword [ebp - 0x2c]
mov dword [ebp - 0x38], edx
push 0x43d944
lea eax, [ebp + 8]
push eax
lea ecx, [ebp - 0x44]
push ecx
call fcn.00405850
add esp, 0xc
mov dword [ebp - 0x30], eax
mov edx, dword [ebp - 0x30]
mov dword [ebp - 0x34], edx
mov byte [ebp - 4], 4
mov eax, dword [ebp - 0x34]
mov dword [ebp - 0x3c], eax
push ecx
mov ecx, esp
mov dword [ebp - 0x90], esp
mov edx, dword [ebp - 0x38]
push edx
mov eax, dword [ebp - 0x3c]
push eax
push ecx
call fcn.00404c90
add esp, 0xc
call 0x4063b0
add esp, 4
mov dword [ebp - 0x40], eax
mov ecx, dword [ebp - 0x40]
mov dword [ebp - 0x4c], ecx
mov byte [ebp - 4], 3
lea ecx, [ebp - 0x44]
call dword [sym.imp.mfc140u.dll_Ordinal_1045]
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x48]
call dword [sym.imp.mfc140u.dll_Ordinal_1045]
cmp dword [ebp - 0x4c], 0
je 0x406569
mov dword [ebp - 0x50], 1
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x8c]
call dword [0x4369c4]
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp + 8]
call dword [sym.imp.mfc140u.dll_Ordinal_1045]
mov eax, dword [ebp - 0x50]
jmp 0x40663c
jmp 0x406601
lea edx, [ebp - 0x68]
push edx
lea ecx, [ebp - 0x8c]
call dword [sym.imp.mfc140u.dll_CFileFind::GetFileName]
mov dword [ebp - 0x54], eax
mov eax, dword [ebp - 0x54]
mov dword [ebp - 0x58], eax
mov byte [ebp - 4], 5
mov ecx, dword [ebp - 0x58]
mov dword [ebp - 0x5c], ecx
push 4
lea edx, [ebp - 0x64]
push edx
mov ecx, dword [ebp - 0x5c]
call dword [sym.imp.mfc140u.dll_ATL::CStringT_wchar_t_StrTraitMFC_DLL_wchar_t_ATL::ChTraitsCRT_wchar_t__4]
mov dword [ebp - 0x60], eax
push str..exe
mov eax, dword [ebp - 0x60]
push eax
call fcn.004055c0
add esp, 8
mov byte [ebp - 0xd], al
lea ecx, [ebp - 0x64]
call dword [sym.imp.mfc140u.dll_Ordinal_1045]
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x68]
call dword [sym.imp.mfc140u.dll_Ordinal_1045]
movzx ecx, byte [ebp - 0xd]
test ecx, ecx
je 0x406601
mov dword [ebp - 0x6c], 1
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x8c]
call dword [0x4369c4]
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp + 8]
call dword [sym.imp.mfc140u.dll_Ordinal_1045]
mov eax, dword [ebp - 0x6c]
jmp 0x40663c
jmp 0x406464
lea ecx, [ebp - 0x8c]
call dword [sym.imp.mfc140u.dll_CFileFind::Close]
mov dword [ebp - 0x70], 0
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x8c]
call dword [0x4369c4]
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp + 8]
call dword [sym.imp.mfc140u.dll_Ordinal_1045]
mov eax, dword [ebp - 0x70]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
mov esp, ebp
pop ebp
ret