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

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0xd4
mov eax, dword [0x5bc324]
xor eax, esp
mov dword [esp + 0xd0], eax
mov eax, dword [ebp + 0xc]
push ebx
mov dword [esp + 0x2c], eax
mov ebx, ecx
mov eax, dword [ebp + 0x10]
push esi
mov esi, edx
mov dword [esp + 0x2c], eax
push edi
mov edi, dword [ebp + 8]
mov dword [esp + 0x2c], esi
mov dword [esp + 0x14], 0
mov dword [esp + 0x24], 0
mov dword [esp + 0x20], 0
mov dword [eax], 0
nop dword [eax]
nop dword [eax + eax]
mov eax, dword [ebx + 0x2f8]
mov ecx, 0x4000
mov edx, dword [edi]
test eax, eax
cmovne ecx, eax
mov eax, dword [edi + 4]
mov dword [esp + 0x18], eax
mov eax, edx
and eax, dword [edi + 4]
cmp eax, 0xffffffff
je 0x4a2d0f
cmp dword [edi + 0x48], 0
jne 0x4a2d0f
sub edx, dword [edi + 0x20]
mov eax, dword [esp + 0x18]
sbb eax, dword [edi + 0x24]
test eax, eax
jg 0x4a2d0f
jl 0x4a2d0d
cmp edx, ecx
jae 0x4a2d0f
mov ecx, edx
test ecx, ecx
je 0x4a2d4a
mov edx, dword [esi + 0x2cc]
lea eax, [esp + 0x10]
push eax
push ecx
push dword [edi + 0xdc]
mov ecx, esi
call fcn.00491020
add esp, 0xc
mov dword [esp + 0x14], eax
cmp eax, 0x51
je 0x4a3695
test eax, eax
jg 0x4a36c1
mov ecx, dword [esp + 0x10]
jmp 0x4a2d50
xor ecx, ecx
mov dword [esp + 0x10], ecx
mov eax, dword [edi + 0x20]
or eax, dword [edi + 0x24]
jne 0x4a2dfa
mov eax, dword [edi + 0x28]
or eax, dword [edi + 0x2c]
jne 0x4a2dfa
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 + 0x574]
imul eax, esi, 0x3e8
mov esi, dword [ebx + 0x570]
sub eax, ecx
movd xmm1, eax
cvtdq2pd xmm1, xmm1
divsd xmm1, qword [0x59cc10]
cmp edx, esi
je 0x4a2db8
sub edx, esi
movd xmm0, edx
cvtdq2pd xmm0, xmm0
addsd xmm1, xmm0
movsd qword [ebx + 0x558], xmm1
cmp dword [edi + 0x84], 0
jle 0x4a2df2
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 + 0x2c]
mov ecx, dword [esp + 0x10]
mov eax, dword [esp + 0x34]
or dword [eax], 1
test ecx, ecx
jne 0x4a2e17
cmp dword [edi + 0xd8], ecx
jne 0x4a2e17
mov dword [esp + 0x1c], 1
jmp 0x4a2e25
xor eax, eax
mov dword [esp + 0x1c], eax
test ecx, ecx
jle 0x4a368e
mov eax, dword [edi + 0xdc]
mov byte [ecx + eax], 0
mov eax, dword [edi + 0xdc]
mov dword [edi + 0x5c], eax
mov eax, dword [esi + 0x2c0]
mov eax, dword [eax + 0x34]
test eax, eax
je 0x4a2e6c
lea ecx, [esp + 0x20]
push ecx
lea ecx, [esp + 0x14]
push ecx
push esi
push ebx
call eax
add esp, 0x10
mov dword [esp + 0x14], eax
test eax, eax
jne 0x4a36c1
cmp dword [esp + 0x20], eax
jne 0x4a3695
cmp dword [edi + 0x48], 0
je 0x4a2ef6
lea eax, [esp + 0x18]
mov dword [esp + 0x18], 0
push eax
lea eax, [esp + 0x14]
mov edx, esi
push eax
mov ecx, ebx
call fcn.004a82a0
mov ecx, eax
add esp, 8
mov dword [esp + 0x14], ecx
test ecx, ecx
jne 0x4a3501
mov eax, dword [esi + 0x2c0]
mov eax, dword [eax + 0x34]
test eax, eax
je 0x4a2eeb
cmp dword [edi + 0x14], ecx
jg 0x4a2eeb
jl 0x4a2ebb
cmp dword [edi + 0x10], ecx
ja 0x4a2eeb
cmp dword [esp + 0x10], 0
jle 0x4a2eeb
lea ecx, [esp + 0x20]
push ecx
lea ecx, [esp + 0x14]
push ecx
push esi
push ebx
call eax
mov ecx, eax
mov dword [esp + 0x24], eax
add esp, 0x10
test ecx, ecx
jne 0x4a3501
cmp dword [esp + 0x20], eax
jne 0x4a3695
cmp dword [esp + 0x18], 0
jne 0x4a34a1
cmp dword [edi + 0x5c], 0
mov ecx, dword [esp + 0x1c]
je 0x4a3461
cmp dword [edi + 0x48], 0
jne 0x4a3461
cmp dword [esp + 0x10], 0
jg 0x4a2f1d
test ecx, ecx
je 0x4a3461
cmp dword [edi + 0xd8], 0
jne 0x4a2fcb
test ecx, ecx
jne 0x4a2fcb
mov eax, dword [esi + 0x2c0]
test dword [eax + 0x3c], 0x40003
je 0x4a2fcb
cmp dword [ebx + 0x14c], ecx
je 0x4a2f71
cmp dword [esi + 0x24c], ecx
jne 0x4a3518
push str.Ignoring_the_response_body_n
push ebx
mov dword [edi + 0xf0], 1
call fcn.00490900
add esp, 8
mov eax, dword [ebx + 0x8f60]
or eax, dword [ebx + 0x8f64]
je 0x4a2f9b
cmp dword [edi + 0x6c], 0
jne 0x4a2f9b
cmp dword [ebx + 0x2a8], 1
jne 0x4a2f9b
cmp dword [edi + 0xf0], 0
je 0x4a3540
cmp dword [ebx + 0x298], 0
je 0x4a2fcb
cmp dword [ebx + 0x8f58], 0
jne 0x4a2fcb
push dword [edi + 0xd4]
mov ecx, ebx
push dword [edi + 0xd0]
call fcn.004a2be0
add esp, 8
test eax, eax
je 0x4a3568
inc dword [edi + 0xd8]
cmp dword [ebx + 0x36c], 0
je 0x4a3168
cmp dword [edi + 0x4c], 0
je 0x4a30dc
cmp dword [ebx + 0x320], 0
mov ecx, dword [edi + 0x58]
mov edx, dword [ebx + 0x604]
mov dword [esp + 0x18], ecx
mov dword [esp + 0x28], edx
je 0x4a305c
mov eax, dword [esi + 0x9c]
test eax, eax
je 0x4a305c
push eax
push str.from
push str.Data
push str.__s__s__s_
lea eax, [esp + 0x48]
push 0xa0
push eax
call fcn.004a0a20
lea ecx, [esp + 0x50]
add esp, 0x18
lea edx, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x4a3035
sub ecx, edx
lea eax, [esp + 0x38]
push ecx
push eax
xor edx, edx
mov ecx, ebx
call fcn.00491140
add esp, 8
test eax, eax
jne 0x4a3076
mov ecx, dword [esp + 0x18]
mov edx, dword [esp + 0x28]
mov eax, dword [ebx + 0x1e8]
test eax, eax
je 0x4a3076
push dword [ebx + 0x174]
push ecx
push edx
push 3
push ebx
call eax
add esp, 0x14
cmp dword [edi + 0x4c], 1
jne 0x4a3168
cmp dword [ebx + 0x320], 0
mov ecx, dword [esp + 0x10]
mov edx, dword [edi + 0x5c]
mov dword [esp + 0x28], ecx
mov dword [esp + 0x18], edx
je 0x4a314e
mov eax, dword [esi + 0x9c]
test eax, eax
je 0x4a314e
push eax
push str.from
push str.Data
push str.__s__s__s_
lea eax, [esp + 0x48]
push 0xa0
push eax
call fcn.004a0a20
lea ecx, [esp + 0x50]
add esp, 0x18
lea edx, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x4a30d3
jmp 0x4a312e
cmp dword [ebx + 0x320], 0
mov ecx, dword [esp + 0x10]
mov edx, dword [edi + 0x5c]
mov dword [esp + 0x28], ecx
mov dword [esp + 0x18], edx
je 0x4a314e
mov eax, dword [esi + 0x9c]
test eax, eax
je 0x4a314e
push eax
push str.from
push str.Data
push str.__s__s__s_
lea eax, [esp + 0x48]
push 0xa0
push eax
call fcn.004a0a20
lea ecx, [esp + 0x50]
add esp, 0x18
lea edx, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x4a3127
sub ecx, edx
lea eax, [esp + 0x38]
push ecx
push eax
xor edx, edx
mov ecx, ebx
call fcn.00491140
add esp, 8
test eax, eax
jne 0x4a3168
mov ecx, dword [esp + 0x28]
mov edx, dword [esp + 0x18]
mov eax, dword [ebx + 0x1e8]
test eax, eax
je 0x4a3168
push dword [ebx + 0x174]
push ecx
push edx
push 3
push ebx
call eax
add esp, 0x14
cmp dword [edi + 0x108], 0
je 0x4a31eb
mov edx, dword [edi + 0x5c]
lea eax, [esp + 0x10]
push eax
push dword [esp + 0x14]
mov ecx, esi
call fcn.004c8450
add esp, 8
test eax, eax
jg 0x4a35ab
cmp eax, 0xffffffff
jne 0x4a31eb
and dword [edi + 0xe8], 0xfffffffe
mov eax, dword [esi + 0x30]
mov dword [esp + 0x18], eax
test eax, eax
je 0x4a31eb
push eax
push str.Leftovers_after_chunking:__zu_bytes_n
push dword [esi]
call fcn.00490900
mov ecx, dword [esi]
add esp, 0xc
mov eax, dword [ecx + 0x40]
test eax, eax
je 0x4a31eb
cmp dword [eax + 0x2c], 0
je 0x4a31eb
push dword [esp + 0x18]
push str.Rewinding__zu_bytes_n
push ecx
call fcn.00490900
mov eax, dword [esp + 0x24]
add esp, 0xc
sub dword [esi + 0x314], eax
mov dword [esi + 0x2a0], 1
cmp dword [edi + 0x4c], 0
je 0x4a3204
cmp dword [edi + 0xf0], 0
jne 0x4a3204
mov eax, dword [edi + 0x58]
add dword [edi + 0x20], eax
adc dword [edi + 0x24], 0
mov ecx, dword [edi + 0x10]
cmp ecx, 0xffffffff
jne 0x4a3215
cmp dword [edi + 0x14], ecx
je 0x4a32e9
mov eax, dword [esp + 0x10]
cdq
add eax, dword [edi + 0x20]
adc edx, dword [edi + 0x24]
cmp edx, dword [edi + 0x14]
jl 0x4a32e9
jg 0x4a3233
cmp eax, ecx
jb 0x4a32e9
mov eax, dword [edi + 0x20]
sub eax, ecx
add eax, dword [esp + 0x10]
mov dword [esp + 0x24], eax
je 0x4a32d0
cmp dword [edi + 0xf0], 0
jne 0x4a32d0
mov eax, dword [esi]
mov eax, dword [eax + 0x40]
test eax, eax
je 0x4a3269
cmp dword [eax + 0x2c], 0
je 0x4a3269
mov eax, 1
jmp 0x4a326b
xor eax, eax
mov edx, dword [edi + 4]
test eax, eax
mov eax, dword [edi]
je 0x4a32b2
push dword [esp + 0x10]
push dword [edi + 0x24]
push dword [edi + 0x20]
push dword [edi + 0x14]
push ecx
push edx
push eax
push dword [ebx + 0x8f48]
push dword [esp + 0x44]
push str.Rewinding_stream_by_:__zu_bytes_on_url__s__size___I64d__maxdownload___I64d__bytecount___I64d__nread___zd__n
push ebx
call fcn.00490900
mov eax, dword [esp + 0x50]
add esp, 0x2c
sub dword [esi + 0x314], eax
mov dword [esi + 0x2a0], 1
jmp 0x4a32d0
push dword [edi + 0x24]
push dword [edi + 0x20]
push dword [edi + 0x14]
push ecx
push edx
push eax
push dword [esp + 0x3c]
push str.Excess_found_in_a_non_pipelined_read:_excess___zu__size___I64d__maxdownload___I64d__bytecount___I64d_n
push ebx
call fcn.00490900
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 + 0x10], eax
mov eax, dword [esp + 0x10]
cdq
add dword [edi + 0x20], eax
mov eax, dword [edi + 0x20]
adc dword [edi + 0x24], edx
mov ecx, dword [edi + 0x24]
mov dword [ebx + 0x4f8], eax
mov dword [ebx + 0x4fc], ecx
cmp dword [edi + 0x108], 0
jne 0x4a345d
cmp dword [esp + 0x10], 0
jne 0x4a332c
cmp dword [edi + 0x4c], 0
jne 0x4a3332
mov ecx, dword [esp + 0x1c]
test ecx, ecx
je 0x4a3461
cmp dword [edi + 0x4c], 0
je 0x4a337d
cmp dword [edi + 0xf0], 0
jne 0x4a337d
mov ecx, dword [edi + 0x10]
mov eax, ecx
mov edx, dword [edi + 0x14]
and eax, edx
cmp eax, 0xffffffff
je 0x4a3357
xor eax, eax
cmp eax, edx
jl 0x4a3357
jg 0x4a335a
cmp dword [edi + 0x58], ecx
ja 0x4a335a
mov ecx, dword [edi + 0x58]
mov eax, dword [ebx + 0x604]
mov edx, 1
push ecx
push eax
mov ecx, esi
call fcn.00490e50
add esp, 8
mov dword [esp + 0x14], eax
test eax, eax
jne 0x4a36c1
cmp dword [edi + 0x4c], 2
jge 0x4a344a
mov eax, dword [esi]
cmp dword [eax + 0x3b8], 0
je 0x4a3396
xor eax, eax
jmp 0x4a339c
mov eax, dword [edi + 0x8c]
sub eax, 0
je 0x4a3405
sub eax, 1
je 0x4a33e6
sub eax, 1
je 0x4a33c7
push str.Unrecognized_content_encoding_type._libcurl_understands__identity___deflate_and__gzip_content_encodings.
push ebx
call fcn.004909c0
mov eax, 0x3d
add esp, 8
mov dword [esp + 0x14], eax
jmp 0x4a344e
cmp dword [edi + 0xf0], 0
jne 0x4a344a
push dword [esp + 0x10]
mov edx, edi
mov ecx, esi
call fcn.004c8db0
add esp, 4
mov dword [esp + 0x14], eax
jmp 0x4a344e
cmp dword [edi + 0xf0], 0
jne 0x4a344a
push dword [esp + 0x10]
mov edx, edi
mov ecx, esi
call fcn.004c8c10
add esp, 4
mov dword [esp + 0x14], eax
jmp 0x4a344e
cmp dword [edi + 0xf0], 0
jne 0x4a344a
mov eax, dword [esi + 0x2c0]
mov ecx, esi
push dword [esp + 0x10]
test dword [eax + 0x3c], 0xc000
je 0x4a3434
mov edx, dword [edi + 0x5c]
call fcn.004b6340
add esp, 4
mov dword [esp + 0x14], eax
jmp 0x4a344e
push dword [edi + 0x5c]
mov edx, 1
call fcn.00490e50
add esp, 8
mov dword [esp + 0x14], eax
jmp 0x4a344e
mov eax, dword [esp + 0x14]
mov dword [edi + 0x4c], 0
test eax, eax
jne 0x4a363d
mov ecx, dword [esp + 0x1c]
mov eax, dword [esi + 0x2c0]
cmp dword [eax + 0x34], 0
je 0x4a3482
mov edx, dword [esp + 0x24]
test edx, edx
je 0x4a3482
cmp dword [esi + 0x2a0], 0
je 0x4a3656
test ecx, ecx
je 0x4a348d
and dword [edi + 0xe8], 0xfffffffe
mov ecx, esi
call fcn.004a2b90
test eax, eax
jne 0x4a2cd0
jmp 0x4a3695
mov edx, dword [esp + 0x10]
test edx, edx
jle 0x4a3695
mov ecx, dword [esi]
mov ecx, dword [ecx + 0x40]
call fcn.0048db40
test eax, eax
mov eax, dword [ebx + 0x8f48]
push eax
je 0x4a34ea
push edx
push str.Rewinding_stream_by_:__zd_bytes_on_url__s__zero_length_body__n
push ebx
call fcn.00490900
mov eax, dword [esp + 0x20]
add esp, 0x10
sub dword [esi + 0x314], eax
mov dword [esi + 0x2a0], 1
jmp 0x4a3695
push dword [esp + 0x14]
push str.Excess_found_in_a_non_pipelined_read:_excess___zd_url___s__zero_length_body__n
push ebx
call fcn.00490900
add esp, 0x10
jmp 0x4a3695
mov eax, ecx
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0xd0]
xor ecx, esp
call fcn.00523a6a
mov esp, ebp
pop ebp
ret
mov eax, dword [esp + 0x30]
and dword [edi + 0xe8], 0xfffffffe
mov dword [eax], 1
xor eax, eax
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0xd0]
xor ecx, esp
call fcn.00523a6a
mov esp, ebp
pop ebp
ret
push str.HTTP_server_doesnt_seem_to_support_byte_ranges._Cannot_resume.
push ebx
call fcn.004909c0
add esp, 8
mov eax, 0x21
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0xd0]
xor ecx, esp
call fcn.00523a6a
mov esp, ebp
pop ebp
ret
mov eax, dword [esp + 0x30]
push str.Simulate_a_HTTP_304_response__n
push ebx
mov dword [eax], 1
mov dword [ebx + 0x8f9c], 0x130
call fcn.00490900
add esp, 8
mov dword [esi + 0x24c], 1
xor eax, eax
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0xd0]
xor ecx, esp
call fcn.00523a6a
mov esp, ebp
pop ebp
ret
cmp eax, 4
jne 0x4a35d8
push str.Failed_writing_data
push ebx
call fcn.004909c0
add esp, 8
mov eax, 0x17
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0xd0]
xor ecx, esp
call fcn.00523a6a
mov esp, ebp
pop ebp
ret
dec eax
cmp eax, 5
ja case.default.0x4a35de
jmp dword [eax*4 + 0x4a36d8]
mov eax, str.Too_long_hexadecimal_number
jmp 0x4a3614
mov eax, str.Illegal_or_missing_hexadecimal_sequence
jmp 0x4a3614
mov eax, str.Malformed_encoding_found
jmp 0x4a3614
mov eax, str.Write_error
jmp 0x4a3614
mov eax, str.Bad_content_encoding_found
jmp 0x4a3614
mov eax, str.Out_of_memory
jmp 0x4a3614
mov eax, 0x59aea0
push eax
push str._s_in_chunked_encoding
push ebx
call fcn.004909c0
add esp, 0xc
mov eax, 0x38
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0xd0]
xor ecx, esp
call fcn.00523a6a
mov esp, ebp
pop ebp
ret
mov eax, dword [esp + 0x14]
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0xd0]
xor ecx, esp
call fcn.00523a6a
mov esp, ebp
pop ebp
ret
mov eax, dword [esp + 0x10]
lea ecx, [esp + 0x20]
add dword [edi + 0x5c], eax
mov eax, dword [esi + 0x2c0]
push ecx
lea ecx, [esp + 0x14]
mov dword [esp + 0x14], edx
push ecx
mov eax, dword [eax + 0x34]
push esi
push ebx
call eax
add esp, 0x10
test eax, eax
jne 0x4a36c1
cmp dword [esp + 0x20], eax
je 0x4a3695
or dword [edi + 0xe8], 1
jmp 0x4a3695
and dword [edi + 0xe8], 0xfffffffe
mov eax, dword [edi + 0xe8]
and al, 3
cmp al, 2
jne 0x4a36bf
cmp dword [esi + 0x24c], 0
je 0x4a36bf
push str.we_are_done_reading_and_this_is_set_to_close__stop_send_n
push ebx
call fcn.00490900
add esp, 8
and dword [edi + 0xe8], 0xfffffffd
xor eax, eax
mov ecx, dword [esp + 0xdc]
pop edi
pop esi
pop ebx
xor ecx, esp
call fcn.00523a6a
mov esp, ebp
pop ebp
ret