Function at 0x4dea90
Capabilities:
Check if file exists

Disassembly:
push 0xffffffffffffffff
push 0x58ab99
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x150
mov eax, dword [0x5f3edc]
push ebx
push ebp
push esi
mov dword [esp + 0x158], eax
push edi
mov ebp, ecx
lea ecx, [esp + 0x170]
mov dword [esp + 0x168], 0
call dword [sym.imp.MFC71.DLL_ATL::CSimpleStringT::operator_char_const_]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsA]
test eax, eax
jne 0x4deb34
push 0x596834
lea ecx, [esp + 0x14]
call dword [sym.imp.MFC71.DLL_ATL::CStringT::CStringT_6]
mov ebx, 1
push 0x8268
lea ecx, [esp + 0x14]
mov byte [esp + 0x16c], bl
call dword [sym.imp.MFC71.DLL_ATL::CStringT::LoadStringA]
push 0
push ebx
lea ecx, [esp + 0x18]
call dword [sym.imp.MFC71.DLL_ATL::CSimpleStringT::operator_char_const_]
push eax
call sub.MFC71.DLL_AfxMessageBox_1
cmp eax, 2
jne 0x4deb25
mov byte [ebp + 0x68], bl
lea ecx, [esp + 0x10]
call dword [sym.imp.MFC71.DLL_ATL::CStringT::CStringT_1]
jmp 0x4ded33
lea ecx, [esp + 0x170]
call dword [sym.imp.MFC71.DLL_ATL::CSimpleStringT::operator_char_const_]
push eax
call dword [sym.imp.SHLWAPI.dll_PathIsDirectoryA]
test eax, eax
lea ecx, [esp + 0x170]
je 0x4deca4
call dword [sym.imp.MFC71.DLL_ATL::CSimpleStringT::operator_char_const_]
push eax
call dword [sym.imp.SHLWAPI.dll_PathIsDirectoryEmptyA]
test eax, eax
jne 0x4ded33
push 1
lea eax, [esp + 0x14]
push eax
lea ecx, [esp + 0x178]
call dword [sym.imp.MFC71.DLL_ATL::CStringT::Right]
push 0x5c
push eax
call fcn.0047c050
add esp, 8
lea ecx, [esp + 0x10]
mov bl, al
call dword [sym.imp.MFC71.DLL_ATL::CStringT::CStringT_1]
test bl, bl
je 0x4debaa
push 0x5c
lea ecx, [esp + 0x174]
call dword [0x59483c]
push 0x2a
lea ecx, [esp + 0x174]
push ecx
lea edx, [esp + 0x1c]
push edx
call fcn.00466000
add esp, 0xc
xor eax, eax
push eax
push eax
push eax
mov ecx, 0x50
lea edi, [esp + 0x28]
rep stosd dword es:[edi], eax
lea eax, [esp + 0x28]
push eax
mov bl, 2
push 0
lea ecx, [esp + 0x28]
mov byte [esp + 0x17c], bl
call dword [sym.imp.MFC71.DLL_ATL::CSimpleStringT::operator_char_const_]
push eax
call dword [sym.imp.KERNEL32.dll_FindFirstFileExA]
mov esi, eax
test esi, esi
je 0x4dec95
cmp esi, 0xffffffff
je 0x4dec95
mov edi, dword [sym.imp.KERNEL32.dll_FindNextFileA]
jmp 0x4dec10
lea ecx, [esp + 0x48]
push ecx
lea ecx, [esp + 0x14]
call dword [sym.imp.MFC71.DLL_ATL::CStringT::CStringT_6]
push 0x5a22e8
lea ecx, [esp + 0x14]
mov byte [esp + 0x16c], 3
call dword [sym.imp.MFC71.DLL_ATL::CStringT::Compare]
test eax, eax
je 0x4dec71
push 0x5a22e4
lea ecx, [esp + 0x14]
call dword [sym.imp.MFC71.DLL_ATL::CStringT::Compare]
test eax, eax
je 0x4dec71
push ecx
mov edx, esp
mov dword [esp + 0x1c], esp
lea eax, [esp + 0x14]
push eax
lea ecx, [esp + 0x178]
push ecx
push edx
call fcn.0040cd70
add esp, 0xc
mov ecx, ebp
call fcn.004dea90
lea ecx, [esp + 0x10]
mov byte [esp + 0x168], bl
call dword [sym.imp.MFC71.DLL_ATL::CStringT::CStringT_1]
lea edx, [esp + 0x1c]
push edx
push esi
call edi
test eax, eax
jne 0x4dec10
push esi
call dword [sym.imp.KERNEL32.dll_FindClose]
lea ecx, [esp + 0x14]
call dword [sym.imp.MFC71.DLL_ATL::CStringT::CStringT_1]
jmp 0x4ded33
call dword [sym.imp.MFC71.DLL_ATL::CSimpleStringT::GetLength]
push eax
lea ecx, [esp + 0x174]
call dword [sym.imp.MFC71.DLL_ATL::CSimpleStringT::GetBuffer]
push eax
call fcn.0044e580
add esp, 4
test al, al
jne 0x4ded23
push 0x5c
lea ecx, [esp + 0x174]
call dword [sym.imp.MFC71.DLL_ATL::CStringT::ReverseFind]
lea ecx, [esp + 0x170]
mov esi, eax
call dword [sym.imp.MFC71.DLL_ATL::CSimpleStringT::GetLength]
sub eax, esi
dec eax
push eax
lea eax, [esp + 0x18]
push eax
lea ecx, [esp + 0x178]
call dword [sym.imp.MFC71.DLL_ATL::CStringT::Right]
lea ecx, [esp + 0x14]
push ecx
lea ecx, [ebp + 0xa0]
mov byte [esp + 0x16c], 4
call sub.MFC71.DLL_CStringList::AddTail
lea ecx, [esp + 0x14]
mov byte [esp + 0x168], 0
call dword [sym.imp.MFC71.DLL_ATL::CStringT::CStringT_1]
lea edx, [esp + 0x170]
push edx
lea ecx, [ebp + 0x24]
call sub.MFC71.DLL_CStringList::AddTail
lea ecx, [esp + 0x170]
call dword [sym.imp.MFC71.DLL_ATL::CStringT::CStringT_1]
mov ecx, dword [esp + 0x160]
mov dword fs:[0], ecx
mov ecx, dword [esp + 0x15c]
call fcn.00558076
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x15c
ret 4