Function at 0x6667c0
Capabilities:
Resolve function by parsing pe exports

Disassembly:
sub esp, 0x3c
push ebx
mov ebx, dword [esp + 0x44]
push ebp
push esi
mov esi, dword [esp + 0x54]
xor ebp, ebp
mov eax, dword [ebx + 0x8cc]
mov dword [esp + 0x14], eax
mov eax, dword [esp + 0x5c]
push edi
mov dword [esp + 0x1c], ebp
mov byte [esp + 0x12], 0
mov byte [eax], 0
mov eax, dword [esp + 0x64]
mov dword [esp + 0x20], 0x64
mov byte [eax], 0
lea ebx, [ebx]
mov ecx, dword [esi]
mov eax, ecx
mov edi, dword [esi + 4]
and eax, edi
mov edx, dword [ebx + 0x4bc]
cmp eax, 0xffffffff
je 0x66682f
cmp byte [esi + 0xbd], 0
jne 0x66682f
sub ecx, dword [esi + 0x10]
sbb edi, dword [esi + 0x14]
test edi, edi
jg 0x66682f
jl 0x66682d
cmp ecx, edx
jae 0x66682f
mov edx, ecx
mov edi, dword [esp + 0x54]
test edx, edx
je 0x666869
lea eax, [esp + 0x14]
push eax
push edx
push dword [esp + 0x20]
push dword [edi + 0x2a0]
push ebx
call fcn.0065f9e0
mov ebp, eax
add esp, 0x14
cmp ebp, 0x51
je 0x666df4
test ebp, ebp
jg 0x666d05
mov ecx, dword [esp + 0x14]
jmp 0x66686f
xor ecx, ecx
mov dword [esp + 0x14], ecx
mov eax, dword [esi + 0x10]
or eax, dword [esi + 0x14]
jne 0x6668aa
push 7
lea eax, [esp + 0x30]
push ebx
push eax
call fcn.0066e250
add esp, 0xc
cmp dword [esi + 0x88], 0
jle 0x6668a6
lea eax, [esp + 0x3c]
push eax
call fcn.006673d0
add esp, 4
movdqu xmm0, xmmword [eax]
movdqu xmmword [esi + 0x78], xmm0
mov ecx, dword [esp + 0x14]
mov eax, dword [esp + 0x5c]
or dword [eax], 1
test ecx, ecx
jne 0x6668c2
cmp dword [esi + 0xa0], ecx
jne 0x6668c2
lea eax, [ecx + 1]
jmp 0x6668c4
xor eax, eax
test eax, eax
setne al
mov byte [esp + 0x50], al
test ecx, ecx
jg 0x6668d9
test al, al
je 0x666d0f
mov eax, dword [esp + 0x18]
mov byte [ecx + eax], 0
mov dword [esi + 0x60], eax
mov eax, dword [edi + 0x288]
mov eax, dword [eax + 0x34]
test eax, eax
je 0x666916
lea ecx, [esp + 0x12]
push ecx
lea ecx, [esp + 0x18]
push ecx
push edi
push ebx
call eax
mov ebp, eax
add esp, 0x10
test ebp, ebp
jne 0x666d05
cmp byte [esp + 0x12], al
jne 0x666df4
cmp byte [esi + 0xbd], 0
je 0x6669a3
lea eax, [esp + 0x13]
mov byte [esp + 0x13], 0
push eax
lea eax, [esp + 0x18]
push eax
push edi
push ebx
call fcn.0066c400
mov ebp, eax
add esp, 0x10
test ebp, ebp
jne 0x666d05
mov eax, dword [edi + 0x288]
mov eax, dword [eax + 0x34]
test eax, eax
je 0x66698b
cmp dword [esi + 0xc], ebp
jg 0x66698b
jl 0x66695f
cmp dword [esi + 8], ebp
ja 0x66698b
cmp dword [esp + 0x14], 0
jle 0x66698b
lea ecx, [esp + 0x12]
push ecx
lea ecx, [esp + 0x18]
push ecx
push edi
push ebx
call eax
mov ebp, eax
add esp, 0x10
test ebp, ebp
jne 0x666d05
cmp byte [esp + 0x12], al
jne 0x666df4
cmp byte [esp + 0x13], 0
jne 0x666d18
cmp byte [esi + 0xbd], 0
jne 0x666c86
cmp dword [esp + 0x14], 0
mov cl, byte [esp + 0x50]
jg 0x6669b6
test cl, cl
je 0x666c8a
cmp byte [ebx + 0x6e3], 0
jne 0x666d7f
cmp dword [esi + 0xa0], 0
jne 0x666a04
test cl, cl
jne 0x666a04
mov eax, dword [edi + 0x288]
test dword [eax + 0x44], 0x40003
je 0x666a04
push dword [esp + 0x60]
push edi
push ebx
call fcn.0066b240
mov ebp, eax
add esp, 0xc
test ebp, ebp
jne 0x666d05
mov eax, dword [esp + 0x60]
cmp byte [eax], 0
jne 0x666d05
inc dword [esi + 0xa0]
cmp byte [ebx + 0x6e5], 0
je 0x666a71
cmp dword [esi + 0x58], 0
je 0x666a5f
lea edi, [ebx + 0x8bc]
push edi
call fcn.006962a0
add esp, 4
push eax
push edi
call fcn.00656470
add esp, 4
push eax
push 3
push ebx
call fcn.0065f7f0
add esp, 0x10
cmp dword [esi + 0x58], 1
jne 0x666a59
push dword [esp + 0x14]
push dword [esi + 0x60]
push 3
push ebx
call fcn.0065f7f0
mov edi, dword [esp + 0x64]
jmp 0x666a6e
mov edi, dword [esp + 0x54]
jmp 0x666a71
push dword [esp + 0x14]
push dword [esi + 0x60]
push 3
push ebx
call fcn.0065f7f0
add esp, 0x10
cmp byte [esi + 0xc2], 0
je 0x666ac1
lea eax, [esp + 0x28]
push eax
lea eax, [esp + 0x18]
push eax
push dword [esp + 0x1c]
push dword [esi + 0x60]
push ebx
call fcn.0068ee70
add esp, 0x14
test eax, eax
jg 0x666d3e
cmp eax, 0xffffffff
jne 0x666ac1
and dword [esi + 0x74], 0xfffffffe
mov edx, dword [edi + 0x18]
mov eax, edx
mov ecx, dword [edi + 0x1c]
or eax, ecx
je 0x666ac1
push ecx
push edx
push str.Leftovers_after_chunking:___I64du_bytes
push ebx
call fcn.0065f950
add esp, 0x10
cmp dword [esi + 0x58], 1
jne 0x666ae6
cmp byte [esi + 0xc0], 0
jne 0x666ae6
lea eax, [ebx + 0x8bc]
push eax
call fcn.006962a0
add esp, 4
add dword [esi + 0x10], eax
adc dword [esi + 0x14], 0
mov ecx, dword [esi + 8]
cmp ecx, 0xffffffff
jne 0x666af3
cmp dword [esi + 0xc], ecx
je 0x666b64
mov eax, dword [esp + 0x14]
cdq
add eax, dword [esi + 0x10]
mov dword [esp + 0x24], eax
adc edx, dword [esi + 0x14]
mov eax, dword [esi + 0xc]
cmp edx, eax
jl 0x666b64
jg 0x666b11
cmp dword [esp + 0x24], ecx
jb 0x666b64
mov edx, dword [esp + 0x14]
sub edx, dword [esi + 8]
add edx, dword [esi + 0x10]
mov dword [esp + 0x1c], edx
je 0x666b4e
cmp byte [esi + 0xc0], 0
jne 0x666b4e
push dword [esi + 0x14]
push dword [esi + 0x10]
push eax
push ecx
push dword [esi + 4]
push dword [esi]
push edx
push str.Excess_found_in_a_read:_excess___zu__size___I64d__maxdownload___I64d__bytecount___I64d
push ebx
call fcn.0065f950
push 1
push edi
call fcn.00660380
add esp, 0x2c
mov eax, dword [esi + 8]
mov ecx, 0
sub eax, dword [esi + 0x10]
cmovs eax, ecx
and dword [esi + 0x74], 0xfffffffe
mov dword [esp + 0x14], eax
mov eax, dword [esp + 0x14]
cdq
add dword [esi + 0x10], eax
adc dword [esi + 0x14], edx
push dword [esi + 0x14]
push dword [esi + 0x10]
push ebx
call fcn.0066e0a0
add esp, 0xc
cmp byte [esi + 0xc2], 0
jne 0x666c86
cmp dword [esp + 0x14], 0
jne 0x666ba4
cmp dword [esi + 0x58], 0
jne 0x666baa
mov cl, byte [esp + 0x50]
test cl, cl
je 0x666c8a
cmp dword [esi + 0x58], 0
je 0x666c01
cmp byte [esi + 0xc0], 0
jne 0x666c01
lea ebp, [ebx + 0x8bc]
push ebp
call fcn.006962a0
mov ecx, dword [esi + 8]
add esp, 4
mov edx, dword [esi + 0xc]
and ecx, edx
cmp ecx, 0xffffffff
je 0x666be1
xor ecx, ecx
cmp ecx, edx
jl 0x666be1
jg 0x666bdc
cmp eax, dword [esi + 8]
jbe 0x666be1
push dword [esi + 8]
jmp 0x666be2
push eax
push ebp
call fcn.00656470
add esp, 4
push eax
push 1
push ebx
call fcn.0065f7e0
mov ebp, eax
add esp, 0x10
test ebp, ebp
jne 0x666d05
cmp dword [esi + 0x58], 2
jge 0x666c7b
cmp byte [ebx + 0x6ee], 0
jne 0x666c38
mov eax, dword [esi + 0x90]
test eax, eax
je 0x666c38
cmp byte [esi + 0xc0], 0
jne 0x666c7b
mov ecx, dword [esp + 0x14]
test ecx, ecx
je 0x666c7b
push ecx
push dword [esi + 0x60]
push eax
push ebx
call fcn.00664200
jmp 0x666c76
cmp byte [esi + 0xc0], 0
jne 0x666c7b
mov ecx, dword [esp + 0x14]
test ecx, ecx
je 0x666c7b
mov eax, dword [edi + 0x288]
test dword [eax + 0x44], 0xc000
je 0x666c67
push ecx
push dword [esi + 0x60]
push ebx
call fcn.0067a870
add esp, 0xc
jmp 0x666c79
push dword [esp + 0x14]
push dword [esi + 0x60]
push 1
push ebx
call fcn.0065f7e0
add esp, 0x10
mov ebp, eax
mov dword [esi + 0x58], 0
test ebp, ebp
jne 0x666d05
mov cl, byte [esp + 0x50]
mov eax, dword [edi + 0x288]
cmp dword [eax + 0x34], 0
je 0x666ca2
mov eax, dword [esp + 0x1c]
test eax, eax
jne 0x666d9e
test cl, cl
je 0x666caa
and dword [esi + 0x74], 0xfffffffe
test byte [esi + 0x74], 0x10
jne 0x666df4
mov ecx, dword [ebx + 0xc]
mov eax, dword [ecx + 0x288]
mov eax, dword [eax + 0x44]
test al, 0xc
je 0x666cd6
push 1
push ecx
call fcn.0065a080
movzx eax, al
add esp, 8
test eax, eax
jmp 0x666ce7
test al, 0x30
jne 0x666ced
push 0
push ecx
call fcn.0065a080
add esp, 8
test al, al
je 0x666df4
mov ecx, dword [esp + 0x20]
mov eax, ecx
dec ecx
mov dword [esp + 0x20], ecx
test eax, eax
jne 0x666800
jmp 0x666df4
pop edi
pop esi
mov eax, ebp
pop ebp
pop ebx
add esp, 0x3c
ret
and dword [esi + 0x74], 0xfffffffe
jmp 0x666df4
mov ecx, dword [esp + 0x14]
test ecx, ecx
jle 0x666df4
push dword [ebx + 0xc7c]
push ecx
push str.Excess_found:_excess___zd_url___s__zero_length_body_
push ebx
call fcn.0065f950
add esp, 0x10
jmp 0x666df4
cmp eax, 6
jne 0x666d5d
push str.Failed_reading_the_chunked_encoded_stream
push ebx
call fcn.0065f880
mov eax, dword [esp + 0x30]
add esp, 8
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x3c
ret
push eax
call fcn.0068ede0
push eax
push str._s_in_chunked_encoding
push ebx
call fcn.0065f880
add esp, 0x10
mov eax, 0x38
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x3c
ret
push 2
push edi
call fcn.00660380
mov eax, dword [esp + 0x68]
add esp, 8
pop edi
pop esi
pop ebp
mov byte [eax], 1
mov eax, 8
pop ebx
add esp, 0x3c
ret
mov edx, dword [esi + 0x60]
add edx, dword [esp + 0x14]
mov ecx, dword [esp + 0x18]
add eax, edx
mov dword [esi + 0x60], edx
mov ebp, dword [ebx + 0x4bc]
add ecx, ebp
cmp eax, ecx
jbe 0x666dc4
mov eax, ebp
sub eax, edx
add eax, dword [esp + 0x18]
jmp 0x666dc8
mov eax, dword [esp + 0x1c]
lea ecx, [esp + 0x12]
mov dword [esp + 0x14], eax
mov eax, dword [edi + 0x288]
push ecx
lea ecx, [esp + 0x18]
push ecx
mov eax, dword [eax + 0x34]
push edi
push ebx
call eax
add esp, 0x10
test eax, eax
jne 0x666e33
cmp byte [esp + 0x12], al
je 0x666df4
or dword [esi + 0x74], 1
mov eax, dword [esp + 0x20]
test eax, eax
jg 0x666e0d
mov eax, dword [esp + 0x64]
mov dword [edi + 0x4e4], 1
mov byte [eax], 1
mov eax, dword [esi + 0x74]
and al, 3
cmp al, 2
jne 0x666e31
cmp byte [edi + 0x246], 0
je 0x666e31
push str.we_are_done_reading_and_this_is_set_to_close__stop_send
push ebx
call fcn.0065f950
add esp, 8
and dword [esi + 0x74], 0xfffffffd
xor eax, eax
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x3c
ret