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

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0xd4
mov eax, dword [0x5c1334]
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 0x4a642f
cmp dword [edi + 0x48], 0
jne 0x4a642f
sub edx, dword [edi + 0x20]
mov eax, dword [esp + 0x18]
sbb eax, dword [edi + 0x24]
test eax, eax
jg 0x4a642f
jl 0x4a642d
cmp edx, ecx
jae 0x4a642f
mov ecx, edx
test ecx, ecx
je 0x4a646a
mov edx, dword [esi + 0x2cc]
lea eax, [esp + 0x10]
push eax
push ecx
push dword [edi + 0xdc]
mov ecx, esi
call fcn.00494760
add esp, 0xc
mov dword [esp + 0x14], eax
cmp eax, 0x51
je 0x4a6db5
test eax, eax
jg 0x4a6de1
mov ecx, dword [esp + 0x10]
jmp 0x4a6470
xor ecx, ecx
mov dword [esp + 0x10], ecx
mov eax, dword [edi + 0x20]
or eax, dword [edi + 0x24]
jne 0x4a651a
mov eax, dword [edi + 0x28]
or eax, dword [edi + 0x2c]
jne 0x4a651a
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 [0x5a0ff0]
cmp edx, esi
je 0x4a64d8
sub edx, esi
movd xmm0, edx
cvtdq2pd xmm0, xmm0
addsd xmm1, xmm0
movsd qword [ebx + 0x558], xmm1
cmp dword [edi + 0x84], 0
jle 0x4a6512
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 0x4a6537
cmp dword [edi + 0xd8], ecx
jne 0x4a6537
mov dword [esp + 0x1c], 1
jmp 0x4a6545
xor eax, eax
mov dword [esp + 0x1c], eax
test ecx, ecx
jle 0x4a6dae
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 0x4a658c
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 0x4a6de1
cmp dword [esp + 0x20], eax
jne 0x4a6db5
cmp dword [edi + 0x48], 0
je 0x4a6616
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.004ab9c0
mov ecx, eax
add esp, 8
mov dword [esp + 0x14], ecx
test ecx, ecx
jne 0x4a6c21
mov eax, dword [esi + 0x2c0]
mov eax, dword [eax + 0x34]
test eax, eax
je 0x4a660b
cmp dword [edi + 0x14], ecx
jg 0x4a660b
jl 0x4a65db
cmp dword [edi + 0x10], ecx
ja 0x4a660b
cmp dword [esp + 0x10], 0
jle 0x4a660b
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 0x4a6c21
cmp dword [esp + 0x20], eax
jne 0x4a6db5
cmp dword [esp + 0x18], 0
jne 0x4a6bc1
cmp dword [edi + 0x5c], 0
mov ecx, dword [esp + 0x1c]
je 0x4a6b81
cmp dword [edi + 0x48], 0
jne 0x4a6b81
cmp dword [esp + 0x10], 0
jg 0x4a663d
test ecx, ecx
je 0x4a6b81
cmp dword [edi + 0xd8], 0
jne 0x4a66eb
test ecx, ecx
jne 0x4a66eb
mov eax, dword [esi + 0x2c0]
test dword [eax + 0x3c], 0x40003
je 0x4a66eb
cmp dword [ebx + 0x14c], ecx
je 0x4a6691
cmp dword [esi + 0x24c], ecx
jne 0x4a6c38
push str.Ignoring_the_response_body_n
push ebx
mov dword [edi + 0xf0], 1
call fcn.00494040
add esp, 8
mov eax, dword [ebx + 0x8f60]
or eax, dword [ebx + 0x8f64]
je 0x4a66bb
cmp dword [edi + 0x6c], 0
jne 0x4a66bb
cmp dword [ebx + 0x2a8], 1
jne 0x4a66bb
cmp dword [edi + 0xf0], 0
je 0x4a6c60
cmp dword [ebx + 0x298], 0
je 0x4a66eb
cmp dword [ebx + 0x8f58], 0
jne 0x4a66eb
push dword [edi + 0xd4]
mov ecx, ebx
push dword [edi + 0xd0]
call fcn.004a6310
add esp, 8
test eax, eax
je 0x4a6c88
inc dword [edi + 0xd8]
cmp dword [ebx + 0x36c], 0
je 0x4a6888
cmp dword [edi + 0x4c], 0
je 0x4a67fc
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 0x4a677c
mov eax, dword [esi + 0x9c]
test eax, eax
je 0x4a677c
push eax
push str.from
push str.Data
push str.__s__s__s_
lea eax, [esp + 0x48]
push 0xa0
push eax
call fcn.004a4150
lea ecx, [esp + 0x50]
add esp, 0x18
lea edx, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x4a6755
sub ecx, edx
lea eax, [esp + 0x38]
push ecx
push eax
xor edx, edx
mov ecx, ebx
call fcn.00494880
add esp, 8
test eax, eax
jne 0x4a6796
mov ecx, dword [esp + 0x18]
mov edx, dword [esp + 0x28]
mov eax, dword [ebx + 0x1e8]
test eax, eax
je 0x4a6796
push dword [ebx + 0x174]
push ecx
push edx
push 3
push ebx
call eax
add esp, 0x14
cmp dword [edi + 0x4c], 1
jne 0x4a6888
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 0x4a686e
mov eax, dword [esi + 0x9c]
test eax, eax
je 0x4a686e
push eax
push str.from
push str.Data
push str.__s__s__s_
lea eax, [esp + 0x48]
push 0xa0
push eax
call fcn.004a4150
lea ecx, [esp + 0x50]
add esp, 0x18
lea edx, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x4a67f3
jmp 0x4a684e
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 0x4a686e
mov eax, dword [esi + 0x9c]
test eax, eax
je 0x4a686e
push eax
push str.from
push str.Data
push str.__s__s__s_
lea eax, [esp + 0x48]
push 0xa0
push eax
call fcn.004a4150
lea ecx, [esp + 0x50]
add esp, 0x18
lea edx, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x4a6847
sub ecx, edx
lea eax, [esp + 0x38]
push ecx
push eax
xor edx, edx
mov ecx, ebx
call fcn.00494880
add esp, 8
test eax, eax
jne 0x4a6888
mov ecx, dword [esp + 0x28]
mov edx, dword [esp + 0x18]
mov eax, dword [ebx + 0x1e8]
test eax, eax
je 0x4a6888
push dword [ebx + 0x174]
push ecx
push edx
push 3
push ebx
call eax
add esp, 0x14
cmp dword [edi + 0x108], 0
je 0x4a690b
mov edx, dword [edi + 0x5c]
lea eax, [esp + 0x10]
push eax
push dword [esp + 0x14]
mov ecx, esi
call fcn.004cbb70
add esp, 8
test eax, eax
jg 0x4a6ccb
cmp eax, 0xffffffff
jne 0x4a690b
and dword [edi + 0xe8], 0xfffffffe
mov eax, dword [esi + 0x30]
mov dword [esp + 0x18], eax
test eax, eax
je 0x4a690b
push eax
push str.Leftovers_after_chunking:__zu_bytes_n
push dword [esi]
call fcn.00494040
mov ecx, dword [esi]
add esp, 0xc
mov eax, dword [ecx + 0x40]
test eax, eax
je 0x4a690b
cmp dword [eax + 0x2c], 0
je 0x4a690b
push dword [esp + 0x18]
push str.Rewinding__zu_bytes_n
push ecx
call fcn.00494040
mov eax, dword [esp + 0x24]
add esp, 0xc
sub dword [esi + 0x314], eax
mov dword [esi + 0x2a0], 1
cmp dword [edi + 0x4c], 0
je 0x4a6924
cmp dword [edi + 0xf0], 0
jne 0x4a6924
mov eax, dword [edi + 0x58]
add dword [edi + 0x20], eax
adc dword [edi + 0x24], 0
mov ecx, dword [edi + 0x10]
cmp ecx, 0xffffffff
jne 0x4a6935
cmp dword [edi + 0x14], ecx
je 0x4a6a09
mov eax, dword [esp + 0x10]
cdq
add eax, dword [edi + 0x20]
adc edx, dword [edi + 0x24]
cmp edx, dword [edi + 0x14]
jl 0x4a6a09
jg 0x4a6953
cmp eax, ecx
jb 0x4a6a09
mov eax, dword [edi + 0x20]
sub eax, ecx
add eax, dword [esp + 0x10]
mov dword [esp + 0x24], eax
je 0x4a69f0
cmp dword [edi + 0xf0], 0
jne 0x4a69f0
mov eax, dword [esi]
mov eax, dword [eax + 0x40]
test eax, eax
je 0x4a6989
cmp dword [eax + 0x2c], 0
je 0x4a6989
mov eax, 1
jmp 0x4a698b
xor eax, eax
mov edx, dword [edi + 4]
test eax, eax
mov eax, dword [edi]
je 0x4a69d2
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.00494040
mov eax, dword [esp + 0x50]
add esp, 0x2c
sub dword [esi + 0x314], eax
mov dword [esi + 0x2a0], 1
jmp 0x4a69f0
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.00494040
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 0x4a6b7d
cmp dword [esp + 0x10], 0
jne 0x4a6a4c
cmp dword [edi + 0x4c], 0
jne 0x4a6a52
mov ecx, dword [esp + 0x1c]
test ecx, ecx
je 0x4a6b81
cmp dword [edi + 0x4c], 0
je 0x4a6a9d
cmp dword [edi + 0xf0], 0
jne 0x4a6a9d
mov ecx, dword [edi + 0x10]
mov eax, ecx
mov edx, dword [edi + 0x14]
and eax, edx
cmp eax, 0xffffffff
je 0x4a6a77
xor eax, eax
cmp eax, edx
jl 0x4a6a77
jg 0x4a6a7a
cmp dword [edi + 0x58], ecx
ja 0x4a6a7a
mov ecx, dword [edi + 0x58]
mov eax, dword [ebx + 0x604]
mov edx, 1
push ecx
push eax
mov ecx, esi
call fcn.00494590
add esp, 8
mov dword [esp + 0x14], eax
test eax, eax
jne 0x4a6de1
cmp dword [edi + 0x4c], 2
jge 0x4a6b6a
mov eax, dword [esi]
cmp dword [eax + 0x3b8], 0
je 0x4a6ab6
xor eax, eax
jmp 0x4a6abc
mov eax, dword [edi + 0x8c]
sub eax, 0
je 0x4a6b25
sub eax, 1
je 0x4a6b06
sub eax, 1
je 0x4a6ae7
push str.Unrecognized_content_encoding_type._libcurl_understands__identity___deflate_and__gzip_content_encodings.
push ebx
call fcn.00494100
mov eax, 0x3d
add esp, 8
mov dword [esp + 0x14], eax
jmp 0x4a6b6e
cmp dword [edi + 0xf0], 0
jne 0x4a6b6a
push dword [esp + 0x10]
mov edx, edi
mov ecx, esi
call fcn.004cc4d0
add esp, 4
mov dword [esp + 0x14], eax
jmp 0x4a6b6e
cmp dword [edi + 0xf0], 0
jne 0x4a6b6a
push dword [esp + 0x10]
mov edx, edi
mov ecx, esi
call fcn.004cc330
add esp, 4
mov dword [esp + 0x14], eax
jmp 0x4a6b6e
cmp dword [edi + 0xf0], 0
jne 0x4a6b6a
mov eax, dword [esi + 0x2c0]
mov ecx, esi
push dword [esp + 0x10]
test dword [eax + 0x3c], 0xc000
je 0x4a6b54
mov edx, dword [edi + 0x5c]
call fcn.004b9a70
add esp, 4
mov dword [esp + 0x14], eax
jmp 0x4a6b6e
push dword [edi + 0x5c]
mov edx, 1
call fcn.00494590
add esp, 8
mov dword [esp + 0x14], eax
jmp 0x4a6b6e
mov eax, dword [esp + 0x14]
mov dword [edi + 0x4c], 0
test eax, eax
jne 0x4a6d5d
mov ecx, dword [esp + 0x1c]
mov eax, dword [esi + 0x2c0]
cmp dword [eax + 0x34], 0
je 0x4a6ba2
mov edx, dword [esp + 0x24]
test edx, edx
je 0x4a6ba2
cmp dword [esi + 0x2a0], 0
je 0x4a6d76
test ecx, ecx
je 0x4a6bad
and dword [edi + 0xe8], 0xfffffffe
mov ecx, esi
call fcn.004a62c0
test eax, eax
jne 0x4a63f0
jmp 0x4a6db5
mov edx, dword [esp + 0x10]
test edx, edx
jle 0x4a6db5
mov ecx, dword [esi]
mov ecx, dword [ecx + 0x40]
call fcn.00491280
test eax, eax
mov eax, dword [ebx + 0x8f48]
push eax
je 0x4a6c0a
push edx
push str.Rewinding_stream_by_:__zd_bytes_on_url__s__zero_length_body__n
push ebx
call fcn.00494040
mov eax, dword [esp + 0x20]
add esp, 0x10
sub dword [esi + 0x314], eax
mov dword [esi + 0x2a0], 1
jmp 0x4a6db5
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.00494040
add esp, 0x10
jmp 0x4a6db5
mov eax, ecx
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0xd0]
xor ecx, esp
call fcn.00528802
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.00528802
mov esp, ebp
pop ebp
ret
push str.HTTP_server_doesnt_seem_to_support_byte_ranges._Cannot_resume.
push ebx
call fcn.00494100
add esp, 8
mov eax, 0x21
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0xd0]
xor ecx, esp
call fcn.00528802
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.00494040
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.00528802
mov esp, ebp
pop ebp
ret
cmp eax, 4
jne 0x4a6cf8
push str.Failed_writing_data
push ebx
call fcn.00494100
add esp, 8
mov eax, 0x17
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0xd0]
xor ecx, esp
call fcn.00528802
mov esp, ebp
pop ebp
ret
dec eax
cmp eax, 5
ja case.default.0x4a6cfe
jmp dword [eax*4 + 0x4a6df8]
mov eax, str.Too_long_hexadecimal_number
jmp 0x4a6d34
mov eax, str.Illegal_or_missing_hexadecimal_sequence
jmp 0x4a6d34
mov eax, str.Malformed_encoding_found
jmp 0x4a6d34
mov eax, str.Write_error
jmp 0x4a6d34
mov eax, str.Bad_content_encoding_found
jmp 0x4a6d34
mov eax, str.Out_of_memory
jmp 0x4a6d34
mov eax, 0x59f278
push eax
push str._s_in_chunked_encoding
push ebx
call fcn.00494100
add esp, 0xc
mov eax, 0x38
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0xd0]
xor ecx, esp
call fcn.00528802
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.00528802
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 0x4a6de1
cmp dword [esp + 0x20], eax
je 0x4a6db5
or dword [edi + 0xe8], 1
jmp 0x4a6db5
and dword [edi + 0xe8], 0xfffffffe
mov eax, dword [edi + 0xe8]
and al, 3
cmp al, 2
jne 0x4a6ddf
cmp dword [esi + 0x24c], 0
je 0x4a6ddf
push str.we_are_done_reading_and_this_is_set_to_close__stop_send_n
push ebx
call fcn.00494040
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.00528802
mov esp, ebp
pop ebp
ret