Function at 0x4166f0
Capabilities:
Check for time delay via gettickcount

Disassembly:
sub esp, 0x10
mov eax, dword [esp + 0x24]
push ebx
push ebp
mov ebp, dword [esp + 0x24]
push esi
push edi
mov edi, dword [esp + 0x24]
mov dword [esp + 0x1c], 0
mov byte [eax], 0
mov edi, edi
mov eax, dword [edi + 0x234]
mov edx, eax
test eax, eax
jne 0x416721
mov edx, 0x4000
mov eax, dword [ebp]
mov ecx, dword [ebp + 4]
mov esi, eax
and esi, ecx
cmp esi, 0xffffffff
je 0x41674a
cmp byte [ebp + 0x48], 0
jne 0x41674a
sub eax, dword [ebp + 0x20]
sbb ecx, dword [ebp + 0x24]
xor esi, esi
cmp ecx, esi
jg 0x41674a
jl 0x416748
cmp eax, edx
jae 0x41674a
mov edx, eax
test edx, edx
je 0x416780
mov eax, dword [ebp + 0x9c]
mov esi, dword [esp + 0x28]
mov ebx, dword [esi + 0x138]
lea ecx, [esp + 0x18]
push ecx
push eax
call fcn.00415bd0
add esp, 8
test eax, eax
jl 0x416c95
mov dword [esp + 0x1c], eax
jg 0x416cc4
jmp 0x416788
mov dword [esp + 0x18], 0
mov ecx, dword [ebp + 0x20]
or ecx, dword [ebp + 0x24]
mov ebx, dword [esp + 0x18]
jne 0x416824
mov edx, dword [ebp + 0x28]
or edx, dword [ebp + 0x2c]
jne 0x416824
mov esi, dword [sym.imp.KERNEL32.dll_GetTickCount]
call esi
mov ecx, eax
mov eax, 0x10624dd3
mul ecx
shr edx, 6
mov eax, edx
imul eax, eax, 0x3e8
sub ecx, eax
imul ecx, ecx, 0x3e8
sub ecx, dword [edi + 0x404]
mov eax, dword [edi + 0x400]
mov dword [esp + 0x2c], ecx
sub edx, eax
fild dword [esp + 0x2c]
mov dword [esp + 0x2c], edx
fdiv qword [0x44b6b8]
fild dword [esp + 0x2c]
faddp st(1)
fstp qword [edi + 0x3e8]
cmp dword [ebp + 0x84], 0
jle 0x416824
call esi
mov ecx, eax
mov eax, 0x10624dd3
mul ecx
shr edx, 6
mov eax, edx
imul eax, eax, 0x3e8
sub ecx, eax
imul ecx, ecx, 0x3e8
mov dword [ebp + 0x7c], edx
mov dword [ebp + 0x80], ecx
mov eax, dword [esp + 0x30]
or dword [eax], 1
test ebx, ebx
jne 0x41683e
cmp dword [ebp + 0x98], ebx
jne 0x41683e
mov byte [esp + 0x2c], 1
jmp 0x41684b
mov byte [esp + 0x2c], 0
test ebx, ebx
jle 0x416ccc
mov ecx, dword [ebp + 0x9c]
mov esi, dword [esp + 0x28]
mov byte [ebx + ecx], 0
cmp byte [ebp + 0x48], 0
mov edx, dword [ebp + 0x9c]
mov dword [ebp + 0x5c], edx
je 0x41689b
lea eax, [esp + 0x17]
push eax
lea ecx, [esp + 0x1c]
push ecx
push esi
push edi
mov byte [esp + 0x27], 0
call fcn.00422e10
add esp, 0x10
mov dword [esp + 0x1c], eax
test eax, eax
jne 0x416cc4
cmp byte [esp + 0x17], al
jne 0x416c95
mov ebx, dword [esp + 0x18]
cmp dword [ebp + 0x5c], 0
je 0x416c75
cmp byte [ebp + 0x48], 0
jne 0x416c75
test ebx, ebx
jg 0x4168be
cmp byte [esp + 0x2c], 0
je 0x416c83
cmp dword [ebp + 0x98], 0
jne 0x4169c0
cmp byte [esp + 0x2c], 0
jne 0x4169c0
test dword [esi + 0x30], 0x40001
je 0x4169c0
cmp dword [edi + 0xcc], 0
je 0x41690f
cmp byte [esi + 0x11c], 0
jne 0x416cd9
push str.Ignoring_the_response_body_n
mov ecx, edi
mov byte [ebp + 0xad], 1
call fcn.00415780
add esp, 4
mov edx, dword [edi + 0x8578]
or edx, dword [edi + 0x857c]
je 0x416939
cmp byte [ebp + 0x6c], 0
jne 0x416939
cmp dword [edi + 0x1e8], 1
jne 0x416939
cmp byte [ebp + 0xad], 0
je 0x416cf1
mov ecx, dword [edi + 0x1d8]
test ecx, ecx
je 0x4169c0
cmp dword [edi + 0x8574], 0
jne 0x4169c0
mov esi, dword [ebp + 0x94]
mov ebx, dword [ebp + 0x90]
test esi, esi
jl 0x4169c0
jg 0x416962
test ebx, ebx
jbe 0x4169c0
mov eax, dword [edi + 0x1e4]
mov edx, dword [edi + 0x1e0]
test eax, eax
jl 0x4169c0
jg 0x416978
test edx, edx
jbe 0x4169c0
sub ecx, 2
je 0x4169ae
cmp esi, eax
jl 0x416987
jg 0x4169c0
cmp ebx, edx
jae 0x4169c0
push str.The_requested_document_is_not_new_enough_n
mov ecx, edi
call fcn.00415780
mov eax, dword [esp + 0x38]
add esp, 4
mov byte [eax], 1
mov byte [edi + 0x85a8], 1
xor eax, eax
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x10
ret
cmp esi, eax
jg 0x416d0d
jl 0x4169c0
cmp ebx, edx
ja 0x416d0d
inc dword [ebp + 0x98]
cmp byte [edi + 0x278], 0
je 0x416a10
cmp dword [ebp + 0x4c], 0
mov eax, dword [esp + 0x28]
mov ebx, 3
mov esi, edi
push eax
je 0x4169ff
mov ecx, dword [ebp + 0x58]
mov edx, dword [edi + 0x484]
push ecx
push edx
call fcn.00415d10
add esp, 0xc
cmp dword [ebp + 0x4c], 1
jne 0x416a10
mov eax, dword [esp + 0x28]
push eax
mov ecx, dword [esp + 0x1c]
mov edx, dword [ebp + 0x5c]
push ecx
push edx
call fcn.00415d10
add esp, 0xc
cmp byte [ebp + 0xc0], 0
mov edi, dword [esp + 0x28]
je 0x416a6b
mov ecx, dword [esp + 0x18]
mov edx, dword [ebp + 0x5c]
lea eax, [esp + 0x18]
push eax
push ecx
push edx
call fcn.00424bd0
add esp, 0xc
test eax, eax
jg 0x416d34
cmp eax, 0xffffffff
jne 0x416a6b
and dword [ebp + 0xa8], 0xfffffffe
mov esi, dword [edi + 0x24]
test esi, esi
je 0x416a6b
mov ecx, dword [edi]
push esi
push str.Leftovers_after_chunking.__Rewinding__zu_bytes_n
call fcn.00415780
add esp, 8
sub dword [edi + 0x180], esi
mov byte [edi + 0x131], 1
cmp dword [ebp + 0x4c], 0
je 0x416a84
cmp byte [ebp + 0xad], 0
jne 0x416a84
mov eax, dword [ebp + 0x58]
add dword [ebp + 0x20], eax
adc dword [ebp + 0x24], 0
mov eax, dword [ebp + 0x10]
mov esi, dword [ebp + 0x14]
cmp eax, 0xffffffff
jne 0x416a97
cmp esi, eax
je 0x416b6b
mov eax, dword [esp + 0x18]
mov ebx, dword [ebp + 0x20]
mov ecx, dword [ebp + 0x24]
cdq
add eax, ebx
adc edx, ecx
cmp edx, esi
jl 0x416b6b
jg 0x416ab9
cmp eax, dword [ebp + 0x10]
jb 0x416b6b
mov esi, dword [esp + 0x18]
sub esi, dword [ebp + 0x10]
add esi, dword [ebp + 0x20]
je 0x416b4a
cmp byte [ebp + 0xad], 0
jne 0x416b4a
mov edx, dword [edi]
mov eax, dword [edx + 8]
test eax, eax
je 0x416b22
cmp byte [eax + 0x5c], 0
je 0x416b22
mov eax, dword [esp + 0x18]
mov edx, dword [ebp]
push eax
mov eax, dword [ebp + 0x14]
push ecx
mov ecx, dword [ebp + 4]
push ebx
mov ebx, dword [esp + 0x30]
push eax
mov eax, dword [ebp + 0x10]
push eax
mov eax, dword [ebx + 0x856c]
push ecx
push edx
push eax
push esi
push str.Rewinding_stream_by_:__zu_bytes_on_url__s__size___lld__maxdownload___lld__bytecount___lld__nread___zd__n
mov ecx, ebx
call fcn.00415780
add esp, 0x28
sub dword [edi + 0x180], esi
mov byte [edi + 0x131], 1
jmp 0x416b4e
mov eax, dword [ebp + 0x14]
mov edx, dword [ebp]
push ecx
mov ecx, dword [ebp + 4]
push ebx
mov ebx, dword [esp + 0x2c]
push eax
mov eax, dword [ebp + 0x10]
push eax
push ecx
push edx
push esi
push str.Excess_found_in_a_non_pipelined_read:_excess___zu__size___lld__maxdownload___lld__bytecount___lld_n
mov ecx, ebx
call fcn.00415780
add esp, 0x20
jmp 0x416b4e
mov ebx, dword [esp + 0x24]
mov eax, dword [ebp + 0x10]
sub eax, dword [ebp + 0x20]
mov dword [esp + 0x18], eax
jns 0x416b62
mov dword [esp + 0x18], 0
and dword [ebp + 0xa8], 0xfffffffe
jmp 0x416b6f
mov ebx, dword [esp + 0x24]
mov eax, dword [esp + 0x18]
cdq
add dword [ebp + 0x20], eax
mov eax, dword [ebp + 0x20]
adc dword [ebp + 0x24], edx
mov dword [ebx + 0x388], eax
mov ecx, dword [ebp + 0x24]
mov dword [ebx + 0x38c], ecx
cmp byte [ebp + 0xc0], 0
jne 0x416c75
mov edi, dword [esp + 0x18]
test edi, edi
jne 0x416bb1
cmp dword [ebp + 0x4c], edi
jne 0x416bb7
cmp byte [esp + 0x2c], 0
je 0x416c83
cmp dword [ebp + 0x4c], 0
je 0x416c1d
cmp byte [ebp + 0xad], 0
jne 0x416c1d
mov edx, dword [ebp + 0x10]
mov eax, dword [ebp + 0x14]
mov ecx, edx
and ecx, eax
cmp ecx, 0xffffffff
je 0x416bee
mov esi, dword [ebp + 0x58]
xor ecx, ecx
cmp ecx, eax
jl 0x416bee
jg 0x416bde
cmp esi, edx
jbe 0x416bee
mov edx, dword [esp + 0x24]
mov eax, dword [edx + 0x484]
mov ecx, dword [ebp + 0x10]
push eax
jmp 0x416bfc
mov ecx, dword [esp + 0x24]
mov edx, dword [ecx + 0x484]
mov ecx, dword [ebp + 0x58]
push edx
mov esi, dword [esp + 0x2c]
mov edx, 1
mov eax, esi
call fcn.00415a80
add esp, 4
mov dword [esp + 0x1c], eax
test eax, eax
jne 0x416cc4
jmp 0x416c25
mov eax, dword [esp + 0x1c]
mov esi, dword [esp + 0x28]
cmp dword [ebp + 0x4c], 2
jge 0x416c66
cmp byte [ebp + 0xad], 0
jne 0x416c66
test dword [esi + 0x30], 0x4000
je 0x416c4d
mov eax, dword [ebp + 0x5c]
push edi
push eax
push esi
call fcn.0041da20
add esp, 0xc
jmp 0x416c62
mov ecx, dword [ebp + 0x5c]
push ecx
mov ecx, edi
mov edx, 1
mov eax, esi
call fcn.00415a80
add esp, 4
mov dword [esp + 0x1c], eax
mov dword [ebp + 0x4c], 0
test eax, eax
jne 0x416d76
cmp byte [esp + 0x2c], 0
je 0x416c83
and dword [ebp + 0xa8], 0xfffffffe
mov esi, dword [esp + 0x28]
test byte [esi + 0x30], 0x30
mov edi, dword [esp + 0x24]
jne 0x416710
mov edx, dword [ebp + 0xa8]
and dl, 3
cmp dl, 2
jne 0x416cc2
cmp byte [esi + 0x11c], 0
je 0x416cc2
push str.we_are_done_reading_and_this_is_set_to_close__stop_send_n
mov ecx, edi
call fcn.00415780
add esp, 4
and dword [ebp + 0xa8], 0xfffffffd
xor eax, eax
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x10
ret
and dword [ebp + 0xa8], 0xfffffffe
mov esi, dword [esp + 0x28]
jmp 0x416c95
mov edx, dword [esp + 0x34]
and dword [ebp + 0xa8], 0xfffffffe
mov byte [edx], 1
xor eax, eax
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x10
ret
push str.HTTP_server_doesnt_seem_to_support_byte_ranges._Cannot_resume.
mov eax, edi
call fcn.00415840
add esp, 4
mov eax, 0x21
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x10
ret
push str.The_requested_document_is_not_old_enough_n
mov ecx, edi
call fcn.00415780
mov ecx, dword [esp + 0x38]
add esp, 4
mov byte [ecx], 1
mov byte [edi + 0x85a8], 1
xor eax, eax
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x10
ret
cmp eax, 4
jne 0x416d57
mov eax, dword [esp + 0x24]
push str.Failed_writing_data
call fcn.00415840
add esp, 4
mov eax, 0x17
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x10
ret
push eax
mov eax, dword [esp + 0x28]
push str.Received_problem__d_in_the_chunky_parser
call fcn.00415840
add esp, 8
mov eax, 0x38
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x10
ret
mov eax, dword [esp + 0x1c]
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x10
ret