Function at 0x467670
Capabilities:
Check if file exists

Disassembly:
mov eax, dword fs:[0]
push 0xffffffffffffffff
push 0x4b6641
push eax
mov eax, dword [esp + 0x10]
mov dword fs:[0], esp
sub esp, 0x52c
test eax, eax
push ebx
push ebp
push esi
push edi
je 0x467aee
mov ebx, dword [esp + 0x550]
mov byte [eax], 0
test ebx, ebx
je 0x467aee
mov esi, dword [esp + 0x554]
test esi, esi
je 0x467aee
cmp byte [ebx], 0
je 0x467aee
cmp byte [esi], 0
je 0x467aee
mov eax, dword [esp + 0x560]
mov ecx, eax
dec eax
test ecx, ecx
mov dword [esp + 0x560], eax
jge 0x4676ed
mov eax, 0xc
jmp 0x467af3
mov eax, dword [esp + 0x568]
test eax, eax
je 0x467707
cmp dword [eax], 0
je 0x467707
mov eax, 0xc
jmp 0x467af3
lea ecx, [esp + 0x18]
call sub.MFC42.DLL_CFileFind::CFileFind
lea edx, [esp + 0x138]
push esi
push edx
mov dword [esp + 0x54c], 0
call fcn.00462e20
mov ebp, dword [esp + 0x564]
add esp, 8
test ebp, ebp
je 0x467793
mov edi, ebp
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
dec ecx
lea edi, [esp + 0x138]
mov edx, ecx
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
not ecx
dec ecx
cmp ecx, edx
jbe 0x467879
mov edi, ebp
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
not ecx
dec ecx
lea edx, [esp + 0x138]
sub edx, ecx
lea edi, [esp + 0x138]
or ecx, 0xffffffff
push ebp
repne scasb al, byte es:[edi]
not ecx
dec ecx
add edx, ecx
push edx
call dword [sym.imp.MSVCRT.dll__stricmp]
add esp, 8
test eax, eax
jne 0x467879
push ebx
push esi
lea eax, [esp + 0x140]
push 0x4d1784
push eax
call dword [sym.imp.MSVCRT.dll_sprintf]
add esp, 0x10
lea ecx, [esp + 0x138]
push 0
push ecx
lea ecx, [esp + 0x20]
call sub.MFC42.DLL_CFileFind::FindFile
test eax, eax
je 0x467865
lea ecx, [esp + 0x18]
call sub.MFC42.DLL_CFileFind::FindNextFileA
lea ecx, [esp + 0x18]
mov dword [esp + 0x10], eax
call sub.MFC42.DLL_CFileFind::IsDots
test eax, eax
jne 0x467859
mov edx, dword [esp + 0x18]
push 0x10
lea ecx, [esp + 0x1c]
call dword [edx + 0x40]
xor ecx, ecx
test eax, eax
mov al, byte [esp + 0x56c]
setne cl
xor edx, edx
test al, al
setne dl
cmp edx, ecx
jne 0x467859
mov edi, dword [esp + 0x564]
test edi, edi
je 0x467a80
lea eax, [esp + 0x14]
lea ecx, [esp + 0x18]
push eax
call sub.MFC42.DLL_CFileFind::GetFilePath
mov eax, dword [eax]
push edi
push eax
mov byte [esp + 0x54c], 1
call fcn.004632d0
add esp, 8
lea ecx, [esp + 0x14]
mov bl, al
mov byte [esp + 0x544], 0
call sub.MFC42.DLL_CString::CString
test bl, bl
jne 0x467a2d
mov ebx, dword [esp + 0x550]
mov eax, dword [esp + 0x10]
test eax, eax
jne 0x4677c6
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 2
je 0x467879
cmp eax, 0x12
jne 0x467a07
mov al, byte [esp + 0x558]
test al, al
je 0x467ad3
lea eax, [esp + 0x138]
push esi
push eax
call fcn.00462e20
mov edx, eax
mov edi, str..
or ecx, 0xffffffff
xor eax, eax
add esp, 8
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
push eax
mov esi, edi
mov edi, edx
mov edx, ecx
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
mov ecx, edx
dec edi
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
lea eax, [esp + 0x13c]
and ecx, 3
push eax
rep movsb byte es:[edi], byte [esi]
lea ecx, [esp + 0x20]
call sub.MFC42.DLL_CFileFind::FindFile
test eax, eax
je 0x4679ef
lea ecx, [esp + 0x18]
call sub.MFC42.DLL_CFileFind::FindNextFileA
lea ecx, [esp + 0x18]
mov dword [esp + 0x10], eax
call sub.MFC42.DLL_CFileFind::IsDots
test eax, eax
jne 0x4679e3
mov edx, dword [esp + 0x18]
push 0x10
lea ecx, [esp + 0x1c]
call dword [edx + 0x40]
test eax, eax
je 0x4679e3
lea eax, [esp + 0x14]
lea ecx, [esp + 0x18]
push eax
call sub.MFC42.DLL_CFileFind::GetFilePath
mov eax, dword [eax]
push 0x101
lea ecx, [esp + 0x38]
push eax
push ecx
mov byte [esp + 0x550], 2
call fcn.004625f0
add esp, 0xc
lea ecx, [esp + 0x14]
mov byte [esp + 0x544], 0
call sub.MFC42.DLL_CString::CString
test ebp, ebp
je 0x467995
cmp byte [ebp], 0
je 0x467995
lea edi, [esp + 0x34]
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
dec ecx
mov edi, ebp
mov edx, ecx
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
not ecx
dec ecx
cmp edx, ecx
jb 0x4679e3
mov edi, ebp
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
not ecx
dec ecx
push ebp
sub edx, ecx
lea edx, [esp + edx + 0x38]
push edx
call dword [sym.imp.MSVCRT.dll__stricmp]
add esp, 8
test eax, eax
jne 0x4679e3
mov eax, dword [esp + 0x56c]
mov ecx, dword [esp + 0x568]
mov edx, dword [esp + 0x564]
push eax
mov eax, dword [esp + 0x564]
push ecx
push edx
mov edx, dword [esp + 0x558]
push eax
push ebp
lea ecx, [esp + 0x48]
push 1
push ecx
push ebx
push edx
call fcn.00467670
mov esi, eax
add esp, 0x24
test esi, esi
je 0x467a12
cmp esi, 0xc
je 0x4679e3
cmp esi, 0xe
je 0x4679e3
cmp esi, 0x10
jne 0x467a12
mov eax, dword [esp + 0x10]
test eax, eax
jne 0x4678df
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 2
je 0x467ad3
cmp eax, 0x12
je 0x467ad3
push eax
call fcn.00465ff0
add esp, 4
mov esi, eax
lea ecx, [esp + 0x18]
mov dword [esp + 0x544], 0xffffffff
call fcn.0047a2ca
mov eax, esi
jmp 0x467af3
lea ecx, [esp + 0x10]
push ecx
lea ecx, [esp + 0x1c]
call sub.MFC42.DLL_CFileFind::GetFilePath
mov edi, dword [eax]
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov edx, ecx
mov esi, edi
mov edi, dword [esp + 0x54c]
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
lea ecx, [esp + 0x10]
call sub.MFC42.DLL_CString::CString
lea ecx, [esp + 0x18]
mov dword [esp + 0x544], 0xffffffff
call fcn.0047a2ca
xor eax, eax
jmp 0x467af3
lea eax, [esp + 0x10]
lea ecx, [esp + 0x18]
push eax
call sub.MFC42.DLL_CFileFind::GetFilePath
mov edi, dword [eax]
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov edx, ecx
mov esi, edi
mov edi, dword [esp + 0x54c]
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
lea ecx, [esp + 0x10]
call sub.MFC42.DLL_CString::CString
lea ecx, [esp + 0x18]
mov dword [esp + 0x544], 0xffffffff
call fcn.0047a2ca
xor eax, eax
jmp 0x467af3
lea ecx, [esp + 0x18]
mov dword [esp + 0x544], 0xffffffff
call fcn.0047a2ca
mov eax, 0xc
jmp 0x467af3
mov eax, 0xe
mov ecx, dword [esp + 0x53c]
pop edi
pop esi
pop ebp
pop ebx
mov dword fs:[0], ecx
add esp, 0x538
ret