Function at 0x5205a0
Capabilities:
Check if file exists

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x53fc9b
mov eax, dword fs:[0]
push eax
sub esp, 0x20
push ebx
push esi
push edi
mov eax, dword [0x5c403c]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x10], esp
mov esi, dword [ebp + 8]
mov edi, edi
mov eax, dword [esi]
mov ecx, esi
mov edx, dword [eax]
call edx
mov dword [ebp - 0x1c], 0
mov ebx, dword [esi + 0x40]
mov eax, dword [esi + 0x38]
sub eax, dword [esi + 0x34]
sar eax, 2
cmp ebx, eax
jb 0x5205f5
call dword [sym.imp.MSVCR90.dll__invalid_parameter_noinfo]
mov ecx, dword [esi + 0x34]
lea eax, [ecx + ebx*4]
mov edx, dword [eax]
mov eax, dword [edx - 0xc]
xor ebx, ebx
test eax, eax
setne bl
test ebx, ebx
je 0x52063a
mov edi, dword [esi + 0x40]
mov eax, dword [esi + 0x38]
sub eax, ecx
sar eax, 2
cmp edi, eax
jb 0x520620
call dword [sym.imp.MSVCR90.dll__invalid_parameter_noinfo]
mov ecx, dword [esi + 0x34]
lea eax, [ecx + edi*4]
mov eax, dword [eax]
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
xor edx, edx
cmp eax, 0xffffffff
setne dl
mov dword [ebp - 0x1c], edx
push esi
call fcn.005210e0
mov edi, eax
mov dword [ebp - 0x20], edi
call fcn.005204b0
test ebx, ebx
je 0x5206de
mov dword [ebp - 4], 0
lea ecx, [esi + 0xc4]
mov eax, dword [ecx]
mov edx, dword [eax + 0x54]
call edx
mov dword [ebp - 4], 0xffffffff
jmp 0x52068a
test edi, edi
jne 0x5206e2
cmp dword [ebp - 0x1c], edi
jne 0x5206c1
mov ebx, dword [esi + 0x40]
mov eax, dword [esi + 0x38]
sub eax, dword [esi + 0x34]
sar eax, 2
cmp ebx, eax
jb 0x5206a9
call dword [sym.imp.MSVCR90.dll__invalid_parameter_noinfo]
mov ecx, dword [esi + 0x34]
lea eax, [ecx + ebx*4]
mov eax, dword [eax]
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
test eax, eax
je 0x5206c1
call fcn.00520570
mov dword [esi + 0x40], 0
mov eax, edi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4
test edi, edi
je 0x5206c1
mov ebx, dword [esi + 0x40]
inc ebx
mov edx, dword [esi + 0x38]
sub edx, dword [esi + 0x34]
sar edx, 2
cmp edx, ebx
jb 0x5206c1
mov dword [esi + 0x40], ebx
mov eax, dword [esi + 0x20]
sub eax, dword [esi + 0x1c]
sar eax, 2
cmp ebx, eax
jae 0x5206c8
mov ecx, dword [esi + 0x20]
sub ecx, dword [esi + 0x1c]
sar ecx, 2
mov edi, dword [sym.imp.MSVCR90.dll__invalid_parameter_noinfo]
cmp ebx, ecx
jb 0x520718
call edi
mov edx, dword [esi + 0x1c]
lea eax, [edx + ebx*4]
push eax
lea ecx, [ebp - 0x18]
call dword [0x55a520]
mov ebx, 2
mov dword [ebp - 4], ebx
push 0x2f
lea ecx, [ebp - 0x18]
call dword [sym.imp.mfc90u.dll_ATL::CStringT_wchar_t_class_StrTraitMFC_DLL_wchar_t_class_ATL::ChTraitsCRT_wchar_t_____::ReverseFind]
cmp eax, 0xffffffff
jne 0x520750
push 0x5c
lea ecx, [ebp - 0x18]
call dword [sym.imp.mfc90u.dll_ATL::CStringT_wchar_t_class_StrTraitMFC_DLL_wchar_t_class_ATL::ChTraitsCRT_wchar_t_____::ReverseFind]
cmp eax, 0xffffffff
je 0x520789
mov ecx, dword [ebp - 0x18]
cmp dword [ecx - 0xc], 1
jle 0x520789
mov ecx, dword [ecx - 0xc]
sub ecx, eax
dec ecx
push ecx
lea eax, [ebp - 0x24]
push eax
lea ecx, [ebp - 0x18]
call dword [sym.imp.mfc90u.dll_ATL::CStringT_wchar_t_class_StrTraitMFC_DLL_wchar_t_class_ATL::ChTraitsCRT_wchar_t_____::Right]
mov byte [ebp - 4], 3
push eax
lea ecx, [esi + 8]
call dword [sym.imp.mfc90u.dll_ATL::CStringT_wchar_t_class_StrTraitMFC_DLL_wchar_t_class_ATL::ChTraitsCRT_wchar_t_____::operator_2]
mov byte [ebp - 4], bl
lea ecx, [ebp - 0x24]
call dword [sym.imp.mfc90u.dll_ATL::CStringT_wchar_t_class_StrTraitMFC_DLL_wchar_t_class_ATL::ChTraitsCRT_wchar_t_____::CStringT_wchar_t_clas]
jmp 0x520796
lea ecx, [ebp - 0x18]
push ecx
lea ecx, [esi + 8]
call dword [sym.imp.mfc90u.dll_ATL::CStringT_wchar_t_class_StrTraitMFC_DLL_wchar_t_class_ATL::ChTraitsCRT_wchar_t_____::operator_2]
mov ebx, dword [esi + 0x40]
mov edx, dword [esi + 0x20]
sub edx, dword [esi + 0x1c]
sar edx, 2
cmp ebx, edx
jb 0x5207a8
call edi
mov eax, dword [esi + 0x1c]
lea eax, [eax + ebx*4]
mov eax, dword [eax]
lea ecx, [esi + 0xc]
lea edx, [esi + 0xa4]
lea ebx, [ebp - 0x14]
push ebx
lea ebx, [ebp - 0x18]
push ebx
push ecx
push edx
push eax
call sub.mfc90u.dll_AfxParseURL
test eax, eax
jne 0x520867
mov ebx, dword [esi + 0x40]
mov ecx, dword [esi + 0x20]
sub ecx, dword [esi + 0x1c]
sar ecx, 2
cmp ebx, ecx
jb 0x5207e3
call edi
mov edx, dword [esi + 0x1c]
lea ecx, [edx + ebx*4]
lea eax, [ebp - 0x28]
push eax
mov ebx, str.http:__
call fcn.004393e0
add esp, 4
mov edi, eax
mov byte [ebp - 4], 4
mov ebx, dword [esi + 0x40]
mov ecx, dword [esi + 0x20]
sub ecx, dword [esi + 0x1c]
sar ecx, 2
cmp ebx, ecx
jb 0x520816
call dword [sym.imp.MSVCR90.dll__invalid_parameter_noinfo]
push edi
mov edx, dword [esi + 0x1c]
lea ecx, [edx + ebx*4]
call dword [sym.imp.mfc90u.dll_ATL::CStringT_wchar_t_class_StrTraitMFC_DLL_wchar_t_class_ATL::ChTraitsCRT_wchar_t_____::operator_2]
mov byte [ebp - 4], 2
lea ecx, [ebp - 0x28]
call dword [sym.imp.mfc90u.dll_ATL::CStringT_wchar_t_class_StrTraitMFC_DLL_wchar_t_class_ATL::ChTraitsCRT_wchar_t_____::CStringT_wchar_t_clas]
mov ebx, dword [esi + 0x40]
mov eax, dword [esi + 0x20]
sub eax, dword [esi + 0x1c]
sar eax, 2
cmp ebx, eax
jb 0x520846
call dword [sym.imp.MSVCR90.dll__invalid_parameter_noinfo]
mov ecx, dword [esi + 0x1c]
lea eax, [ecx + ebx*4]
mov eax, dword [eax]
lea edx, [ebp - 0x14]
push edx
lea ecx, [ebp - 0x18]
push ecx
lea ecx, [esi + 0xc]
push ecx
lea ecx, [esi + 0xa4]
push ecx
push eax
call sub.mfc90u.dll_AfxParseURL
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x18]
call dword [sym.imp.mfc90u.dll_ATL::CStringT_wchar_t_class_StrTraitMFC_DLL_wchar_t_class_ATL::ChTraitsCRT_wchar_t_____::CStringT_wchar_t_clas]
jmp 0x5205d0