Function at 0x493120
Capabilities:
Check http status code

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x94
mov dword [ebp - 0x78], 0
mov eax, dword [ebp + 8]
add eax, 0x80
mov dword [ebp - 0x14], eax
mov ecx, dword [ebp + 8]
mov edx, dword [ecx + 0xc]
mov dword [ebp - 0xc], edx
mov eax, dword [ebp + 0xc]
mov ecx, dword [ebp - 0xc]
mov edx, dword [ecx + eax*4 + 0x148]
mov dword [ebp - 0x8c], edx
mov eax, dword [ebp - 0xc]
mov ecx, dword [eax + 0x3c0]
mov dword [ebp - 4], ecx
mov edx, dword [ebp + 8]
mov eax, dword [edx + 0x134]
mov dword [ebp - 0x38], eax
mov ecx, dword [ebp - 0xc]
push ecx
call fcn.00494020
add esp, 4
movzx edx, al
test edx, edx
je 0x493189
xor eax, eax
jmp 0x493ef3
mov eax, dword [ebp - 0xc]
mov byte [eax + 0x25c], 0
mov ecx, dword [ebp - 4]
cmp dword [ecx + 0x1f0], 0
jne 0x493423
mov edx, dword [ebp - 4]
add edx, 0x1cc
mov dword [ebp - 0x1c], edx
mov dword [ebp - 0x28], 0
mov dword [ebp - 0x24], 0
mov eax, dword [ebp + 0x14]
push eax
mov ecx, dword [ebp + 0x10]
push ecx
push str.Establish_HTTP_proxy_tunnel_to__s:_d
mov edx, dword [ebp + 8]
push edx
call fcn.00487990
add esp, 0x10
mov eax, dword [ebp + 8]
mov ecx, dword [eax + 0x128]
push ecx
call dword [0x6b536c]
add esp, 4
mov edx, dword [ebp + 8]
mov dword [edx + 0x128], 0
xor eax, eax
jne 0x4931d6
push 0x100000
mov ecx, dword [ebp - 0x1c]
push ecx
call fcn.00470aa0
add esp, 8
lea edx, [ebp - 0x24]
push edx
lea eax, [ebp - 0x28]
push eax
mov ecx, dword [ebp + 0x14]
push ecx
mov edx, dword [ebp + 0x10]
push edx
mov eax, dword [ebp - 0xc]
push eax
mov ecx, dword [ebp + 8]
push ecx
call fcn.00493f00
add esp, 0x18
mov dword [ebp - 8], eax
cmp dword [ebp - 8], 0
je 0x49323c
mov eax, dword [ebp - 8]
jmp 0x493ef3
push 1
mov edx, dword [ebp - 0x28]
push edx
push 0
push str.CONNECT
mov eax, dword [ebp - 0xc]
push eax
mov ecx, dword [ebp + 8]
push ecx
call fcn.0049b3e0
add esp, 0x18
mov dword [ebp - 8], eax
cmp dword [ebp - 8], 0
jne 0x4933ee
mov edx, dword [ebp - 0xc]
cmp dword [edx + 0xb8], 1
jne 0x49327b
mov dword [ebp - 0x4c], 0x62efd0
jmp 0x493282
mov dword [ebp - 0x4c], 0x62efd4
mov eax, dword [ebp - 0x4c]
mov dword [ebp - 0x6c], eax
mov ecx, dword [ebp + 8]
cmp dword [ecx + 0xce4], 0
je 0x4932a2
mov edx, dword [ebp + 8]
mov eax, dword [edx + 0xce4]
mov dword [ebp - 0x68], eax
jmp 0x4932a9
mov dword [ebp - 0x68], 0x62cc00
cmp dword [ebp - 0x24], 0
je 0x4932b7
mov ecx, dword [ebp - 0x24]
mov dword [ebp - 0x40], ecx
jmp 0x4932be
mov dword [ebp - 0x40], 0x62cc00
mov edx, dword [ebp - 0x68]
push edx
mov eax, dword [ebp - 0x40]
push eax
mov ecx, dword [ebp - 0x6c]
push ecx
mov edx, dword [ebp - 0x28]
push edx
push str.CONNECT__s_HTTP__s_r_n_s_s
mov eax, dword [ebp - 0x1c]
push eax
call fcn.004709f0
add esp, 0x18
mov dword [ebp - 8], eax
cmp dword [ebp - 8], 0
jne 0x49333f
push 0xa
push str.User_Agent
mov ecx, dword [ebp - 0xc]
push ecx
mov edx, dword [ebp + 8]
push edx
call fcn.004988c0
add esp, 0x10
test eax, eax
jne 0x49333f
mov eax, 4
imul ecx, eax, 0x26
mov edx, dword [ebp + 8]
cmp dword [edx + ecx + 0x52c], 0
je 0x49333f
mov eax, 4
imul ecx, eax, 0x26
mov edx, dword [ebp + 8]
mov eax, dword [edx + ecx + 0x52c]
push eax
push str.User_Agent:__s_r_n
mov ecx, dword [ebp - 0x1c]
push ecx
call fcn.004709f0
add esp, 0xc
mov dword [ebp - 8], eax
cmp dword [ebp - 8], 0
jne 0x493376
push 0x10
push str.Proxy_Connection
mov edx, dword [ebp - 0xc]
push edx
mov eax, dword [ebp + 8]
push eax
call fcn.004988c0
add esp, 0x10
test eax, eax
jne 0x493376
push 0x1e
push str.Proxy_Connection:_Keep_Alive_r_n
mov ecx, dword [ebp - 0x1c]
push ecx
call fcn.00470a30
add esp, 0xc
mov dword [ebp - 8], eax
cmp dword [ebp - 8], 0
jne 0x493391
mov edx, dword [ebp - 0x1c]
push edx
push 1
mov eax, dword [ebp + 8]
push eax
call fcn.00497eb0
add esp, 0xc
mov dword [ebp - 8], eax
cmp dword [ebp - 8], 0
jne 0x4933ad
push 2
push 0x62d530
mov ecx, dword [ebp - 0x1c]
push ecx
call fcn.00470a30
add esp, 0xc
mov dword [ebp - 8], eax
cmp dword [ebp - 8], 0
jne 0x4933d7
mov edx, dword [ebp + 0xc]
push edx
push 0
push 0
mov eax, dword [ebp + 8]
add eax, 0xd80
push eax
mov ecx, dword [ebp + 8]
push ecx
mov edx, dword [ebp - 0x1c]
push edx
call fcn.004984d0
add esp, 0x18
mov dword [ebp - 8], eax
cmp dword [ebp - 8], 0
je 0x4933ee
push str.Failed_sending_CONNECT_to_proxy
mov eax, dword [ebp + 8]
push eax
call fcn.00487870
add esp, 8
mov ecx, dword [ebp - 0x24]
push ecx
call dword [0x6b536c]
add esp, 4
mov edx, dword [ebp - 0x28]
push edx
call dword [0x6b536c]
add esp, 4
cmp dword [ebp - 8], 0
je 0x493416
mov eax, dword [ebp - 8]
jmp 0x493ef3
mov eax, dword [ebp - 4]
mov dword [eax + 0x1f0], 1
push 1
push 0
mov ecx, dword [ebp + 8]
push ecx
call fcn.00489ad0
add esp, 0xc
mov dword [ebp - 0x88], eax
mov dword [ebp - 0x84], edx
cmp dword [ebp - 0x84], 0
jg 0x49346e
jl 0x493453
cmp dword [ebp - 0x88], 0
ja 0x49346e
push str.Proxy_CONNECT_aborted_due_to_timeout
mov edx, dword [ebp + 8]
push edx
call fcn.00487870
add esp, 8
mov eax, 0x1c
jmp 0x493ef3
mov eax, dword [ebp + 0xc]
push eax
mov ecx, dword [ebp - 0xc]
push ecx
call fcn.00488750
add esp, 8
movzx edx, al
test edx, edx
jne 0x493498
mov eax, dword [ebp - 0x38]
cmp dword [eax + 0x1a0], 0
jne 0x493498
xor eax, eax
jmp 0x493ef3
mov ecx, dword [ebp - 0x38]
cmp dword [ecx + 0x1a0], 1
jne 0x4935a2
mov edx, dword [ebp - 4]
cmp dword [edx + 0x1dc], 0
jne 0x4934fd
mov eax, dword [ebp - 0x14]
mov ecx, dword [ebp + 8]
mov edx, dword [ecx + 0x908]
mov dword [eax + 0xb0], edx
lea eax, [ebp - 0x74]
push eax
mov ecx, dword [ebp + 8]
mov edx, dword [ecx + 0x4e4]
push edx
mov eax, dword [ebp + 8]
push eax
call fcn.00490280
add esp, 0xc
mov dword [ebp - 8], eax
cmp dword [ebp - 8], 0
je 0x4934f1
mov eax, dword [ebp - 8]
jmp 0x493ef3
mov ecx, dword [ebp - 4]
mov edx, dword [ebp - 0x74]
mov dword [ecx + 0x1dc], edx
mov eax, dword [ebp - 4]
cmp dword [eax + 0x1dc], 0
je 0x493595
lea ecx, [ebp - 0x2c]
push ecx
mov edx, dword [ebp - 4]
mov eax, dword [edx + 0x1dc]
push eax
mov ecx, dword [ebp - 0x14]
mov edx, dword [ecx + 0xb0]
push edx
mov eax, dword [ebp - 0xc]
mov ecx, dword [eax + 0x2bc]
push ecx
mov edx, dword [ebp + 8]
push edx
call fcn.00487e80
add esp, 0x14
mov dword [ebp - 8], eax
cmp dword [ebp - 8], 0
jne 0x493563
mov eax, dword [ebp - 0x2c]
push eax
mov ecx, dword [ebp - 0x14]
mov edx, dword [ecx + 0xb0]
push edx
push 2
mov eax, dword [ebp + 8]
push eax
call fcn.004877a0
add esp, 0x10
mov dword [ebp - 8], eax
mov ecx, dword [ebp - 4]
mov edx, dword [ecx + 0x1dc]
sub edx, dword [ebp - 0x2c]
mov eax, dword [ebp - 4]
mov dword [eax + 0x1dc], edx
mov ecx, dword [ebp - 0x14]
mov edx, dword [ecx + 0xb0]
add edx, dword [ebp - 0x2c]
mov eax, dword [ebp - 0x14]
mov dword [eax + 0xb0], edx
mov eax, dword [ebp - 8]
jmp 0x493ef3
mov ecx, dword [ebp - 0x38]
mov dword [ecx + 0x1a0], 0
mov dword [ebp - 0x44], 0
mov edx, dword [ebp - 4]
cmp dword [edx + 0x1e0], 0
je 0x493c85
lea eax, [ebp - 0x48]
push eax
push 1
lea ecx, [ebp - 0x15]
push ecx
mov edx, dword [ebp - 0x8c]
push edx
mov eax, dword [ebp + 8]
push eax
call fcn.00487a70
add esp, 0x14
mov dword [ebp - 8], eax
cmp dword [ebp - 8], 0x51
jne 0x4935e6
xor eax, eax
jmp 0x493ef3
mov ecx, dword [ebp + 8]
push ecx
call fcn.0049e4d0
add esp, 4
test eax, eax
je 0x493600
mov eax, 0x2a
jmp 0x493ef3
cmp dword [ebp - 8], 0
je 0x49361a
mov edx, dword [ebp - 4]
mov dword [edx + 0x1e0], 0
jmp 0x493c85
cmp dword [ebp - 0x48], 0
jg 0x49368b
mov eax, dword [ebp + 8]
cmp dword [eax + 0x170], 0
je 0x493661
mov ecx, dword [ebp + 8]
cmp dword [ecx + 0x9d8], 0
je 0x493661
mov edx, dword [ebp + 8]
cmp dword [edx + 0xce4], 0
je 0x493661
mov eax, dword [ebp - 0xc]
mov byte [eax + 0x25c], 1
push str.Proxy_CONNECT_connection_closed
mov ecx, dword [ebp + 8]
push ecx
call fcn.00487990
add esp, 8
jmp 0x493679
mov dword [ebp - 0x44], 1
push str.Proxy_CONNECT_aborted
mov edx, dword [ebp + 8]
push edx
call fcn.00487870
add esp, 8
mov eax, dword [ebp - 4]
mov dword [eax + 0x1e0], 0
jmp 0x493c85
mov ecx, dword [ebp - 4]
cmp dword [ecx + 0x1e0], 2
jne 0x493777
mov edx, dword [ebp - 4]
mov dword [ebp - 0x5c], edx
mov eax, dword [ebp - 0x5c]
mov ecx, dword [ebp - 0x5c]
mov edx, dword [eax + 0x1e8]
or edx, dword [ecx + 0x1ec]
je 0x49371a
mov eax, dword [ebp - 4]
mov ecx, dword [eax + 0x1e8]
sub ecx, 1
mov edx, dword [eax + 0x1ec]
sbb edx, 0
mov eax, dword [ebp - 4]
mov dword [eax + 0x1e8], ecx
mov dword [eax + 0x1ec], edx
mov ecx, dword [ebp - 4]
mov dword [ebp - 0x54], ecx
mov edx, dword [ebp - 0x54]
cmp dword [edx + 0x1ec], 0
jg 0x493718
jl 0x4936f9
mov eax, dword [ebp - 0x54]
cmp dword [eax + 0x1e8], 0
ja 0x493718
mov ecx, dword [ebp - 4]
mov dword [ecx + 0x1e0], 0
mov edx, dword [ebp - 4]
mov dword [edx + 0x1f0], 2
jmp 0x493c85
jmp 0x493772
mov dword [ebp - 0x7c], 0
lea eax, [ebp - 0x90]
push eax
lea ecx, [ebp - 0x7c]
push ecx
push 1
lea edx, [ebp - 0x15]
push edx
mov eax, dword [ebp + 8]
push eax
call fcn.004cdfc0
add esp, 0x14
mov dword [ebp - 0x80], eax
cmp dword [ebp - 0x80], 0xffffffff
jne 0x493772
push str.chunk_reading_DONE
mov ecx, dword [ebp + 8]
push ecx
call fcn.00487990
add esp, 8
mov edx, dword [ebp - 4]
mov dword [edx + 0x1e0], 0
mov eax, dword [ebp - 4]
mov dword [eax + 0x1f0], 2
jmp 0x4935a9
push 1
lea ecx, [ebp - 0x15]
push ecx
mov edx, dword [ebp - 4]
add edx, 0x1bc
push edx
call fcn.00470a30
add esp, 0xc
test eax, eax
je 0x4937ae
push str.CONNECT_response_too_large_
mov eax, dword [ebp + 8]
push eax
call fcn.00487870
add esp, 8
mov eax, 0x38
jmp 0x493ef3
movsx ecx, byte [ebp - 0x15]
cmp ecx, 0xa
je 0x4937bc
jmp 0x4935a9
mov edx, dword [ebp - 4]
add edx, 0x1bc
push edx
call fcn.00470b00
add esp, 4
mov dword [ebp - 0x10], eax
mov eax, dword [ebp - 4]
add eax, 0x1bc
push eax
call fcn.00470ae0
add esp, 4
mov dword [ebp - 0x34], eax
mov ecx, dword [ebp - 0x34]
push ecx
mov edx, dword [ebp - 0x10]
push edx
push 1
mov eax, dword [ebp + 8]
push eax
call fcn.004877a0
add esp, 0x10
mov ecx, dword [ebp + 8]
movzx edx, byte [ecx + 0x72d]
test edx, edx
jne 0x493850
mov dword [ebp - 0x30], 2
mov eax, dword [ebp + 8]
movzx ecx, byte [eax + 0x715]
test ecx, ecx
je 0x493827
mov edx, dword [ebp - 0x30]
or edx, 1
mov dword [ebp - 0x30], edx
mov eax, dword [ebp - 0x34]
push eax
mov ecx, dword [ebp - 0x10]
push ecx
mov edx, dword [ebp - 0x30]
push edx
mov eax, dword [ebp + 8]
push eax
call fcn.00487760
add esp, 0x10
mov dword [ebp - 8], eax
cmp dword [ebp - 8], 0
je 0x493850
mov eax, dword [ebp - 8]
jmp 0x493ef3
mov eax, dword [ebp - 0x34]
cdq
mov ecx, dword [ebp + 8]
add eax, dword [ecx + 0xd78]
adc edx, dword [ecx + 0xd7c]
mov ecx, dword [ebp + 8]
mov dword [ecx + 0xd78], eax
mov dword [ecx + 0xd7c], edx
mov edx, 1
imul eax, edx, 0
mov ecx, dword [ebp - 0x10]
movsx edx, byte [ecx + eax]
cmp edx, 0xd
je 0x49389e
mov eax, 1
imul ecx, eax, 0
mov edx, dword [ebp - 0x10]
movsx eax, byte [edx + ecx]
cmp eax, 0xa
jne 0x493a06
mov ecx, dword [ebp - 0x14]
cmp dword [ecx + 0x70], 0x197
jne 0x4939bd
mov edx, dword [ebp + 8]
movzx eax, byte [edx + 0xd21]
test eax, eax
jne 0x4939bd
mov ecx, dword [ebp - 4]
mov dword [ecx + 0x1e0], 2
mov edx, dword [ebp - 4]
mov dword [ebp - 0x64], edx
mov eax, dword [ebp - 0x64]
mov ecx, dword [ebp - 0x64]
mov edx, dword [eax + 0x1e8]
or edx, dword [ecx + 0x1ec]
je 0x49390e
mov eax, dword [ebp - 4]
mov ecx, dword [eax + 0x1ec]
push ecx
mov edx, dword [eax + 0x1e8]
push edx
push str.Ignore__I64d_bytes_of_response_body
mov eax, dword [ebp + 8]
push eax
call fcn.00487990
add esp, 0x10
jmp 0x4939bb
mov ecx, dword [ebp - 4]
movzx edx, byte [ecx + 0x1f4]
test edx, edx
je 0x4939ae
push str.Ignore_chunked_response_body
mov eax, dword [ebp + 8]
push eax
call fcn.00487990
add esp, 8
mov ecx, dword [ebp - 0x14]
mov byte [ecx + 0xbf], 1
mov edx, 1
shl edx, 0
mov eax, dword [ebp - 0x10]
movsx ecx, byte [eax + edx]
cmp ecx, 0xa
jne 0x493958
mov edx, dword [ebp - 0x10]
add edx, 1
mov dword [ebp - 0x10], edx
lea eax, [ebp - 0x94]
push eax
lea ecx, [ebp - 0x48]
push ecx
push 1
mov edx, dword [ebp - 0x10]
add edx, 1
push edx
mov eax, dword [ebp + 8]
push eax
call fcn.004cdfc0
add esp, 0x14
mov dword [ebp - 0x70], eax
cmp dword [ebp - 0x70], 0xffffffff
jne 0x4939ac
push str.chunk_reading_DONE
mov ecx, dword [ebp + 8]
push ecx
call fcn.00487990
add esp, 8
mov edx, dword [ebp - 4]
mov dword [edx + 0x1e0], 0
mov eax, dword [ebp - 4]
mov dword [eax + 0x1f0], 2
jmp 0x4939bb
mov ecx, dword [ebp - 4]
mov dword [ecx + 0x1e0], 0
jmp 0x4939ca
mov edx, dword [ebp - 4]
mov dword [edx + 0x1e0], 0
mov eax, dword [ebp - 4]
cmp dword [eax + 0x1e0], 0
jne 0x4939fd
mov ecx, dword [ebp - 4]
mov dword [ebp - 0x50], ecx
mov edx, dword [ebp - 0x50]
mov eax, dword [ebp - 0x50]
mov ecx, dword [edx + 0x1e8]
or ecx, dword [eax + 0x1ec]
jne 0x4939fd
mov edx, dword [ebp - 4]
mov dword [edx + 0x1f0], 2
xor eax, eax
jne 0x4939fd
jmp 0x4935a9
push 0x11
push str.WWW_Authenticate:
mov ecx, dword [ebp - 0x10]
push ecx
call fcn.0048d860
add esp, 0xc
test eax, eax
je 0x493a29
mov edx, dword [ebp - 0x14]
cmp dword [edx + 0x70], 0x191
je 0x493a54
push 0x13
push str.Proxy_authenticate:
mov eax, dword [ebp - 0x10]
push eax
call fcn.0048d860
add esp, 0xc
test eax, eax
je 0x493ae3
mov ecx, dword [ebp - 0x14]
cmp dword [ecx + 0x70], 0x197
jne 0x493ae3
mov edx, dword [ebp - 0x14]
cmp dword [edx + 0x70], 0x197
jne 0x493a69
mov dword [ebp - 0x58], 1
jmp 0x493a70
mov dword [ebp - 0x58], 0
cmp dword [ebp - 0x58], 0
jne 0x493a7f
mov dword [ebp - 0x60], 0
jmp 0x493a86
mov dword [ebp - 0x60], 1
mov al, byte [ebp - 0x60]
mov byte [ebp - 0x1d], al
mov ecx, dword [ebp - 0x10]
push ecx
call fcn.00498a50
add esp, 4
mov dword [ebp - 0x3c], eax
cmp dword [ebp - 0x3c], 0
jne 0x493aab
mov eax, 0x1b
jmp 0x493ef3
mov edx, dword [ebp - 0x3c]
push edx
movzx eax, byte [ebp - 0x1d]
push eax
mov ecx, dword [ebp + 8]
push ecx
call fcn.0049afa0
add esp, 0xc
mov dword [ebp - 8], eax
mov edx, dword [ebp - 0x3c]
push edx
call dword [0x6b536c]
add esp, 4
cmp dword [ebp - 8], 0
je 0x493ade
mov eax, dword [ebp - 8]
jmp 0x493ef3
jmp 0x493c6e
push 0xf
push str.Content_Length:
mov eax, dword [ebp - 0x10]
push eax
call fcn.0048d860
add esp, 0xc
test eax, eax
je 0x493b53
mov ecx, dword [ebp - 0x14]
mov eax, dword [ecx + 0x70]
cdq
mov ecx, 0x64
idiv ecx
cmp eax, 2
jne 0x493b27
mov edx, dword [ebp - 0x14]
mov eax, dword [edx + 0x70]
push eax
push str.Ignoring_Content_Length_in_CONNECT__03d_response
mov ecx, dword [ebp + 8]
push ecx
call fcn.00487990
add esp, 0xc
jmp 0x493b4e
mov edx, dword [ebp - 4]
add edx, 0x1e8
push edx
push 0xa
push 0
push str.Content_Length:
call fcn.00606e50
add esp, 4
add eax, dword [ebp - 0x10]
push eax
call fcn.004a3090
add esp, 0x10
jmp 0x493c6e
push 5
push str.close
push 0xb
push str.Connection:
mov eax, dword [ebp - 0x10]
push eax
call fcn.00498960
add esp, 0x14
movzx ecx, al
test ecx, ecx
je 0x493b83
mov edx, dword [ebp - 4]
mov byte [edx + 0x1f5], 1
jmp 0x493c6e
push 0x12
push str.Transfer_Encoding:
mov eax, dword [ebp - 0x10]
push eax
call fcn.0048d860
add esp, 0xc
test eax, eax
je 0x493c11
mov ecx, dword [ebp - 0x14]
mov eax, dword [ecx + 0x70]
cdq
mov ecx, 0x64
idiv ecx
cmp eax, 2
jne 0x493bc7
mov edx, dword [ebp - 0x14]
mov eax, dword [edx + 0x70]
push eax
push str.Ignoring_Transfer_Encoding_in_CONNECT__03d_response
mov ecx, dword [ebp + 8]
push ecx
call fcn.00487990
add esp, 0xc
jmp 0x493c0f
push 7
push str.chunked
push 0x12
push str.Transfer_Encoding:
mov edx, dword [ebp - 0x10]
push edx
call fcn.00498960
add esp, 0x14
movzx eax, al
test eax, eax
je 0x493c0f
push str.CONNECT_responded_chunked
mov ecx, dword [ebp + 8]
push ecx
call fcn.00487990
add esp, 8
mov edx, dword [ebp - 4]
mov byte [edx + 0x1f4], 1
mov eax, dword [ebp + 8]
push eax
call fcn.004cdf70
add esp, 4
jmp 0x493c6e
push 5
push str.close
push 0x11
push str.Proxy_Connection:
mov ecx, dword [ebp - 0x10]
push ecx
call fcn.00498960
add esp, 0x14
movzx edx, al
test edx, edx
je 0x493c3e
mov eax, dword [ebp - 4]
mov byte [eax + 0x1f5], 1
jmp 0x493c6e
mov ecx, dword [ebp - 0x14]
add ecx, 0x70
push ecx
lea edx, [ebp - 0x78]
push edx
push str.HTTP_1._d__d
mov eax, dword [ebp - 0x10]
push eax
call fcn.004019d0
add esp, 0x10
cmp eax, 2
jne 0x493c6e
mov ecx, dword [ebp + 8]
mov edx, dword [ebp - 0x14]
mov eax, dword [edx + 0x70]
mov dword [ecx + 0xd64], eax
mov ecx, dword [ebp - 4]
add ecx, 0x1bc
push ecx
call fcn.00470b20
add esp, 4
jmp 0x4935a9
mov edx, dword [ebp + 8]
push edx
call fcn.0049e4d0
add esp, 4
test eax, eax
je 0x493c9f
mov eax, 0x2a
jmp 0x493ef3
cmp dword [ebp - 0x44], 0
je 0x493caf
mov eax, 0x38
jmp 0x493ef3
mov eax, dword [ebp + 8]
mov eax, dword [eax + 0xd64]
cdq
mov ecx, 0x64
idiv ecx
cmp eax, 2
je 0x493cfa
mov edx, dword [ebp + 8]
push edx
call fcn.00498b80
add esp, 4
mov dword [ebp - 8], eax
cmp dword [ebp - 8], 0
je 0x493ce2
mov eax, dword [ebp - 8]
jmp 0x493ef3
mov eax, dword [ebp - 0xc]
movzx ecx, byte [eax + 0x25e]
test ecx, ecx
je 0x493cfa
mov edx, dword [ebp - 4]
mov byte [edx + 0x1f5], 1
mov eax, dword [ebp - 4]
movzx ecx, byte [eax + 0x1f5]
test ecx, ecx
je 0x493d45
mov edx, dword [ebp + 8]
cmp dword [edx + 0x128], 0
je 0x493d45
mov eax, dword [ebp + 0xc]
mov ecx, dword [ebp - 0xc]
mov edx, dword [ecx + eax*4 + 0x148]
push edx
mov eax, dword [ebp - 0xc]
push eax
mov ecx, dword [ebp + 8]
push ecx
call fcn.00488690
add esp, 0xc
mov edx, dword [ebp + 0xc]
mov eax, dword [ebp - 0xc]
mov dword [eax + edx*4 + 0x148], 0xffffffff
jmp 0x493d7b
mov ecx, dword [ebp + 8]
cmp dword [ecx + 0x128], 0
je 0x493d6b
mov edx, dword [ebp - 4]
cmp dword [edx + 0x1f0], 2
jne 0x493d6b
push 1
mov eax, dword [ebp + 8]
push eax
call fcn.004943a0
add esp, 8
mov ecx, dword [ebp + 8]
cmp dword [ecx + 0x128], 0
jne 0x493193
mov edx, dword [ebp + 8]
mov eax, dword [edx + 0xd64]
cdq
mov ecx, 0x64
idiv ecx
cmp eax, 2
je 0x493e5e
mov edx, dword [ebp - 4]
movzx eax, byte [edx + 0x1f5]
test eax, eax
je 0x493dd8
mov ecx, dword [ebp + 8]
cmp dword [ecx + 0x128], 0
je 0x493dd8
mov edx, dword [ebp - 0xc]
mov byte [edx + 0x25c], 1
push str.Connect_me_again_please
mov eax, dword [ebp + 8]
push eax
call fcn.00487990
add esp, 8
mov ecx, dword [ebp + 8]
push ecx
call fcn.00494060
add esp, 4
jmp 0x493e06
mov edx, dword [ebp + 8]
mov eax, dword [edx + 0x128]
push eax
call dword [0x6b536c]
add esp, 4
mov ecx, dword [ebp + 8]
mov dword [ecx + 0x128], 0
push 2
mov edx, dword [ebp - 0xc]
push edx
call fcn.00488860
add esp, 8
mov eax, dword [ebp - 4]
mov dword [eax + 0x1f0], 0
mov ecx, dword [ebp - 0xc]
movzx edx, byte [ecx + 0x25c]
test edx, edx
je 0x493e28
xor eax, eax
jmp 0x493ef3
mov eax, dword [ebp - 4]
add eax, 0x1bc
push eax
call fcn.00470a60
add esp, 4
mov ecx, dword [ebp + 8]
mov edx, dword [ecx + 0xf0]
push edx
push str.Received_HTTP_code__d_from_proxy_after_CONNECT
mov eax, dword [ebp + 8]
push eax
call fcn.00487870
add esp, 0xc
mov eax, 0x38
jmp 0x493ef3
mov ecx, dword [ebp - 4]
mov dword [ecx + 0x1f0], 2
mov edx, dword [ebp + 8]
mov eax, dword [edx + 0xce4]
push eax
call dword [0x6b536c]
add esp, 4
mov ecx, dword [ebp + 8]
mov dword [ecx + 0xce4], 0
xor edx, edx
jne 0x493e6b
mov eax, dword [ebp + 8]
mov dword [eax + 0xce4], 0
mov ecx, dword [ebp + 8]
mov byte [ecx + 0x9dc], 1
mov edx, dword [ebp + 8]
mov byte [edx + 0x9dd], 0
mov eax, dword [ebp + 8]
mov ecx, dword [eax + 0xd64]
push ecx
push str.Proxy_replied__d_to_CONNECT_request
mov edx, dword [ebp + 8]
push edx
call fcn.00487990
add esp, 0xc
mov eax, dword [ebp + 8]
mov byte [eax + 0x13f], 0
mov ecx, dword [ebp - 0xc]
mov byte [ecx + 0x269], 0
mov edx, dword [ebp - 4]
add edx, 0x1bc
push edx
call fcn.00470a60
add esp, 4
xor eax, eax
mov esp, ebp
pop ebp
ret