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

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x1c
mov ecx, dword [ebp + 0x14]
mov edx, dword [ebp + 0x18]
push ebx
push esi
push edi
mov edi, eax
xor eax, eax
mov dword [esp + 0x10], eax
mov dword [esp + 0x24], eax
mov dword [esp + 0x14], eax
mov dword [esp + 0x1c], 0x64
mov dword [ecx], eax
mov dword [edx], eax
mov edi, edi
mov eax, dword [ebp + 8]
mov edx, dword [eax + 0x344]
test edx, edx
jne 0x414c32
mov edx, 0x4000
mov ebx, dword [ebp + 0xc]
mov eax, dword [ebx]
mov ecx, dword [ebx + 4]
mov esi, eax
and esi, ecx
mov dword [esp + 0x18], edx
cmp esi, 0xffffffff
je 0x414c61
cmp dword [ebx + 0x48], 0
jne 0x414c61
sub eax, dword [ebx + 0x20]
sbb ecx, dword [ebx + 0x24]
xor esi, esi
cmp ecx, esi
jg 0x414c61
jl 0x414c5f
cmp eax, edx
jae 0x414c61
mov edx, eax
test edx, edx
je 0x414c99
mov eax, dword [ebx + 0x9c]
lea ecx, [esp + 0xc]
push ecx
mov ecx, dword [edi + 0x34c]
push eax
push ecx
mov esi, edi
call fcn.00410010
add esp, 0xc
mov dword [esp + 0x10], eax
cmp eax, 0x51
je 0x415292
test eax, eax
jg 0x4152de
jmp 0x414ca1
mov dword [esp + 0xc], 0
mov edx, dword [ebx + 0x20]
or edx, dword [ebx + 0x24]
jne 0x414d2e
mov eax, dword [ebx + 0x28]
or eax, dword [ebx + 0x2c]
jne 0x414d2e
call dword [sym.imp.KERNEL32.dll_GetTickCount]
mov ecx, eax
mov eax, 0x10624dd3
mul ecx
mov esi, dword [ebp + 8]
shr edx, 6
mov eax, edx
imul eax, eax, 0x3e8
sub ecx, eax
mov eax, dword [esi + 0x614]
imul ecx, ecx, 0x3e8
push eax
mov eax, dword [esi + 0x610]
push eax
push ecx
push edx
call fcn.00410630
add esp, 0x10
fstp qword [esi + 0x5f8]
cmp dword [ebx + 0x84], 0
jle 0x414d31
call dword [sym.imp.KERNEL32.dll_GetTickCount]
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 [ebx + 0x7c], edx
mov dword [ebx + 0x80], ecx
jmp 0x414d31
mov esi, dword [ebp + 8]
mov eax, dword [ebp + 0x10]
or dword [eax], 1
mov eax, dword [esp + 0xc]
test eax, eax
jne 0x414d51
cmp dword [ebx + 0x98], eax
jne 0x414d51
mov dword [esp + 0x18], 1
jmp 0x414d61
mov dword [esp + 0x18], 0
test eax, eax
jle 0x4152e5
mov ecx, dword [ebx + 0x9c]
mov byte [eax + ecx], 0
mov edx, dword [ebx + 0x9c]
mov dword [ebx + 0x5c], edx
mov eax, dword [edi + 0x340]
mov eax, dword [eax + 0x34]
test eax, eax
je 0x414da8
lea ecx, [esp + 0x14]
push ecx
lea edx, [esp + 0x10]
push edx
push edi
push esi
call eax
add esp, 0x10
mov dword [esp + 0x10], eax
test eax, eax
jne 0x4152de
cmp dword [esp + 0x14], eax
jne 0x415295
cmp dword [ebx + 0x48], 0
je 0x414e2a
lea eax, [esp + 0x20]
push eax
lea ecx, [esp + 0x10]
push ecx
push edi
push esi
mov dword [esp + 0x30], 0
call fcn.0041b130
add esp, 0x10
mov dword [esp + 0x10], eax
test eax, eax
jne 0x4152de
mov edx, dword [edi + 0x340]
mov eax, dword [edx + 0x34]
test eax, eax
je 0x414e1f
cmp dword [ebx + 0x14], 0
jg 0x414e1f
jl 0x414df1
cmp dword [ebx + 0x10], 0
ja 0x414e1f
cmp dword [esp + 0xc], 0
jle 0x414e1f
lea ecx, [esp + 0x14]
push ecx
lea edx, [esp + 0x10]
push edx
push edi
push esi
call eax
add esp, 0x10
mov dword [esp + 0x10], eax
test eax, eax
jne 0x4152de
cmp dword [esp + 0x14], eax
jne 0x415295
cmp dword [esp + 0x20], 0
jne 0x4152ee
cmp dword [ebx + 0x5c], 0
je 0x415216
cmp dword [ebx + 0x48], 0
jne 0x415216
cmp dword [esp + 0xc], 0
jg 0x414e50
cmp dword [esp + 0x18], 0
je 0x415216
cmp dword [esi + 0x3b0], 0
jne 0x415351
cmp dword [ebx + 0x98], 0
jne 0x414f16
cmp dword [esp + 0x18], 0
jne 0x414f16
mov eax, dword [edi + 0x340]
test dword [eax + 0x3c], 0x40003
je 0x414f16
mov esi, dword [ebp + 8]
cmp dword [esi + 0x10c], 0
je 0x414eba
cmp dword [edi + 0x29c], 0
jne 0x41538e
push str.Ignoring_the_response_body_n
mov ecx, esi
mov dword [ebx + 0xb0], 1
call fcn.0040f940
add esp, 4
mov ecx, dword [esi + 0x87d8]
or ecx, dword [esi + 0x87dc]
je 0x414ee4
cmp dword [ebx + 0x6c], 0
jne 0x414ee4
cmp dword [esi + 0x268], 1
jne 0x414ee4
cmp dword [ebx + 0xb0], 0
je 0x4153a7
cmp dword [esi + 0x25c], 0
je 0x414f16
mov edx, esi
cmp dword [edx + 0x87d4], 0
jne 0x414f16
mov eax, dword [ebx + 0x94]
mov ecx, dword [ebx + 0x90]
push eax
push ecx
call fcn.00414b60
add esp, 8
test eax, eax
je 0x41540e
mov edx, dword [ebp + 8]
inc dword [ebx + 0x98]
cmp dword [edx + 0x3bc], 0
je 0x414f8a
cmp dword [ebx + 0x4c], 0
push edi
je 0x414f6b
mov eax, dword [ebx + 0x58]
mov ecx, edx
mov edx, dword [ecx + 0x6c4]
push eax
push edx
mov ebx, 3
mov esi, ecx
call fcn.004101a0
mov eax, dword [ebp + 0xc]
add esp, 0xc
cmp dword [eax + 0x4c], 1
jne 0x414f88
mov ecx, dword [esp + 0xc]
mov edx, dword [eax + 0x5c]
push edi
push ecx
push edx
call fcn.004101a0
mov ebx, dword [ebp + 0xc]
add esp, 0xc
jmp 0x414f8a
mov eax, dword [esp + 0x10]
mov ecx, dword [ebx + 0x5c]
push eax
push ecx
mov ebx, 3
mov esi, edx
call fcn.004101a0
mov ebx, dword [ebp + 0xc]
add esp, 0xc
jmp 0x414f8a
mov ebx, eax
cmp dword [ebx + 0xc8], 0
je 0x414fff
mov ecx, dword [esp + 0xc]
mov eax, dword [ebx + 0x5c]
lea edx, [esp + 0xc]
push edx
call fcn.00436f20
add esp, 4
test eax, eax
jg 0x41544d
cmp eax, 0xffffffff
jne 0x414fff
and dword [ebx + 0xa8], 0xfffffffe
mov esi, dword [edi + 0x30]
test esi, esi
je 0x414fff
mov ecx, dword [edi]
push esi
push str.Leftovers_after_chunking:__zu_bytes_n
call fcn.0040f940
mov ecx, dword [edi]
mov eax, dword [ecx + 0x40]
add esp, 8
test eax, eax
je 0x414fff
test byte [eax + 0x60], 1
je 0x414fff
push esi
push str.Rewinding__zu_bytes_n
call fcn.0040f940
add esp, 8
sub dword [edi + 0x390], esi
mov dword [edi + 0x2fc], 1
cmp dword [ebx + 0x4c], 0
je 0x415018
cmp dword [ebx + 0xb0], 0
jne 0x415018
mov eax, dword [ebx + 0x58]
add dword [ebx + 0x20], eax
adc dword [ebx + 0x24], 0
mov eax, dword [ebx + 0x10]
mov ecx, dword [ebx + 0x14]
cmp eax, 0xffffffff
jne 0x41502b
cmp ecx, eax
je 0x4150fc
mov eax, dword [esp + 0xc]
mov ecx, dword [ebx + 0x20]
mov esi, dword [ebx + 0x24]
cdq
add eax, ecx
adc edx, esi
cmp edx, dword [ebx + 0x14]
jl 0x4150fc
jg 0x41504e
cmp eax, dword [ebx + 0x10]
jb 0x4150fc
mov esi, ecx
sub esi, dword [ebx + 0x10]
add esi, dword [esp + 0xc]
mov dword [esp + 0x24], esi
je 0x4150e1
cmp dword [ebx + 0xb0], 0
jne 0x4150e1
mov edx, dword [edi]
mov eax, dword [edx + 0x40]
test eax, eax
je 0x4150bc
test byte [eax + 0x60], 1
je 0x4150bc
mov eax, dword [esp + 0xc]
mov edx, dword [ebx]
push eax
mov eax, dword [ebx + 0x24]
push eax
mov eax, dword [ebx + 0x14]
push ecx
mov ecx, dword [ebx + 4]
push eax
mov eax, dword [ebx + 0x10]
push eax
push ecx
mov ecx, dword [ebp + 8]
mov eax, dword [ecx + 0x87c4]
push edx
push eax
push esi
push str.Rewinding_stream_by_:__zu_bytes_on_url__s__size___I64d__maxdownload___I64d__bytecount___I64d__nread___zd__n
call fcn.0040f940
add esp, 0x28
sub dword [edi + 0x390], esi
mov dword [edi + 0x2fc], 1
jmp 0x4150e1
mov eax, dword [ebx + 0x24]
mov edx, dword [ebx]
push eax
mov eax, dword [ebx + 0x14]
push ecx
mov ecx, dword [ebx + 4]
push eax
mov eax, dword [ebx + 0x10]
push eax
push ecx
mov ecx, dword [ebp + 8]
push edx
push esi
push str.Excess_found_in_a_non_pipelined_read:_excess___zu__size___I64d__maxdownload___I64d__bytecount___I64d_n
call fcn.0040f940
add esp, 0x20
mov eax, dword [ebx + 0x10]
sub eax, dword [ebx + 0x20]
mov dword [esp + 0xc], eax
jns 0x4150f5
mov dword [esp + 0xc], 0
and dword [ebx + 0xa8], 0xfffffffe
mov eax, dword [esp + 0xc]
mov esi, dword [ebp + 8]
cdq
add dword [ebx + 0x20], eax
mov ecx, dword [ebx + 0x20]
adc dword [ebx + 0x24], edx
mov eax, dword [ebx + 0x24]
push eax
push ecx
call fcn.00417620
add esp, 8
cmp dword [ebx + 0xc8], 0
jne 0x415216
cmp dword [esp + 0xc], 0
jne 0x41513f
cmp dword [ebx + 0x4c], 0
jne 0x415145
cmp dword [esp + 0x18], 0
je 0x415216
cmp dword [ebx + 0x4c], 0
je 0x4151c1
cmp dword [ebx + 0xb0], 0
jne 0x4151c1
mov edx, dword [ebx + 0x10]
mov eax, dword [ebx + 0x14]
mov ecx, edx
and ecx, eax
cmp ecx, 0xffffffff
je 0x415188
mov esi, dword [ebx + 0x58]
xor ecx, ecx
cmp ecx, eax
jl 0x415188
jg 0x41516c
cmp esi, edx
jbe 0x415188
mov ecx, edx
mov edx, dword [ebp + 8]
mov eax, dword [edx + 0x6c4]
push 1
push edi
call fcn.0040ffc0
add esp, 8
mov dword [esp + 0x10], eax
jmp 0x4151b9
mov ecx, dword [ebx + 0x58]
mov eax, dword [ebp + 8]
mov eax, dword [eax + 0x6c4]
test ecx, ecx
jne 0x4151a9
mov ecx, eax
lea esi, [ecx + 1]
lea ecx, [ecx]
mov dl, byte [ecx]
inc ecx
test dl, dl
jne 0x4151a0
sub ecx, esi
push ecx
push 1
push edi
call fcn.0040fde0
add esp, 0xc
mov dword [esp + 0x10], eax
test eax, eax
jne 0x4152de
cmp dword [ebx + 0x4c], 2
jge 0x415204
cmp dword [ebx + 0xb0], 0
jne 0x415204
mov ecx, dword [edi + 0x340]
test dword [ecx + 0x3c], 0xc000
mov eax, dword [ebx + 0x5c]
je 0x4151f1
mov edx, dword [esp + 0xc]
push edx
push eax
mov esi, edi
call fcn.00420c20
jmp 0x4151fd
mov ecx, dword [esp + 0xc]
push 1
push edi
call fcn.0040ffc0
mov dword [esp + 0x18], eax
add esp, 8
cmp dword [esp + 0x10], 0
mov dword [ebx + 0x4c], 0
jne 0x415490
mov ecx, dword [edi + 0x340]
cmp dword [ecx + 0x34], 0
je 0x415237
mov eax, dword [esp + 0x24]
test eax, eax
jbe 0x415237
cmp dword [edi + 0x2fc], 0
je 0x41549b
cmp dword [esp + 0x18], 0
je 0x415245
and dword [ebx + 0xa8], 0xfffffffe
mov edx, dword [edi + 0x340]
test byte [edx + 0x3c], 0x30
jne 0x41527f
mov eax, dword [edi + 0x1f8]
test eax, eax
je 0x415292
push eax
call fcn.00596810
add esp, 4
test eax, eax
jne 0x41527f
mov eax, dword [edi + 0x228]
test eax, eax
je 0x415292
push eax
call fcn.00596810
add esp, 4
test eax, eax
je 0x415292
mov eax, dword [esp + 0x1c]
mov ecx, eax
dec eax
mov dword [esp + 0x1c], eax
test ecx, ecx
jne 0x414c20
mov esi, dword [ebp + 8]
cmp dword [esp + 0x1c], 0
jg 0x4152af
mov eax, dword [ebp + 0x18]
mov dword [edi + 0x598], 1
mov dword [eax], 1
mov ecx, dword [ebx + 0xa8]
and cl, 3
cmp cl, 2
jne 0x4152dc
cmp dword [edi + 0x29c], 0
je 0x4152dc
push str.we_are_done_reading_and_this_is_set_to_close__stop_send_n
mov ecx, esi
call fcn.0040f940
add esp, 4
and dword [ebx + 0xa8], 0xfffffffd
xor eax, eax
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
and dword [ebx + 0xa8], 0xfffffffe
jmp 0x415295
mov ecx, dword [esp + 0xc]
test ecx, ecx
jle 0x415295
mov edx, dword [edi]
mov eax, dword [edx + 0x40]
test eax, eax
je 0x415335
test byte [eax + 0x60], 1
je 0x415335
mov eax, dword [esi + 0x87c4]
push eax
push ecx
push str.Rewinding_stream_by_:__zd_bytes_on_url__s__zero_length_body__n
mov ecx, esi
call fcn.0040f940
mov ecx, dword [esp + 0x18]
add esp, 0xc
sub dword [edi + 0x390], ecx
mov dword [edi + 0x2fc], 1
jmp 0x415295
mov edx, dword [esi + 0x87c4]
push edx
push ecx
push str.Excess_found_in_a_non_pipelined_read:_excess___zd_url___s__zero_length_body__n
mov ecx, esi
call fcn.0040f940
add esp, 0xc
jmp 0x415295
mov eax, dword [edi + 0x340]
mov eax, dword [eax + 0x40]
and eax, 0x200
mov ecx, 0
sete cl
test eax, eax
jne 0x415379
cmp ecx, dword [edi + 0x29c]
je 0x415379
mov dword [edi + 0x29c], ecx
mov ecx, dword [ebp + 0x14]
mov dword [ecx], 1
mov eax, 8
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
mov edx, dword [ebp + 0x14]
and dword [ebx + 0xa8], 0xfffffffe
mov dword [edx], 1
xor eax, eax
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
mov eax, dword [ebx]
cmp eax, dword [esi + 0x87d8]
jne 0x4153f3
mov ecx, dword [ebx + 4]
cmp ecx, dword [esi + 0x87dc]
jne 0x4153f3
push str.The_entire_document_is_already_downloaded
mov ecx, esi
call fcn.0040f940
mov eax, 1
add esp, 4
cmp dword [edi + 0x29c], eax
je 0x4153de
mov dword [edi + 0x29c], eax
mov edx, dword [ebp + 0x14]
and dword [ebx + 0xa8], 0xfffffffe
mov dword [edx], eax
xor eax, eax
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
push str.HTTP_server_doesnt_seem_to_support_byte_ranges._Cannot_resume.
mov eax, esi
call fcn.0040f9d0
add esp, 4
mov eax, 0x21
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
mov eax, dword [ebp + 0x14]
mov ecx, dword [ebp + 8]
mov esi, 1
push str.Simulate_a_HTTP_304_response__n
mov dword [eax], esi
mov dword [ecx + 0x8834], 0x130
call fcn.0040f940
add esp, 4
cmp dword [edi + 0x29c], esi
je 0x4152dc
mov dword [edi + 0x29c], esi
xor eax, eax
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
cmp eax, 4
jne 0x41546e
mov eax, dword [ebp + 8]
push str.Failed_writing_data
call fcn.0040f9d0
add esp, 4
mov eax, 0x17
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
call fcn.00437390
push eax
mov eax, dword [ebp + 8]
push str._s_in_chunked_encoding
call fcn.0040f9d0
add esp, 8
mov eax, 0x38
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
mov eax, dword [esp + 0x10]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
mov ecx, dword [esp + 0xc]
add dword [ebx + 0x5c], ecx
mov edx, dword [edi + 0x340]
mov esi, dword [ebp + 8]
mov dword [esp + 0xc], eax
mov edx, dword [edx + 0x34]
lea eax, [esp + 0x14]
push eax
lea ecx, [esp + 0x10]
push ecx
push edi
push esi
call edx
add esp, 0x10
test eax, eax
jne 0x4152de
cmp dword [esp + 0x14], eax
je 0x415295
or dword [ebx + 0xa8], 1
jmp 0x415295