Function at 0x6d9499
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.006d9d22
pop ecx
test al, al
jne 0x6d9c65
mov byte [ebx + 0x254], al
cmp dword [edi + 0x20], 0
jne 0x6d9683
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.006cd0b1
push dword [esi + 0x130]
call dword [0x904f08]
and dword [esi + 0x130], 0
lea eax, [ebp - 0x38]
push 0x20000
push eax
call fcn.006c5319
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.006d9c82
add esp, 0x34
test eax, eax
jne 0x6d9c67
push 1
push dword [ebp - 0xc]
push eax
push str.CONNECT
push ebx
push esi
call fcn.006d4a21
add esp, 0x18
mov dword [ebp - 4], eax
test eax, eax
jne 0x6d9653
cmp dword [ebx + 0xc0], 1
mov ecx, 0x87f4a8
push str.Proxy_Connection
mov eax, 0x87f4ac
mov dword [ebp - 4], 0x7dbcd8
cmovne eax, ecx
push ebx
push esi
mov dword [ebp - 0x18], eax
call fcn.006d3060
test eax, eax
mov ecx, str.Proxy_Connection:_Keep_Alive_r_n
push str.User_Agent
mov eax, 0x7dbcd8
cmovne ecx, eax
push ebx
push esi
mov dword [ebp - 0x14], ecx
call fcn.006d3060
add esp, 0x18
test eax, eax
jne 0x6d95b8
cmp dword [esi + 0x5b0], eax
je 0x6d95b8
mov eax, dword [esi + 0xc90]
mov dword [ebp - 4], eax
push dword [ebp - 0x14]
mov eax, dword [esi + 0xc8c]
mov edx, 0x7dbcd8
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.006c52dc
add esp, 0x20
mov dword [ebp - 4], eax
test eax, eax
jne 0x6d9646
lea eax, [ebp - 0x38]
push eax
push 1
push esi
call fcn.006d2a79
add esp, 0xc
mov dword [ebp - 4], eax
test eax, eax
jne 0x6d9646
lea eax, [ebp - 0x38]
push 0x7f5500
push eax
call fcn.006c52b9
mov dword [ebp - 4], eax
pop ecx
pop ecx
test eax, eax
jne 0x6d9646
push dword [ebp + 0xc]
push eax
lea eax, [esi + 0xce8]
push eax
lea eax, [ebp - 0x38]
push esi
push eax
call fcn.006d2e59
add esp, 0x14
mov dword [ebp - 4], eax
test eax, eax
je 0x6d9653
push str.Failed_sending_CONNECT_to_proxy
push esi
call fcn.006cd005
pop ecx
pop ecx
push dword [ebp - 8]
call dword [0x904f08]
push dword [ebp - 0xc]
call dword [0x904f08]
lea eax, [ebp - 0x38]
push eax
call fcn.006c52fc
mov eax, dword [ebp - 4]
add esp, 0xc
test eax, eax
jne 0x6d9c67
mov dword [edi + 0x20], 1
push 1
push 0
push esi
call fcn.006ce364
add esp, 0xc
test edx, edx
jl 0x6d9c70
jg 0x6d96a2
test eax, eax
je 0x6d9c70
push dword [ebp + 0xc]
push ebx
call fcn.006cd832
pop ecx
pop ecx
test al, al
je 0x6d9c65
and dword [ebp - 8], 0
jmp 0x6d9a78
lea eax, [ebp - 0x10]
push eax
push 1
lea eax, [ebp + 0xb]
push eax
push dword [ebp - 0x1c]
push esi
call fcn.006cd164
add esp, 0x14
mov dword [ebp - 0x18], eax
cmp eax, 0x51
je 0x6d9c65
push esi
call fcn.006d822e
pop ecx
test eax, eax
jne 0x6d9c6c
cmp dword [ebp - 0x18], eax
jne 0x6d9abe
cmp dword [ebp - 0x10], eax
jle 0x6d9a84
cmp dword [edi + 0x10], 2
jne 0x6d9775
mov ecx, dword [edi + 0x18]
mov eax, ecx
mov edx, dword [edi + 0x1c]
or eax, edx
je 0x6d973b
sub ecx, 1
mov dword [edi + 0x18], ecx
sbb edx, 0
mov dword [edi + 0x1c], edx
js 0x6d972f
jg 0x6d9a78
test ecx, ecx
jne 0x6d9a78
mov dword [edi + 0x20], 2
jmp 0x6d9abe
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.006e5fd1
add esp, 0x14
cmp eax, 0xffffffff
jne 0x6d9a78
push str.chunk_reading_DONE_n
push esi
call fcn.006cd0b1
and dword [edi + 0x10], 0
pop ecx
pop ecx
jmp 0x6d9a71
push 1
lea eax, [ebp + 0xb]
push eax
push edi
call fcn.006c52f3
add esp, 0xc
test eax, eax
jne 0x6d9b41
cmp byte [ebp + 0xb], 0xa
jne 0x6d9a78
push edi
call fcn.00545956
push edi
mov dword [ebp - 4], eax
call fcn.0054cf70
push eax
push dword [ebp - 4]
mov dword [ebp - 0xc], eax
push 1
push esi
call fcn.006ccf81
add esp, 0x18
cmp byte [esi + 0x705], 0
jne 0x6d97e6
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.006ccf54
add esp, 0x10
test eax, eax
jne 0x6d9c67
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 0x6d99c9
cmp cl, 0xa
je 0x6d99c9
push 0x11
push eax
push str.WWW_Authenticate:
call fcn.006d020b
add esp, 0xc
test eax, eax
je 0x6d9831
mov eax, dword [esi + 0xf8]
mov dword [ebp - 0xc], eax
cmp eax, 0x191
je 0x6d9857
push 0x13
push dword [ebp - 4]
push str.Proxy_authenticate:
call fcn.006d020b
add esp, 0xc
test eax, eax
je 0x6d989f
mov eax, dword [esi + 0xf8]
mov dword [ebp - 0xc], eax
cmp eax, 0x197
jne 0x6d989f
push dword [ebp - 4]
call fcn.006d316c
mov dword [ebp - 0x18], eax
pop ecx
test eax, eax
je 0x6d9b3a
cmp dword [ebp - 0xc], 0x197
push eax
sete cl
movzx ecx, cl
push ecx
push esi
call fcn.006d4760
push dword [ebp - 0x18]
mov dword [ebp - 0x14], eax
call dword [0x904f08]
mov eax, dword [ebp - 0x14]
add esp, 0x10
test eax, eax
jne 0x6d9c67
jmp 0x6d99bd
push 0xf
push dword [ebp - 4]
push 0x87f534
call fcn.006d020b
add esp, 0xc
test eax, eax
je 0x6d98f3
mov ecx, dword [esi + 0xf8]
lea eax, [ecx - 0xc8]
cmp eax, 0x64
jae 0x6d98d7
push ecx
push str.Ignoring_Content_Length_in_CONNECT__03d_response_n
push esi
call fcn.006cd0b1
jmp 0x6d996d
lea eax, [edi + 0x18]
push eax
mov eax, dword [ebp - 4]
push 0xa
add eax, 0xf
push 0
push eax
call fcn.006dc5b0
add esp, 0x10
jmp 0x6d99bd
push str.close
push str.Connection:
push dword [ebp - 4]
call fcn.006d30ca
add esp, 0xc
test al, al
jne 0x6d99b9
push 0x12
push dword [ebp - 4]
push str.Transfer_Encoding:
call fcn.006d020b
add esp, 0xc
test eax, eax
je 0x6d9972
mov ecx, dword [esi + 0xf8]
lea eax, [ecx - 0xc8]
cmp eax, 0x64
jae 0x6d993f
push ecx
push str.Ignoring_Transfer_Encoding_in_CONNECT__03d_response_n
jmp 0x6d98cc
push str.chunked
push str.Transfer_Encoding:
push dword [ebp - 4]
call fcn.006d30ca
add esp, 0xc
test al, al
je 0x6d99bd
push str.CONNECT_responded_chunked_n
push esi
call fcn.006cd0b1
push esi
mov byte [edi + 0x24], 1
call fcn.006e5fac
add esp, 0xc
jmp 0x6d99bd
push str.close
push str.Proxy_Connection:
push dword [ebp - 4]
call fcn.006d30ca
add esp, 0xc
test al, al
jne 0x6d99b9
lea eax, [esi + 0xf8]
push eax
lea eax, [ebp - 0x20]
push eax
push str.HTTP_1._d__d
push dword [ebp - 4]
call fcn.005771af
add esp, 0x10
cmp eax, 2
jne 0x6d99bd
mov eax, dword [esi + 0xf8]
mov dword [esi + 0xccc], eax
jmp 0x6d99bd
mov byte [edi + 0x25], 1
push edi
call fcn.006c5331
pop ecx
jmp 0x6d9a78
cmp dword [esi + 0xf8], 0x197
jne 0x6d9a5b
cmp byte [esi + 0xcb9], 0
jne 0x6d9a5b
mov eax, dword [edi + 0x18]
or eax, dword [edi + 0x1c]
mov dword [edi + 0x10], 2
je 0x6d9a07
push dword [edi + 0x1c]
push dword [edi + 0x18]
push str.Ignore__I64d_bytes_of_response_body_n
push esi
call fcn.006cd0b1
add esp, 0x10
jmp 0x6d9a5f
cmp byte [edi + 0x24], 0
je 0x6d9a5b
push str.Ignore_chunked_response_body_n
push esi
call fcn.006cd0b1
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.006e5fd1
add esp, 0x1c
cmp eax, 0xffffffff
jne 0x6d9a5f
push str.chunk_reading_DONE_n
push esi
call fcn.006cd0b1
pop ecx
pop ecx
mov dword [edi + 0x20], 2
and dword [edi + 0x10], 0
cmp dword [edi + 0x10], 0
jne 0x6d96be
mov eax, dword [edi + 0x18]
or eax, dword [edi + 0x1c]
jne 0x6d9a78
mov dword [edi + 0x20], 2
cmp dword [edi + 0x10], 0
jne 0x6d96be
jmp 0x6d9ac2
cmp dword [esi + 0x178], 0
je 0x6d9aaa
cmp dword [esi + 0x990], 0
je 0x6d9aaa
push str.Proxy_CONNECT_connection_closed_n
push esi
mov byte [ebx + 0x254], 1
call fcn.006cd0b1
jmp 0x6d9abc
push str.Proxy_CONNECT_aborted
push esi
mov dword [ebp - 8], 1
call fcn.006cd005
pop ecx
pop ecx
and dword [edi + 0x10], 0
push esi
call fcn.006d822e
pop ecx
test eax, eax
jne 0x6d9c6c
cmp dword [ebp - 8], eax
jne 0x6d9b4e
mov eax, dword [esi + 0xccc]
sub eax, 0xc8
cmp eax, 0x64
jb 0x6d9b01
push esi
call fcn.006d321e
pop ecx
test eax, eax
jne 0x6d9c67
cmp byte [ebx + 0x255], al
je 0x6d9b01
mov byte [edi + 0x25], 1
cmp byte [edi + 0x25], 0
je 0x6d9b10
cmp dword [esi + 0x130], 0
jne 0x6d9b55
mov eax, dword [esi + 0x130]
test eax, eax
je 0x6d9b74
cmp dword [edi + 0x20], 2
jne 0x6d9b30
push 1
push esi
call fcn.006d9f49
mov eax, dword [esi + 0x130]
pop ecx
pop ecx
test eax, eax
jne 0x6d94d4
jmp 0x6d9b74
push 0x1b
jmp 0x6d9c7f
push str.CONNECT_response_too_large_
push esi
call fcn.006cd005
pop ecx
pop ecx
push 0x38
jmp 0x6d9c7f
mov eax, dword [ebp + 0xc]
push dword [ebx + eax*4 + 0x158]
push ebx
push esi
call fcn.006cd7c0
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 0x6d9c1a
cmp byte [edi + 0x25], 0
je 0x6d9bb4
cmp dword [esi + 0x130], 0
je 0x6d9bb4
push str.Connect_me_again_please_n
push esi
mov byte [ebx + 0x254], 1
call fcn.006cd0b1
push esi
call fcn.006d9f1a
add esp, 0xc
jmp 0x6d9bee
push dword [esi + 0x130]
call dword [0x904f08]
and dword [esi + 0x130], 0
push 2
push ebx
call fcn.006cd884
mov eax, dword [ebp + 0xc]
push dword [ebx + eax*4 + 0x158]
push ebx
push esi
call fcn.006cd7c0
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 0x6d9c65
push edi
call fcn.006c52fc
push dword [esi + 0xf8]
push str.Received_HTTP_code__d_from_proxy_after_CONNECT
push esi
call fcn.006cd005
add esp, 0x10
jmp 0x6d9b4e
mov dword [edi + 0x20], 2
push dword [esi + 0xc8c]
call dword [0x904f08]
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.006cd0b1
mov byte [esi + 0x147], 0
push edi
mov byte [ebx + 0x262], 0
call fcn.006c52fc
add esp, 0x14
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret
push 0x2a
jmp 0x6d9c7f
push str.Proxy_CONNECT_aborted_due_to_timeout
push esi
call fcn.006cd005
pop ecx
pop ecx
push 0x1c
pop eax
jmp 0x6d9c67