Function at 0x4e82d0
Capabilities:
Check http status code

Disassembly:
sub esp, 0x38
mov eax, dword [esp + 0x40]
push ebx
push ebp
push esi
mov esi, dword [esp + 0x48]
mov ecx, dword [esi + eax*4 + 0x420]
mov ebp, dword [esi]
mov ebx, dword [esi + 0x764]
push esi
mov dword [esp + 0x2c], 0
mov dword [esp + 0x28], ecx
call fcn.004e81f0
add esp, 4
test eax, eax
je 0x4e830f
pop esi
pop ebp
xor eax, eax
pop ebx
add esp, 0x38
ret
mov dword [esi + 0x54c], 0
push edi
lea ebx, [ebx]
cmp dword [ebx + 0x20], 0
jne 0x4e857b
mov esi, dword [esp + 0x58]
mov edi, dword [esp + 0x54]
push esi
push edi
push str.Establish_HTTP_proxy_tunnel_to__s:_d_n
push ebp
call fcn.004bd2f0
mov edx, dword [ebp + 0x12c]
push edx
call dword [0x84f474]
push esi
push edi
push str._s:_d
mov dword [ebp + 0x12c], 0
call fcn.004c69f0
mov edi, eax
add esp, 0x20
test edi, edi
je 0x4e8b7a
lea eax, [esp + 0x38]
push 0x20000
push eax
call fcn.004c0390
mov ecx, dword [esp + 0x54]
push 1
push edi
push str.CONNECT
push ecx
call fcn.004dea00
push edi
mov esi, eax
call dword [0x84f474]
add esp, 0x1c
test esi, esi
jne 0x4e855b
mov dword [esp + 0x14], esi
mov esi, dword [esp + 0x4c]
cmp dword [esi + 0x358], 1
mov eax, 0x80bb84
mov dword [esp + 0x18], eax
mov dword [esp + 0x1c], eax
mov dword [esp + 0x20], 0x796bc4
je 0x4e83d2
mov dword [esp + 0x20], 0x796bc8
mov edi, dword [esp + 0x54]
mov eax, dword [esi + 0x56c]
cmp edi, dword [esi + 0x304]
je 0x4e83f5
push 0x3a
push edi
call fcn.00491800
add esp, 8
neg eax
sbb eax, eax
neg eax
test eax, eax
je 0x4e8405
mov ecx, 0x78b5f8
mov eax, 0x78b600
jmp 0x4e840c
mov ecx, 0x80bb84
mov eax, ecx
mov edx, dword [esp + 0x58]
push edx
push ecx
push edi
push eax
push str._s_s_s:_d
call fcn.004c69f0
mov edi, eax
add esp, 0x14
test edi, edi
je 0x4e8b4c
push str.Host
push esi
call fcn.004de3d0
add esp, 8
test eax, eax
jne 0x4e8457
push edi
push str.Host:__s_r_n
call fcn.004c69f0
add esp, 8
mov dword [esp + 0x14], eax
test eax, eax
je 0x4e8b66
push str.Proxy_Connection
push esi
call fcn.004de3d0
add esp, 8
test eax, eax
jne 0x4e8471
mov dword [esp + 0x18], str.Proxy_Connection:_Keep_Alive_r_n
push str.User_Agent
push esi
call fcn.004de3d0
add esp, 8
test eax, eax
jne 0x4e8495
cmp dword [ebp + 0xa54], eax
je 0x4e8495
mov eax, dword [ebp + 0x1218]
mov dword [esp + 0x1c], eax
mov ecx, dword [ebp + 0x1214]
test ecx, ecx
jne 0x4e84a4
mov ecx, 0x80bb84
mov eax, dword [esp + 0x14]
test eax, eax
jne 0x4e84b1
mov eax, 0x80bb84
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 edi
lea ecx, [esp + 0x50]
push str.CONNECT__s_HTTP__s_r_n_s_s_s_s
push ecx
call fcn.004c0510
add esp, 0x20
cmp dword [esp + 0x14], 0
mov esi, eax
je 0x4e84ec
mov edx, dword [esp + 0x14]
push edx
call dword [0x84f474]
add esp, 4
push edi
call dword [0x84f474]
add esp, 4
test esi, esi
jne 0x4e854d
mov edi, dword [esp + 0x4c]
lea eax, [esp + 0x38]
push eax
push 1
push edi
call fcn.004df490
mov esi, eax
add esp, 0xc
test esi, esi
jne 0x4e854d
lea ecx, [esp + 0x38]
push 0x78e12c
push ecx
call fcn.004c04c0
mov esi, eax
add esp, 8
test esi, esi
jne 0x4e854d
mov edx, dword [esp + 0x50]
push edx
push eax
lea eax, [ebp + 0x12c8]
push eax
lea ecx, [esp + 0x44]
push edi
push ecx
call fcn.004dee00
mov esi, eax
add esp, 0x14
test esi, esi
je 0x4e855b
push str.Failed_sending_CONNECT_to_proxy
push ebp
call fcn.004bd3d0
add esp, 8
lea edx, [esp + 0x38]
push edx
call fcn.004c03b0
add esp, 4
test esi, esi
jne 0x4e8b87
mov esi, dword [esp + 0x4c]
mov dword [ebx + 0x20], 1
push 1
push 0
push ebp
call fcn.004c24a0
add esp, 0xc
test edx, edx
jl 0x4e8b91
jg 0x4e859a
test eax, eax
jbe 0x4e8b91
mov eax, dword [esp + 0x50]
push eax
push esi
call fcn.004c33e0
add esp, 8
test eax, eax
je 0x4e8cc3
cmp dword [ebx + 0x10], 0
mov dword [esp + 0x20], 0
je 0x4e8650
mov eax, dword [esp + 0x28]
mov esi, dword [esp + 0x4c]
lea ecx, [esp + 0x24]
push ecx
push 1
lea edx, [esp + 0x1b]
push edx
push eax
push esi
call fcn.004bd1e0
mov edi, eax
add esp, 0x14
cmp edi, 0x51
je 0x4e8cc3
push esi
call fcn.004ccf40
add esp, 4
test eax, eax
jne 0x4e8bc7
test edi, edi
jne 0x4e8649
cmp dword [esp + 0x24], edi
jle 0x4e8b02
mov edx, 2
cmp dword [ebx + 0x10], edx
jne 0x4e8788
mov eax, dword [ebx + 0x18]
mov ecx, dword [ebx + 0x1c]
mov edi, eax
or edi, ecx
je 0x4e8743
sub eax, 1
sbb ecx, 0
mov dword [ebx + 0x18], eax
mov dword [ebx + 0x1c], ecx
test ecx, ecx
jl 0x4e8646
jg 0x4e8aef
test eax, eax
ja 0x4e8aef
mov dword [ebx + 0x20], edx
mov dword [ebx + 0x10], 0
push esi
call fcn.004ccf40
add esp, 4
test eax, eax
jne 0x4e8bc7
cmp dword [esp + 0x20], eax
jne 0x4e8c63
mov ecx, dword [ebp + 0x12ac]
mov eax, 0x51eb851f
imul ecx
sar edx, 5
mov ecx, edx
shr ecx, 0x1f
add ecx, edx
cmp ecx, 2
je 0x4e86a7
push esi
call fcn.004e1390
add esp, 4
test eax, eax
jne 0x4e8cc5
cmp dword [esi + 0x550], eax
je 0x4e86a7
mov dword [ebx + 0x28], 1
cmp dword [ebx + 0x28], 0
je 0x4e86ba
cmp dword [ebp + 0x12c], 0
jne 0x4e8bd4
cmp dword [ebp + 0x12c], 0
je 0x4e86e2
cmp dword [ebx + 0x20], 2
jne 0x4e86d5
push 1
mov edi, esi
call fcn.004e8230
add esp, 4
cmp dword [ebp + 0x12c], 0
jne 0x4e8320
mov edi, dword [esp + 0x50]
mov ecx, dword [ebp + 0x12ac]
mov eax, 0x51eb851f
imul ecx
sar edx, 5
mov eax, edx
shr eax, 0x1f
add eax, edx
cmp eax, 2
je 0x4e8c70
cmp dword [ebx + 0x28], 0
je 0x4e8bf9
cmp dword [ebp + 0x12c], 0
je 0x4e8bf9
mov esi, dword [esp + 0x4c]
push str.Connect_me_again_please_n
push ebp
mov dword [esi + 0x54c], 1
call fcn.004bd2f0
add esp, 8
call fcn.004e82a0
jmp 0x4e8c38
lea ecx, [esp + 0x30]
push ecx
lea edx, [esp + 0x20]
push edx
push 1
lea eax, [esp + 0x1f]
push eax
push esi
mov dword [esp + 0x30], 0
call fcn.004edcd0
add esp, 0x14
cmp eax, 0xffffffff
jne 0x4e8aef
push str.chunk_reading_DONE_n
push ebp
call fcn.004bd2f0
add esp, 8
mov dword [ebx + 0x10], 0
jmp 0x4e8ae8
push 1
lea ecx, [esp + 0x17]
push ecx
push ebx
call fcn.004c04a0
add esp, 0xc
test eax, eax
jne 0x4e8bac
cmp byte [esp + 0x13], 0xa
jne 0x4e8aef
push ebx
call fcn.0052ce40
push ebx
mov esi, eax
call fcn.0052d3b0
mov edi, eax
push edi
push esi
push 1
push ebp
call fcn.004bd250
add esp, 0x18
cmp dword [ebp + 0xc40], 0
jne 0x4e87fc
cmp dword [ebp + 0xbe0], 0
mov eax, 2
je 0x4e87e4
mov eax, 3
mov edx, dword [esp + 0x4c]
push edi
push esi
push eax
push edx
call fcn.004bd740
add esp, 0x10
test eax, eax
jne 0x4e8cc5
mov eax, edi
cdq
add dword [ebp + 0x12c0], eax
adc dword [ebp + 0x12c4], edx
mov al, byte [esi]
cmp al, 0xd
je 0x4e8a3d
cmp al, 0xa
je 0x4e8a3d
push 0x11
push esi
push str.WWW_Authenticate:
call fcn.004c4a20
add esp, 0xc
test eax, eax
je 0x4e883e
mov eax, dword [ebp + 0xf0]
cmp eax, 0x191
je 0x4e885f
push 0x13
push esi
push str.Proxy_authenticate:
call fcn.004c4a20
add esp, 0xc
test eax, eax
je 0x4e88a8
mov eax, dword [ebp + 0xf0]
cmp eax, 0x197
jne 0x4e88a8
xor ecx, ecx
cmp eax, 0x197
sete cl
push esi
mov edi, ecx
call fcn.004de450
mov esi, eax
add esp, 4
test esi, esi
je 0x4e8b7a
mov edx, dword [esp + 0x4c]
push esi
push edi
push edx
call fcn.004deb10
push esi
mov edi, eax
call dword [0x84f474]
add esp, 0x10
test edi, edi
je 0x4e8a2f
mov eax, edi
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x38
ret
push 0xf
push esi
push str.Content_Length:
call fcn.004c4a20
add esp, 0xc
test eax, eax
je 0x4e8917
mov ecx, dword [ebp + 0xf0]
mov eax, 0x51eb851f
imul ecx
sar edx, 5
mov eax, edx
shr eax, 0x1f
add eax, edx
cmp eax, 2
jne 0x4e88f5
push ecx
push str.Ignoring_Content_Length_in_CONNECT__03d_response_n
push ebp
call fcn.004bd2f0
add esp, 0xc
push ebx
call fcn.004c0480
add esp, 4
jmp 0x4e8aef
lea ecx, [ebx + 0x18]
push ecx
push 0xa
push 0
add esi, 0xf
push esi
call fcn.004ec350
add esp, 0x10
push ebx
call fcn.004c0480
add esp, 4
jmp 0x4e8aef
push str.close
push str.Connection:
push esi
call fcn.004df050
add esp, 0xc
test eax, eax
je 0x4e8943
push ebx
mov dword [ebx + 0x28], 1
call fcn.004c0480
add esp, 4
jmp 0x4e8aef
push 0x12
push esi
push str.Transfer_Encoding:
call fcn.004c4a20
add esp, 0xc
test eax, eax
je 0x4e89dc
mov ecx, dword [ebp + 0xf0]
mov eax, 0x51eb851f
imul ecx
sar edx, 5
mov eax, edx
shr eax, 0x1f
add eax, edx
cmp eax, 2
jne 0x4e8994
push ecx
push str.Ignoring_Transfer_Encoding_in_CONNECT__03d_response_n
push ebp
call fcn.004bd2f0
add esp, 0xc
push ebx
call fcn.004c0480
add esp, 4
jmp 0x4e8aef
push str.chunked
push str.Transfer_Encoding:
push esi
call fcn.004df050
add esp, 0xc
test eax, eax
je 0x4e8a2f
push str.CONNECT_responded_chunked_n
push ebp
call fcn.004bd2f0
mov ecx, dword [esp + 0x54]
push ecx
mov dword [ebx + 0x24], 1
call fcn.004edca0
add esp, 0xc
push ebx
call fcn.004c0480
add esp, 4
jmp 0x4e8aef
push str.close
push str.Proxy_Connection:
push esi
call fcn.004df050
add esp, 0xc
test eax, eax
je 0x4e8a08
push ebx
mov dword [ebx + 0x28], 1
call fcn.004c0480
add esp, 4
jmp 0x4e8aef
lea edi, [ebp + 0xf0]
push edi
lea edx, [esp + 0x30]
push edx
push str.HTTP_1._d__d
push esi
call fcn.006cef4c
add esp, 0x10
cmp eax, 2
jne 0x4e8a2f
mov eax, dword [edi]
mov dword [ebp + 0x12ac], eax
push ebx
call fcn.004c0480
add esp, 4
jmp 0x4e8aef
cmp dword [ebp + 0xf0], 0x197
jne 0x4e8ad9
cmp dword [ebp + 0x1250], 0
jne 0x4e8ad9
mov eax, dword [ebx + 0x18]
mov ecx, dword [ebx + 0x1c]
mov edx, eax
or edx, ecx
mov dword [ebx + 0x10], 2
je 0x4e8a7f
push ecx
push eax
push str.Ignore__I64d_bytes_of_response_body_n
push ebp
call fcn.004bd2f0
add esp, 0x10
jmp 0x4e8ae0
cmp dword [ebx + 0x24], 0
je 0x4e8ad9
push str.Ignore_chunked_response_body_n
push ebp
call fcn.004bd2f0
add esp, 8
mov dword [ebp + 0x590], 1
cmp byte [esi + 1], 0xa
jne 0x4e8aa4
inc esi
mov edx, dword [esp + 0x4c]
lea eax, [esp + 0x34]
push eax
lea ecx, [esp + 0x28]
push ecx
push 1
inc esi
push esi
push edx
call fcn.004edcd0
add esp, 0x14
cmp eax, 0xffffffff
jne 0x4e8ae0
push str.chunk_reading_DONE_n
push ebp
call fcn.004bd2f0
add esp, 8
mov dword [ebx + 0x20], 2
mov dword [ebx + 0x10], 0
mov eax, dword [ebx + 0x18]
or eax, dword [ebx + 0x1c]
jne 0x4e8aef
mov dword [ebx + 0x20], 2
cmp dword [ebx + 0x10], 0
jne 0x4e85c2
mov esi, dword [esp + 0x4c]
jmp 0x4e8650
cmp dword [ebp + 0x5d0], 0
je 0x4e8b31
cmp dword [ebp + 0xf28], 0
je 0x4e8b31
push str.Proxy_CONNECT_connection_closed_n
push ebp
mov dword [esi + 0x54c], 1
call fcn.004bd2f0
add esp, 8
jmp 0x4e8649
push str.Proxy_CONNECT_aborted
push ebp
mov dword [esp + 0x28], 1
call fcn.004bd3d0
add esp, 8
jmp 0x4e8649
lea edx, [esp + 0x38]
push edx
call fcn.004c03b0
add esp, 4
pop edi
pop esi
pop ebp
mov eax, 0x1b
pop ebx
add esp, 0x38
ret
push edi
call dword [0x84f474]
lea eax, [esp + 0x3c]
push eax
call fcn.004c03b0
add esp, 8
pop edi
pop esi
pop ebp
mov eax, 0x1b
pop ebx
add esp, 0x38
ret
pop edi
mov eax, esi
pop esi
pop ebp
pop ebx
add esp, 0x38
ret
push str.Proxy_CONNECT_aborted_due_to_timeout
push ebp
call fcn.004bd3d0
add esp, 8
pop edi
pop esi
pop ebp
mov eax, 0x1c
pop ebx
add esp, 0x38
ret
push str.CONNECT_response_too_large_
push ebp
call fcn.004bd3d0
add esp, 8
pop edi
pop esi
pop ebp
mov eax, 0x38
pop ebx
add esp, 0x38
ret
pop edi
pop esi
pop ebp
mov eax, 0x2a
pop ebx
add esp, 0x38
ret
mov edi, dword [esp + 0x50]
mov ecx, dword [esi + edi*4 + 0x420]
push ecx
push esi
call fcn.004c31d0
add esp, 8
mov dword [esi + edi*4 + 0x420], 0xffffffff
jmp 0x4e86e6
mov ecx, dword [ebp + 0x12c]
push ecx
call dword [0x84f474]
push 2
push esi
mov dword [ebp + 0x12c], 0
call fcn.004c3390
mov edx, dword [esi + edi*4 + 0x420]
push edx
push esi
call fcn.004c31d0
mov dword [esi + edi*4 + 0x420], 0xffffffff
mov esi, dword [esp + 0x60]
add esp, 0x14
mov dword [ebx + 0x20], 0
cmp dword [esi + 0x54c], 0
jne 0x4e8cc3
push ebx
call fcn.004c03b0
mov eax, dword [ebp + 0xf0]
push eax
push str.Received_HTTP_code__d_from_proxy_after_CONNECT
push ebp
call fcn.004bd3d0
add esp, 0x10
pop edi
pop esi
pop ebp
mov eax, 0x38
pop ebx
add esp, 0x38
ret
mov dword [ebx + 0x20], 2
mov ecx, dword [ebp + 0x1214]
push ecx
call dword [0x84f474]
mov edx, dword [ebp + 0x12ac]
push edx
xor edi, edi
push str.Proxy_replied__d_to_CONNECT_request_n
push ebp
mov dword [ebp + 0x1214], edi
mov dword [ebp + 0xf2c], 1
mov dword [ebp + 0xf30], edi
call fcn.004bd2f0
mov dword [ebp + 0x590], edi
push ebx
mov dword [esi + 0x584], edi
call fcn.004c03b0
add esp, 0x14
xor eax, eax
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x38
ret