Function at 0x40c6a5
Capabilities:
Check if file exists
Get file attributes

Disassembly:
mov eax, 0x40efa4
call fcn.0040d790
push ecx
mov eax, 0x1022c
call fcn.0040d900
push ebx
push esi
push edi
mov esi, ecx
mov dword [ebp - 0x10], esp
mov dword [ebp - 0x14], esi
lea ecx, [ebp - 0x30]
mov dword [ebp - 4], 1
call sub.MFC42.DLL_CFile::CFile
mov edi, 0x416b40
lea ecx, [ebp - 0x1c]
push edi
mov byte [ebp - 4], 2
call sub.MFC42.DLL_CString::CString_1
push 0
mov ebx, str.sendFile
push dword [ebp + 8]
mov ecx, esi
mov byte [ebp - 4], 3
push ebx
call fcn.0040cd26
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
cmp eax, 0xffffffff
jne 0x40c735
push dword [ebp + 8]
lea eax, [ebp - 0x1c]
push 0x416a10
push eax
call sub.MFC42.DLL_CString::Format
add esp, 0xc
mov ecx, esi
push 0x63
push dword [ebp - 0x1c]
push ebx
call fcn.0040cd26
mov esi, 0xfffffed2
jmp 0x40ca09
push 0
push 0
push dword [ebp + 8]
lea ecx, [ebp - 0x30]
call sub.MFC42.DLL_CFile::Open
test eax, eax
jne 0x40c752
mov esi, 0xfffffed3
jmp 0x40ca09
lea ecx, [ebp - 0x30]
call sub.MFC42.DLL_CFile::GetLength
test eax, eax
mov dword [ebp - 0x18], eax
jge 0x40c773
lea ecx, [ebp - 0x30]
call sub.MFC42.DLL_CFile::Close
mov esi, 0xfffffed1
jmp 0x40ca09
lea ecx, [ebp - 0x20]
call sub.MFC42.DLL_CString::CString
lea eax, [ebp - 0x34]
lea ecx, [ebp - 0x30]
push eax
mov byte [ebp - 4], 4
call sub.MFC42.DLL_CFile::GetFileName
push dword [ebp + 0xc]
mov byte [ebp - 4], 5
push dword [esi + 0x38]
push dword [ebp - 0x18]
push dword [eax]
lea eax, [ebp - 0x20]
push dword [0x416db0]
push str._s:_s:_d:_d:_s_n
push eax
call sub.MFC42.DLL_CString::Format
add esp, 0x1c
lea ecx, [ebp - 0x34]
mov byte [ebp - 4], 4
call fcn.0040d3c8
push 1
mov ecx, esi
push dword [ebp + 8]
push str.sendFile:
call fcn.0040cd26
mov eax, dword [ebp - 0x20]
mov ecx, esi
push dword [eax - 8]
push eax
call fcn.0040cb5e
test eax, eax
mov dword [ebp - 0x18], eax
je 0x40c82c
lea ecx, [ebp - 0x30]
call sub.MFC42.DLL_CFile::Close
push edi
lea ecx, [ebp - 0x14]
call sub.MFC42.DLL_CString::CString_1
mov ecx, esi
mov byte [ebp - 4], 6
call fcn.0040d273
push eax
lea eax, [ebp - 0x14]
push 0x4169d8
push eax
call sub.MFC42.DLL_CString::Format
add esp, 0xc
mov ecx, esi
push 0x63
push dword [ebp + 8]
push dword [ebp - 0x14]
call fcn.0040cd26
mov byte [ebp - 4], 4
lea ecx, [ebp - 0x14]
jmp 0x40c8ca
push 0x201
lea eax, [ebp - 0x238]
push 0
push eax
call sub.MSVCRT.dll_memset
push 0x10001
lea eax, [ebp - 0x1023c]
push 0
push eax
call sub.MSVCRT.dll_memset
add esp, 0x18
mov ecx, esi
push 1
push dword [ebp + 8]
push 0x4169c0
call fcn.0040cd26
push 0
lea eax, [ebp - 0x1023c]
push 0x10001
push eax
mov ecx, esi
call fcn.0040cc12
test eax, eax
mov dword [ebp - 0x18], eax
jg 0x40c913
lea ecx, [ebp - 0x30]
call sub.MFC42.DLL_CFile::Close
push edi
lea ecx, [ebp - 0x14]
call sub.MFC42.DLL_CString::CString_1
mov ecx, esi
mov byte [ebp - 4], 7
call fcn.0040d273
push eax
lea eax, [ebp - 0x14]
push 0x4169d8
push eax
call sub.MFC42.DLL_CString::Format
add esp, 0xc
mov ecx, esi
push 0x63
push dword [ebp + 8]
push dword [ebp - 0x14]
call fcn.0040cd26
mov byte [ebp - 4], 4
lea ecx, [ebp - 0x14]
call fcn.0040d3c8
lea ecx, [ebp - 0x20]
mov byte [ebp - 4], 3
call fcn.0040d3c8
lea ecx, [ebp - 0x1c]
mov byte [ebp - 4], 2
call fcn.0040d3c8
lea ecx, [ebp - 0x30]
mov byte [ebp - 4], 1
call fcn.0040d704
and byte [ebp - 4], 0
lea ecx, [ebp + 8]
call fcn.0040d3c8
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp + 0xc]
call fcn.0040d3c8
mov eax, dword [ebp - 0x18]
jmp 0x40cad6
push 1
mov ecx, esi
push dword [ebp + 8]
push 0x4169a8
call fcn.0040cd26
mov byte [ebp - 4], 8
push dword [esi + 0x38]
lea eax, [ebp - 0x1023c]
lea ecx, [ebp - 0x30]
push eax
call sub.MFC42.DLL_CFile::Read
test eax, eax
jbe 0x40c9df
push eax
lea eax, [ebp - 0x1023c]
push eax
mov ecx, esi
call fcn.0040cb5e
mov edi, eax
test edi, edi
je 0x40c9c4
lea ecx, [ebp - 0x30]
call sub.MFC42.DLL_CFile::Close
push edi
lea eax, [ebp - 0x1c]
push dword [ebp + 8]
push 0x416980
push eax
call sub.MFC42.DLL_CString::Format
add esp, 0x10
mov ecx, esi
push 0x63
push dword [ebp - 0x1c]
push ebx
call fcn.0040cd26
lea ecx, [ebp - 0x20]
mov byte [ebp - 4], 3
call fcn.0040d3c8
lea ecx, [ebp - 0x1c]
mov byte [ebp - 4], 2
call fcn.0040d3c8
lea ecx, [ebp - 0x30]
mov byte [ebp - 4], 1
call fcn.0040d704
and byte [ebp - 4], 0
lea ecx, [ebp + 8]
call fcn.0040d3c8
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp + 0xc]
call fcn.0040d3c8
mov eax, edi
jmp 0x40cad6
mov eax, dword [esi + 0x38]
inc eax
push eax
lea eax, [ebp - 0x1023c]
push 0
push eax
call sub.MSVCRT.dll_memset
add esp, 0xc
jmp 0x40c928
lea ecx, [ebp - 0x30]
call sub.MFC42.DLL_CFile::Close
push 2
mov ecx, esi
push dword [ebp + 8]
mov dword [ebp - 4], 4
push ebx
call fcn.0040cd26
lea ecx, [ebp - 0x20]
mov byte [ebp - 4], 3
call fcn.0040d3c8
xor esi, esi
lea ecx, [ebp - 0x1c]
mov byte [ebp - 4], 2
call fcn.0040d3c8
lea ecx, [ebp - 0x30]
mov byte [ebp - 4], 1
call fcn.0040d704
and byte [ebp - 4], 0
lea ecx, [ebp + 8]
call fcn.0040d3c8
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp + 0xc]
call fcn.0040d3c8
mov eax, esi
jmp 0x40cad6
mov ecx, dword [ebp - 0xc]
pop edi
pop esi
mov dword fs:[0], ecx
pop ebx
leave
ret 8