Function at 0x4beb90
Capabilities:
Check http status code

Disassembly:
sub esp, 0x2c
mov eax, dword [esp + 0x30]
push ebx
push ebp
mov ebp, dword [esi + 0xc]
xor ecx, ecx
mov dword [esp + 0x28], ecx
mov edx, dword [ebp + eax*4 + 0x148]
mov eax, dword [esi + 0x134]
mov ebx, dword [ebp + 0x460]
push ebp
mov dword [esp + 0x10], ebp
mov dword [esp + 0x28], edx
mov dword [esp + 0x1c], eax
call fcn.004be950
add esp, 4
test eax, eax
je 0x4bebd6
pop ebp
xor eax, eax
pop ebx
add esp, 0x2c
ret
mov dword [ebp + 0x28c], ecx
push edi
lea ecx, [ecx]
cmp dword [ebx + 0x1f0], 0
jne 0x4bedb0
mov edi, dword [esp + 0x44]
mov ecx, dword [esp + 0x40]
push edi
push ecx
xor eax, eax
push str.Establish_HTTP_proxy_tunnel_to__s:_d
push esi
lea ebp, [ebx + 0x1cc]
mov dword [esp + 0x24], eax
mov dword [esp + 0x28], eax
call fcn.004c81e0
mov edx, dword [esi + 0x128]
push edx
call dword [0x6434cc]
push 0x100000
push ebp
mov dword [esi + 0x128], 0
call fcn.004c8cd0
lea eax, [esp + 0x34]
push eax
mov eax, dword [esp + 0x60]
lea ecx, [esp + 0x34]
push ecx
push edi
mov edi, dword [esp + 0x38]
push esi
call fcn.004beae0
add esp, 0x2c
test eax, eax
jne 0x4bf646
mov edx, dword [esp + 0x14]
push 1
push edx
push eax
push str.CONNECT
mov eax, edi
push eax
push esi
call fcn.004c9f80
mov edi, eax
add esp, 0x18
test edi, edi
jne 0x4bed81
mov ecx, dword [esp + 0x10]
cmp dword [ecx + 0xb8], 1
mov edx, 0x5d4fac
je 0x4bec92
mov edx, 0x5d4fa8
mov ecx, dword [esi + 0xe24]
test ecx, ecx
jne 0x4beca1
mov ecx, 0x62336f
mov eax, dword [esp + 0x18]
test eax, eax
jne 0x4becae
mov eax, 0x62336f
push ecx
push eax
push edx
mov edx, dword [esp + 0x20]
push edx
push str.CONNECT__s_HTTP__s_r_n_s_s
push ebp
call fcn.004c8e50
mov edi, eax
add esp, 0x18
test edi, edi
jne 0x4bed73
mov eax, dword [esp + 0x10]
push str.User_Agent
push eax
push esi
call fcn.004c9920
add esp, 0xc
test eax, eax
jne 0x4bed04
mov eax, dword [esi + 0x634]
test eax, eax
je 0x4bed04
push eax
push str.User_Agent:__s_r_n
push ebp
call fcn.004c8e50
mov edi, eax
add esp, 0xc
test edi, edi
jne 0x4bed73
mov ecx, dword [esp + 0x10]
push str.Proxy_Connection
push ecx
push esi
call fcn.004c9920
add esp, 0xc
test eax, eax
jne 0x4bed2f
push str.Proxy_Connection:_Keep_Alive_r_n
push ebp
call fcn.004c8e00
mov edi, eax
add esp, 8
test edi, edi
jne 0x4bed73
push ebp
push 1
push esi
call fcn.004cab70
mov edi, eax
add esp, 0xc
test edi, edi
jne 0x4bed73
push 0x5c6d6c
push ebp
call fcn.004c8e00
mov edi, eax
add esp, 8
test edi, edi
jne 0x4bed73
mov edx, dword [esp + 0x3c]
push edx
push eax
push eax
lea eax, [esi + 0xef8]
push eax
push esi
push ebp
call fcn.004ca470
mov edi, eax
add esp, 0x18
test edi, edi
je 0x4bed81
push str.Failed_sending_CONNECT_to_proxy
push esi
call fcn.004c8260
add esp, 8
mov ecx, dword [esp + 0x18]
push ecx
call dword [0x6434cc]
mov edx, dword [esp + 0x18]
push edx
call dword [0x6434cc]
add esp, 8
test edi, edi
jne 0x4bf498
mov ebp, dword [esp + 0x10]
mov dword [ebx + 0x1f0], 1
push 1
push 0
push esi
call fcn.004c4bf0
add esp, 0xc
test edx, edx
jl 0x4bf4a1
jg 0x4bedcf
test eax, eax
jbe 0x4bf4a1
mov eax, dword [esp + 0x3c]
push eax
push ebp
call fcn.004c5bc0
mov edi, dword [esp + 0x24]
add esp, 8
test eax, eax
jne 0x4bedf1
cmp dword [edi + 0x1a0], eax
je 0x4bf644
cmp dword [edi + 0x1a0], 1
jne 0x4bee48
cmp dword [ebx + 0x1dc], 0
jne 0x4bf4bb
mov ecx, dword [esi + 0xa30]
lea edx, [esp + 0x24]
mov dword [esi + 0x130], ecx
mov eax, dword [esi + 0x554]
push edx
push eax
push esi
call fcn.004bf8d0
add esp, 0xc
test eax, eax
jne 0x4bf646
mov ecx, dword [esp + 0x24]
mov dword [ebx + 0x1dc], ecx
test ecx, ecx
jne 0x4bf4bb
mov dword [edi + 0x1a0], ecx
cmp dword [ebx + 0x1e0], 0
mov dword [esp + 0x18], 0
je 0x4bef02
lea ecx, [ecx]
mov ecx, dword [esp + 0x28]
lea edx, [esp + 0x20]
push edx
push 1
lea eax, [esp + 0x17]
push eax
push ecx
push esi
call fcn.004c80d0
mov edi, eax
add esp, 0x14
cmp edi, 0x51
je 0x4bf644
push esi
call fcn.004c2780
add esp, 4
test eax, eax
jne 0x4bf536
test edi, edi
jne 0x4beef4
cmp dword [esp + 0x20], edi
jle 0x4bf429
cmp dword [ebx + 0x1e0], 2
jne 0x4bf047
mov eax, dword [ebx + 0x1e8]
mov ecx, dword [ebx + 0x1ec]
mov edx, eax
or edx, ecx
je 0x4befff
sub eax, 1
sbb ecx, edi
mov dword [ebx + 0x1e8], eax
mov dword [ebx + 0x1ec], ecx
test ecx, ecx
jl 0x4beeea
jg 0x4bf39d
test eax, eax
ja 0x4bf39d
mov dword [ebx + 0x1f0], 2
mov dword [ebx + 0x1e0], 0
mov ebp, dword [esp + 0x10]
push esi
call fcn.004c2780
add esp, 4
test eax, eax
jne 0x4bf536
cmp dword [esp + 0x18], eax
jne 0x4bf5dc
mov ecx, dword [esi + 0xedc]
mov eax, 0x51eb851f
imul ecx
sar edx, 5
mov eax, edx
shr eax, 0x1f
add eax, edx
cmp eax, 2
je 0x4bef5c
push esi
call fcn.004cd590
add esp, 4
test eax, eax
jne 0x4bf646
cmp dword [ebp + 0x290], eax
je 0x4bef5c
mov dword [ebx + 0x1f8], 1
cmp dword [ebx + 0x1f8], 0
je 0x4bef72
cmp dword [esi + 0x128], 0
jne 0x4bf542
cmp dword [esi + 0x128], 0
je 0x4bef9d
cmp dword [ebx + 0x1f0], 2
jne 0x4bef90
push 1
mov edi, esi
call fcn.004be9b0
add esp, 4
cmp dword [esi + 0x128], 0
jne 0x4bebe0
mov edi, dword [esp + 0x3c]
mov ecx, dword [esi + 0xedc]
mov eax, 0x51eb851f
imul ecx
sar edx, 5
mov eax, edx
shr eax, 0x1f
add eax, edx
cmp eax, 2
je 0x4bf5e8
cmp dword [ebx + 0x1f8], 0
je 0x4bf568
cmp dword [esi + 0x128], 0
je 0x4bf568
push str.Connect_me_again_please
push esi
mov dword [ebp + 0x28c], 1
call fcn.004c81e0
add esp, 8
mov edi, esi
call fcn.004bea70
jmp 0x4bf5a4
lea eax, [esp + 0x30]
push eax
lea ecx, [esp + 0x18]
push ecx
push 1
lea edx, [esp + 0x1b]
push edx
push esi
mov dword [esp + 0x28], 0
call fcn.004e8f00
add esp, 0x14
cmp eax, 0xffffffff
jne 0x4bf39d
push str.chunk_reading_DONE
push esi
call fcn.004c81e0
add esp, 8
mov dword [ebx + 0x1e0], 0
jmp 0x4bf393
push 1
lea ecx, [esp + 0x13]
lea eax, [ebx + 0x1bc]
push ecx
push eax
call fcn.004c8de0
add esp, 0xc
test eax, eax
jne 0x4bf510
cmp byte [esp + 0xf], 0xa
jne 0x4bf39d
lea ebp, [ebx + 0x1bc]
push ebp
call fcn.004c8e70
push ebp
mov edi, eax
call fcn.00545b30
mov ebp, eax
push ebp
push edi
push 1
push esi
call fcn.004c8140
add esp, 0x18
cmp dword [esi + 0x82c], 0
jne 0x4bf0c3
cmp dword [esi + 0x7cc], 0
mov eax, 2
je 0x4bf0af
mov eax, 3
push ebp
push edi
push eax
push esi
call fcn.004c85c0
add esp, 0x10
test eax, eax
jne 0x4bf646
mov eax, ebp
cdq
add dword [esi + 0xef0], eax
adc dword [esi + 0xef4], edx
mov al, byte [edi]
cmp al, 0xd
je 0x4bf32f
cmp al, 0xa
je 0x4bf32f
push 0x11
push edi
push str.WWW_Authenticate:
call fcn.004be440
add esp, 0xc
test eax, eax
je 0x4bf105
mov eax, dword [esi + 0xf0]
cmp eax, 0x191
je 0x4bf126
push 0x13
push edi
push str.Proxy_authenticate:
call fcn.004be440
add esp, 0xc
test eax, eax
je 0x4bf16a
mov eax, dword [esi + 0xf0]
cmp eax, 0x197
jne 0x4bf16a
xor edx, edx
cmp eax, 0x197
sete dl
push edi
mov ebp, edx
call fcn.004c99a0
mov edi, eax
add esp, 4
test edi, edi
je 0x4bf52a
push edi
push ebp
push esi
call fcn.004ca110
push edi
mov ebp, eax
call dword [0x6434cc]
add esp, 0x10
test ebp, ebp
je 0x4bf31e
pop edi
mov eax, ebp
pop ebp
pop ebx
add esp, 0x2c
ret
push 0xf
push edi
push str.Content_Length:
call fcn.004be440
add esp, 0xc
test eax, eax
je 0x4bf1e8
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 0x4bf1bd
push ecx
push str.Ignoring_Content_Length_in_CONNECT__03d_response
push esi
call fcn.004c81e0
lea eax, [ebx + 0x1bc]
add esp, 0xc
push eax
call fcn.004c8dc0
add esp, 4
jmp 0x4bf39d
lea ecx, [ebx + 0x1e8]
push ecx
push 0xa
push 0
add edi, 0xf
push edi
call fcn.004e3650
lea eax, [ebx + 0x1bc]
add esp, 0x10
push eax
call fcn.004c8dc0
add esp, 4
jmp 0x4bf39d
push 0x5d4e78
push str.Connection:
push edi
call fcn.004ca730
add esp, 0xc
test eax, eax
je 0x4bf21d
lea eax, [ebx + 0x1bc]
push eax
mov dword [ebx + 0x1f8], 1
call fcn.004c8dc0
add esp, 4
jmp 0x4bf39d
push 0x12
push edi
push str.Transfer_Encoding:
call fcn.004be440
add esp, 0xc
test eax, eax
je 0x4bf2c1
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 0x4bf274
push ecx
push str.Ignoring_Transfer_Encoding_in_CONNECT__03d_response
push esi
call fcn.004c81e0
lea eax, [ebx + 0x1bc]
add esp, 0xc
push eax
call fcn.004c8dc0
add esp, 4
jmp 0x4bf39d
push str.chunked
push str.Transfer_Encoding:
push edi
call fcn.004ca730
add esp, 0xc
test eax, eax
je 0x4bf31e
push str.CONNECT_responded_chunked
push esi
call fcn.004c81e0
push esi
mov dword [ebx + 0x1f4], 1
call fcn.004e8ed0
lea eax, [ebx + 0x1bc]
add esp, 0xc
push eax
call fcn.004c8dc0
add esp, 4
jmp 0x4bf39d
push 0x5d4e78
push str.Proxy_Connection:
push edi
call fcn.004ca730
add esp, 0xc
test eax, eax
je 0x4bf2f6
lea eax, [ebx + 0x1bc]
push eax
mov dword [ebx + 0x1f8], 1
call fcn.004c8dc0
add esp, 4
jmp 0x4bf39d
lea ebp, [esi + 0xf0]
push ebp
lea ecx, [esp + 0x30]
push ecx
push str.HTTP_1._d__d
push edi
call fcn.00419f0b
add esp, 0x10
cmp eax, 2
jne 0x4bf31e
mov edx, dword [ebp]
mov dword [esi + 0xedc], edx
lea eax, [ebx + 0x1bc]
push eax
call fcn.004c8dc0
add esp, 4
jmp 0x4bf39d
cmp dword [esi + 0xf0], 0x197
jne 0x4bf41a
cmp dword [esi + 0xe70], 0
jne 0x4bf41a
mov eax, dword [ebx + 0x1e8]
mov ecx, dword [ebx + 0x1ec]
mov edx, eax
or edx, ecx
mov dword [ebx + 0x1e0], 2
je 0x4bf3af
push ecx
push eax
push str.Ignore__I64d_bytes_of_response_body
push esi
call fcn.004c81e0
add esp, 0x10
cmp dword [ebx + 0x1e0], 0
jne 0x4bee60
mov edx, dword [ebx + 0x1e8]
or edx, dword [ebx + 0x1ec]
jne 0x4bf39d
mov dword [ebx + 0x1f0], 2
cmp dword [ebx + 0x1e0], 0
jne 0x4bee60
jmp 0x4beefe
cmp dword [ebx + 0x1f4], 0
je 0x4bf41a
push str.Ignore_chunked_response_body
push esi
call fcn.004c81e0
add esp, 8
mov dword [esi + 0x148], 1
cmp byte [edi + 1], 0xa
jne 0x4bf3d7
inc edi
lea eax, [esp + 0x34]
push eax
lea ecx, [esp + 0x24]
push ecx
push 1
inc edi
push edi
push esi
call fcn.004e8f00
add esp, 0x14
cmp eax, 0xffffffff
jne 0x4bf378
push str.chunk_reading_DONE
push esi
call fcn.004c81e0
add esp, 8
mov dword [ebx + 0x1e0], 0
mov dword [ebx + 0x1f0], 2
jmp 0x4bf385
mov dword [ebx + 0x1e0], 0
jmp 0x4bf385
cmp dword [esi + 0x190], 0
je 0x4bf46f
cmp dword [esi + 0xb10], 0
je 0x4bf46f
cmp dword [esi + 0xe24], 0
je 0x4bf46f
mov ebp, dword [esp + 0x10]
push str.Proxy_CONNECT_connection_closed
push esi
mov dword [ebp + 0x28c], 1
call fcn.004c81e0
add esp, 8
mov dword [ebx + 0x1e0], 0
jmp 0x4bef02
push str.Proxy_CONNECT_aborted
push esi
mov dword [esp + 0x20], 1
call fcn.004c8260
mov ebp, dword [esp + 0x18]
add esp, 8
mov dword [ebx + 0x1e0], 0
jmp 0x4bef02
mov eax, edi
pop edi
pop ebp
pop ebx
add esp, 0x2c
ret
push str.Proxy_CONNECT_aborted_due_to_timeout
push esi
call fcn.004c8260
add esp, 8
pop edi
pop ebp
mov eax, 0x1c
pop ebx
add esp, 0x2c
ret
mov edx, dword [ebx + 0x1dc]
mov eax, dword [esi + 0x130]
lea ecx, [esp + 0x3c]
push ecx
mov ecx, dword [ebp + 0x34c]
push edx
push eax
push ecx
push esi
call fcn.004c7f90
add esp, 0x14
test eax, eax
jne 0x4bf4f9
mov edx, dword [esp + 0x3c]
mov eax, dword [esi + 0x130]
push edx
push eax
push 2
push esi
call fcn.004c8140
add esp, 0x10
mov ecx, dword [esp + 0x3c]
sub dword [ebx + 0x1dc], ecx
add dword [esi + 0x130], ecx
pop edi
pop ebp
pop ebx
add esp, 0x2c
ret
push str.CONNECT_response_too_large_
push esi
call fcn.004c8260
add esp, 8
pop edi
pop ebp
mov eax, 0x38
pop ebx
add esp, 0x2c
ret
pop edi
pop ebp
mov eax, 0x1b
pop ebx
add esp, 0x2c
ret
pop edi
pop ebp
mov eax, 0x2a
pop ebx
add esp, 0x2c
ret
mov edi, dword [esp + 0x3c]
mov ecx, dword [ebp + edi*4 + 0x148]
push ecx
push ebp
push esi
call fcn.004c59d0
add esp, 0xc
mov dword [ebp + edi*4 + 0x148], 0xffffffff
jmp 0x4befa1
mov ecx, dword [esi + 0x128]
push ecx
call dword [0x6434cc]
push 2
push ebp
mov dword [esi + 0x128], 0
call fcn.004c5b70
mov edx, dword [ebp + edi*4 + 0x148]
push edx
push ebp
push esi
call fcn.004c59d0
add esp, 0x18
mov dword [ebp + edi*4 + 0x148], 0xffffffff
mov dword [ebx + 0x1f0], 0
cmp dword [ebp + 0x28c], 0
jne 0x4bf644
add ebx, 0x1bc
push ebx
call fcn.004c8cf0
mov eax, dword [esi + 0xf0]
push eax
push str.Received_HTTP_code__d_from_proxy_after_CONNECT
push esi
call fcn.004c8260
add esp, 0x10
pop edi
pop ebp
mov eax, 0x38
pop ebx
add esp, 0x2c
ret
mov dword [ebx + 0x1f0], 2
mov ecx, dword [esi + 0xe24]
push ecx
call dword [0x6434cc]
mov edx, dword [esi + 0xedc]
push edx
xor edi, edi
push str.Proxy_replied__d_to_CONNECT_request
push esi
mov dword [esi + 0xe24], edi
mov dword [esi + 0xb14], 1
mov dword [esi + 0xb18], edi
call fcn.004c81e0
add ebx, 0x1bc
mov dword [esi + 0x148], edi
push ebx
mov dword [ebp + 0x2c4], edi
call fcn.004c8cf0
add esp, 0x14
xor eax, eax
pop edi
pop ebp
pop ebx
add esp, 0x2c
ret