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

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0xdc
mov eax, dword [0x4e50cc]
xor eax, esp
mov dword [esp + 0xd8], eax
mov eax, dword [ebp + 0xc]
push ebx
mov dword [esp + 0x34], eax
mov ebx, ecx
mov eax, dword [ebp + 0x10]
push esi
mov esi, edx
mov dword [esp + 0x28], eax
push edi
mov edi, dword [ebp + 8]
mov dword [esp + 0x38], esi
mov dword [esp + 0x1c], 0
mov dword [esp + 0x30], 0
mov byte [esp + 0x1b], 0
mov dword [esp + 0x34], 0x64
mov byte [eax], 0
jmp 0x4709c0
mov eax, dword [ebx + 0x2d0]
mov ecx, 0x4000
mov edx, dword [edi]
test eax, eax
cmovne ecx, eax
mov eax, dword [edi + 4]
mov dword [esp + 0x24], eax
mov eax, edx
and eax, dword [edi + 4]
cmp eax, 0xffffffff
je 0x4709ff
cmp byte [edi + 0x48], 0
jne 0x4709ff
sub edx, dword [edi + 0x20]
mov eax, dword [esp + 0x24]
sbb eax, dword [edi + 0x24]
test eax, eax
jg 0x4709ff
jl 0x4709fd
cmp edx, ecx
jae 0x4709ff
mov ecx, edx
test ecx, ecx
je 0x470a3a
mov edx, dword [esi + 0x288]
lea eax, [esp + 0x14]
push eax
push ecx
push dword [edi + 0xdc]
mov ecx, esi
call fcn.0046c8d0
add esp, 0xc
mov dword [esp + 0x1c], eax
cmp eax, 0x51
je 0x47136f
test eax, eax
jg 0x47139b
mov ecx, dword [esp + 0x14]
jmp 0x470a40
xor ecx, ecx
mov dword [esp + 0x14], ecx
mov eax, dword [edi + 0x20]
or eax, dword [edi + 0x24]
jne 0x470aea
mov eax, dword [edi + 0x28]
or eax, dword [edi + 0x2c]
jne 0x470aea
call dword [sym.imp.KERNEL32.dll_GetTickCount]
mov esi, eax
mov eax, 0x10624dd3
mul esi
shr edx, 6
imul ecx, edx, 0x3e8
sub esi, ecx
mov ecx, dword [ebx + 0x50c]
imul eax, esi, 0x3e8
mov esi, dword [ebx + 0x508]
sub eax, ecx
movd xmm1, eax
cvtdq2pd xmm1, xmm1
divsd xmm1, qword [0x4d1790]
cmp edx, esi
je 0x470aa8
sub edx, esi
movd xmm0, edx
cvtdq2pd xmm0, xmm0
addsd xmm1, xmm0
movsd qword [ebx + 0x4f0], xmm1
cmp dword [edi + 0x84], 0
jle 0x470ae2
call dword [sym.imp.KERNEL32.dll_GetTickCount]
mov esi, eax
mov eax, 0x10624dd3
mul esi
shr edx, 6
imul ecx, edx, 0x3e8
mov dword [edi + 0x7c], edx
sub esi, ecx
imul eax, esi, 0x3e8
mov dword [edi + 0x80], eax
mov esi, dword [esp + 0x38]
mov ecx, dword [esp + 0x14]
mov eax, dword [esp + 0x3c]
or dword [eax], 1
test ecx, ecx
jne 0x470b02
cmp dword [edi + 0xd8], ecx
jne 0x470b02
lea eax, [ecx + 1]
jmp 0x470b04
xor eax, eax
test eax, eax
setne al
mov byte [esp + 0x13], al
test ecx, ecx
jg 0x470b19
test al, al
je 0x47118d
mov eax, dword [edi + 0xdc]
mov byte [ecx + eax], 0
mov eax, dword [edi + 0xdc]
mov dword [edi + 0x5c], eax
mov eax, dword [esi + 0x27c]
mov eax, dword [eax + 0x34]
test eax, eax
je 0x470b60
lea ecx, [esp + 0x1b]
push ecx
lea ecx, [esp + 0x18]
push ecx
push esi
push ebx
call eax
add esp, 0x10
mov dword [esp + 0x1c], eax
test eax, eax
jne 0x47139b
cmp byte [esp + 0x1b], al
jne 0x47136f
cmp byte [edi + 0x48], 0
je 0x470be3
lea eax, [esp + 0x23]
mov byte [esp + 0x23], 0
push eax
lea eax, [esp + 0x18]
mov edx, esi
push eax
mov ecx, ebx
call fcn.00476570
mov ecx, eax
add esp, 8
mov dword [esp + 0x1c], ecx
test ecx, ecx
jne 0x4711f8
mov eax, dword [esi + 0x27c]
mov eax, dword [eax + 0x34]
test eax, eax
je 0x470bd8
cmp dword [edi + 0x14], ecx
jg 0x470bd8
jl 0x470ba8
cmp dword [edi + 0x10], ecx
ja 0x470bd8
cmp dword [esp + 0x14], 0
jle 0x470bd8
lea ecx, [esp + 0x1b]
push ecx
lea ecx, [esp + 0x18]
push ecx
push esi
push ebx
call eax
mov ecx, eax
mov dword [esp + 0x2c], eax
add esp, 0x10
test ecx, ecx
jne 0x4711f8
cmp byte [esp + 0x1b], al
jne 0x47136f
cmp byte [esp + 0x23], 0
jne 0x471199
cmp dword [edi + 0x5c], 0
mov cl, byte [esp + 0x13]
je 0x47113a
cmp byte [edi + 0x48], 0
jne 0x47113a
cmp dword [esp + 0x14], 0
jg 0x470c0a
test cl, cl
je 0x47113a
cmp dword [edi + 0xd8], 0
jne 0x470cb6
test cl, cl
jne 0x470cb6
mov eax, dword [esi + 0x27c]
test dword [eax + 0x3c], 0x40003
je 0x470cb6
cmp dword [ebx + 0x144], 0
je 0x470c5c
cmp byte [esi + 0x251], cl
jne 0x471239
push str.Ignoring_the_response_body_n
push ebx
mov byte [edi + 0xed], 1
call fcn.0046c300
add esp, 8
mov eax, dword [ebx + 0x86d8]
or eax, dword [ebx + 0x86dc]
je 0x470c86
cmp byte [edi + 0x6c], 0
jne 0x470c86
cmp dword [ebx + 0x288], 1
jne 0x470c86
cmp byte [edi + 0xed], 0
je 0x47120f
cmp dword [ebx + 0x278], 0
je 0x470cb6
cmp dword [ebx + 0x86d4], 0
jne 0x470cb6
push dword [edi + 0xd4]
mov ecx, ebx
push dword [edi + 0xd0]
call fcn.004708e0
add esp, 8
test al, al
je 0x471286
inc dword [edi + 0xd8]
cmp byte [ebx + 0x310], 0
je 0x470e55
cmp dword [edi + 0x4c], 0
je 0x470dc9
cmp byte [ebx + 0x2f8], 0
mov ecx, dword [edi + 0x58]
mov edx, dword [ebx + 0x59c]
mov dword [esp + 0x24], ecx
mov dword [esp + 0x28], edx
je 0x470d47
mov eax, dword [esi + 0x9c]
test eax, eax
je 0x470d47
push eax
push str.from
push str.Data
push str.__s__s__s_
lea eax, [esp + 0x50]
push 0xa0
push eax
call fcn.00479580
lea ecx, [esp + 0x58]
add esp, 0x18
lea edx, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x470d20
sub ecx, edx
lea eax, [esp + 0x40]
push ecx
push eax
xor edx, edx
mov ecx, ebx
call fcn.0046ca00
add esp, 8
test eax, eax
jne 0x470d61
mov ecx, dword [esp + 0x24]
mov edx, dword [esp + 0x28]
mov eax, dword [ebx + 0x1d0]
test eax, eax
je 0x470d61
push dword [ebx + 0x15c]
push ecx
push edx
push 3
push ebx
call eax
add esp, 0x14
cmp dword [edi + 0x4c], 1
jne 0x470e55
cmp byte [ebx + 0x2f8], 0
mov ecx, dword [esp + 0x14]
mov edx, dword [edi + 0x5c]
mov dword [esp + 0x28], ecx
mov dword [esp + 0x24], edx
je 0x470e3b
mov eax, dword [esi + 0x9c]
test eax, eax
je 0x470e3b
push eax
push str.from
push str.Data
push str.__s__s__s_
lea eax, [esp + 0x50]
push 0xa0
push eax
call fcn.00479580
lea ecx, [esp + 0x58]
add esp, 0x18
lea edx, [ecx + 1]
mov edi, edi
mov al, byte [ecx]
inc ecx
test al, al
jne 0x470dc0
jmp 0x470e1b
cmp byte [ebx + 0x2f8], 0
mov ecx, dword [esp + 0x14]
mov edx, dword [edi + 0x5c]
mov dword [esp + 0x28], ecx
mov dword [esp + 0x24], edx
je 0x470e3b
mov eax, dword [esi + 0x9c]
test eax, eax
je 0x470e3b
push eax
push str.from
push str.Data
push str.__s__s__s_
lea eax, [esp + 0x50]
push 0xa0
push eax
call fcn.00479580
lea ecx, [esp + 0x58]
add esp, 0x18
lea edx, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x470e14
sub ecx, edx
lea eax, [esp + 0x40]
push ecx
push eax
xor edx, edx
mov ecx, ebx
call fcn.0046ca00
add esp, 8
test eax, eax
jne 0x470e55
mov ecx, dword [esp + 0x28]
mov edx, dword [esp + 0x24]
mov eax, dword [ebx + 0x1d0]
test eax, eax
je 0x470e55
push dword [ebx + 0x15c]
push ecx
push edx
push 3
push ebx
call eax
add esp, 0x14
cmp byte [edi + 0x100], 0
je 0x470ed5
mov edx, dword [edi + 0x5c]
lea eax, [esp + 0x14]
push eax
push dword [esp + 0x18]
mov ecx, esi
call fcn.00480260
add esp, 8
test eax, eax
jg 0x4712c3
cmp eax, 0xffffffff
jne 0x470ed5
and dword [edi + 0xe8], 0xfffffffe
mov eax, dword [esi + 0x30]
mov dword [esp + 0x24], eax
test eax, eax
je 0x470ed5
push eax
push str.Leftovers_after_chunking:__zu_bytes_n
push dword [esi]
call fcn.0046c300
mov ecx, dword [esi]
add esp, 0xc
mov eax, dword [ecx + 0x40]
test eax, eax
je 0x470ed5
test byte [eax + 0x60], 1
je 0x470ed5
push dword [esp + 0x24]
push str.Rewinding__zu_bytes_n
push ecx
call fcn.0046c300
mov eax, dword [esp + 0x30]
add esp, 0xc
sub dword [esi + 0x2fc], eax
mov byte [esi + 0x265], 1
cmp dword [edi + 0x4c], 0
je 0x470eee
cmp byte [edi + 0xed], 0
jne 0x470eee
mov eax, dword [edi + 0x58]
add dword [edi + 0x20], eax
adc dword [edi + 0x24], 0
mov ecx, dword [edi + 0x10]
cmp ecx, 0xffffffff
jne 0x470eff
cmp dword [edi + 0x14], ecx
je 0x470fbc
mov eax, dword [esp + 0x14]
cdq
add eax, dword [edi + 0x20]
adc edx, dword [edi + 0x24]
cmp edx, dword [edi + 0x14]
jl 0x470fbc
jg 0x470f1d
cmp eax, ecx
jb 0x470fbc
mov ecx, dword [esp + 0x14]
mov edx, ecx
sub edx, dword [edi + 0x10]
add edx, dword [edi + 0x20]
mov dword [esp + 0x30], edx
je 0x470fa3
cmp byte [edi + 0xed], 0
jne 0x470fa3
mov eax, dword [esi]
mov eax, dword [eax + 0x40]
test eax, eax
je 0x470f82
test byte [eax + 0x60], 1
je 0x470f82
mov eax, dword [edi + 0x10]
push ecx
push dword [edi + 0x24]
push dword [edi + 0x20]
push dword [edi + 0x14]
push eax
push dword [edi + 4]
push dword [edi]
push dword [ebx + 0x86cc]
push edx
push str.Rewinding_stream_by_:__zu_bytes_on_url__s__size___I64d__maxdownload___I64d__bytecount___I64d__nread___zd__n
push ebx
call fcn.0046c300
mov eax, dword [esp + 0x5c]
add esp, 0x2c
sub dword [esi + 0x2fc], eax
mov byte [esi + 0x265], 1
jmp 0x470fa3
push dword [edi + 0x24]
mov eax, dword [edi + 0x10]
push dword [edi + 0x20]
push dword [edi + 0x14]
push eax
push dword [edi + 4]
push dword [edi]
push edx
push str.Excess_found_in_a_non_pipelined_read:_excess___zu__size___I64d__maxdownload___I64d__bytecount___I64d_n
push ebx
call fcn.0046c300
add esp, 0x24
mov eax, dword [edi + 0x10]
mov ecx, 0
sub eax, dword [edi + 0x20]
cmovs eax, ecx
and dword [edi + 0xe8], 0xfffffffe
mov dword [esp + 0x14], eax
mov ecx, dword [esp + 0x14]
mov eax, ecx
cdq
add dword [edi + 0x20], eax
mov eax, dword [edi + 0x20]
adc dword [edi + 0x24], edx
mov dword [ebx + 0x490], eax
mov eax, dword [edi + 0x24]
mov dword [ebx + 0x494], eax
cmp byte [edi + 0x100], 0
jne 0x471136
test ecx, ecx
jne 0x470ffd
cmp dword [edi + 0x4c], ecx
jne 0x471003
mov cl, byte [esp + 0x13]
test cl, cl
je 0x47113a
cmp dword [edi + 0x4c], 0
je 0x47107d
cmp byte [edi + 0xed], 0
jne 0x47107d
mov edx, dword [edi + 0x10]
mov eax, edx
mov ecx, dword [edi + 0x14]
and eax, ecx
cmp eax, 0xffffffff
je 0x47103f
xor eax, eax
cmp eax, ecx
jl 0x47103f
jg 0x471028
cmp dword [edi + 0x58], edx
jbe 0x47103f
push dword [edi + 0x10]
mov edx, 1
mov ecx, esi
push dword [ebx + 0x59c]
call fcn.0046c8a0
jmp 0x47106e
mov ecx, dword [edi + 0x58]
mov edx, dword [ebx + 0x59c]
test ecx, ecx
jne 0x471060
mov ecx, edx
lea eax, [ecx + 1]
mov dword [esp + 0x28], eax
mov al, byte [ecx]
inc ecx
test al, al
jne 0x471055
sub ecx, dword [esp + 0x28]
push ecx
push edx
mov edx, 1
mov ecx, esi
call fcn.0046c6d0
add esp, 8
mov dword [esp + 0x1c], eax
test eax, eax
jne 0x47139b
cmp dword [edi + 0x4c], 2
jge 0x471123
mov eax, dword [esi]
cmp byte [eax + 0x331], 0
je 0x471096
xor eax, eax
jmp 0x47109c
mov eax, dword [edi + 0x8c]
sub eax, 0
je 0x4710fe
dec eax
je 0x4710df
dec eax
je 0x4710c0
push str.Unrecognized_content_encoding_type._libcurl_understands__identity___deflate_and__gzip_content_encodings.
push ebx
call fcn.0046c410
mov eax, 0x3d
add esp, 8
mov dword [esp + 0x1c], eax
jmp 0x471127
cmp byte [edi + 0xed], 0
jne 0x471123
push dword [esp + 0x14]
mov edx, edi
mov ecx, esi
call fcn.00480bd0
add esp, 4
mov dword [esp + 0x1c], eax
jmp 0x471127
cmp byte [edi + 0xed], 0
jne 0x471123
push dword [esp + 0x14]
mov edx, edi
mov ecx, esi
call fcn.00480a20
add esp, 4
mov dword [esp + 0x1c], eax
jmp 0x471127
cmp byte [edi + 0xed], 0
jne 0x471123
push dword [esp + 0x14]
mov edx, 1
mov ecx, esi
push dword [edi + 0x5c]
call fcn.0046c8a0
add esp, 8
mov dword [esp + 0x1c], eax
jmp 0x471127
mov eax, dword [esp + 0x1c]
mov dword [edi + 0x4c], 0
test eax, eax
jne 0x471320
mov cl, byte [esp + 0x13]
mov eax, dword [esi + 0x27c]
cmp dword [eax + 0x34], 0
je 0x47115b
mov edx, dword [esp + 0x30]
test edx, edx
je 0x47115b
cmp byte [esi + 0x265], 0
je 0x471339
test cl, cl
je 0x471166
and dword [edi + 0xe8], 0xfffffffe
mov ecx, esi
call fcn.00470890
test eax, eax
je 0x47136f
mov ecx, dword [esp + 0x34]
mov eax, ecx
dec ecx
mov dword [esp + 0x34], ecx
test eax, eax
jne 0x4709c0
jmp 0x47136f
and dword [edi + 0xe8], 0xfffffffe
jmp 0x47136f
cmp dword [esp + 0x14], 0
jle 0x47136f
mov ecx, dword [esi]
mov edx, 1
mov ecx, dword [ecx + 0x40]
call fcn.0045fa50
push dword [ebx + 0x86cc]
push dword [esp + 0x18]
test al, al
je 0x4711e5
push str.Rewinding_stream_by_:__zd_bytes_on_url__s__zero_length_body__n
push ebx
call fcn.0046c300
mov eax, dword [esp + 0x24]
add esp, 0x10
sub dword [esi + 0x2fc], eax
mov byte [esi + 0x265], 1
jmp 0x47136f
push str.Excess_found_in_a_non_pipelined_read:_excess___zd_url___s__zero_length_body__n
push ebx
call fcn.0046c300
add esp, 0x10
jmp 0x47136f
mov eax, ecx
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0xd8]
xor ecx, esp
call fcn.004a5ae0
mov esp, ebp
pop ebp
ret
mov eax, dword [edi]
cmp eax, dword [ebx + 0x86d8]
jne 0x47125e
mov eax, dword [edi + 4]
cmp eax, dword [ebx + 0x86dc]
jne 0x47125e
push str.The_entire_document_is_already_downloaded
push ebx
call fcn.0046c300
add esp, 8
mov byte [esi + 0x251], 1
mov eax, dword [esp + 0x2c]
and dword [edi + 0xe8], 0xfffffffe
mov byte [eax], 1
xor eax, eax
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0xd8]
xor ecx, esp
call fcn.004a5ae0
mov esp, ebp
pop ebp
ret
push str.HTTP_server_doesnt_seem_to_support_byte_ranges._Cannot_resume.
push ebx
call fcn.0046c410
add esp, 8
mov eax, 0x21
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0xd8]
xor ecx, esp
call fcn.004a5ae0
mov esp, ebp
pop ebp
ret
mov eax, dword [esp + 0x2c]
push str.Simulate_a_HTTP_304_response__n
push ebx
mov byte [eax], 1
mov dword [ebx + 0x8734], 0x130
call fcn.0046c300
add esp, 8
mov byte [esi + 0x251], 1
xor eax, eax
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0xd8]
xor ecx, esp
call fcn.004a5ae0
mov esp, ebp
pop ebp
ret
cmp eax, 4
jne 0x4712f0
push str.Failed_writing_data
push ebx
call fcn.0046c410
add esp, 8
mov eax, 0x17
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0xd8]
xor ecx, esp
call fcn.004a5ae0
mov esp, ebp
pop ebp
ret
mov ecx, eax
call fcn.00480770
push eax
push str._s_in_chunked_encoding
push ebx
call fcn.0046c410
add esp, 0xc
mov eax, 0x38
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0xd8]
xor ecx, esp
call fcn.004a5ae0
mov esp, ebp
pop ebp
ret
mov eax, dword [esp + 0x1c]
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0xd8]
xor ecx, esp
call fcn.004a5ae0
mov esp, ebp
pop ebp
ret
mov eax, dword [esp + 0x14]
lea ecx, [esp + 0x1b]
add dword [edi + 0x5c], eax
mov eax, dword [esi + 0x27c]
push ecx
lea ecx, [esp + 0x18]
mov dword [esp + 0x18], edx
push ecx
mov eax, dword [eax + 0x34]
push esi
push ebx
call eax
add esp, 0x10
test eax, eax
jne 0x47139b
cmp byte [esp + 0x1b], al
je 0x47136f
or dword [edi + 0xe8], 1
mov eax, dword [edi + 0xe8]
and al, 3
cmp al, 2
jne 0x471399
cmp byte [esi + 0x251], 0
je 0x471399
push str.we_are_done_reading_and_this_is_set_to_close__stop_send_n
push ebx
call fcn.0046c300
add esp, 8
and dword [edi + 0xe8], 0xfffffffd
xor eax, eax
mov ecx, dword [esp + 0xe4]
pop edi
pop esi
pop ebx
xor ecx, esp
call fcn.004a5ae0
mov esp, ebp
pop ebp
ret