Function at 0x4936f2
Capabilities:
Check if file exists

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4bd206
mov eax, dword fs:[0]
push eax
sub esp, 0x34
push ebx
push esi
push edi
mov eax, dword [0x4fc040]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x14], 0
mov dword [ebp - 4], 0
push dword [ebp + 8]
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
jne 0x49373c
xor esi, esi
jmp 0x4938c1
lea ecx, [ebp - 0x40]
call dword [sym.imp.mfc140u.dll_CFileFind::CFileFind]
lea ecx, [ebp + 8]
mov byte [ebp - 4], 2
call dword [sym.imp.mfc140u.dll_Ordinal_5921]
push eax
lea ecx, [ebp - 0x10]
call dword [sym.imp.mfc140u.dll_Ordinal_285]
mov eax, dword [ebp + 8]
push 4
push str..
mov dword [ebp - 0x14], 4
push dword [eax - 0xc]
push eax
lea eax, [ebp - 0x10]
push eax
call dword [sym.imp.mfc140u.dll_ATL::CSimpleStringT_wchar_t_1_::Concatenate]
add esp, 0x14
lea ecx, [ebp - 0x40]
push 0
push dword [ebp - 0x10]
call dword [sym.imp.mfc140u.dll_CFileFind::FindFile]
lea ecx, [ebp - 0x10]
mov byte [ebp - 4], 1
mov esi, eax
xor ebx, ebx
call dword [sym.imp.mfc140u.dll_Ordinal_1045]
test esi, esi
je 0x4938ad
mov esi, dword [sym.imp.mfc140u.dll_CFileFind::GetFileName]
nop dword [eax + eax]
lea ecx, [ebp - 0x40]
call dword [sym.imp.mfc140u.dll_CFileFind::FindNextFileW]
lea ecx, [ebp - 0x40]
mov edi, eax
call dword [sym.imp.mfc140u.dll_CFileFind::IsDots]
test eax, eax
jne 0x4938a5
mov eax, dword [ebp - 0x40]
lea ecx, [ebp - 0x40]
push 0x10
call dword [eax + 0x40]
lea ecx, [ebp - 0x40]
test eax, eax
je 0x49385a
lea eax, [ebp - 0x18]
push eax
call esi
mov esi, eax
lea ecx, [ebp + 8]
mov byte [ebp - 4], 4
call dword [sym.imp.mfc140u.dll_Ordinal_5921]
push eax
lea ecx, [ebp - 0x10]
call dword [sym.imp.mfc140u.dll_Ordinal_285]
mov eax, dword [ebp + 8]
or ebx, 1
push 1
push 0x4ed39c
mov dword [ebp - 0x14], ebx
push dword [eax - 0xc]
push eax
lea eax, [ebp - 0x10]
push eax
call dword [sym.imp.mfc140u.dll_ATL::CSimpleStringT_wchar_t_1_::Concatenate]
add esp, 0x10
lea edx, [ebp - 0x10]
mov ecx, esp
push esi
call fcn.00485060
add esp, 4
call 0x4936f0
add esp, 4
lea ecx, [ebp - 0x10]
mov esi, eax
and ebx, 0xfffffffe
call dword [sym.imp.mfc140u.dll_Ordinal_1045]
lea ecx, [ebp - 0x18]
mov byte [ebp - 4], 1
call dword [sym.imp.mfc140u.dll_Ordinal_1045]
test esi, esi
je 0x49389f
mov esi, 1
jmp 0x4938b8
lea eax, [ebp - 0x20]
push eax
call esi
push 4
lea ecx, [ebp - 0x1c]
mov byte [ebp - 4], 5
push ecx
mov ecx, eax
call dword [sym.imp.mfc140u.dll_ATL::CStringT_wchar_t_StrTraitMFC_DLL_wchar_t_ATL::ChTraitsCRT_wchar_t__4]
push str..exe
mov ecx, eax
mov byte [ebp - 4], 6
call dword [sym.imp.mfc140u.dll_ATL::CStringT_wchar_t_StrTraitMFC_DLL_wchar_t_ATL::ChTraitsCRT_wchar_t__13]
lea ecx, [ebp - 0x1c]
mov esi, eax
call dword [sym.imp.mfc140u.dll_Ordinal_1045]
lea ecx, [ebp - 0x20]
mov byte [ebp - 4], 1
call dword [sym.imp.mfc140u.dll_Ordinal_1045]
test esi, esi
je 0x493853
mov esi, dword [sym.imp.mfc140u.dll_CFileFind::GetFileName]
test edi, edi
jne 0x4937b0
lea ecx, [ebp - 0x40]
call dword [sym.imp.mfc140u.dll_CFileFind::Close]
xor esi, esi
lea ecx, [ebp - 0x40]
call dword [0x4c2ad0]
lea ecx, [ebp + 8]
call dword [sym.imp.mfc140u.dll_Ordinal_1045]
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret