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

Disassembly:
push 0x3c
mov eax, 0x4c7212
call fcn.004c5434
mov edi, ecx
lea ecx, [ebp - 0x2c]
call dword [sym.imp.MFC42u.dll_CString::CString]
xor esi, esi
lea ecx, [ebp - 0x28]
mov dword [ebp - 4], esi
call dword [sym.imp.MFC42u.dll_CString::CString]
lea ecx, [ebp - 0x10]
mov byte [ebp - 4], 1
call dword [sym.imp.MFC42u.dll_CString::CString]
lea ecx, [ebp - 0x14]
mov byte [ebp - 4], 2
call dword [sym.imp.MFC42u.dll_CString::CString]
lea ecx, [ebp - 0x24]
mov byte [ebp - 4], 3
call dword [sym.imp.MFC42u.dll_CString::CString]
lea ecx, [ebp - 0x20]
mov byte [ebp - 4], 4
call dword [sym.imp.MFC42u.dll_CString::CString]
lea ecx, [ebp - 0x48]
mov byte [ebp - 4], 5
call dword [sym.imp.MFC42u.dll_CFileFind::CFileFind]
mov byte [ebp - 4], 6
cmp dword [edi + 0x88], esi
je 0x487b32
mov eax, dword [edi + 0x24]
cmp dword [eax - 8], esi
je 0x487b2f
push eax
lea ecx, [ebp - 0x14]
call dword [0x4f63d8]
cmp dword [edi + 0x88], esi
jle 0x487b79
push dword [edi + 0x84]
lea ecx, [ebp - 0x14]
call dword [0x4f63d0]
mov ebx, 0x40c6cc
lea ecx, [ebp - 0x14]
push ebx
call dword [0x4f6630]
push dword [ebp - 0x14]
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x487b32
cmp dword [edi + 0x88], esi
jle 0x487b79
push dword [edi + 0x84]
lea ecx, [ebp - 0x14]
call dword [sym.imp.MFC42u.dll_CString::operator]
push ebx
lea ecx, [ebp - 0x14]
call dword [0x4f6630]
lea eax, [ebp - 0x14]
lea ecx, [edi + 0x28]
push eax
push dword [ecx + 8]
call dword [sym.imp.MFC42u.dll_CStringArray::SetAtGrow]
push dword [edi + 0x24]
lea ecx, [ebp - 0x10]
call dword [0x4f63d8]
push dword [ebp - 0x10]
lea ebx, [edi + 4]
mov ecx, ebx
call dword [0x4f63d8]
push 0x40c548
lea ecx, [ebp - 0x10]
call dword [0x4f6630]
push esi
push dword [ebp - 0x10]
lea ecx, [ebp - 0x48]
call dword [sym.imp.MFC42u.dll_CFileFind::FindFile]
test eax, eax
jne 0x487a89
push esi
push esi
push 0x40c558
call dword [sym.imp.MFC42u.dll_AfxMessageBox]
jmp 0x487b1d
lea eax, [ebp - 0x18]
push eax
call dword [sym.imp.MFC42u.dll_CFileFind::GetFileName]
mov byte [ebp - 4], 7
lea ecx, [ebp - 0x10]
push dword [eax]
call dword [0x4f63d8]
lea ecx, [ebp - 0x18]
mov byte [ebp - 4], 6
call dword [0x4f63ac]
mov eax, dword [ebp - 0x10]
cmp dword [eax - 8], esi
je 0x487a89
push dword [ebx]
lea ecx, [ebp - 0x10]
call dword [0x4f63d8]
push 0x40af9c
lea ecx, [ebp - 0x10]
call dword [0x4f6630]
lea eax, [ebp - 0x1c]
push eax
lea ecx, [ebp - 0x48]
call dword [sym.imp.MFC42u.dll_CFileFind::GetFileName]
mov byte [ebp - 4], 8
lea ecx, [ebp - 0x10]
push dword [eax]
call dword [0x4f6630]
lea ecx, [ebp - 0x1c]
mov byte [ebp - 4], 6
call dword [0x4f63ac]
lea eax, [ebp - 0x10]
lea ecx, [edi + 0x10]
push eax
push dword [ecx + 8]
call dword [sym.imp.MFC42u.dll_CStringArray::SetAtGrow]
lea ecx, [ebp - 0x48]
call dword [sym.imp.MFC42u.dll_CFileFind::FindNextFileW]
lea ecx, [ebp - 0x48]
test eax, eax
jne 0x487a09
lea eax, [ebp - 0x1c]
push eax
call dword [sym.imp.MFC42u.dll_CFileFind::GetFileName]
mov byte [ebp - 4], 9
lea ecx, [ebp - 0x10]
push dword [eax]
call dword [0x4f63d8]
lea ecx, [ebp - 0x1c]
mov byte [ebp - 4], 6
call dword [0x4f63ac]
mov eax, dword [ebp - 0x10]
cmp dword [eax - 8], esi
je 0x487b1d
push dword [ebx]
lea ecx, [ebp - 0x10]
call dword [0x4f63d8]
push 0x40af9c
lea ecx, [ebp - 0x10]
call dword [0x4f6630]
lea eax, [ebp - 0x1c]
push eax
lea ecx, [ebp - 0x48]
call dword [sym.imp.MFC42u.dll_CFileFind::GetFileName]
mov byte [ebp - 4], 0xa
lea ecx, [ebp - 0x10]
push dword [eax]
call dword [0x4f6630]
lea ecx, [ebp - 0x1c]
mov byte [ebp - 4], 6
call dword [0x4f63ac]
lea eax, [ebp - 0x10]
lea ecx, [edi + 0x10]
push eax
push dword [ecx + 8]
call dword [sym.imp.MFC42u.dll_CStringArray::SetAtGrow]
cmp dword [edi + 0x18], esi
jne 0x487b2f
push esi
push esi
push 0x40c558
call dword [sym.imp.MFC42u.dll_AfxMessageBox]
xor esi, esi
inc esi
lea ecx, [ebp - 0x48]
call dword [0x4f67b8]
lea ecx, [ebp - 0x20]
call dword [0x4f63ac]
lea ecx, [ebp - 0x24]
call dword [0x4f63ac]
lea ecx, [ebp - 0x14]
call dword [0x4f63ac]
lea ecx, [ebp - 0x10]
call dword [0x4f63ac]
lea ecx, [ebp - 0x28]
call dword [0x4f63ac]
lea ecx, [ebp - 0x2c]
call dword [0x4f63ac]
mov eax, esi
call fcn.004c5402
ret
call dword [sym.imp.MFC42u.dll_AfxThrowInvalidArgException]
int3