Function at 0x4e2170
Capabilities:
Check http status code

Disassembly:
sub esp, 0x20
mov eax, dword [esp + 0x28]
push ebx
mov ebx, dword [esp + 0x34]
push ebp
push esi
push edi
mov edi, dword [esp + 0x34]
mov ecx, dword [edi + eax*4 + 0x1a8]
mov ebp, dword [edi]
mov esi, dword [edi + 0x45c]
push edi
mov dword [esp + 0x30], 0
mov dword [esp + 0x2c], ecx
call fcn.004e2080
add esp, 4
test eax, eax
jne 0x4e2c3a
and dword [edi + 0x294], 0xff7fffff
lea esp, [esp]
cmp dword [esi + 0x4018], 0
jne 0x4e2438
mov edi, dword [esp + 0x3c]
push ebx
push edi
push str.Establish_HTTP_proxy_tunnel_to__s:_d_n
push ebp
call fcn.004c2070
mov edx, dword [ebp + 0x148]
push edx
call dword [0x659f40]
add esp, 0x14
mov dword [ebp + 0x148], 0
call fcn.004dadd0
mov dword [esp + 0x10], eax
test eax, eax
je 0x4e2a6b
push ebx
push edi
push str._s:_d
call fcn.004ca600
mov ebx, eax
add esp, 0xc
test ebx, ebx
je 0x4e2a5e
mov eax, dword [esp + 0x34]
push 1
push ebx
push str.CONNECT
push eax
call fcn.004da9c0
push ebx
mov edi, eax
call dword [0x659f40]
add esp, 0x14
test edi, edi
jne 0x4e240f
mov dword [esp + 0x14], edi
mov edi, dword [esp + 0x34]
cmp dword [edi + 0xf0], 1
mov eax, 0x637908
mov dword [esp + 0x18], eax
mov dword [esp + 0x1c], eax
mov dword [esp + 0x20], 0x5eee50
je 0x4e2276
mov dword [esp + 0x20], 0x5eee54
mov eax, dword [edi + 0x294]
mov ebx, dword [esp + 0x3c]
shr eax, 9
and eax, 1
cmp ebx, dword [edi + 0x9c]
je 0x4e229f
push 0x3a
push ebx
call fcn.004a6380
add esp, 8
neg eax
sbb eax, eax
neg eax
test eax, eax
je 0x4e22af
mov ecx, 0x63537c
mov eax, 0x635378
jmp 0x4e22b6
mov ecx, 0x637908
mov eax, ecx
mov edx, dword [esp + 0x40]
push edx
push ecx
push ebx
push eax
push str._s_s_s:_d
call fcn.004ca600
mov ebx, eax
add esp, 0x14
test ebx, ebx
je 0x4e2a78
push str.Host
push edi
call fcn.004da370
add esp, 8
test eax, eax
jne 0x4e2301
push ebx
push str.Host:__s_r_n
call fcn.004ca600
add esp, 8
mov dword [esp + 0x14], eax
test eax, eax
je 0x4e2a92
push str.Proxy_Connection
push edi
call fcn.004da370
add esp, 8
test eax, eax
jne 0x4e231b
mov dword [esp + 0x18], str.Proxy_Connection:_Keep_Alive_r_n
push str.User_Agent
push edi
call fcn.004da370
add esp, 8
test eax, eax
jne 0x4e233f
cmp dword [ebp + 0x9c4], eax
je 0x4e233f
mov eax, dword [edi + 0x2e8]
mov dword [esp + 0x1c], eax
mov edi, dword [edi + 0x2e4]
mov ecx, edi
test edi, edi
jne 0x4e2350
mov ecx, 0x637908
mov eax, dword [esp + 0x14]
test eax, eax
jne 0x4e235d
mov eax, 0x637908
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.004db990
add esp, 0x20
cmp dword [esp + 0x14], 0
mov edi, eax
je 0x4e2398
mov edx, dword [esp + 0x14]
push edx
call dword [0x659f40]
add esp, 4
push ebx
call dword [0x659f40]
add esp, 4
test edi, edi
jne 0x4e23f5
mov eax, dword [esp + 0x10]
mov ebx, dword [esp + 0x34]
push eax
push 1
push ebx
call fcn.004dbc20
mov edi, eax
add esp, 0xc
test edi, edi
jne 0x4e23f5
lea ecx, [esp + 0x10]
push 0x63a958
push ecx
call fcn.004db990
mov edi, eax
add esp, 8
test edi, edi
jne 0x4e23f5
mov edx, dword [esp + 0x38]
push edx
push eax
lea eax, [ebp + 0xfb8]
push eax
lea ecx, [esp + 0x1c]
push ebx
push ecx
call fcn.004dae10
add esp, 0x14
mov edi, eax
mov dword [esp + 0x10], 0
test edi, edi
je 0x4e240f
push str.Failed_sending_CONNECT_to_proxy
push ebp
call fcn.004c2150
add esp, 8
lea edx, [esp + 0x10]
push edx
call fcn.004dade0
add esp, 4
test edi, edi
jne 0x4e2ab3
mov dword [esi + 0x4000], edi
mov edi, dword [esp + 0x34]
mov dword [esi + 0x4018], 1
push 1
push 0
push ebp
call fcn.004c7c30
add esp, 0xc
test edx, edx
jl 0x4e2abd
jg 0x4e2457
test eax, eax
jbe 0x4e2abd
mov eax, dword [esp + 0x38]
push eax
push edi
call fcn.004c89b0
add esp, 8
test eax, eax
je 0x4e2c3a
cmp dword [esi + 0x4004], 0
mov dword [esp + 0x20], 0
je 0x4e254a
lea ebx, [esi + 0x4000]
jmp 0x4e2490
mov eax, dword [esi + 0x400c]
cmp eax, ebx
jae 0x4e2ad8
mov edx, dword [esp + 0x28]
lea ecx, [esp + 0x24]
push ecx
push 1
push eax
mov eax, dword [esp + 0x40]
push edx
push eax
call fcn.004c1eb0
mov edi, eax
add esp, 0x14
cmp edi, 0x51
je 0x4e2c3a
mov ecx, dword [esp + 0x34]
push ecx
call fcn.004e4030
add esp, 4
test eax, eax
jne 0x4e2af3
test edi, edi
jne 0x4e253c
cmp dword [esp + 0x24], edi
jle 0x4e2a10
cmp dword [esi + 0x4004], 1
jle 0x4e2640
mov eax, dword [esi + 0x4010]
mov ecx, dword [esi + 0x4014]
mov edx, eax
or edx, ecx
mov dword [esi + 0x400c], esi
je 0x4e25f3
sub eax, 1
sbb ecx, edi
mov dword [esi + 0x4010], eax
mov dword [esi + 0x4014], ecx
test ecx, ecx
jl 0x4e2532
jg 0x4e29fe
test eax, eax
ja 0x4e29fe
mov dword [esi + 0x4018], 2
mov dword [esi + 0x4004], 0
mov edi, dword [esp + 0x34]
push edi
call fcn.004e4030
add esp, 4
test eax, eax
jne 0x4e2af3
cmp dword [esp + 0x20], eax
jne 0x4e2ae6
mov ecx, dword [ebp + 0xf9c]
mov eax, 0x51eb851f
imul ecx
sar edx, 5
mov ecx, edx
shr ecx, 0x1f
add ecx, edx
mov ebx, 2
cmp ecx, ebx
je 0x4e25a5
push edi
call fcn.004db760
add esp, 4
test eax, eax
jne 0x4e2c3c
test byte [edi + 0x294], 1
je 0x4e25a5
or dword [esi + 0x401c], ebx
test byte [esi + 0x401c], bl
je 0x4e25ba
cmp dword [ebp + 0x148], 0
jne 0x4e2b00
cmp dword [ebp + 0x148], 0
je 0x4e2b22
cmp dword [esi + 0x4018], ebx
jne 0x4e25dd
mov edi, dword [esp + 0x34]
push 1
call fcn.004e20c0
add esp, 4
cmp dword [ebp + 0x148], 0
je 0x4e2b22
mov ebx, dword [esp + 0x40]
jmp 0x4e21c0
mov ecx, dword [esp + 0x34]
lea eax, [esp + 0x1c]
push eax
push 1
push esi
push ecx
mov dword [esp + 0x2c], 0
call fcn.004ed510
add esp, 0x10
cmp eax, 0xffffffff
jne 0x4e29fe
push str.chunk_reading_DONE_n
push ebp
call fcn.004c2070
add esp, 8
mov dword [esi + 0x4004], 0
mov dword [esi + 0x4018], 2
jmp 0x4e29fe
inc dword [ebx]
mov eax, dword [esi + 0x400c]
cmp byte [eax], 0xa
mov ecx, dword [ebx]
je 0x4e265b
inc eax
mov dword [esi + 0x400c], eax
jmp 0x4e29fe
test dword [ebp + 0xa8c], 0x4000000
je 0x4e267a
mov edx, dword [esi + 0x4008]
push ecx
push edx
push 1
push ebp
call fcn.004c1fe0
add esp, 0x10
test dword [ebp + 0xa90], 0x40000
jne 0x4e26bc
test dword [ebp + 0xa8c], 0x200000
mov eax, 2
je 0x4e269c
mov eax, 3
mov ecx, dword [ebx]
mov edx, dword [esi + 0x4008]
push ecx
push edx
push eax
mov eax, dword [esp + 0x40]
push eax
call fcn.004c25a0
add esp, 0x10
test eax, eax
jne 0x4e2c3c
mov eax, dword [ebx]
cdq
add dword [ebp + 0xfb0], eax
adc dword [ebp + 0xfb4], edx
mov eax, dword [ebx]
cdq
add dword [ebp + 0xb0], eax
adc dword [ebp + 0xb4], edx
mov eax, dword [esi + 0x4008]
mov cl, byte [eax]
cmp cl, 0xd
je 0x4e2922
cmp cl, 0xa
je 0x4e2922
mov ecx, dword [ebx]
mov byte [eax + ecx], 0
mov edx, dword [esi + 0x4008]
push 0x11
push edx
push str.WWW_Authenticate:
call fcn.004c10b0
add esp, 0xc
test eax, eax
je 0x4e2721
mov eax, dword [ebp + 0x108]
cmp eax, 0x191
je 0x4e2748
mov eax, dword [esi + 0x4008]
push 0x13
push eax
push str.Proxy_authenticate:
call fcn.004c10b0
add esp, 0xc
test eax, eax
je 0x4e2795
mov eax, dword [ebp + 0x108]
cmp eax, 0x197
jne 0x4e2795
mov ecx, dword [esi + 0x4008]
xor ebx, ebx
cmp eax, 0x197
push ecx
sete bl
call fcn.004da3f0
mov edi, eax
add esp, 4
test edi, edi
je 0x4e2a6b
mov edx, dword [esp + 0x34]
push edi
push ebx
push edx
call fcn.004daad0
push edi
mov ebx, eax
call dword [0x659f40]
add esp, 0x10
test ebx, ebx
je 0x4e2905
pop edi
pop esi
pop ebp
mov eax, ebx
pop ebx
add esp, 0x20
ret
mov eax, dword [esi + 0x4008]
push 0xf
push eax
push str.Content_Length:
call fcn.004c10b0
add esp, 0xc
test eax, eax
je 0x4e2801
mov ecx, dword [ebp + 0x108]
mov eax, 0x51eb851f
imul ecx
sar edx, 5
mov eax, edx
shr eax, 0x1f
add eax, edx
cmp eax, 2
jne 0x4e27df
push ecx
push str.Ignoring_Content_Length_in_CONNECT__03d_response_n
push ebp
call fcn.004c2070
add esp, 0xc
jmp 0x4e2905
mov edx, dword [esi + 0x4008]
lea ecx, [esi + 0x4010]
push ecx
push 0xa
add edx, 0xf
push 0
push edx
call fcn.004ecf90
add esp, 0x10
jmp 0x4e2905
mov eax, dword [esi + 0x4008]
push str.close
push str.Connection:
push eax
call fcn.004db140
add esp, 0xc
test eax, eax
je 0x4e282a
or dword [esi + 0x401c], 2
jmp 0x4e2905
mov ecx, dword [esi + 0x4008]
push 0x12
push ecx
push str.Transfer_Encoding:
call fcn.004c10b0
add esp, 0xc
test eax, eax
je 0x4e28b2
mov ecx, dword [ebp + 0x108]
mov eax, 0x51eb851f
imul ecx
sar edx, 5
mov eax, edx
shr eax, 0x1f
add eax, edx
cmp eax, 2
jne 0x4e2874
push ecx
push str.Ignoring_Transfer_Encoding_in_CONNECT__03d_response_n
push ebp
call fcn.004c2070
add esp, 0xc
jmp 0x4e2905
mov ecx, dword [esi + 0x4008]
push str.chunked
push str.Transfer_Encoding:
push ecx
call fcn.004db140
add esp, 0xc
test eax, eax
je 0x4e2905
push str.CONNECT_responded_chunked_n
push ebp
call fcn.004c2070
mov edx, dword [esp + 0x3c]
or dword [esi + 0x401c], 1
push edx
call fcn.004ed500
add esp, 0xc
jmp 0x4e2905
mov eax, dword [esi + 0x4008]
push str.close
push str.Proxy_Connection:
push eax
call fcn.004db140
add esp, 0xc
test eax, eax
je 0x4e28d8
or dword [esi + 0x401c], 2
jmp 0x4e2905
mov edx, dword [esi + 0x4008]
lea edi, [ebp + 0x108]
push edi
lea ecx, [esp + 0x30]
push ecx
push str.HTTP_1._d__d
push edx
call fcn.004f64a8
add esp, 0x10
cmp eax, 2
jne 0x4e2905
mov eax, dword [edi]
mov dword [ebp + 0xf9c], eax
lea ebx, [esi + 0x4000]
mov dword [ebx], 0
mov dword [esi + 0x400c], esi
mov dword [esi + 0x4008], esi
jmp 0x4e29fe
mov dword [esi + 0x400c], esi
cmp dword [ebp + 0x108], 0x197
jne 0x4e29db
test byte [ebp + 0xf6c], 0x20
jne 0x4e29db
mov eax, dword [esi + 0x4010]
mov ecx, dword [esi + 0x4014]
mov edx, eax
or edx, ecx
mov edi, 2
mov dword [esi + 0x4004], edi
je 0x4e2974
push ecx
push eax
push str.Ignore__I64d_bytes_of_response_body_n
push ebp
call fcn.004c2070
add esp, 0x10
jmp 0x4e29ea
test byte [esi + 0x401c], 1
je 0x4e29e0
push str.Ignore_chunked_response_body_n
push ebp
call fcn.004c2070
or dword [ebp + 0x590], 8
mov eax, dword [esi + 0x4008]
inc eax
add esp, 8
cmp byte [eax], 0xa
jne 0x4e29a4
mov dword [esi + 0x4008], eax
mov ecx, dword [esi + 0x4008]
mov edx, dword [esp + 0x34]
lea eax, [esp + 0x24]
push eax
push 1
inc ecx
push ecx
push edx
call fcn.004ed510
add esp, 0x10
cmp eax, 0xffffffff
jne 0x4e29ea
push str.chunk_reading_DONE_n
push ebp
call fcn.004c2070
add esp, 8
mov dword [esi + 0x4018], edi
jmp 0x4e29e0
mov edi, 2
mov dword [esi + 0x4004], 0
mov eax, dword [esi + 0x4010]
or eax, dword [esi + 0x4014]
jne 0x4e29fe
mov dword [esi + 0x4018], edi
cmp dword [esi + 0x4004], 0
jne 0x4e2490
jmp 0x4e2546
cmp dword [ebp + 0x5c0], 0
je 0x4e2a43
cmp dword [ebp + 0xd10], 0
je 0x4e2a43
mov eax, dword [esp + 0x34]
or dword [eax + 0x294], 0x800000
push str.Proxy_CONNECT_connection_closed_n
push ebp
call fcn.004c2070
add esp, 8
jmp 0x4e253c
push str.Proxy_CONNECT_aborted
push ebp
mov dword [esp + 0x28], 1
call fcn.004c2150
add esp, 8
jmp 0x4e253c
lea edx, [esp + 0x10]
push edx
call fcn.004dade0
add esp, 4
pop edi
pop esi
pop ebp
mov eax, 0x1b
pop ebx
add esp, 0x20
ret
lea eax, [esp + 0x10]
push eax
call fcn.004dade0
add esp, 4
pop edi
pop esi
pop ebp
mov eax, 0x1b
pop ebx
add esp, 0x20
ret
push ebx
call dword [0x659f40]
lea ecx, [esp + 0x14]
push ecx
call fcn.004dade0
add esp, 8
pop edi
pop esi
pop ebp
mov eax, 0x1b
pop ebx
add esp, 0x20
ret
mov eax, edi
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x20
ret
push str.Proxy_CONNECT_aborted_due_to_timeout
push ebp
call fcn.004c2150
add esp, 8
pop edi
pop esi
pop ebp
mov eax, 0x1c
pop ebx
add esp, 0x20
ret
push str.CONNECT_response_too_large_
push ebp
call fcn.004c2150
add esp, 8
pop edi
pop esi
pop ebp
mov eax, 0x38
pop ebx
add esp, 0x20
ret
pop edi
pop esi
pop ebp
mov eax, 0x2a
pop ebx
add esp, 0x20
ret
mov ebx, dword [esp + 0x38]
mov edx, dword [edi + ebx*4 + 0x1a8]
push edx
push edi
call fcn.004c87c0
add esp, 8
mov dword [edi + ebx*4 + 0x1a8], 0xffffffff
jmp 0x4e2b26
mov ebx, dword [esp + 0x38]
mov ecx, dword [ebp + 0xf9c]
mov eax, 0x51eb851f
imul ecx
sar edx, 5
mov eax, edx
shr eax, 0x1f
add eax, edx
cmp eax, 2
je 0x4e2bec
test byte [esi + 0x401c], 2
je 0x4e2b79
cmp dword [ebp + 0x148], 0
je 0x4e2b79
or dword [edi + 0x294], 0x800000
push str.Connect_me_again_please_n
push ebp
call fcn.004c2070
add esp, 8
mov eax, edi
call fcn.004e2140
jmp 0x4e2bb4
mov ecx, dword [ebp + 0x148]
push ecx
call dword [0x659f40]
push 2
push edi
mov dword [ebp + 0x148], 0
call fcn.004c8950
mov edx, dword [edi + ebx*4 + 0x1a8]
push edx
push edi
call fcn.004c87c0
add esp, 0x14
mov dword [edi + ebx*4 + 0x1a8], 0xffffffff
mov dword [esi + 0x4018], 0
test dword [edi + 0x294], 0x800000
jne 0x4e2c3a
mov eax, dword [ebp + 0x108]
push eax
push str.Received_HTTP_code__d_from_proxy_after_CONNECT
push ebp
call fcn.004c2150
add esp, 0xc
pop edi
pop esi
pop ebp
mov eax, 0x38
pop ebx
add esp, 0x20
ret
mov dword [esi + 0x4018], 2
mov ecx, dword [edi + 0x2e4]
push ecx
call dword [0x659f40]
mov dword [edi + 0x2e4], 0
mov edx, dword [ebp + 0xf9c]
or dword [ebp + 0xd14], 1
push edx
push str.Proxy_replied__d_to_CONNECT_request_n
push ebp
call fcn.004c2070
and dword [ebp + 0x590], 0xfffffff7
add esp, 0x10
and dword [edi + 0x294], 0xfffeffff
xor eax, eax
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x20
ret