Function at 0x5210e0
Capabilities:
Check for time delay via gettickcount
Check if file exists
Get file attributes
Read data from internet
Receive data
Resolve function by parsing pe exports

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x53bfa6
mov eax, dword fs:[0]
push eax
sub esp, 0x38
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]
call fcn.005204b0
mov edi, dword [esi + 0x40]
mov eax, dword [esi + 0x20]
sub eax, dword [esi + 0x1c]
sar eax, 2
cmp edi, eax
jb 0x521129
call dword [sym.imp.MSVCR90.dll__invalid_parameter_noinfo]
mov ecx, dword [esi + 0x1c]
lea eax, [ecx + edi*4]
mov eax, dword [eax]
lea edi, [esi + 0xbc]
lea ecx, [esi + 0xb8]
lea edx, [esi + 0xb4]
lea ebx, [esi + 0xa4]
push edi
push ecx
push edx
push ebx
push eax
call sub.mfc90u.dll_AfxParseURL
test eax, eax
jne 0x52120a
mov ebx, dword [esi + 0x40]
mov edx, dword [esi + 0x20]
sub edx, dword [esi + 0x1c]
sar edx, 2
cmp ebx, edx
jb 0x521171
call dword [sym.imp.MSVCR90.dll__invalid_parameter_noinfo]
mov eax, dword [esi + 0x1c]
lea ecx, [eax + ebx*4]
lea edx, [ebp - 0x3c]
push edx
mov ebx, str.http:__
call fcn.004393e0
add esp, 4
mov dword [ebp - 0x40], eax
mov dword [ebp - 4], 0
mov ebx, dword [esi + 0x40]
mov eax, dword [esi + 0x20]
sub eax, dword [esi + 0x1c]
sar eax, 2
cmp ebx, eax
jb 0x5211a8
call dword [sym.imp.MSVCR90.dll__invalid_parameter_noinfo]
mov ecx, dword [ebp - 0x40]
push ecx
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 dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x3c]
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 0x5211de
call dword [sym.imp.MSVCR90.dll__invalid_parameter_noinfo]
mov ecx, dword [esi + 0x1c]
lea ebx, [ecx + ebx*4]
mov ebx, dword [ebx]
push edi
lea eax, [esi + 0xb8]
push eax
lea eax, [esi + 0xb4]
push eax
lea eax, [esi + 0xa4]
push eax
push ebx
call sub.mfc90u.dll_AfxParseURL
test eax, eax
je 0x5212cc
xor ebx, ebx
mov edi, dword [esi + 0x40]
mov edx, dword [esi + 0x38]
sub edx, dword [esi + 0x34]
sar edx, 2
cmp edi, edx
jb 0x521222
call dword [sym.imp.MSVCR90.dll__invalid_parameter_noinfo]
mov eax, dword [esi + 0x34]
lea eax, [eax + edi*4]
mov ecx, dword [eax]
cmp dword [ecx - 0xc], ebx
je 0x52134c
mov edi, dword [esi + 0x40]
mov edx, dword [esi + 0x38]
sub edx, dword [esi + 0x34]
sar edx, 2
cmp edi, edx
jb 0x521249
call dword [sym.imp.MSVCR90.dll__invalid_parameter_noinfo]
mov eax, dword [esi + 0x34]
lea eax, [eax + edi*4]
mov eax, dword [eax]
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
xor ecx, ecx
cmp eax, 0xffffffff
setne cl
mov eax, ecx
cmp eax, ebx
je 0x52127d
cmp dword [esi + 0x8c], ebx
ja 0x521276
cmp dword [esi + 0x88], ebx
jbe 0x52127d
mov ebx, 0x3022
jmp 0x521282
mov ebx, 0x1022
mov edi, dword [esi + 0x40]
mov edx, dword [esi + 0x38]
sub edx, dword [esi + 0x34]
sar edx, 2
cmp edi, edx
jb 0x521298
call dword [sym.imp.MSVCR90.dll__invalid_parameter_noinfo]
mov eax, dword [esi + 0x34]
lea eax, [eax + edi*4]
mov eax, dword [eax]
lea edi, [esi + 0xc4]
mov edx, dword [edi]
push 0
push ebx
push eax
mov ecx, edi
mov eax, dword [edx + 0x28]
call eax
test eax, eax
jne 0x5212e2
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov edx, dword [esi]
push eax
push 0x4a0
mov ecx, esi
mov eax, dword [edx + 0x20]
call eax
xor eax, eax
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
mov dword [ebp - 4], 1
wait
mov edx, dword [edi]
push 0
mov eax, dword [esi + 0x8c]
push eax
mov ecx, dword [esi + 0x88]
push ecx
mov ecx, edi
mov edx, dword [edx + 0x30]
call edx
mov eax, dword [edi]
mov ecx, dword [esi + 0x8c]
push ecx
mov edx, dword [esi + 0x88]
push edx
mov ecx, edi
mov eax, dword [eax + 0x34]
call eax
wait
or edi, 0xffffffff
xor ebx, ebx
jmp 0x52134f
or edi, 0xffffffff
mov dword [ebp - 4], edi
mov eax, dword [esi]
mov ecx, esi
mov edx, dword [eax + 4]
call edx
test eax, eax
je 0x5212cc
mov eax, dword [esi]
mov ecx, esi
mov edx, dword [eax + 8]
call edx
test eax, eax
je 0x5212cc
mov eax, dword [esi]
mov ecx, esi
mov edx, dword [eax + 0xc]
call edx
test eax, eax
je 0x5212cc
mov dword [ebp - 0x2c], ebx
mov dword [ebp - 0x34], ebx
mov dword [ebp - 0x20], ebx
cmp dword [esi + 0x98], ebx
je 0x5213ae
mov eax, dword [esi]
mov ecx, esi
mov edx, dword [eax + 0x14]
call edx
test eax, eax
je 0x5212cc
mov dword [ebp - 0x2c], 1
cmp dword [esi + 0x9c], ebx
je 0x5213d0
mov eax, dword [esi]
mov ecx, esi
mov edx, dword [eax + 0x10]
call edx
test eax, eax
je 0x5212cc
mov dword [ebp - 0x34], 1
mov edi, edi
mov eax, dword [esi]
lea ecx, [ebp - 0x14]
push ecx
mov ecx, esi
mov edx, dword [eax + 0x2c]
call edx
mov dword [ebp - 4], 3
mov edx, dword [ebp - 0x14]
mov ecx, dword [edx - 0xc]
mov eax, ecx
neg eax
sbb eax, eax
and eax, edx
push ebx
push ebx
push ecx
push eax
mov eax, dword [esi + 0xb0]
push eax
call dword [sym.imp.WININET.dll_HttpSendRequestW]
cmp eax, ebx
jne 0x52145c
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov edi, eax
cmp edi, 0x2f0c
jne 0x521685
cmp dword [ebp - 0x20], ebx
jne 0x521685
mov ecx, esi
cmp dword [esi + 0x78], ebx
je 0x521455
mov edx, dword [esi]
mov eax, dword [edx + 0x18]
call eax
test eax, eax
je 0x521685
mov dword [ebp - 0x20], 1
or edi, 0xffffffff
mov dword [ebp - 4], edi
lea ecx, [ebp - 0x14]
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 0x5213d0
call fcn.005210c0
jmp 0x521432
mov dword [ebp - 0x28], ebx
lea eax, [ebp - 0x28]
mov edx, dword [esi + 0xb0]
call fcn.00521d60
test eax, eax
je 0x5216ba
mov eax, dword [ebp - 0x28]
cmp eax, 0x197
je 0x521486
cmp eax, 0x191
jne 0x521503
lea ecx, [ebp + 8]
push ecx
call fcn.00521e40
mov byte [ebp - 4], 4
mov eax, dword [esi + 0x94]
xor ecx, ecx
cmp ecx, ebx
ja 0x5216f1
jb 0x5214ad
cmp eax, edi
ja 0x5216f1
push eax
call dword [sym.imp.MSVCR90.dll_malloc]
add esp, 4
mov dword [ebp + 8], eax
cmp eax, ebx
je 0x5216f1
mov dword [ebp - 0x3c], ebx
mov edi, dword [sym.imp.WININET.dll_InternetReadFile]
jmp 0x5214d3
mov eax, dword [ebp + 8]
lea edx, [ebp - 0x3c]
push edx
mov ecx, dword [esi + 0x94]
push ecx
push eax
mov edx, dword [esi + 0xb0]
push edx
call edi
cmp dword [ebp - 0x3c], 0
jne 0x5214d0
mov byte [ebp - 4], 3
lea eax, [ebp + 8]
push eax
call fcn.00520ea0
mov eax, dword [ebp - 0x28]
xor ebx, ebx
or edi, 0xffffffff
cmp eax, 0x197
jne 0x521559
mov ecx, dword [esi + 0x48]
cmp dword [ecx - 0xc], ebx
je 0x521540
cmp dword [ebp - 0x2c], ebx
jne 0x521540
mov edx, dword [esi]
mov ecx, esi
mov eax, dword [edx + 0x14]
call eax
test eax, eax
je 0x5216cf
mov dword [ebp - 0x2c], 1
mov dword [ebp - 4], edi
lea ecx, [ebp - 0x14]
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 0x5213d0
cmp dword [esi + 0x70], ebx
jne 0x52159f
mov edx, dword [esi]
push 0x197
push 0x48f
mov eax, dword [edx + 0x24]
jmp 0x5216cb
cmp eax, 0x191
jne 0x5215cd
mov ecx, dword [esi + 0x50]
cmp dword [ecx - 0xc], ebx
je 0x521596
cmp dword [ebp - 0x34], ebx
jne 0x521596
mov edx, dword [esi]
mov ecx, esi
mov eax, dword [edx + 0x10]
call eax
test eax, eax
je 0x5216cf
mov dword [ebp - 0x34], 1
mov dword [ebp - 4], edi
lea ecx, [ebp - 0x14]
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 0x5213d0
cmp dword [esi + 0x74], ebx
je 0x521730
mov dword [ebp - 0x40], ebx
mov edx, dword [esi]
lea eax, [ebp - 0x40]
push eax
mov ecx, esi
mov edx, dword [edx + 0x30]
call edx
test eax, eax
jne 0x521444
mov eax, dword [ebp - 0x40]
cmp eax, ebx
je 0x5216cf
push eax
push 0x4a1
jmp 0x5216c6
cmp eax, 0xc8
je 0x5215df
cmp eax, 0xce
jne 0x521741
mov edx, dword [esi]
push 0x48b
mov ecx, esi
mov eax, dword [edx + 0x3c]
call eax
mov dword [ebp - 0x30], ebx
mov dword [ebp - 0x2c], ebx
mov dword [ebp - 0x40], ebx
mov ecx, dword [esi + 0xb0]
push ecx
lea edi, [ebp - 0x30]
call fcn.00521d70
add esp, 4
test eax, eax
je 0x521624
mov dword [ebp - 0x40], 1
mov edx, dword [esi]
mov eax, dword [ebp - 0x2c]
push eax
mov ecx, dword [ebp - 0x30]
push ecx
mov ecx, esi
mov edx, dword [edx + 0x44]
call edx
mov eax, dword [esi]
push 0x492
mov ecx, esi
mov edx, dword [eax + 0x3c]
call edx
call dword [sym.imp.KERNEL32.dll_GetTickCount]
mov dword [ebp - 0x3c], eax
mov dword [ebp - 0x1c], 0
lea eax, [ebp - 0x18]
push eax
call fcn.00521e40
mov byte [ebp - 4], 5
lea ecx, [ebp - 0x18]
push ecx
mov ecx, dword [esi + 0x94]
call fcn.00521e90
test al, al
jne 0x521751
mov edx, dword [esi]
push 0xe
push 0x3ed
mov ecx, esi
mov eax, dword [edx + 0x20]
call eax
mov byte [ebp - 4], 3
lea ecx, [ebp - 0x18]
push ecx
call fcn.00520ea0
jmp 0x521694
mov eax, dword [esi]
push edi
push 0x48d
mov ecx, esi
mov edx, dword [eax + 0x20]
call edx
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x14]
call dword [sym.imp.mfc90u.dll_ATL::CStringT_wchar_t_class_StrTraitMFC_DLL_wchar_t_class_ATL::ChTraitsCRT_wchar_t_____::CStringT_wchar_t_clas]
xor eax, eax
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
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push 0x48e
mov edx, dword [esi]
mov eax, dword [edx + 0x20]
mov ecx, esi
call eax
mov dword [ebp - 4], edi
lea ecx, [ebp - 0x14]
call dword [sym.imp.mfc90u.dll_ATL::CStringT_wchar_t_class_StrTraitMFC_DLL_wchar_t_class_ATL::ChTraitsCRT_wchar_t_____::CStringT_wchar_t_clas]
xor eax, eax
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
mov edx, dword [esi]
push 0xe
push 0x3ed
mov ecx, esi
mov eax, dword [edx + 0x20]
call eax
mov byte [ebp - 4], 3
lea ecx, [ebp + 8]
push ecx
call fcn.00520ea0
mov dword [ebp - 4], edi
lea ecx, [ebp - 0x14]
call dword [sym.imp.mfc90u.dll_ATL::CStringT_wchar_t_class_StrTraitMFC_DLL_wchar_t_class_ATL::ChTraitsCRT_wchar_t_____::CStringT_wchar_t_clas]
xor eax, eax
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
mov edx, dword [esi]
push 0x191
push 0x48f
mov eax, dword [edx + 0x24]
jmp 0x5216cb
mov edx, dword [esi]
push eax
push 0x48f
mov eax, dword [edx + 0x24]
jmp 0x5216cb
xor edi, edi
xor ebx, ebx
lea edx, [ebp - 0x1c]
push edx
mov eax, dword [esi + 0x94]
push eax
mov ecx, dword [ebp - 0x18]
push ecx
mov edx, dword [esi + 0xb0]
push edx
call dword [sym.imp.WININET.dll_InternetReadFile]
test eax, eax
je 0x521882
mov eax, dword [ebp - 0x1c]
test eax, eax
je 0x521812
mov edx, dword [esi]
push eax
mov eax, dword [ebp - 0x18]
push eax
mov ecx, esi
mov edx, dword [edx + 0x4c]
call edx
test eax, eax
je 0x5218a9
add edi, dword [ebp - 0x1c]
mov dword [ebp - 0x24], edi
adc ebx, 0
mov dword [ebp - 0x20], ebx
fldz
fcomp qword [esi + 0x80]
fnstsw ax
test ah, 5
jp 0x521812
call dword [sym.imp.KERNEL32.dll_GetTickCount]
sub eax, dword [ebp - 0x3c]
mov dword [ebp + 8], eax
fild dword [ebp + 8]
test eax, eax
jge 0x5217ce
fadd qword [0x592838]
fild qword [ebp - 0x24]
fdiv st(1)
fcom qword [esi + 0x80]
fnstsw ax
test ah, 0x41
jne 0x52180e
fmul st(1)
fdiv qword [esi + 0x80]
fsubrp st(1)
fnstcw word [ebp + 0xa]
movzx eax, word [ebp + 0xa]
or eax, 0xc00
mov dword [ebp - 0x34], eax
fldcw word [ebp - 0x34]
fistp qword [ebp - 0x38]
fldcw word [ebp + 0xa]
mov eax, dword [ebp - 0x38]
push eax
call dword [sym.imp.KERNEL32.dll_Sleep]
jmp 0x521812
fstp st(1)
fstp st(0)
mov edx, dword [esi]
mov eax, dword [esi + 0x88]
add eax, dword [ebp - 0x30]
mov ecx, dword [esi + 0x8c]
adc ecx, dword [ebp - 0x2c]
push ecx
push eax
mov eax, dword [ebp - 0x40]
push eax
push ebx
push edi
mov ecx, esi
mov edx, dword [edx + 0x48]
call edx
cmp dword [ebp - 0x1c], 0
je 0x52184c
mov eax, dword [esi]
mov ecx, esi
mov edx, dword [eax + 0x40]
call edx
test eax, eax
je 0x521755
mov byte [ebp - 4], 3
lea eax, [ebp - 0x18]
push eax
call fcn.00520ea0
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x14]
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 eax, 1
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
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov edx, dword [esi]
push eax
push 0x490
mov ecx, esi
mov eax, dword [edx + 0x20]
call eax
mov byte [ebp - 4], 3
lea ecx, [ebp - 0x18]
push ecx
call fcn.00520ea0
jmp 0x521694
mov byte [ebp - 4], 3
lea edx, [ebp - 0x18]
push edx
call fcn.00520ea0
jmp 0x521694