Function at 0x4bd520
Capabilities:
Check http status code

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xb0
and dword [ebp - 0x90], 0
mov eax, dword [ebp + 8]
mov eax, dword [eax]
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
add eax, 0x88
mov dword [ebp - 0x18], eax
mov eax, dword [ebp + 0xc]
mov ecx, dword [ebp + 8]
mov eax, dword [ecx + eax*4 + 0x420]
mov dword [ebp - 0x7c], eax
mov eax, dword [ebp + 8]
mov eax, dword [eax + 0x7f0]
mov dword [ebp - 8], eax
push dword [ebp + 8]
call fcn.004be43d
pop ecx
movzx eax, al
test eax, eax
je 0x4bd576
xor eax, eax
jmp 0x4be13c
mov eax, dword [ebp + 8]
mov byte [eax + 0x51c], 0
mov eax, dword [ebp - 8]
cmp dword [eax + 0x20], 0
jne 0x4bd8b6
push dword [ebp + 0x14]
push dword [ebp + 0x10]
push str.Establish_HTTP_proxy_tunnel_to__s:_d_n
push dword [ebp - 4]
call fcn.004a78c4
add esp, 0x10
mov eax, dword [ebp - 4]
push dword [eax + 0x12c]
call dword [0x5576fc]
pop ecx
mov eax, dword [ebp - 4]
and dword [eax + 0x12c], 0
push dword [ebp + 0x14]
push dword [ebp + 0x10]
push str._s:_d
call fcn.004bca89
add esp, 0xc
mov dword [ebp - 0x24], eax
cmp dword [ebp - 0x24], 0
jne 0x4bd5e1
push 0x1b
pop eax
jmp 0x4be13c
push 0x20000
lea eax, [ebp - 0xa8]
push eax
call fcn.004a1205
pop ecx
pop ecx
push 1
push dword [ebp - 0x24]
push str.CONNECT
push dword [ebp + 8]
call fcn.004cd501
add esp, 0x10
mov dword [ebp - 0xc], eax
push dword [ebp - 0x24]
call dword [0x5576fc]
pop ecx
cmp dword [ebp - 0xc], 0
jne 0x4bd891
and dword [ebp - 0x1c], 0
mov dword [ebp - 0x48], 0x567643
mov dword [ebp - 0x4c], 0x56764c
mov eax, dword [ebp + 8]
cmp dword [eax + 0x358], 1
jne 0x4bd647
mov dword [ebp - 0x34], 0x558e08
jmp 0x4bd64e
mov dword [ebp - 0x34], 0x558e0c
mov eax, dword [ebp - 0x34]
mov dword [ebp - 0x78], eax
mov eax, dword [ebp + 8]
mov al, byte [eax + 0x524]
mov byte [ebp - 0x11], al
mov eax, dword [ebp + 8]
mov ecx, dword [ebp + 0x10]
cmp ecx, dword [eax + 0x304]
je 0x4bd6a4
push 0x3a
push dword [ebp + 0x10]
call fcn.004421e0
pop ecx
pop ecx
test eax, eax
je 0x4bd687
mov dword [ebp - 0x38], 1
jmp 0x4bd68b
and dword [ebp - 0x38], 0
cmp dword [ebp - 0x38], 0
jne 0x4bd697
and dword [ebp - 0x3c], 0
jmp 0x4bd69e
mov dword [ebp - 0x3c], 1
mov al, byte [ebp - 0x3c]
mov byte [ebp - 0x11], al
movzx eax, byte [ebp - 0x11]
test eax, eax
je 0x4bd6b5
mov dword [ebp - 0x40], 0x558e10
jmp 0x4bd6bc
mov dword [ebp - 0x40], 0x56764d
movzx eax, byte [ebp - 0x11]
test eax, eax
je 0x4bd6cd
mov dword [ebp - 0x44], 0x558e14
jmp 0x4bd6d4
mov dword [ebp - 0x44], 0x56764e
push dword [ebp + 0x14]
push dword [ebp - 0x40]
push dword [ebp + 0x10]
push dword [ebp - 0x44]
push str._s_s_s:_d
call fcn.004bca89
add esp, 0x14
mov dword [ebp - 0x20], eax
cmp dword [ebp - 0x20], 0
jne 0x4bd70b
lea eax, [ebp - 0xa8]
push eax
call fcn.004a1246
pop ecx
push 0x1b
pop eax
jmp 0x4be13c
push 0x558e24
push dword [ebp + 8]
call fcn.004ccd9f
pop ecx
pop ecx
test eax, eax
jne 0x4bd755
push dword [ebp - 0x20]
push str.Host:__s_r_n
call fcn.004bca89
pop ecx
pop ecx
mov dword [ebp - 0x1c], eax
cmp dword [ebp - 0x1c], 0
jne 0x4bd755
push dword [ebp - 0x20]
call dword [0x5576fc]
pop ecx
lea eax, [ebp - 0xa8]
push eax
call fcn.004a1246
pop ecx
push 0x1b
pop eax
jmp 0x4be13c
push 0x558e38
push dword [ebp + 8]
call fcn.004ccd9f
pop ecx
pop ecx
test eax, eax
jne 0x4bd76f
mov dword [ebp - 0x48], 0x558e4c
push 0x558e6c
push dword [ebp + 8]
call fcn.004ccd9f
pop ecx
pop ecx
test eax, eax
jne 0x4bd7a1
push 4
pop eax
imul eax, eax, 0x26
mov ecx, dword [ebp - 4]
cmp dword [ecx + eax + 0x964], 0
je 0x4bd7a1
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x10c0]
mov dword [ebp - 0x4c], eax
mov eax, dword [ebp - 4]
cmp dword [eax + 0x10bc], 0
je 0x4bd7bb
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x10bc]
mov dword [ebp - 0x50], eax
jmp 0x4bd7c2
mov dword [ebp - 0x50], 0x56764f
cmp dword [ebp - 0x1c], 0
je 0x4bd7d0
mov eax, dword [ebp - 0x1c]
mov dword [ebp - 0x54], eax
jmp 0x4bd7d7
mov dword [ebp - 0x54], 0x567650
push dword [ebp - 0x48]
push dword [ebp - 0x4c]
push dword [ebp - 0x50]
push dword [ebp - 0x54]
push dword [ebp - 0x78]
push dword [ebp - 0x20]
push str.CONNECT__s_HTTP__s_r_n_s_s_s_s
lea eax, [ebp - 0xa8]
push eax
call fcn.004a0fbc
add esp, 0x20
mov dword [ebp - 0xc], eax
cmp dword [ebp - 0x1c], 0
je 0x4bd810
push dword [ebp - 0x1c]
call dword [0x5576fc]
pop ecx
push dword [ebp - 0x20]
call dword [0x5576fc]
pop ecx
cmp dword [ebp - 0xc], 0
jne 0x4bd837
lea eax, [ebp - 0xa8]
push eax
push 1
push dword [ebp + 8]
call fcn.004cd78d
add esp, 0xc
mov dword [ebp - 0xc], eax
cmp dword [ebp - 0xc], 0
jne 0x4bd853
push 0x558e98
lea eax, [ebp - 0xa8]
push eax
call fcn.004a1027
pop ecx
pop ecx
mov dword [ebp - 0xc], eax
cmp dword [ebp - 0xc], 0
jne 0x4bd87c
push dword [ebp + 0xc]
push 0
mov eax, dword [ebp - 4]
add eax, 0x1140
push eax
push dword [ebp + 8]
lea eax, [ebp - 0xa8]
push eax
call fcn.004ccacd
add esp, 0x14
mov dword [ebp - 0xc], eax
cmp dword [ebp - 0xc], 0
je 0x4bd891
push str.Failed_sending_CONNECT_to_proxy
push dword [ebp - 4]
call fcn.004a7b98
pop ecx
pop ecx
lea eax, [ebp - 0xa8]
push eax
call fcn.004a1246
pop ecx
cmp dword [ebp - 0xc], 0
je 0x4bd8ac
mov eax, dword [ebp - 0xc]
jmp 0x4be13c
mov eax, dword [ebp - 8]
mov dword [eax + 0x20], 1
push 1
push 0
push dword [ebp - 4]
call fcn.004ab0c8
add esp, 0xc
mov dword [ebp - 0x98], eax
mov dword [ebp - 0x94], edx
cmp dword [ebp - 0x94], 0
jg 0x4bd8fc
jl 0x4bd8e5
cmp dword [ebp - 0x98], 0
ja 0x4bd8fc
push str.Proxy_CONNECT_aborted_due_to_timeout
push dword [ebp - 4]
call fcn.004a7b98
pop ecx
pop ecx
push 0x1c
pop eax
jmp 0x4be13c
push dword [ebp + 0xc]
push dword [ebp + 8]
call fcn.004a806f
pop ecx
pop ecx
movzx eax, al
test eax, eax
jne 0x4bd917
xor eax, eax
jmp 0x4be13c
and dword [ebp - 0x74], 0
mov eax, dword [ebp - 8]
cmp dword [eax + 0x10], 0
je 0x4bdf08
lea eax, [ebp - 0x64]
push eax
push 1
lea eax, [ebp - 0x12]
push eax
push dword [ebp - 0x7c]
push dword [ebp + 8]
call fcn.004a7a49
add esp, 0x14
mov dword [ebp - 0xc], eax
cmp dword [ebp - 0xc], 0x51
jne 0x4bd950
xor eax, eax
jmp 0x4be13c
push dword [ebp + 8]
call fcn.004c74db
pop ecx
test eax, eax
je 0x4bd965
push 0x2a
pop eax
jmp 0x4be13c
cmp dword [ebp - 0xc], 0
je 0x4bd979
mov eax, dword [ebp - 8]
and dword [eax + 0x10], 0
jmp 0x4bdf08
cmp dword [ebp - 0x64], 0
jg 0x4bd9d4
mov eax, dword [ebp - 4]
cmp dword [eax + 0x5b8], 0
je 0x4bd9b2
mov eax, dword [ebp - 4]
cmp dword [eax + 0xdd8], 0
je 0x4bd9b2
mov eax, dword [ebp + 8]
mov byte [eax + 0x51c], 1
push str.Proxy_CONNECT_connection_closed_n
push dword [ebp - 4]
call fcn.004a78c4
pop ecx
pop ecx
jmp 0x4bd9c8
mov dword [ebp - 0x74], 1
push str.Proxy_CONNECT_aborted
push dword [ebp - 4]
call fcn.004a7b98
pop ecx
pop ecx
mov eax, dword [ebp - 8]
and dword [eax + 0x10], 0
jmp 0x4bdf08
mov eax, dword [ebp - 8]
cmp dword [eax + 0x10], 1
jle 0x4bda93
mov eax, dword [ebp - 8]
mov dword [ebp - 0x58], eax
mov eax, dword [ebp - 0x58]
mov ecx, dword [ebp - 0x58]
mov eax, dword [eax + 0x18]
or eax, dword [ecx + 0x1c]
je 0x4bda3f
mov eax, dword [ebp - 8]
mov ecx, dword [eax + 0x18]
sub ecx, 1
mov eax, dword [eax + 0x1c]
sbb eax, 0
mov edx, dword [ebp - 8]
mov dword [edx + 0x18], ecx
mov dword [edx + 0x1c], eax
mov eax, dword [ebp - 8]
mov dword [ebp - 0x5c], eax
mov eax, dword [ebp - 0x5c]
cmp dword [eax + 0x1c], 0
jg 0x4bda3d
jl 0x4bda27
mov eax, dword [ebp - 0x5c]
cmp dword [eax + 0x18], 0
ja 0x4bda3d
mov eax, dword [ebp - 8]
and dword [eax + 0x10], 0
mov eax, dword [ebp - 8]
mov dword [eax + 0x20], 2
jmp 0x4bdf08
jmp 0x4bda8e
and dword [ebp - 0x80], 0
lea eax, [ebp - 0xac]
push eax
lea eax, [ebp - 0x80]
push eax
push 1
lea eax, [ebp - 0x12]
push eax
push dword [ebp + 8]
call fcn.004fb8de
add esp, 0x14
mov dword [ebp - 0x84], eax
cmp dword [ebp - 0x84], 0xffffffff
jne 0x4bda8e
push 0x558f20
push dword [ebp - 4]
call fcn.004a78c4
pop ecx
pop ecx
mov eax, dword [ebp - 8]
and dword [eax + 0x10], 0
mov eax, dword [ebp - 8]
mov dword [eax + 0x20], 2
jmp 0x4bd91b
push 1
lea eax, [ebp - 0x12]
push eax
push dword [ebp - 8]
call fcn.004a107b
add esp, 0xc
test eax, eax
je 0x4bdabf
push str.CONNECT_response_too_large_
push dword [ebp - 4]
call fcn.004a7b98
pop ecx
pop ecx
push 0x38
pop eax
jmp 0x4be13c
movsx eax, byte [ebp - 0x12]
cmp eax, 0xa
je 0x4bdacd
jmp 0x4bd91b
push dword [ebp - 8]
call fcn.004a11ef
pop ecx
mov dword [ebp - 0x10], eax
push dword [ebp - 8]
call fcn.004a122f
pop ecx
mov dword [ebp - 0x2c], eax
and dword [ebp - 0xc], 0
je 0x4bdaf3
mov eax, dword [ebp - 0xc]
jmp 0x4be13c
mov eax, dword [ebp - 4]
movzx eax, byte [eax + 0xb3e]
test eax, eax
je 0x4bdb14
push dword [ebp - 0x2c]
push dword [ebp - 0x10]
push 1
push dword [ebp - 4]
call fcn.004a6c9f
add esp, 0x10
mov eax, dword [ebp - 4]
movzx eax, byte [eax + 0xb52]
test eax, eax
jne 0x4bdb65
mov dword [ebp - 0x28], 2
mov eax, dword [ebp - 4]
movzx eax, byte [eax + 0xb39]
test eax, eax
je 0x4bdb40
mov eax, dword [ebp - 0x28]
or eax, 1
mov dword [ebp - 0x28], eax
push dword [ebp - 0x2c]
push dword [ebp - 0x10]
push dword [ebp - 0x28]
push dword [ebp + 8]
call fcn.004a7d52
add esp, 0x10
mov dword [ebp - 0xc], eax
cmp dword [ebp - 0xc], 0
je 0x4bdb65
mov eax, dword [ebp - 0xc]
jmp 0x4be13c
mov eax, dword [ebp - 0x2c]
cdq
mov ecx, dword [ebp - 4]
add eax, dword [ecx + 0x1138]
adc edx, dword [ecx + 0x113c]
mov ecx, dword [ebp - 4]
mov dword [ecx + 0x1138], eax
mov dword [ecx + 0x113c], edx
xor eax, eax
inc eax
imul eax, eax, 0
mov ecx, dword [ebp - 0x10]
movsx eax, byte [ecx + eax]
cmp eax, 0xd
je 0x4bdbaf
xor eax, eax
inc eax
imul eax, eax, 0
mov ecx, dword [ebp - 0x10]
movsx eax, byte [ecx + eax]
cmp eax, 0xa
jne 0x4bdccf
mov eax, dword [ebp - 0x18]
cmp dword [eax + 0x68], 0x197
jne 0x4bdca5
mov eax, dword [ebp - 4]
movzx eax, byte [eax + 0x10e9]
test eax, eax
jne 0x4bdca5
mov eax, dword [ebp - 8]
mov dword [eax + 0x10], 2
mov eax, dword [ebp - 8]
mov dword [ebp - 0x60], eax
mov eax, dword [ebp - 0x60]
mov ecx, dword [ebp - 0x60]
mov eax, dword [eax + 0x18]
or eax, dword [ecx + 0x1c]
je 0x4bdc0d
mov eax, dword [ebp - 8]
push dword [eax + 0x1c]
push dword [eax + 0x18]
push str.Ignore__I64d_bytes_of_response_body_n
push dword [ebp - 4]
call fcn.004a78c4
add esp, 0x10
jmp 0x4bdca3
mov eax, dword [ebp - 8]
movzx eax, byte [eax + 0x24]
test eax, eax
je 0x4bdc9c
push str.Ignore_chunked_response_body_n
push dword [ebp - 4]
call fcn.004a78c4
pop ecx
pop ecx
mov eax, dword [ebp - 0x18]
mov byte [eax + 0x4ff], 1
xor eax, eax
inc eax
shl eax, 0
mov ecx, dword [ebp - 0x10]
movsx eax, byte [ecx + eax]
cmp eax, 0xa
jne 0x4bdc4e
mov eax, dword [ebp - 0x10]
inc eax
mov dword [ebp - 0x10], eax
lea eax, [ebp - 0xb0]
push eax
lea eax, [ebp - 0x64]
push eax
push 1
mov eax, dword [ebp - 0x10]
inc eax
push eax
push dword [ebp + 8]
call fcn.004fb8de
add esp, 0x14
mov dword [ebp - 0x88], eax
cmp dword [ebp - 0x88], 0xffffffff
jne 0x4bdc9a
push str.chunk_reading_DONE_n
push dword [ebp - 4]
call fcn.004a78c4
pop ecx
pop ecx
mov eax, dword [ebp - 8]
and dword [eax + 0x10], 0
mov eax, dword [ebp - 8]
mov dword [eax + 0x20], 2
jmp 0x4bdca3
mov eax, dword [ebp - 8]
and dword [eax + 0x10], 0
jmp 0x4bdcac
mov eax, dword [ebp - 8]
and dword [eax + 0x10], 0
mov eax, dword [ebp - 8]
mov dword [ebp - 0x68], eax
mov eax, dword [ebp - 0x68]
mov ecx, dword [ebp - 0x68]
mov eax, dword [eax + 0x18]
or eax, dword [ecx + 0x1c]
jne 0x4bdcca
mov eax, dword [ebp - 8]
mov dword [eax + 0x20], 2
jmp 0x4bd91b
push 0x11
push dword [ebp - 0x10]
push 0x558fac
call fcn.004ba323
add esp, 0xc
test eax, eax
je 0x4bdcf1
mov eax, dword [ebp - 0x18]
cmp dword [eax + 0x68], 0x191
je 0x4bdd1b
push 0x13
push dword [ebp - 0x10]
push 0x558fc0
call fcn.004ba323
add esp, 0xc
test eax, eax
je 0x4bdd9e
mov eax, dword [ebp - 0x18]
cmp dword [eax + 0x68], 0x197
jne 0x4bdd9e
mov eax, dword [ebp - 0x18]
cmp dword [eax + 0x68], 0x197
jne 0x4bdd30
mov dword [ebp - 0x6c], 1
jmp 0x4bdd34
and dword [ebp - 0x6c], 0
cmp dword [ebp - 0x6c], 0
jne 0x4bdd40
and dword [ebp - 0x70], 0
jmp 0x4bdd47
mov dword [ebp - 0x70], 1
mov al, byte [ebp - 0x70]
mov byte [ebp - 0x8c], al
push dword [ebp - 0x10]
call fcn.004cd685
pop ecx
mov dword [ebp - 0x30], eax
cmp dword [ebp - 0x30], 0
jne 0x4bdd6a
push 0x1b
pop eax
jmp 0x4be13c
push dword [ebp - 0x30]
push dword [ebp - 0x8c]
push dword [ebp + 8]
call fcn.004cd169
add esp, 0xc
mov dword [ebp - 0xc], eax
push dword [ebp - 0x30]
call dword [0x5576fc]
pop ecx
cmp dword [ebp - 0xc], 0
je 0x4bdd99
mov eax, dword [ebp - 0xc]
jmp 0x4be13c
jmp 0x4bdefa
push 0xf
push dword [ebp - 0x10]
push 0x558fd4
call fcn.004ba323
add esp, 0xc
test eax, eax
je 0x4bddff
mov eax, dword [ebp - 0x18]
mov eax, dword [eax + 0x68]
cdq
push 0x64
pop ecx
idiv ecx
cmp eax, 2
jne 0x4bdddd
mov eax, dword [ebp - 0x18]
push dword [eax + 0x68]
push str.Ignoring_Content_Length_in_CONNECT__03d_response_n
push dword [ebp - 4]
call fcn.004a78c4
add esp, 0xc
jmp 0x4bddfa
mov eax, dword [ebp - 8]
add eax, 0x18
push eax
push 0xa
push 0
xor eax, eax
inc eax
imul eax, eax, 0xf
add eax, dword [ebp - 0x10]
push eax
call fcn.004d01f8
add esp, 0x10
jmp 0x4bdefa
push 0x559018
push 0x559020
push dword [ebp - 0x10]
call fcn.004cdb9c
add esp, 0xc
movzx eax, al
test eax, eax
je 0x4bde27
mov eax, dword [ebp - 8]
mov byte [eax + 0x25], 1
jmp 0x4bdefa
push 0x12
push dword [ebp - 0x10]
push 0x55902c
call fcn.004ba323
add esp, 0xc
test eax, eax
je 0x4bdea3
mov eax, dword [ebp - 0x18]
mov eax, dword [eax + 0x68]
cdq
push 0x64
pop ecx
idiv ecx
cmp eax, 2
jne 0x4bde66
mov eax, dword [ebp - 0x18]
push dword [eax + 0x68]
push str.Ignoring_Transfer_Encoding_in_CONNECT__03d_response_n
push dword [ebp - 4]
call fcn.004a78c4
add esp, 0xc
jmp 0x4bdea1
push 0x559078
push 0x559080
push dword [ebp - 0x10]
call fcn.004cdb9c
add esp, 0xc
movzx eax, al
test eax, eax
je 0x4bdea1
push str.CONNECT_responded_chunked_n
push dword [ebp - 4]
call fcn.004a78c4
pop ecx
pop ecx
mov eax, dword [ebp - 8]
mov byte [eax + 0x24], 1
push dword [ebp + 8]
call fcn.004fbe66
pop ecx
jmp 0x4bdefa
push 0x5590b0
push 0x5590b8
push dword [ebp - 0x10]
call fcn.004cdb9c
add esp, 0xc
movzx eax, al
test eax, eax
je 0x4bdec8
mov eax, dword [ebp - 8]
mov byte [eax + 0x25], 1
jmp 0x4bdefa
mov eax, dword [ebp - 0x18]
add eax, 0x68
push eax
lea eax, [ebp - 0x90]
push eax
push str.HTTP_1._d__d
push dword [ebp - 0x10]
call fcn.00422f02
add esp, 0x10
cmp eax, 2
jne 0x4bdefa
mov eax, dword [ebp - 4]
mov ecx, dword [ebp - 0x18]
mov ecx, dword [ecx + 0x68]
mov dword [eax + 0x1124], ecx
push dword [ebp - 8]
call fcn.004a109d
pop ecx
jmp 0x4bd91b
push dword [ebp + 8]
call fcn.004c74db
pop ecx
test eax, eax
je 0x4bdf1d
push 0x2a
pop eax
jmp 0x4be13c
cmp dword [ebp - 0x74], 0
je 0x4bdf2b
push 0x38
pop eax
jmp 0x4be13c
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x1124]
cdq
push 0x64
pop ecx
idiv ecx
cmp eax, 2
je 0x4bdf6e
push dword [ebp + 8]
call fcn.004cce6f
pop ecx
mov dword [ebp - 0xc], eax
cmp dword [ebp - 0xc], 0
je 0x4bdf59
mov eax, dword [ebp - 0xc]
jmp 0x4be13c
mov eax, dword [ebp + 8]
movzx eax, byte [eax + 0x51d]
test eax, eax
je 0x4bdf6e
mov eax, dword [ebp - 8]
mov byte [eax + 0x25], 1
mov eax, dword [ebp - 8]
movzx eax, byte [eax + 0x25]
test eax, eax
je 0x4bdfac
mov eax, dword [ebp - 4]
cmp dword [eax + 0x12c], 0
je 0x4bdfac
mov eax, dword [ebp + 0xc]
mov ecx, dword [ebp + 8]
push dword [ecx + eax*4 + 0x420]
push dword [ebp + 8]
call fcn.004a8276
pop ecx
pop ecx
mov eax, dword [ebp + 0xc]
mov ecx, dword [ebp + 8]
or dword [ecx + eax*4 + 0x420], 0xffffffff
jmp 0x4bdfdd
mov eax, dword [ebp - 4]
cmp dword [eax + 0x12c], 0
je 0x4bdfcd
mov eax, dword [ebp - 8]
cmp dword [eax + 0x20], 2
jne 0x4bdfcd
push 1
push dword [ebp + 8]
call fcn.004be178
pop ecx
pop ecx
mov eax, dword [ebp - 4]
cmp dword [eax + 0x12c], 0
jne 0x4bd580
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x1124]
cdq
push 0x64
pop ecx
idiv ecx
cmp eax, 2
je 0x4be0be
mov eax, dword [ebp - 8]
movzx eax, byte [eax + 0x25]
test eax, eax
je 0x4be030
mov eax, dword [ebp - 4]
cmp dword [eax + 0x12c], 0
je 0x4be030
mov eax, dword [ebp + 8]
mov byte [eax + 0x51c], 1
push str.Connect_me_again_please_n
push dword [ebp - 4]
call fcn.004a78c4
pop ecx
pop ecx
push dword [ebp + 8]
call fcn.004be140
pop ecx
jmp 0x4be07b
mov eax, dword [ebp - 4]
push dword [eax + 0x12c]
call dword [0x5576fc]
pop ecx
mov eax, dword [ebp - 4]
and dword [eax + 0x12c], 0
push 2
push dword [ebp + 8]
call fcn.004ab034
pop ecx
pop ecx
mov eax, dword [ebp + 0xc]
mov ecx, dword [ebp + 8]
push dword [ecx + eax*4 + 0x420]
push dword [ebp + 8]
call fcn.004a8276
pop ecx
pop ecx
mov eax, dword [ebp + 0xc]
mov ecx, dword [ebp + 8]
or dword [ecx + eax*4 + 0x420], 0xffffffff
mov eax, dword [ebp - 8]
and dword [eax + 0x20], 0
mov eax, dword [ebp + 8]
movzx eax, byte [eax + 0x51c]
test eax, eax
je 0x4be097
xor eax, eax
jmp 0x4be13c
push dword [ebp - 8]
call fcn.004a1246
pop ecx
mov eax, dword [ebp - 4]
push dword [eax + 0xf0]
push str.Received_HTTP_code__d_from_proxy_after_CONNECT
push dword [ebp - 4]
call fcn.004a7b98
add esp, 0xc
push 0x38
pop eax
jmp 0x4be13c
mov eax, dword [ebp - 8]
mov dword [eax + 0x20], 2
mov eax, dword [ebp - 4]
push dword [eax + 0x10bc]
call dword [0x5576fc]
pop ecx
mov eax, dword [ebp - 4]
and dword [eax + 0x10bc], 0
xor eax, eax
jne 0x4be0c8
mov eax, dword [ebp - 4]
and dword [eax + 0x10bc], 0
mov eax, dword [ebp - 4]
mov byte [eax + 0xddc], 1
mov eax, dword [ebp - 4]
mov byte [eax + 0xddd], 0
mov eax, dword [ebp - 4]
push dword [eax + 0x1124]
push str.Proxy_replied__d_to_CONNECT_request_n
push dword [ebp - 4]
call fcn.004a78c4
add esp, 0xc
mov eax, dword [ebp - 4]
mov byte [eax + 0x587], 0
mov eax, dword [ebp + 8]
mov byte [eax + 0x52a], 0
push dword [ebp - 8]
call fcn.004a1246
pop ecx
xor eax, eax
mov esp, ebp
pop ebp
ret