Function at 0x6b8030
Capabilities:
Check http status code

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x38
mov eax, dword [ebp + 0xc]
and dword [ebp - 0x20], 0
push ebx
push esi
mov esi, dword [ebp + 8]
push edi
mov ebx, dword [esi + 0xc]
push ebx
mov eax, dword [ebx + eax*4 + 0x158]
mov edi, dword [ebx + 0x4d8]
mov dword [ebp - 0x1c], eax
call fcn.006b88b9
pop ecx
test al, al
jne 0x6b87fc
mov byte [ebx + 0x254], al
cmp dword [edi + 0x20], 0
jne 0x6b821a
push dword [ebp + 0x14]
and dword [ebp - 0xc], 0
push dword [ebp + 0x10]
and dword [ebp - 8], 0
push str.Establish_HTTP_proxy_tunnel_to__s:_d_n
push esi
call fcn.006abe00
push dword [esi + 0x130]
call dword [0x8d5e60]
and dword [esi + 0x130], 0
lea eax, [ebp - 0x38]
push 0x20000
push eax
call fcn.006a4100
lea eax, [ebp - 8]
push eax
lea eax, [ebp - 0xc]
push eax
push dword [ebp + 0x14]
push dword [ebp + 0x10]
push ebx
push esi
call fcn.006b8819
add esp, 0x34
test eax, eax
jne 0x6b87fe
push 1
push dword [ebp - 0xc]
push eax
push str.CONNECT
push ebx
push esi
call fcn.006b35ba
add esp, 0x18
mov dword [ebp - 4], eax
test eax, eax
jne 0x6b81ea
cmp dword [ebx + 0xc0], 1
mov ecx, 0x854e30
push str.Proxy_Connection
mov eax, 0x854e34
mov dword [ebp - 4], 0x7b6c78
cmovne eax, ecx
push ebx
push esi
mov dword [ebp - 0x18], eax
call fcn.006b1bf9
test eax, eax
mov ecx, str.Proxy_Connection:_Keep_Alive_r_n
push str.User_Agent
mov eax, 0x7b6c78
cmovne ecx, eax
push ebx
push esi
mov dword [ebp - 0x14], ecx
call fcn.006b1bf9
add esp, 0x18
test eax, eax
jne 0x6b814f
cmp dword [esi + 0x5b0], eax
je 0x6b814f
mov eax, dword [esi + 0xc90]
mov dword [ebp - 4], eax
push dword [ebp - 0x14]
mov eax, dword [esi + 0xc8c]
mov edx, 0x7b6c78
push dword [ebp - 4]
test eax, eax
mov ecx, edx
cmovne ecx, eax
cmp dword [ebp - 8], 0
push ecx
mov eax, edx
cmovne eax, dword [ebp - 8]
push eax
push dword [ebp - 0x18]
lea eax, [ebp - 0x38]
push dword [ebp - 0xc]
push str.CONNECT__s_HTTP__s_r_n_s_s_s_s
push eax
call fcn.006a40c3
add esp, 0x20
mov dword [ebp - 4], eax
test eax, eax
jne 0x6b81dd
lea eax, [ebp - 0x38]
push eax
push 1
push esi
call fcn.006b1612
add esp, 0xc
mov dword [ebp - 4], eax
test eax, eax
jne 0x6b81dd
lea eax, [ebp - 0x38]
push 0x7ce518
push eax
call fcn.006a40a0
mov dword [ebp - 4], eax
pop ecx
pop ecx
test eax, eax
jne 0x6b81dd
push dword [ebp + 0xc]
push eax
lea eax, [esi + 0xce8]
push eax
lea eax, [ebp - 0x38]
push esi
push eax
call fcn.006b19f2
add esp, 0x14
mov dword [ebp - 4], eax
test eax, eax
je 0x6b81ea
push str.Failed_sending_CONNECT_to_proxy
push esi
call fcn.006abd54
pop ecx
pop ecx
push dword [ebp - 8]
call dword [0x8d5e60]
push dword [ebp - 0xc]
call dword [0x8d5e60]
lea eax, [ebp - 0x38]
push eax
call fcn.006a40e3
mov eax, dword [ebp - 4]
add esp, 0xc
test eax, eax
jne 0x6b87fe
mov dword [edi + 0x20], 1
push 1
push 0
push esi
call fcn.006ad066
add esp, 0xc
test edx, edx
jl 0x6b8807
jg 0x6b8239
test eax, eax
je 0x6b8807
push dword [ebp + 0xc]
push ebx
call fcn.006ac571
pop ecx
pop ecx
test al, al
je 0x6b87fc
and dword [ebp - 8], 0
jmp 0x6b860f
lea eax, [ebp - 0x10]
push eax
push 1
lea eax, [ebp + 0xb]
push eax
push dword [ebp - 0x1c]
push esi
call fcn.006abeb3
add esp, 0x14
mov dword [ebp - 0x18], eax
cmp eax, 0x51
je 0x6b87fc
push esi
call fcn.006b6dc5
pop ecx
test eax, eax
jne 0x6b8803
cmp dword [ebp - 0x18], eax
jne 0x6b8655
cmp dword [ebp - 0x10], eax
jle 0x6b861b
cmp dword [edi + 0x10], 2
jne 0x6b830c
mov ecx, dword [edi + 0x18]
mov eax, ecx
mov edx, dword [edi + 0x1c]
or eax, edx
je 0x6b82d2
sub ecx, 1
mov dword [edi + 0x18], ecx
sbb edx, 0
mov dword [edi + 0x1c], edx
js 0x6b82c6
jg 0x6b860f
test ecx, ecx
jne 0x6b860f
mov dword [edi + 0x20], 2
jmp 0x6b8655
and dword [ebp - 0x18], 0
lea eax, [ebp - 0x24]
push eax
lea eax, [ebp - 0x18]
push eax
push 1
lea eax, [ebp + 0xb]
push eax
push esi
call fcn.006c4648
add esp, 0x14
cmp eax, 0xffffffff
jne 0x6b860f
push str.chunk_reading_DONE_n
push esi
call fcn.006abe00
and dword [edi + 0x10], 0
pop ecx
pop ecx
jmp 0x6b8608
push 1
lea eax, [ebp + 0xb]
push eax
push edi
call fcn.006a40da
add esp, 0xc
test eax, eax
jne 0x6b86d8
cmp byte [ebp + 0xb], 0xa
jne 0x6b860f
push edi
call fcn.00531d8c
push edi
mov dword [ebp - 4], eax
call fcn.005393a6
push eax
push dword [ebp - 4]
mov dword [ebp - 0xc], eax
push 1
push esi
call fcn.006abcd0
add esp, 0x18
cmp byte [esi + 0x705], 0
jne 0x6b837d
push dword [ebp - 0xc]
xor eax, eax
cmp byte [esi + 0x6ec], al
push dword [ebp - 4]
setne al
add eax, 2
push eax
push esi
call fcn.006abca3
add esp, 0x10
test eax, eax
jne 0x6b87fe
mov eax, dword [ebp - 0xc]
cdq
add dword [esi + 0xce0], eax
mov eax, dword [ebp - 4]
adc dword [esi + 0xce4], edx
mov cl, byte [eax]
cmp cl, 0xd
je 0x6b8560
cmp cl, 0xa
je 0x6b8560
push 0x11
push eax
push str.WWW_Authenticate:
call fcn.006aee38
add esp, 0xc
test eax, eax
je 0x6b83c8
mov eax, dword [esi + 0xf8]
mov dword [ebp - 0xc], eax
cmp eax, 0x191
je 0x6b83ee
push 0x13
push dword [ebp - 4]
push str.Proxy_authenticate:
call fcn.006aee38
add esp, 0xc
test eax, eax
je 0x6b8436
mov eax, dword [esi + 0xf8]
mov dword [ebp - 0xc], eax
cmp eax, 0x197
jne 0x6b8436
push dword [ebp - 4]
call fcn.006b1d05
mov dword [ebp - 0x18], eax
pop ecx
test eax, eax
je 0x6b86d1
cmp dword [ebp - 0xc], 0x197
push eax
sete cl
movzx ecx, cl
push ecx
push esi
call fcn.006b32f9
push dword [ebp - 0x18]
mov dword [ebp - 0x14], eax
call dword [0x8d5e60]
mov eax, dword [ebp - 0x14]
add esp, 0x10
test eax, eax
jne 0x6b87fe
jmp 0x6b8554
push 0xf
push dword [ebp - 4]
push 0x854ebc
call fcn.006aee38
add esp, 0xc
test eax, eax
je 0x6b848a
mov ecx, dword [esi + 0xf8]
lea eax, [ecx - 0xc8]
cmp eax, 0x64
jae 0x6b846e
push ecx
push str.Ignoring_Content_Length_in_CONNECT__03d_response_n
push esi
call fcn.006abe00
jmp 0x6b8504
lea eax, [edi + 0x18]
push eax
mov eax, dword [ebp - 4]
push 0xa
add eax, 0xf
push 0
push eax
call fcn.006bb0db
add esp, 0x10
jmp 0x6b8554
push str.close
push str.Connection:
push dword [ebp - 4]
call fcn.006b1c63
add esp, 0xc
test al, al
jne 0x6b8550
push 0x12
push dword [ebp - 4]
push str.Transfer_Encoding:
call fcn.006aee38
add esp, 0xc
test eax, eax
je 0x6b8509
mov ecx, dword [esi + 0xf8]
lea eax, [ecx - 0xc8]
cmp eax, 0x64
jae 0x6b84d6
push ecx
push str.Ignoring_Transfer_Encoding_in_CONNECT__03d_response_n
jmp 0x6b8463
push str.chunked
push str.Transfer_Encoding:
push dword [ebp - 4]
call fcn.006b1c63
add esp, 0xc
test al, al
je 0x6b8554
push str.CONNECT_responded_chunked_n
push esi
call fcn.006abe00
push esi
mov byte [edi + 0x24], 1
call fcn.006c4623
add esp, 0xc
jmp 0x6b8554
push str.close
push str.Proxy_Connection:
push dword [ebp - 4]
call fcn.006b1c63
add esp, 0xc
test al, al
jne 0x6b8550
lea eax, [esi + 0xf8]
push eax
lea eax, [ebp - 0x20]
push eax
push str.HTTP_1._d__d
push dword [ebp - 4]
call fcn.005635ea
add esp, 0x10
cmp eax, 2
jne 0x6b8554
mov eax, dword [esi + 0xf8]
mov dword [esi + 0xccc], eax
jmp 0x6b8554
mov byte [edi + 0x25], 1
push edi
call fcn.006a4118
pop ecx
jmp 0x6b860f
cmp dword [esi + 0xf8], 0x197
jne 0x6b85f2
cmp byte [esi + 0xcb9], 0
jne 0x6b85f2
mov eax, dword [edi + 0x18]
or eax, dword [edi + 0x1c]
mov dword [edi + 0x10], 2
je 0x6b859e
push dword [edi + 0x1c]
push dword [edi + 0x18]
push str.Ignore__I64d_bytes_of_response_body_n
push esi
call fcn.006abe00
add esp, 0x10
jmp 0x6b85f6
cmp byte [edi + 0x24], 0
je 0x6b85f2
push str.Ignore_chunked_response_body_n
push esi
call fcn.006abe00
mov ecx, dword [ebp - 4]
mov byte [esi + 0x147], 1
lea eax, [ecx + 1]
cmp byte [eax], 0xa
cmove ecx, eax
lea eax, [ebp - 0x28]
push eax
lea eax, [ebp - 0x10]
push eax
push 1
lea eax, [ecx + 1]
push eax
push esi
call fcn.006c4648
add esp, 0x1c
cmp eax, 0xffffffff
jne 0x6b85f6
push str.chunk_reading_DONE_n
push esi
call fcn.006abe00
pop ecx
pop ecx
mov dword [edi + 0x20], 2
and dword [edi + 0x10], 0
cmp dword [edi + 0x10], 0
jne 0x6b8255
mov eax, dword [edi + 0x18]
or eax, dword [edi + 0x1c]
jne 0x6b860f
mov dword [edi + 0x20], 2
cmp dword [edi + 0x10], 0
jne 0x6b8255
jmp 0x6b8659
cmp dword [esi + 0x178], 0
je 0x6b8641
cmp dword [esi + 0x990], 0
je 0x6b8641
push str.Proxy_CONNECT_connection_closed_n
push esi
mov byte [ebx + 0x254], 1
call fcn.006abe00
jmp 0x6b8653
push str.Proxy_CONNECT_aborted
push esi
mov dword [ebp - 8], 1
call fcn.006abd54
pop ecx
pop ecx
and dword [edi + 0x10], 0
push esi
call fcn.006b6dc5
pop ecx
test eax, eax
jne 0x6b8803
cmp dword [ebp - 8], eax
jne 0x6b86e5
mov eax, dword [esi + 0xccc]
sub eax, 0xc8
cmp eax, 0x64
jb 0x6b8698
push esi
call fcn.006b1db7
pop ecx
test eax, eax
jne 0x6b87fe
cmp byte [ebx + 0x255], al
je 0x6b8698
mov byte [edi + 0x25], 1
cmp byte [edi + 0x25], 0
je 0x6b86a7
cmp dword [esi + 0x130], 0
jne 0x6b86ec
mov eax, dword [esi + 0x130]
test eax, eax
je 0x6b870b
cmp dword [edi + 0x20], 2
jne 0x6b86c7
push 1
push esi
call fcn.006b8ae0
mov eax, dword [esi + 0x130]
pop ecx
pop ecx
test eax, eax
jne 0x6b806b
jmp 0x6b870b
push 0x1b
jmp 0x6b8816
push str.CONNECT_response_too_large_
push esi
call fcn.006abd54
pop ecx
pop ecx
push 0x38
jmp 0x6b8816
mov eax, dword [ebp + 0xc]
push dword [ebx + eax*4 + 0x158]
push ebx
push esi
call fcn.006ac4ff
mov eax, dword [ebp + 0xc]
add esp, 0xc
or dword [ebx + eax*4 + 0x158], 0xffffffff
mov eax, dword [esi + 0xccc]
sub eax, 0xc8
cmp eax, 0x64
jb 0x6b87b1
cmp byte [edi + 0x25], 0
je 0x6b874b
cmp dword [esi + 0x130], 0
je 0x6b874b
push str.Connect_me_again_please_n
push esi
mov byte [ebx + 0x254], 1
call fcn.006abe00
push esi
call fcn.006b8ab1
add esp, 0xc
jmp 0x6b8785
push dword [esi + 0x130]
call dword [0x8d5e60]
and dword [esi + 0x130], 0
push 2
push ebx
call fcn.006ac5c3
mov eax, dword [ebp + 0xc]
push dword [ebx + eax*4 + 0x158]
push ebx
push esi
call fcn.006ac4ff
mov eax, dword [ebp + 0xc]
add esp, 0x18
or dword [ebx + eax*4 + 0x158], 0xffffffff
and dword [edi + 0x20], 0
cmp byte [ebx + 0x254], 0
jne 0x6b87fc
push edi
call fcn.006a40e3
push dword [esi + 0xf8]
push str.Received_HTTP_code__d_from_proxy_after_CONNECT
push esi
call fcn.006abd54
add esp, 0x10
jmp 0x6b86e5
mov dword [edi + 0x20], 2
push dword [esi + 0xc8c]
call dword [0x8d5e60]
push dword [esi + 0xccc]
and dword [esi + 0xc8c], 0
push str.Proxy_replied__d_to_CONNECT_request_n
push esi
mov word [esi + 0x994], 1
call fcn.006abe00
mov byte [esi + 0x147], 0
push edi
mov byte [ebx + 0x262], 0
call fcn.006a40e3
add esp, 0x14
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret
push 0x2a
jmp 0x6b8816
push str.Proxy_CONNECT_aborted_due_to_timeout
push esi
call fcn.006abd54
pop ecx
pop ecx
push 0x1c
pop eax
jmp 0x6b87fe