Function at 0x87daf0
Capabilities:
Check http status code

Disassembly:
sub esp, 0x28
mov eax, dword [esp + 0x30]
push ebx
mov ebx, dword [esp + 0x30]
push ebp
push esi
push edi
mov ecx, dword [ebx + eax*4 + 0x408]
mov edi, dword [ebx]
mov esi, dword [ebx + 0x838]
xor ebp, ebp
push ebx
mov dword [esp + 0x30], ebp
mov dword [esp + 0x2c], ecx
call fcn.0087d960
add esp, 4
test eax, eax
jne 0x87e625
mov dword [ebx + 0x570], ebp
mov eax, dword [esi + 0x4018]
mov ebp, dword [esp + 0x48]
test eax, eax
jne 0x87ddad
mov edx, dword [esp + 0x44]
push ebp
push edx
push str.Establish_HTTP_proxy_tunnel_to__s:_d_n
push edi
call fcn.00853e70
mov eax, dword [edi + 0x11c]
push eax
call dword [0x8c5934]
add esp, 0x14
mov dword [edi + 0x11c], 0
call fcn.00873e00
test eax, eax
mov dword [esp + 0x10], eax
je 0x87e486
mov ecx, dword [esp + 0x44]
push ebp
push ecx
push str._s:_d
call fcn.0085d8d0
mov ebx, eax
add esp, 0xc
test ebx, ebx
je 0x87e43e
mov edx, dword [esp + 0x3c]
push 1
push ebx
push str.CONNECT
push edx
call fcn.008736e0
push ebx
mov ebp, eax
call dword [0x8c5934]
add esp, 0x14
test ebp, ebp
jne 0x87dd84
mov dword [esp + 0x14], ebp
mov ebp, dword [esp + 0x3c]
mov eax, 0x8d1294
mov dword [esp + 0x20], 0x8cad58
mov dword [esp + 0x18], eax
mov dword [esp + 0x1c], eax
cmp dword [ebp + 0x358], 1
je 0x87dbee
mov dword [esp + 0x20], 0x8cad5c
mov ebx, dword [esp + 0x44]
mov ecx, dword [ebp + 0x304]
mov eax, dword [ebp + 0x53c]
cmp ebx, ecx
je 0x87dc13
push 0x3a
push ebx
call fcn.00846c90
add esp, 8
neg eax
sbb eax, eax
neg eax
test eax, eax
je 0x87dc23
mov ecx, 0x8c6160
mov eax, 0x8c615c
jmp 0x87dc2a
mov ecx, 0x8d1294
mov eax, ecx
mov edx, dword [esp + 0x48]
push edx
push ecx
push ebx
push eax
push str._s_s_s:_d
call fcn.0085d8d0
mov ebx, eax
add esp, 0x14
test ebx, ebx
je 0x87e458
push str.Host
push ebp
call fcn.00873070
add esp, 8
test eax, eax
jne 0x87dc75
push ebx
push str.Host:__s_r_n
call fcn.0085d8d0
add esp, 8
mov dword [esp + 0x14], eax
test eax, eax
je 0x87e472
push str.Proxy_Connection
push ebp
call fcn.00873070
add esp, 8
test eax, eax
jne 0x87dc8f
mov dword [esp + 0x18], str.Proxy_Connection:_Keep_Alive_r_n
push str.User_Agent
push ebp
call fcn.00873070
add esp, 8
test eax, eax
jne 0x87dcb5
mov eax, dword [edi + 0xa14]
test eax, eax
je 0x87dcb5
mov eax, dword [ebp + 0x5cc]
mov dword [esp + 0x1c], eax
mov ebp, dword [ebp + 0x5c8]
test ebp, ebp
mov ecx, ebp
jne 0x87dcc6
mov ecx, 0x8d1294
mov eax, dword [esp + 0x14]
test eax, eax
jne 0x87dcd3
mov eax, 0x8d1294
mov edx, dword [esp + 0x18]
push edx
mov edx, dword [esp + 0x20]
push edx
push ecx
push eax
mov eax, dword [esp + 0x30]
push eax
push ebx
lea ecx, [esp + 0x28]
push str.CONNECT__s_HTTP__s_r_n_s_s_s_s
push ecx
call fcn.008741a0
mov ebp, eax
mov eax, dword [esp + 0x34]
add esp, 0x20
test eax, eax
je 0x87dd0d
mov edx, eax
push edx
call dword [0x8c5934]
add esp, 4
push ebx
call dword [0x8c5934]
add esp, 4
test ebp, ebp
jne 0x87dd6a
mov eax, dword [esp + 0x10]
mov ebx, dword [esp + 0x3c]
push eax
push 1
push ebx
call fcn.008746e0
mov ebp, eax
add esp, 0xc
test ebp, ebp
jne 0x87dd6a
lea ecx, [esp + 0x10]
push 0x8be96c
push ecx
call fcn.008741a0
mov ebp, eax
add esp, 8
test ebp, ebp
jne 0x87dd6a
mov edx, dword [esp + 0x40]
lea ecx, [esp + 0x10]
push edx
push eax
lea eax, [edi + 0x1070]
push eax
push ebx
push ecx
call fcn.00873e40
add esp, 0x14
mov ebp, eax
test ebp, ebp
mov dword [esp + 0x10], 0
je 0x87dd84
push str.Failed_sending_CONNECT_to_proxy
push edi
call fcn.00853f30
add esp, 8
lea edx, [esp + 0x10]
push edx
call fcn.00873e10
add esp, 4
test ebp, ebp
jne 0x87e493
mov ebx, dword [esp + 0x3c]
mov dword [esi + 0x4018], 1
mov dword [esi + 0x4000], ebp
push 1
push 0
push edi
call fcn.00858860
add esp, 0xc
test edx, edx
jl 0x87e49d
jg 0x87ddcc
test eax, eax
jbe 0x87e49d
mov eax, dword [esp + 0x40]
push eax
push ebx
call fcn.0085a020
add esp, 8
test eax, eax
je 0x87e625
mov eax, dword [esi + 0x4004]
mov dword [esp + 0x20], 0
test eax, eax
je 0x87e393
lea ebx, [esi + 0x4000]
mov eax, dword [esi + 0x400c]
cmp eax, ebx
jae 0x87e4b8
mov edx, dword [esp + 0x28]
lea ecx, [esp + 0x24]
push ecx
push 1
push eax
mov eax, dword [esp + 0x48]
push edx
push eax
call fcn.008547b0
mov ebp, eax
add esp, 0x14
cmp ebp, 0x51
je 0x87e625
mov ecx, dword [esp + 0x3c]
push ecx
call fcn.008615d0
add esp, 4
test eax, eax
jne 0x87e4dd
test ebp, ebp
jne 0x87e36f
mov eax, dword [esp + 0x24]
test eax, eax
jle 0x87e31d
cmp dword [esi + 0x4004], 1
jle 0x87df05
mov eax, dword [esi + 0x4010]
mov ecx, dword [esi + 0x4014]
mov edx, eax
mov dword [esi + 0x400c], esi
or edx, ecx
je 0x87deb3
sub eax, 1
sbb ecx, ebp
mov dword [esi + 0x4010], eax
mov eax, ecx
mov dword [esi + 0x4014], ecx
test eax, eax
jl 0x87e37b
jg 0x87e30d
mov eax, dword [esi + 0x4010]
test eax, eax
jbe 0x87e37b
jmp 0x87e30d
mov edx, dword [esp + 0x3c]
lea eax, [esp + 0x30]
lea ecx, [esp + 0x1c]
push eax
push ecx
push 1
push esi
push edx
mov dword [esp + 0x30], 0
call fcn.00882d10
add esp, 0x14
cmp eax, 0xffffffff
jne 0x87e30d
push str.chunk_reading_DONE_n
push edi
call fcn.00853e70
add esp, 8
mov dword [esi + 0x4004], 0
mov dword [esi + 0x4018], 2
jmp 0x87e30d
mov ebp, dword [ebx]
mov eax, dword [esi + 0x400c]
inc ebp
mov dword [ebx], ebp
mov dl, byte [eax]
cmp dl, 0xa
mov ecx, ebp
je 0x87df25
inc eax
mov dword [esi + 0x400c], eax
jmp 0x87e30d
mov eax, dword [edi + 0xb94]
test eax, eax
je 0x87df42
mov eax, dword [esi + 0x4008]
push ecx
push eax
push 1
push edi
call fcn.00854820
add esp, 0x10
mov eax, dword [edi + 0xbe4]
test eax, eax
jne 0x87df80
mov ecx, dword [edi + 0xb80]
mov eax, 2
test ecx, ecx
je 0x87df60
mov eax, 3
mov ecx, dword [ebx]
mov edx, dword [esi + 0x4008]
push ecx
push edx
push eax
mov eax, dword [esp + 0x48]
push eax
call fcn.00854460
add esp, 0x10
test eax, eax
jne 0x87e627
mov eax, dword [ebx]
mov ecx, dword [edi + 0x1068]
cdq
add ecx, eax
mov dword [edi + 0x1068], ecx
mov ebp, dword [edi + 0x106c]
mov ecx, dword [edi + 0xa8]
adc ebp, edx
mov dword [edi + 0x106c], ebp
mov eax, dword [ebx]
cdq
add ecx, eax
mov dword [edi + 0xa8], ecx
mov ebp, dword [edi + 0xac]
adc ebp, edx
mov dword [edi + 0xac], ebp
mov eax, dword [esi + 0x4008]
mov cl, byte [eax]
cmp cl, 0xd
je 0x87e20b
cmp cl, 0xa
je 0x87e20b
mov ecx, dword [ebx]
push 0x11
mov byte [eax + ecx], 0
mov edx, dword [esi + 0x4008]
push edx
push str.WWW_Authenticate:
call fcn.0085aab0
add esp, 0xc
test eax, eax
je 0x87e005
mov eax, dword [edi + 0xf0]
cmp eax, 0x191
je 0x87e02c
mov eax, dword [esi + 0x4008]
push 0x13
push eax
push str.Proxy_authenticate:
call fcn.0085aab0
add esp, 0xc
test eax, eax
je 0x87e074
mov eax, dword [edi + 0xf0]
cmp eax, 0x197
jne 0x87e074
mov ecx, dword [esi + 0x4008]
xor ebx, ebx
cmp eax, 0x197
push ecx
sete bl
call fcn.008730f0
mov ebp, eax
add esp, 4
test ebp, ebp
je 0x87e486
mov edx, dword [esp + 0x3c]
push ebp
push ebx
push edx
call fcn.00873b00
push ebp
mov ebx, eax
call dword [0x8c5934]
add esp, 0x10
test ebx, ebx
jne 0x87e4d3
jmp 0x87e1ee
mov eax, dword [esi + 0x4008]
push 0xf
push eax
push str.Content_Length:
call fcn.0085aab0
add esp, 0xc
test eax, eax
je 0x87e0e0
mov ecx, dword [edi + 0xf0]
mov eax, 0x51eb851f
imul ecx
sar edx, 5
mov eax, edx
shr eax, 0x1f
add edx, eax
cmp edx, 2
jne 0x87e0be
push ecx
push str.Ignoring_Content_Length_in_CONNECT__03d_response_n
push edi
call fcn.00853e70
add esp, 0xc
jmp 0x87e1ee
mov edx, dword [esi + 0x4008]
lea ecx, [esi + 0x4010]
push ecx
push 0xa
add edx, 0xf
push 0
push edx
call fcn.00881850
add esp, 0x10
jmp 0x87e1ee
mov eax, dword [esi + 0x4008]
push str.close
push str.Connection:
push eax
call fcn.008742d0
add esp, 0xc
test eax, eax
je 0x87e10c
mov dword [esi + 0x4020], 1
jmp 0x87e1ee
mov ecx, dword [esi + 0x4008]
push 0x12
push ecx
push str.Transfer_Encoding:
call fcn.0085aab0
add esp, 0xc
test eax, eax
je 0x87e197
mov ecx, dword [edi + 0xf0]
mov eax, 0x51eb851f
imul ecx
sar edx, 5
mov eax, edx
shr eax, 0x1f
add edx, eax
cmp edx, 2
jne 0x87e156
push ecx
push str.Ignoring_Transfer_Encoding_in_CONNECT__03d_response_n
push edi
call fcn.00853e70
add esp, 0xc
jmp 0x87e1ee
mov ecx, dword [esi + 0x4008]
push str.chunked
push str.Transfer_Encoding:
push ecx
call fcn.008742d0
add esp, 0xc
test eax, eax
je 0x87e1ee
push str.CONNECT_responded_chunked_n
push edi
call fcn.00853e70
mov edx, dword [esp + 0x44]
mov dword [esi + 0x401c], 1
push edx
call fcn.00882cf0
add esp, 0xc
jmp 0x87e1ee
mov eax, dword [esi + 0x4008]
push str.close
push str.Proxy_Connection:
push eax
call fcn.008742d0
add esp, 0xc
test eax, eax
je 0x87e1c0
mov dword [esi + 0x4020], 1
jmp 0x87e1ee
mov edx, dword [esi + 0x4008]
lea ebp, [edi + 0xf0]
lea ecx, [esp + 0x2c]
push ebp
push ecx
push str.HTTP_1._d__d
push edx
call fcn.0083f0f6
add esp, 0x10
cmp eax, 2
jne 0x87e1ee
mov eax, dword [ebp]
mov dword [edi + 0x105c], eax
lea ebx, [esi + 0x4000]
mov dword [esi + 0x400c], esi
mov dword [esi + 0x4008], esi
mov dword [ebx], 0
jmp 0x87e30d
mov dword [esi + 0x400c], esi
mov eax, dword [edi + 0xf0]
cmp eax, 0x197
jne 0x87e2e8
mov eax, dword [edi + 0x1000]
test eax, eax
jne 0x87e2e8
mov eax, dword [esi + 0x4010]
mov ecx, dword [esi + 0x4014]
mov edx, eax
mov ebp, 2
or edx, ecx
mov dword [esi + 0x4004], ebp
je 0x87e262
push ecx
push eax
push str.Ignore__I64d_bytes_of_response_body_n
push edi
call fcn.00853e70
add esp, 0x10
jmp 0x87e2f7
mov eax, dword [esi + 0x401c]
test eax, eax
je 0x87e2dc
push str.Ignore_chunked_response_body_n
push edi
call fcn.00853e70
mov dword [edi + 0x570], 1
mov eax, dword [esi + 0x4008]
add esp, 8
inc eax
cmp byte [eax], 0xa
jne 0x87e296
mov dword [esi + 0x4008], eax
mov edx, dword [esi + 0x4008]
lea eax, [esp + 0x34]
lea ecx, [esp + 0x24]
push eax
mov eax, dword [esp + 0x40]
push ecx
inc edx
push 1
push edx
push eax
call fcn.00882d10
add esp, 0x14
cmp eax, 0xffffffff
jne 0x87e2f7
push str.chunk_reading_DONE_n
push edi
call fcn.00853e70
add esp, 8
mov dword [esi + 0x4004], 0
mov dword [esi + 0x4018], ebp
jmp 0x87e2f7
mov dword [esi + 0x4004], 0
jmp 0x87e2f7
mov dword [esi + 0x4004], 0
mov ebp, 2
mov ecx, dword [esi + 0x4010]
mov eax, dword [esi + 0x4014]
or ecx, eax
jne 0x87e30d
mov dword [esi + 0x4018], ebp
mov eax, dword [esi + 0x4004]
test eax, eax
jne 0x87ddfe
jmp 0x87e38f
mov eax, dword [edi + 0x5b0]
test eax, eax
je 0x87e359
mov eax, dword [edi + 0xe10]
test eax, eax
je 0x87e359
mov edx, dword [esp + 0x3c]
push str.Proxy_CONNECT_connection_closed_n
push edi
mov dword [edx + 0x570], 1
call fcn.00853e70
add esp, 8
mov dword [esi + 0x4004], 0
jmp 0x87e38f
push str.Proxy_CONNECT_aborted
push edi
mov dword [esp + 0x28], 1
call fcn.00853f30
add esp, 8
mov dword [esi + 0x4004], 0
jmp 0x87e38f
mov dword [esi + 0x4004], 0
mov dword [esi + 0x4018], 2
mov ebx, dword [esp + 0x3c]
push ebx
call fcn.008615d0
add esp, 4
test eax, eax
jne 0x87e4dd
mov eax, dword [esp + 0x20]
test eax, eax
jne 0x87e5c8
mov ecx, dword [edi + 0x105c]
mov eax, 0x51eb851f
imul ecx
sar edx, 5
mov eax, edx
shr eax, 0x1f
add edx, eax
cmp edx, 2
je 0x87e3f1
push ebx
call fcn.008731c0
add esp, 4
test eax, eax
jne 0x87e627
mov eax, dword [ebx + 0x514]
test eax, eax
je 0x87e3f1
mov dword [esi + 0x4020], 1
mov eax, dword [esi + 0x4020]
test eax, eax
je 0x87e409
mov eax, dword [edi + 0x11c]
test eax, eax
jne 0x87e4ea
mov eax, dword [edi + 0x11c]
test eax, eax
je 0x87e50c
cmp dword [esi + 0x4018], 2
jne 0x87e42b
push 1
push ebx
call fcn.0087da30
add esp, 8
mov eax, dword [edi + 0x11c]
test eax, eax
je 0x87e50c
jmp 0x87db2f
lea ecx, [esp + 0x10]
push ecx
call fcn.00873e10
add esp, 4
mov eax, 0x1b
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x28
ret
lea edx, [esp + 0x10]
push edx
call fcn.00873e10
add esp, 4
mov eax, 0x1b
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x28
ret
push ebx
call dword [0x8c5934]
lea eax, [esp + 0x14]
push eax
call fcn.00873e10
add esp, 8
pop edi
pop esi
pop ebp
mov eax, 0x1b
pop ebx
add esp, 0x28
ret
pop edi
mov eax, ebp
pop esi
pop ebp
pop ebx
add esp, 0x28
ret
push str.Proxy_CONNECT_aborted_due_to_timeout
push edi
call fcn.00853f30
add esp, 8
mov eax, 0x1c
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x28
ret
push str.CONNECT_response_too_large_
push edi
call fcn.00853f30
add esp, 8
mov eax, 0x38
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x28
ret
pop edi
pop esi
mov eax, ebx
pop ebp
pop ebx
add esp, 0x28
ret
pop edi
pop esi
pop ebp
mov eax, 0x2a
pop ebx
add esp, 0x28
ret
mov ebp, dword [esp + 0x40]
mov ecx, dword [ebx + ebp*4 + 0x408]
push ecx
push ebx
call fcn.00859e20
add esp, 8
mov dword [ebx + ebp*4 + 0x408], 0xffffffff
jmp 0x87e510
mov ebp, dword [esp + 0x40]
mov ecx, dword [edi + 0x105c]
mov eax, 0x51eb851f
imul ecx
sar edx, 5
mov eax, edx
shr eax, 0x1f
add edx, eax
cmp edx, 2
je 0x87e5d5
mov eax, dword [esi + 0x4020]
test eax, eax
je 0x87e564
mov eax, dword [edi + 0x11c]
test eax, eax
je 0x87e564
push str.Connect_me_again_please_n
push edi
mov dword [ebx + 0x570], 1
call fcn.00853e70
push ebx
call fcn.0087dac0
add esp, 0xc
jmp 0x87e59f
mov ecx, dword [edi + 0x11c]
push ecx
call dword [0x8c5934]
push 2
push ebx
mov dword [edi + 0x11c], 0
call fcn.00859fd0
mov edx, dword [ebx + ebp*4 + 0x408]
push edx
push ebx
call fcn.00859e20
add esp, 0x14
mov dword [ebx + ebp*4 + 0x408], 0xffffffff
mov dword [esi + 0x4018], 0
mov eax, dword [ebx + 0x570]
test eax, eax
jne 0x87e625
mov eax, dword [edi + 0xf0]
push eax
push str.Received_HTTP_code__d_from_proxy_after_CONNECT
push edi
call fcn.00853f30
add esp, 0xc
pop edi
pop esi
pop ebp
mov eax, 0x38
pop ebx
add esp, 0x28
ret
mov dword [esi + 0x4018], 2
mov ecx, dword [ebx + 0x5c8]
push ecx
call dword [0x8c5934]
xor esi, esi
mov dword [ebx + 0x5c8], esi
mov edx, dword [edi + 0x105c]
push edx
push str.Proxy_replied__d_to_CONNECT_request_n
push edi
mov dword [edi + 0xe14], 1
mov dword [edi + 0xe18], esi
call fcn.00853e70
mov dword [edi + 0x570], esi
add esp, 0x10
mov dword [ebx + 0x558], esi
xor eax, eax
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x28
ret