Function at 0x9a8a50
Capabilities:
Check http status code

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x2c
mov eax, dword [ebp + 8]
push ebx
push edi
mov edi, dword [esi + 0xc]
xor ecx, ecx
mov dword [ebp - 0x24], ecx
mov edx, dword [edi + eax*4 + 0x148]
mov eax, dword [esi + 0x134]
mov ebx, dword [edi + 0x5a0]
push edi
mov dword [ebp - 8], edi
mov dword [ebp - 0x20], edx
mov dword [ebp - 0x14], eax
call fcn.009a8790
add esp, 4
test eax, eax
jne 0x9a9527
mov dword [edi + 0x29c], ecx
jmp 0x9a8aa0
cmp dword [ebx + 0x1f0], 0
jne 0x9a8c9b
mov ecx, dword [ebp + 0x10]
mov edx, dword [ebp + 0xc]
push ecx
push edx
xor eax, eax
push str.Establish_HTTP_proxy_tunnel_to__s:_d
push esi
lea edi, [ebx + 0x1cc]
mov dword [ebp - 0xc], eax
mov dword [ebp - 0x10], eax
call fcn.0097bd80
mov eax, dword [esi + 0x128]
push eax
call dword [0x9fb340]
push 0x100000
push edi
mov dword [esi + 0x128], 0
call fcn.0097f9d0
mov eax, dword [ebp + 0x10]
mov edi, dword [ebp - 8]
lea ecx, [ebp - 0x10]
push ecx
lea edx, [ebp - 0xc]
push edx
push eax
mov eax, dword [ebp + 0xc]
push esi
call fcn.009a89a0
add esp, 0x2c
test eax, eax
jne 0x9a9529
mov ecx, dword [ebp - 0xc]
push 1
push ecx
push eax
push str.CONNECT
mov edx, edi
push edx
push esi
call fcn.0099e990
mov edi, eax
add esp, 0x18
test edi, edi
jne 0x9a8c6f
mov eax, dword [ebp - 8]
cmp dword [eax + 0xb4], 1
mov edx, 0x9e942c
je 0x9a8b4b
mov edx, 0x9e9430
mov ecx, dword [esi + 0xe2c]
test ecx, ecx
jne 0x9a8b5a
mov ecx, 0x9c7939
mov eax, dword [ebp - 0x10]
test eax, eax
jne 0x9a8b66
mov eax, 0x9c7939
push ecx
mov ecx, dword [ebp - 0xc]
push eax
push edx
push ecx
lea eax, [ebx + 0x1cc]
push str.CONNECT__s_HTTP__s_r_n_s_s
push eax
call fcn.0097fb70
mov edi, eax
add esp, 0x18
test edi, edi
jne 0x9a8c61
mov edx, dword [ebp - 8]
push 0xa
push str.User_Agent
push edx
push esi
call fcn.0099e230
add esp, 0x10
test eax, eax
jne 0x9a8bcc
mov eax, dword [esi + 0x634]
test eax, eax
je 0x9a8bcc
push eax
lea eax, [ebx + 0x1cc]
push str.User_Agent:__s_r_n
push eax
call fcn.0097fb70
mov edi, eax
add esp, 0xc
test edi, edi
jne 0x9a8c61
mov eax, dword [ebp - 8]
push 0x10
push str.Proxy_Connection
push eax
push esi
call fcn.0099e230
add esp, 0x10
test eax, eax
jne 0x9a8c00
push 0x1e
lea eax, [ebx + 0x1cc]
push str.Proxy_Connection:_Keep_Alive_r_n
push eax
call fcn.0097fb00
mov edi, eax
add esp, 0xc
test edi, edi
jne 0x9a8c61
lea eax, [ebx + 0x1cc]
push eax
push 1
push esi
call fcn.0099f640
mov edi, eax
add esp, 0xc
test edi, edi
jne 0x9a8c61
push 2
lea eax, [ebx + 0x1cc]
push 0x9c5a18
push eax
call fcn.0097fb00
mov edi, eax
add esp, 0xc
test edi, edi
jne 0x9a8c61
mov ecx, dword [ebp + 8]
push ecx
push eax
push eax
lea edx, [esi + 0xf00]
push edx
lea eax, [ebx + 0x1cc]
push esi
push eax
call fcn.0099ef30
mov edi, eax
add esp, 0x18
mov dword [ebx + 0x1e0], 0
test edi, edi
je 0x9a8c6f
push str.Failed_sending_CONNECT_to_proxy
push esi
call fcn.0097bdf0
add esp, 8
mov eax, dword [ebp - 0x10]
push eax
call dword [0x9fb340]
mov ecx, dword [ebp - 0xc]
push ecx
call dword [0x9fb340]
add esp, 8
test edi, edi
jne 0x9a9353
mov edi, dword [ebp - 8]
mov dword [ebx + 0x1f0], 1
push 1
push 0
push esi
call fcn.00981ce0
add esp, 0xc
test edx, edx
jl 0x9a935b
jg 0x9a8cba
test eax, eax
je 0x9a935b
mov edx, dword [ebp + 8]
push edx
push edi
call fcn.00982c10
add esp, 8
test eax, eax
jne 0x9a8cdb
mov eax, dword [ebp - 0x14]
cmp dword [eax + 0x1a0], 0
je 0x9a9527
mov ecx, dword [ebp - 0x14]
cmp dword [ecx + 0x1a0], 1
jne 0x9a8d36
cmp dword [ebx + 0x1dc], 0
jne 0x9a9374
mov edx, dword [esi + 0xa30]
lea eax, [ebp - 0x1c]
mov dword [esi + 0x130], edx
mov ecx, dword [esi + 0x554]
push eax
push ecx
push esi
call fcn.009a6750
add esp, 0xc
test eax, eax
jne 0x9a9529
mov edx, dword [ebp - 0x1c]
mov dword [ebx + 0x1dc], edx
test edx, edx
jne 0x9a9374
mov eax, dword [ebp - 0x14]
mov dword [eax + 0x1a0], edx
cmp dword [ebx + 0x1e4], 0
mov dword [ebp - 0xc], 0
je 0x9a8deb
lea ebx, [ebx]
mov eax, dword [ebp - 0x20]
lea ecx, [ebp - 0x18]
push ecx
push 1
lea edx, [ebp - 1]
push edx
push eax
push esi
call fcn.0097bc70
mov edi, eax
add esp, 0x14
cmp edi, 0x51
je 0x9a9527
push esi
call fcn.0098c450
add esp, 4
test eax, eax
jne 0x9a93c5
xor edx, edx
cmp edi, edx
jne 0x9a8de2
cmp dword [ebp - 0x18], edx
jle 0x9a92ea
cmp dword [ebx + 0x1e4], 2
jne 0x9a8ecc
mov eax, dword [ebx + 0x1e8]
mov ecx, dword [ebx + 0x1ec]
mov edi, eax
or edi, ecx
je 0x9a8e8c
sub eax, 1
sbb ecx, edx
mov dword [ebx + 0x1e8], eax
mov dword [ebx + 0x1ec], ecx
cmp ecx, edx
jl 0x9a8dd8
jg 0x9a9260
cmp eax, edx
ja 0x9a9260
mov dword [ebx + 0x1f0], 2
mov dword [ebx + 0x1e4], edx
mov edi, dword [ebp - 8]
push esi
call fcn.0098c450
add esp, 4
test eax, eax
jne 0x9a93c5
cmp dword [ebp - 0xc], eax
jne 0x9a93de
mov eax, 0x51eb851f
imul dword [esi + 0xee4]
sar edx, 5
mov eax, edx
shr eax, 0x1f
add eax, edx
cmp eax, 2
je 0x9a8e42
push esi
call fcn.009a2150
add esp, 4
test eax, eax
jne 0x9a9529
cmp dword [edi + 0x2a4], eax
je 0x9a8e42
mov dword [ebx + 0x1f8], 1
cmp dword [ebx + 0x1f8], 0
je 0x9a8e58
cmp dword [esi + 0x128], 0
jne 0x9a93f4
cmp dword [esi + 0x128], 0
je 0x9a9417
cmp dword [ebx + 0x1f0], 2
jne 0x9a8e7a
push 1
mov eax, esi
call fcn.009a8820
add esp, 4
cmp dword [esi + 0x128], 0
jne 0x9a8aa0
jmp 0x9a9417
lea ecx, [ebp - 0x28]
push ecx
mov dword [ebp - 0x10], edx
lea edx, [ebp - 0x10]
push edx
push 1
lea eax, [ebp - 1]
push eax
push esi
call fcn.009ae5c0
add esp, 0x14
cmp eax, 0xffffffff
jne 0x9a9260
push str.chunk_reading_DONE
push esi
call fcn.0097bd80
add esp, 8
mov dword [ebx + 0x1e4], 0
jmp 0x9a9256
push 1
lea ecx, [ebp - 1]
lea eax, [ebx + 0x1bc]
push ecx
push eax
call fcn.0097fb00
add esp, 0xc
test eax, eax
jne 0x9a93d0
cmp byte [ebp - 1], 0xa
jne 0x9a9260
inc dword [ebx + 0x1e0]
lea eax, [ebx + 0x1bc]
push eax
call fcn.0097fb90
mov edi, eax
lea eax, [ebx + 0x1bc]
push eax
call fcn.009b2830
push eax
push edi
push 1
push esi
mov dword [ebp - 0x10], eax
call fcn.0097bce0
add esp, 0x18
cmp dword [esi + 0x830], 0
jne 0x9a8f64
mov edx, dword [ebx + 0x1e0]
mov ecx, dword [ebp - 0x10]
xor eax, eax
cmp dword [esi + 0x7cc], eax
push ecx
setne al
dec edx
neg edx
sbb edx, edx
and edx, 0xfffffffc
add edx, 4
push edi
or eax, edx
or eax, 0xa
push eax
push esi
call fcn.0097c150
add esp, 0x10
test eax, eax
jne 0x9a9529
mov eax, dword [ebp - 0x10]
cdq
add dword [esi + 0xef8], eax
adc dword [esi + 0xefc], edx
mov al, byte [edi]
cmp al, 0xd
je 0x9a91f2
cmp al, 0xa
je 0x9a91f2
push 0x11
push str.WWW_Authenticate:
push edi
call fcn.009844b0
add esp, 0xc
test eax, eax
je 0x9a8fa7
mov eax, dword [esi + 0xf0]
cmp eax, 0x191
je 0x9a8fc8
push 0x13
push str.Proxy_authenticate:
push edi
call fcn.009844b0
add esp, 0xc
test eax, eax
je 0x9a901f
mov eax, dword [esi + 0xf0]
cmp eax, 0x197
jne 0x9a901f
xor edx, edx
cmp eax, 0x197
sete dl
push edi
mov dword [ebp - 0x10], edx
call fcn.0099e2a0
mov edi, eax
add esp, 4
test edi, edi
je 0x9a93e9
mov eax, dword [ebp - 0x10]
push edi
push eax
push esi
call fcn.0099eb00
push edi
mov dword [ebp - 0x10], eax
call dword [0x9fb340]
mov eax, dword [ebp - 0x10]
add esp, 0x10
test eax, eax
jne 0x9a9529
lea eax, [ebx + 0x1bc]
push eax
call fcn.0097fae0
add esp, 4
jmp 0x9a9260
push 0xf
push str.Content_Length:
push edi
call fcn.009844b0
add esp, 0xc
test eax, eax
je 0x9a909d
mov ecx, dword [esi + 0xf0]
mov eax, 0x51eb851f
imul ecx
sar edx, 5
mov eax, edx
shr eax, 0x1f
add eax, edx
cmp eax, 2
jne 0x9a9072
push ecx
push str.Ignoring_Content_Length_in_CONNECT__03d_response
push esi
call fcn.0097bd80
lea eax, [ebx + 0x1bc]
add esp, 0xc
push eax
call fcn.0097fae0
add esp, 4
jmp 0x9a9260
lea ecx, [ebx + 0x1e8]
push ecx
push 0xa
push 0
add edi, 0xf
push edi
call fcn.009ad210
lea eax, [ebx + 0x1bc]
add esp, 0x10
push eax
call fcn.0097fae0
add esp, 4
jmp 0x9a9260
push 5
push str.close
push 0xb
push str.Connection:
push edi
call fcn.0099f1f0
add esp, 0x14
test eax, eax
je 0x9a90d6
lea eax, [ebx + 0x1bc]
push eax
mov dword [ebx + 0x1f8], 1
call fcn.0097fae0
add esp, 4
jmp 0x9a9260
push 0x12
push str.Transfer_Encoding:
push edi
call fcn.009844b0
add esp, 0xc
test eax, eax
je 0x9a917e
mov ecx, dword [esi + 0xf0]
mov eax, 0x51eb851f
imul ecx
sar edx, 5
mov eax, edx
shr eax, 0x1f
add eax, edx
cmp eax, 2
jne 0x9a912d
push ecx
push str.Ignoring_Transfer_Encoding_in_CONNECT__03d_response
push esi
call fcn.0097bd80
lea eax, [ebx + 0x1bc]
add esp, 0xc
push eax
call fcn.0097fae0
add esp, 4
jmp 0x9a9260
push 7
push str.chunked
push 0x12
push str.Transfer_Encoding:
push edi
call fcn.0099f1f0
add esp, 0x14
test eax, eax
je 0x9a91e1
push str.CONNECT_responded_chunked
push esi
call fcn.0097bd80
push esi
mov dword [ebx + 0x1f4], 1
call fcn.009ae590
lea eax, [ebx + 0x1bc]
add esp, 0xc
push eax
call fcn.0097fae0
add esp, 4
jmp 0x9a9260
push 5
push str.close
push 0x11
push str.Proxy_Connection:
push edi
call fcn.0099f1f0
add esp, 0x14
test eax, eax
je 0x9a91b7
lea eax, [ebx + 0x1bc]
push eax
mov dword [ebx + 0x1f8], 1
call fcn.0097fae0
add esp, 4
jmp 0x9a9260
lea eax, [esi + 0xf0]
push eax
lea ecx, [ebp - 0x24]
push ecx
push str.HTTP_1._d__d
push edi
call fcn.009b9e89
add esp, 0x10
cmp eax, 2
jne 0x9a91e1
mov edx, dword [esi + 0xf0]
mov dword [esi + 0xee4], edx
lea eax, [ebx + 0x1bc]
push eax
call fcn.0097fae0
add esp, 4
jmp 0x9a9260
cmp dword [esi + 0xf0], 0x197
jne 0x9a92db
cmp dword [esi + 0xe78], 0
jne 0x9a92db
mov eax, dword [ebx + 0x1e8]
mov ecx, dword [ebx + 0x1ec]
mov edx, eax
or edx, ecx
mov dword [ebx + 0x1e4], 2
je 0x9a9272
push ecx
push eax
push str.Ignore__I64d_bytes_of_response_body
push esi
call fcn.0097bd80
add esp, 0x10
cmp dword [ebx + 0x1e4], 0
jne 0x9a8d50
mov edx, dword [ebx + 0x1e8]
or edx, dword [ebx + 0x1ec]
jne 0x9a9260
mov dword [ebx + 0x1f0], 2
cmp dword [ebx + 0x1e4], 0
jne 0x9a8d50
jmp 0x9a8de8
cmp dword [ebx + 0x1f4], 0
je 0x9a92db
push str.Ignore_chunked_response_body
push esi
call fcn.0097bd80
add esp, 8
mov dword [esi + 0x148], 1
cmp byte [edi + 1], 0xa
jne 0x9a929a
inc edi
lea eax, [ebp - 0x2c]
push eax
lea ecx, [ebp - 0x18]
push ecx
push 1
inc edi
push edi
push esi
call fcn.009ae5c0
add esp, 0x14
cmp eax, 0xffffffff
jne 0x9a923b
push str.chunk_reading_DONE
push esi
call fcn.0097bd80
add esp, 8
mov dword [ebx + 0x1e4], 0
mov dword [ebx + 0x1f0], 2
jmp 0x9a9248
mov dword [ebx + 0x1e4], 0
jmp 0x9a9248
cmp dword [esi + 0x190], edx
je 0x9a932c
cmp dword [esi + 0xaf0], edx
je 0x9a932c
cmp dword [esi + 0xe2c], edx
je 0x9a932c
mov edi, dword [ebp - 8]
push str.Proxy_CONNECT_connection_closed
push esi
mov dword [edi + 0x29c], 1
call fcn.0097bd80
add esp, 8
mov dword [ebx + 0x1e4], 0
jmp 0x9a8deb
push str.Proxy_CONNECT_aborted
push esi
mov dword [ebp - 0xc], 1
call fcn.0097bdf0
mov edi, dword [ebp - 8]
add esp, 8
mov dword [ebx + 0x1e4], 0
jmp 0x9a8deb
mov eax, edi
pop edi
pop ebx
mov esp, ebp
pop ebp
ret
push str.Proxy_CONNECT_aborted_due_to_timeout
push esi
call fcn.0097bdf0
add esp, 8
pop edi
mov eax, 0x1c
pop ebx
mov esp, ebp
pop ebp
ret
mov edx, dword [ebx + 0x1dc]
mov eax, dword [esi + 0x130]
lea ecx, [ebp + 8]
push ecx
mov ecx, dword [edi + 0x354]
push edx
push eax
push ecx
push esi
call fcn.0097bb20
add esp, 0x14
test eax, eax
jne 0x9a93b0
mov edx, dword [ebp + 8]
mov eax, dword [esi + 0x130]
push edx
push eax
push 2
push esi
call fcn.0097bce0
add esp, 0x10
mov ecx, dword [ebp + 8]
sub dword [ebx + 0x1dc], ecx
add dword [esi + 0x130], ecx
pop edi
pop ebx
mov esp, ebp
pop ebp
ret
pop edi
mov eax, 0x2a
pop ebx
mov esp, ebp
pop ebp
ret
push str.CONNECT_response_too_large
push esi
call fcn.0097bdf0
add esp, 8
pop edi
mov eax, 0x38
pop ebx
mov esp, ebp
pop ebp
ret
pop edi
mov eax, 0x1b
pop ebx
mov esp, ebp
pop ebp
ret
mov ecx, dword [ebp + 8]
mov edx, dword [edi + ecx*4 + 0x148]
push edx
push edi
push esi
call fcn.00982a30
mov eax, dword [ebp + 8]
add esp, 0xc
mov dword [edi + eax*4 + 0x148], 0xffffffff
mov eax, 0x51eb851f
imul dword [esi + 0xee4]
sar edx, 5
mov ecx, edx
shr ecx, 0x1f
add ecx, edx
cmp ecx, 2
je 0x9a94c9
cmp dword [ebx + 0x1f8], 0
je 0x9a9464
cmp dword [esi + 0x128], 0
je 0x9a9464
push str.Connect_me_again_please
push esi
mov dword [edi + 0x29c], 1
call fcn.0097bd80
push esi
call fcn.009a8910
jmp 0x9a9483
mov edx, dword [esi + 0x128]
push edx
call dword [0x9fb340]
push 2
push edi
mov dword [esi + 0x128], 0
call fcn.00982bc0
add esp, 0xc
mov dword [ebx + 0x1f0], 0
cmp dword [edi + 0x29c], 0
jne 0x9a9527
add ebx, 0x1bc
push ebx
call fcn.0097f9f0
mov eax, dword [esi + 0xf0]
push eax
push str.Received_HTTP_code__d_from_proxy_after_CONNECT
push esi
call fcn.0097bdf0
add esp, 0x10
pop edi
mov eax, 0x38
pop ebx
mov esp, ebp
pop ebp
ret
mov dword [ebx + 0x1f0], 2
mov ecx, dword [esi + 0xe2c]
push ecx
call dword [0x9fb340]
mov edx, dword [esi + 0xee4]
push edx
xor eax, eax
push str.Proxy_replied__d_to_CONNECT_request
push esi
mov dword [esi + 0xe2c], eax
mov dword [esi + 0xaf4], 1
mov dword [esi + 0xaf8], eax
call fcn.0097bd80
xor eax, eax
add ebx, 0x1bc
mov dword [esi + 0x148], eax
push ebx
mov dword [edi + 0x2d0], eax
call fcn.0097f9f0
add esp, 0x14
xor eax, eax
pop edi
pop ebx
mov esp, ebp
pop ebp
ret