Function at 0x4e85b0
Capabilities:
Check http status code

Disassembly:
sub esp, 0x34
mov ecx, dword [esp + 0x3c]
xor al, al
push ebx
push ebp
mov ebp, dword [esp + 0x40]
xor bl, bl
push esi
xorps xmm0, xmm0
mov dword [esp + 0x3c], 0
push edi
mov esi, dword [ebp + ecx*4 + 0x168]
lea ecx, [ecx*4 + 0x594]
mov edi, dword [ebp]
add ecx, ebp
mov dword [esp + 0x34], esi
movlpd qword [esp + 0x38], xmm0
mov byte [esp + 0x11], bl
cmp dword [ecx], 2
mov byte [esp + 0x12], al
mov dword [esp + 0x30], 0
mov dword [esp + 0x14], ecx
je 0x4e8ffe
mov byte [ebp + 0x2a0], al
mov eax, dword [esp + 0x3c]
mov dword [esp + 0x24], eax
mov eax, dword [esp + 0x38]
mov dword [esp + 0x20], eax
nop
cmp dword [ecx], 0
jne 0x4e884b
push dword [esp + 0x54]
mov ebp, dword [esp + 0x54]
push ebp
push str.Establish_HTTP_proxy_tunnel_to__s:_hu_n
push edi
call fcn.004c6e00
push dword [edi + 0x144]
call dword [0x5aa364]
add esp, 0x14
mov dword [edi + 0x144], 0
call fcn.004d0290
mov ebx, eax
test ebx, ebx
je 0x4e8ec1
push dword [esp + 0x54]
push ebp
push str._s:_hu
call fcn.004c8d70
mov ebp, eax
add esp, 0xc
test ebp, ebp
je 0x4e8eb8
push 1
push ebp
push str.CONNECT
push dword [esp + 0x54]
call fcn.004d0e40
push ebp
mov esi, eax
call dword [0x5aa364]
add esp, 0x14
test esi, esi
jne 0x4e8828
mov edx, dword [esp + 0x48]
mov ecx, 0x572bfc
mov esi, dword [esp + 0x50]
mov eax, 0x572c00
mov ebp, 0x58d5ec
mov dword [esp + 0x2c], ebp
cmp dword [edx + 0x14c], 1
cmovne eax, ecx
mov cl, byte [edx + 0x291]
mov dword [esp + 0x38], eax
cmp esi, dword [edx + 0x98]
je 0x4e86ed
push 0x3a
push esi
call fcn.004b4ce0
add esp, 8
test eax, eax
setne cl
push dword [esp + 0x54]
test cl, cl
mov edx, 0x58d5ec
mov eax, 0x56bd3c
cmove eax, edx
push eax
mov eax, 0x56bd38
push esi
cmove eax, edx
push eax
push str._s_s_s:_hu
call fcn.004c8d70
mov esi, eax
add esp, 0x14
mov dword [esp + 0x28], esi
test esi, esi
je 0x4e8eb8
push str.Host:
push dword [esp + 0x4c]
call fcn.004d07f0
add esp, 8
test eax, eax
jne 0x4e8753
push esi
push str.Host:__s_r_n
call fcn.004c8d70
mov ebp, eax
add esp, 8
test ebp, ebp
je 0x4e8e91
push str.User_Agent:
push dword [esp + 0x4c]
call fcn.004d07f0
add esp, 8
test eax, eax
jne 0x4e877e
cmp dword [edi + 0x3b0], eax
je 0x4e877e
mov eax, dword [esp + 0x48]
mov eax, dword [eax + 0x2d0]
mov dword [esp + 0x2c], eax
mov eax, dword [esp + 0x48]
mov ecx, 0x58d5ec
push dword [esp + 0x2c]
mov eax, dword [eax + 0x2cc]
test eax, eax
cmovne ecx, eax
push ecx
push ebp
push dword [esp + 0x44]
push esi
push str.CONNECT__s_HTTP__s_r_n_s_s_s
push ebx
call fcn.004d0460
add esp, 0x1c
mov esi, eax
test ebp, ebp
je 0x4e87c1
cmp byte [ebp], 0
je 0x4e87c1
push ebp
call dword [0x5aa364]
add esp, 4
push dword [esp + 0x28]
call dword [0x5aa364]
add esp, 4
test esi, esi
jne 0x4e8814
mov ebp, dword [esp + 0x48]
push ebx
push 1
push ebp
call fcn.004d04d0
mov esi, eax
add esp, 0xc
test esi, esi
jne 0x4e8814
push 0x591900
push ebx
call fcn.004d0460
mov esi, eax
add esp, 8
test esi, esi
jne 0x4e8814
push dword [esp + 0x4c]
push eax
lea eax, [edi + 0x875c]
push eax
push ebp
push ebx
call fcn.004d02a0
add esp, 0x14
mov esi, eax
xor ebx, ebx
test esi, esi
je 0x4e8828
push str.Failed_sending_CONNECT_to_proxy
push edi
call fcn.004c6d30
add esp, 8
push ebx
call fcn.004d0270
add esp, 4
test esi, esi
jne 0x4e8eae
mov eax, dword [esp + 0x14]
mov ebp, dword [esp + 0x48]
mov esi, dword [esp + 0x34]
mov dword [eax], 1
push 1
push 0
push edi
call fcn.004c7ef0
add esp, 0xc
test eax, eax
jle 0x4e9008
cmp byte [esp + 0x58], 0
jne 0x4e887e
push 0
push 0xffffffffffffffff
push 0xffffffffffffffff
push esi
call fcn.004c6690
add esp, 0x10
test eax, eax
je 0x4e8ffe
lea eax, [edi + 0x5ac]
mov dword [esp + 0x2c], 0
mov ecx, 1
mov dword [esp + 0x28], eax
mov dword [esp + 0x18], ecx
mov esi, eax
xor ebx, ebx
nop dword [eax]
test ecx, ecx
je 0x4e8c6b
cmp dword [esp + 0x30], 0
jne 0x4e8fae
push 1
push 0
push edi
call fcn.004c7ef0
mov ecx, eax
add esp, 0xc
test ecx, ecx
jle 0x4e8edb
mov eax, 0x3e8
cmp ecx, eax
cmovl eax, ecx
push eax
push 0xffffffffffffffff
push 0xffffffffffffffff
push dword [esp + 0x40]
call fcn.004c6690
add esp, 0x10
cmp eax, 0xffffffff
je 0x4e8e1b
test eax, eax
je 0x4e8c48
lea eax, [esp + 0x1c]
push eax
mov eax, 0x4000
sub eax, dword [esp + 0x30]
push eax
push dword [esp + 0x30]
push dword [esp + 0x40]
push ebp
call fcn.004c6ee0
add esp, 0x14
cmp eax, 0x51
je 0x4e8c59
test eax, eax
je 0x4e892e
xor eax, eax
mov dword [esp + 0x18], eax
jmp 0x4e8c48
mov ecx, dword [esp + 0x1c]
test ecx, ecx
jg 0x4e8981
xor eax, eax
mov dword [esp + 0x18], eax
cmp dword [edi + 0x180], eax
je 0x4e8966
cmp dword [edi + 0x8690], eax
je 0x4e8966
push str.Proxy_CONNECT_connection_closed_n
push edi
mov byte [ebp + 0x2a0], 1
call fcn.004c6e00
add esp, 8
jmp 0x4e8c48
push str.Proxy_CONNECT_aborted
push edi
mov dword [esp + 0x38], 1
call fcn.004c6d30
add esp, 8
jmp 0x4e8c48
add dword [esp + 0x2c], ecx
cmp dword [esp + 0x18], 1
jle 0x4e8a37
mov eax, dword [esp + 0x20]
lea edx, [edi + 0x5ac]
or eax, dword [esp + 0x24]
mov dword [esp + 0x2c], 0
mov dword [esp + 0x28], edx
je 0x4e89e0
mov eax, ecx
mov ecx, dword [esp + 0x20]
cdq
sub ecx, eax
mov eax, dword [esp + 0x24]
mov dword [esp + 0x20], ecx
sbb eax, edx
mov dword [esp + 0x24], eax
test eax, eax
jg 0x4e8c48
jl 0x4e89d5
test ecx, ecx
jne 0x4e8c48
xor eax, eax
mov dword [esp + 0x18], eax
jmp 0x4e8c48
lea eax, [esp + 0x38]
mov dword [esp + 0x38], 0
push eax
push ecx
push edx
push ebp
call fcn.004e9450
add esp, 0x10
cmp eax, 0xffffffff
jne 0x4e8a20
push str.chunk_reading_DONE_n
push edi
call fcn.004c6e00
add esp, 8
xor eax, eax
mov dword [esp + 0x18], eax
mov eax, dword [esp + 0x14]
mov dword [eax], 2
jmp 0x4e8c48
push dword [esp + 0x38]
push str.Read__zd_bytes_of_chunk__continue_n
push edi
call fcn.004c6e00
add esp, 0xc
jmp 0x4e8c48
xor ebp, ebp
mov dword [esp + 0x38], ebp
test ecx, ecx
jle 0x4e8c44
mov eax, dword [esp + 0x28]
nop dword [eax]
inc ebx
cmp byte [eax], 0xa
jne 0x4e8c32
cmp byte [edi + 0x318], 0
je 0x4e8a74
push dword [esp + 0x48]
push ebx
push esi
push 1
push edi
call fcn.004c6c40
add esp, 0x14
xor eax, eax
cmp byte [edi + 0x30c], al
push ebx
setne al
push esi
add eax, 2
push eax
push dword [esp + 0x54]
call fcn.004c6c10
add dword [edi + 0x8758], ebx
add esp, 0x10
add dword [edi + 0x80], ebx
test eax, eax
jne 0x4e901b
mov al, byte [esi]
cmp al, 0xd
je 0x4e8cae
cmp al, 0xa
je 0x4e8cae
mov al, byte [ebx + esi]
lea ebp, [ebx + esi]
push 0x11
push esi
push str.WWW_Authenticate:
mov byte [esp + 0x1f], al
mov byte [ebp], 0
call fcn.004d4ad0
add esp, 0xc
test eax, eax
je 0x4e8ae7
mov ebx, dword [edi + 0xc8]
cmp ebx, 0x191
je 0x4e8b09
push 0x13
push esi
push str.Proxy_authenticate:
call fcn.004d4ad0
add esp, 0xc
test eax, eax
je 0x4e8b51
mov ebx, dword [edi + 0xc8]
cmp ebx, 0x197
jne 0x4e8b51
push esi
call fcn.004d0990
mov esi, eax
add esp, 4
test esi, esi
je 0x4e8ec1
cmp ebx, 0x197
push esi
sete al
movzx eax, al
push eax
push dword [esp + 0x50]
call fcn.004d0c20
push esi
mov ebx, eax
call dword [0x5aa364]
add esp, 0x10
test ebx, ebx
je 0x4e8c1a
pop edi
pop esi
pop ebp
mov eax, ebx
pop ebx
add esp, 0x34
ret
push 0xf
push esi
push str.Content_Length:
call fcn.004d4ad0
add esp, 0xc
test eax, eax
je 0x4e8b82
push 0xa
push 0
add esi, 0xf
push esi
call fcn.00530676
add esp, 0xc
mov dword [esp + 0x20], eax
mov dword [esp + 0x24], edx
jmp 0x4e8c1a
push str.close
push str.Connection:
push esi
call fcn.004d08c0
add esp, 0xc
test al, al
je 0x4e8ba0
mov byte [esp + 0x11], 1
jmp 0x4e8c1a
push str.chunked
push str.Transfer_Encoding:
push esi
call fcn.004d08c0
add esp, 0xc
test al, al
je 0x4e8bd5
push str.CONNECT_responded_chunked_n
push edi
call fcn.004c6e00
push dword [esp + 0x50]
mov byte [esp + 0x1e], 1
call fcn.004e9430
add esp, 0xc
jmp 0x4e8c1a
push str.close
push str.Proxy_Connection:
push esi
call fcn.004d08c0
add esp, 0xc
test al, al
je 0x4e8bf3
mov byte [esp + 0x11], 1
jmp 0x4e8c1a
lea ebx, [edi + 0xc8]
push ebx
lea eax, [esp + 0x44]
push eax
push str.HTTP_1._d__d
push esi
call fcn.004bcf10
add esp, 0x10
cmp eax, 2
jne 0x4e8c1a
mov eax, dword [ebx]
mov dword [edi + 0x8748], eax
mov al, byte [esp + 0x13]
xor ebx, ebx
mov ecx, dword [esp + 0x1c]
mov byte [ebp], al
mov eax, dword [esp + 0x28]
mov ebp, dword [esp + 0x38]
lea esi, [eax + 1]
inc ebp
inc eax
mov dword [esp + 0x28], eax
mov dword [esp + 0x38], ebp
cmp ebp, ecx
jl 0x4e8a50
mov ebp, dword [esp + 0x48]
push ebp
call fcn.004d2f10
add esp, 4
test eax, eax
jne 0x4e8ece
cmp dword [esp + 0x2c], 0x4000
mov ecx, dword [esp + 0x18]
jb 0x4e88a0
cmp dword [esp + 0x30], 0
jne 0x4e8fae
cmp dword [edi + 0x8748], 0xc8
je 0x4e8e36
push ebp
call fcn.004d0a60
add esp, 4
test eax, eax
jne 0x4e901b
cmp byte [ebp + 0x289], al
je 0x4e8e36
mov bl, 1
mov byte [esp + 0x11], bl
jmp 0x4e8e3e
cmp dword [edi + 0xc8], 0x197
lea eax, [edi + 0x5ac]
mov dword [esp + 0x2c], 0
mov dword [esp + 0x28], eax
jne 0x4e8de0
cmp byte [edi + 0x8698], 0
jne 0x4e8de0
mov ecx, dword [esp + 0x20]
mov eax, ecx
mov edx, dword [esp + 0x24]
or eax, edx
mov dword [esp + 0x18], 2
je 0x4e8d47
push edx
push ecx
push str.Ignore__I64d_bytes_of_response_body_n
push edi
call fcn.004c6e00
mov eax, dword [esp + 0x2c]
add esp, 0x10
mov ecx, dword [esp + 0x20]
sub eax, ebp
cdq
sub ecx, eax
mov eax, dword [esp + 0x24]
mov dword [esp + 0x20], ecx
sbb eax, edx
mov dword [esp + 0x24], eax
test eax, eax
jg 0x4e8e0c
jl 0x4e8d30
test ecx, ecx
jne 0x4e8e0c
mov eax, dword [esp + 0x14]
mov dword [esp + 0x18], 0
mov dword [eax], 2
jmp 0x4e8c44
mov al, byte [esp + 0x12]
test al, al
je 0x4e8d30
mov eax, dword [esp + 0x1c]
sub eax, ebp
mov byte [edi + 0x13d], 1
push eax
push str._zd_bytes_of_chunk_left_n
push edi
call fcn.004c6e00
add esp, 0xc
cmp byte [esi + 1], 0xa
jne 0x4e8d73
inc esi
inc ebp
lea eax, [esp + 0x1c]
push eax
mov eax, dword [esp + 0x20]
sub eax, ebp
push eax
lea eax, [esi + 1]
push eax
push dword [esp + 0x54]
call fcn.004e9450
add esp, 0x10
cmp eax, 0xffffffff
jne 0x4e8dbf
push str.chunk_reading_DONE_n
push edi
call fcn.004c6e00
mov eax, dword [esp + 0x1c]
add esp, 8
mov dword [esp + 0x18], 0
mov dword [eax], 2
mov dword [eax], 2
jmp 0x4e8c44
push dword [esp + 0x1c]
push str.Read__zd_bytes_of_chunk__continue_n
push edi
call fcn.004c6e00
mov eax, dword [esp + 0x20]
add esp, 0xc
mov dword [eax], 2
jmp 0x4e8c44
xor eax, eax
cmp dword [edi + 0x8748], 0xc8
mov dword [esp + 0x18], eax
jne 0x4e8e0c
mov eax, dword [esp + 0x1c]
sub eax, ebp
add eax, 0xffffffff
je 0x4e8e0c
push eax
push str.Proxy_CONNECT_followed_by__zd_bytes_of_opaque_data._Data_ignored__known_bug_39_
push edi
call fcn.004c6d30
add esp, 0xc
mov eax, dword [esp + 0x14]
mov dword [eax], 2
jmp 0x4e8c44
push str.Proxy_CONNECT_aborted_due_to_select_poll_error
push edi
mov dword [esp + 0x38], 1
call fcn.004c6d30
add esp, 8
jmp 0x4e8c48
mov bl, byte [esp + 0x11]
test bl, bl
je 0x4e8e4b
cmp dword [edi + 0x144], 0
jne 0x4e8ef6
cmp dword [edi + 0x144], 0
mov ecx, dword [esp + 0x14]
je 0x4e8f17
cmp dword [ecx], 2
jne 0x4e8e7b
push 0
push str.TUNNEL_STATE_switched_to:__d_n
push edi
mov dword [ecx], 0
call fcn.004c6e00
mov ecx, dword [esp + 0x20]
add esp, 0xc
cmp dword [edi + 0x144], 0
je 0x4e8f17
mov esi, dword [esp + 0x34]
jmp 0x4e8620
push esi
call dword [0x5aa364]
push ebx
call fcn.004d0270
add esp, 8
mov eax, 0x1b
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x34
ret
pop edi
mov eax, esi
pop esi
pop ebp
pop ebx
add esp, 0x34
ret
push ebx
call fcn.004d0270
add esp, 4
pop edi
pop esi
pop ebp
mov eax, 0x1b
pop ebx
add esp, 0x34
ret
pop edi
pop esi
pop ebp
mov eax, 0x2a
pop ebx
add esp, 0x34
ret
push str.Proxy_CONNECT_aborted_due_to_timeout
push edi
call fcn.004c6d30
add esp, 8
mov eax, 0x38
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x34
ret
mov esi, dword [esp + 0x4c]
push dword [ebp + esi*4 + 0x168]
push ebp
call fcn.004c75d0
add esp, 8
mov dword [ebp + esi*4 + 0x168], 0xffffffff
jmp 0x4e8f1b
mov esi, dword [esp + 0x4c]
cmp dword [edi + 0xc8], 0xc8
je 0x4e8fbb
test bl, bl
je 0x4e8f4f
cmp dword [edi + 0x144], 0
je 0x4e8f4f
push str.Connect_me_again_please_n
push edi
mov byte [ebp + 0x2a0], 1
call fcn.004c6e00
add esp, 8
jmp 0x4e8f87
push dword [edi + 0x144]
call dword [0x5aa364]
mov dword [edi + 0x144], 0
mov byte [ebp + 0x289], 1
push dword [ebp + esi*4 + 0x168]
push ebp
call fcn.004c75d0
add esp, 0xc
mov dword [ebp + esi*4 + 0x168], 0xffffffff
mov eax, dword [esp + 0x14]
mov dword [eax], 0
cmp byte [ebp + 0x2a0], 0
jne 0x4e8ffe
push dword [edi + 0xc8]
push str.Received_HTTP_code__d_from_proxy_after_CONNECT
push edi
call fcn.004c6d30
add esp, 0xc
pop edi
pop esi
pop ebp
mov eax, 0x38
pop ebx
add esp, 0x34
ret
mov eax, dword [esp + 0x14]
mov dword [eax], 2
push dword [ebp + 0x2cc]
call dword [0x5aa364]
push str.Proxy_replied_OK_to_CONNECT_request_n
mov dword [ebp + 0x2cc], 0
push edi
mov byte [edi + 0x8694], 1
call fcn.004c6e00
mov byte [edi + 0x13d], 0
add esp, 0xc
mov byte [ebp + 0x29a], 0
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
add esp, 0x34
ret
push str.Proxy_CONNECT_aborted_due_to_timeout
push edi
call fcn.004c6d30
mov eax, 0x38
add esp, 8
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x34
ret