Function at 0x140127670
Capabilities:
Check http status code

Disassembly:
mov dword [rsp + 0x20], r9d
mov qword [rsp + 0x18], r8
mov dword [rsp + 0x10], edx
mov qword [rsp + 8], rcx
push rdi
sub rsp, 0x1f0
lea rdi, [rsp + 0x30]
mov ecx, reloc.WS2_32.dll_WSASetLastError
mov eax, 0xcccccccc
rep stosd dword [rdi], eax
mov rcx, qword [rsp + 0x200]
mov dword [rsp + 0x34], 0
mov rax, qword [rsp + 0x200]
add rax, 0xe8
mov qword [rsp + 0x48], rax
mov rax, qword [rsp + 0x200]
mov rax, qword [rax + 0x18]
mov qword [rsp + 0x58], rax
movsxd rax, dword [rsp + 0x208]
mov rcx, qword [rsp + 0x58]
mov rax, qword [rcx + rax*8 + 0x1d0]
mov qword [rsp + 0x60], rax
mov rax, qword [rsp + 0x58]
mov rax, qword [rax + 0x7c8]
mov qword [rsp + 0x68], rax
mov rax, qword [rsp + 0x200]
mov rax, qword [rax + 0x1b0]
mov qword [rsp + 0x70], rax
mov rcx, qword [rsp + 0x58]
call fcn.14009a738
movzx eax, al
test eax, eax
je 0x140127727
xor eax, eax
jmp 0x140128886
mov rax, qword [rsp + 0x58]
mov byte [rax + 0x3a8], 0
mov rax, qword [rsp + 0x68]
cmp dword [rax + 0x290], 0
jne 0x140127af7
mov rax, qword [rsp + 0x68]
add rax, 0x250
mov qword [rsp + 0x90], rax
mov qword [rsp + 0xa8], 0
mov qword [rsp + 0xc8], 0
mov r9d, dword [rsp + 0x218]
mov r8, qword [rsp + 0x210]
lea rdx, str.Establish_HTTP_proxy_tunnel_to__s:_d
mov rcx, qword [rsp + 0x200]
call fcn.14009a8f0
mov rax, qword [rsp + 0x200]
mov rcx, qword [rax + 0x198]
call qword [0x14020a040]
mov rax, qword [rsp + 0x200]
mov qword [rax + 0x198], 0
xor eax, eax
test eax, eax
jne 0x140127794
mov edx, 0x100000
mov rcx, qword [rsp + 0x90]
call fcn.1400984ec
lea rax, [rsp + 0xc8]
mov qword [rsp + 0x28], rax
lea rax, [rsp + 0xa8]
mov qword [rsp + 0x20], rax
mov r9d, dword [rsp + 0x218]
mov r8, qword [rsp + 0x210]
mov rdx, qword [rsp + 0x58]
mov rcx, qword [rsp + 0x200]
call fcn.1401274d0
mov dword [rsp + 0x50], eax
cmp dword [rsp + 0x50], 0
je 0x140127824
mov eax, dword [rsp + 0x50]
jmp 0x140128886
mov byte [rsp + 0x28], 1
mov rax, qword [rsp + 0xa8]
mov qword [rsp + 0x20], rax
xor r9d, r9d
lea r8, str.CONNECT
mov rdx, qword [rsp + 0x58]
mov rcx, qword [rsp + 0x200]
call fcn.140099f59
mov dword [rsp + 0x50], eax
cmp dword [rsp + 0x50], 0
jne 0x140127abc
mov rax, qword [rsp + 0x58]
movzx eax, byte [rax + 0x134]
cmp eax, 1
jne 0x140127883
lea rax, [0x14020c494]
mov qword [rsp + 0x1c0], rax
jmp 0x140127892
lea rax, [0x14020c4a4]
mov qword [rsp + 0x1c0], rax
mov rax, qword [rsp + 0x1c0]
mov qword [rsp + 0xd8], rax
mov rax, qword [rsp + 0x200]
cmp qword [rax + 0x12a0], 0
je 0x1401278cd
mov rax, qword [rsp + 0x200]
mov rax, qword [rax + 0x12a0]
mov qword [rsp + 0x1c8], rax
jmp 0x1401278dc
lea rax, [0x14021b9e3]
mov qword [rsp + 0x1c8], rax
cmp qword [rsp + 0xc8], 0
je 0x1401278f9
mov rax, qword [rsp + 0xc8]
mov qword [rsp + 0x1d0], rax
jmp 0x140127908
lea rax, [0x14021b9e4]
mov qword [rsp + 0x1d0], rax
mov rax, qword [rsp + 0x1c8]
mov qword [rsp + 0x28], rax
mov rax, qword [rsp + 0x1d0]
mov qword [rsp + 0x20], rax
mov r9, qword [rsp + 0xd8]
mov r8, qword [rsp + 0xa8]
lea rdx, str.CONNECT__s_HTTP__s_r_n_s_s
mov rcx, qword [rsp + 0x90]
call fcn.14009a427
mov dword [rsp + 0x50], eax
cmp dword [rsp + 0x50], 0
jne 0x1401279c2
mov r9d, 0xa
lea r8, [0x14020c4f8]
mov rdx, qword [rsp + 0x58]
mov rcx, qword [rsp + 0x200]
call fcn.14009b07a
test rax, rax
jne 0x1401279c2
mov eax, 8
imul rax, rax, 0x24
mov rcx, qword [rsp + 0x200]
cmp qword [rcx + rax + 0x750], 0
je 0x1401279c2
mov eax, 8
imul rax, rax, 0x24
mov rcx, qword [rsp + 0x200]
mov r8, qword [rcx + rax + 0x750]
lea rdx, [0x14020c508]
mov rcx, qword [rsp + 0x90]
call fcn.14009a427
mov dword [rsp + 0x50], eax
cmp dword [rsp + 0x50], 0
jne 0x140127a0b
mov r9d, reloc.WS2_32.dll_recv
lea r8, [0x14020c528]
mov rdx, qword [rsp + 0x58]
mov rcx, qword [rsp + 0x200]
call fcn.14009b07a
test rax, rax
jne 0x140127a0b
mov r8d, reloc.WLDAP32.dll_Ordinal_30
lea rdx, [0x14020c548]
mov rcx, qword [rsp + 0x90]
call fcn.1400993f6
mov dword [rsp + 0x50], eax
cmp dword [rsp + 0x50], 0
jne 0x140127a2d
mov r8, qword [rsp + 0x90]
mov dl, 1
mov rcx, qword [rsp + 0x200]
call fcn.140098064
mov dword [rsp + 0x50], eax
cmp dword [rsp + 0x50], 0
jne 0x140127a52
mov r8d, 2
lea rdx, [0x14020c4f4]
mov rcx, qword [rsp + 0x90]
call fcn.1400993f6
mov dword [rsp + 0x50], eax
cmp dword [rsp + 0x50], 0
jne 0x140127aa1
mov rax, qword [rsp + 0x200]
add rax, 0x1398
mov ecx, dword [rsp + 0x208]
mov dword [rsp + 0x20], ecx
xor r9d, r9d
mov r8, rax
mov rdx, qword [rsp + 0x200]
mov rcx, qword [rsp + 0x90]
call fcn.1400989e2
mov dword [rsp + 0x50], eax
mov rax, qword [rsp + 0x68]
mov qword [rax + 0x278], 0
cmp dword [rsp + 0x50], 0
je 0x140127abc
lea rdx, str.Failed_sending_CONNECT_to_proxy
mov rcx, qword [rsp + 0x200]
call fcn.14009b14c
mov rcx, qword [rsp + 0xc8]
call qword [0x14020a040]
mov rcx, qword [rsp + 0xa8]
call qword [0x14020a040]
cmp dword [rsp + 0x50], 0
je 0x140127ae8
mov eax, dword [rsp + 0x50]
jmp 0x140128886
mov rax, qword [rsp + 0x68]
mov dword [rax + 0x290], 1
mov r8b, 1
xor edx, edx
mov rcx, qword [rsp + 0x200]
call fcn.140099865
mov qword [rsp + 0x88], rax
cmp qword [rsp + 0x88], 0
jg 0x140127b3a
lea rdx, str.Proxy_CONNECT_aborted_due_to_timeout
mov rcx, qword [rsp + 0x200]
call fcn.14009b14c
mov eax, Ordinal_32
jmp 0x140128886
mov edx, dword [rsp + 0x208]
mov rcx, qword [rsp + 0x58]
call fcn.140099a72
movzx eax, al
test eax, eax
jne 0x140127b67
mov rax, qword [rsp + 0x70]
cmp dword [rax + 0x200], 0
jne 0x140127b67
xor eax, eax
jmp 0x140128886
mov rax, qword [rsp + 0x70]
cmp dword [rax + 0x200], 1
jne 0x140127ccd
mov rax, qword [rsp + 0x68]
cmp qword [rax + 0x270], 0
jne 0x140127bf0
mov rax, qword [rsp + 0x48]
mov rcx, qword [rsp + 0x200]
mov rcx, qword [rcx + 0xcf0]
mov qword [rax + 0xc0], rcx
mov rax, qword [rsp + 0x200]
mov eax, dword [rax + 0x6f0]
lea r8, [rsp + 0xe8]
mov edx, eax
mov rcx, qword [rsp + 0x200]
call fcn.140099f77
mov dword [rsp + 0x50], eax
cmp dword [rsp + 0x50], 0
je 0x140127bdc
mov eax, dword [rsp + 0x50]
jmp 0x140128886
mov rax, qword [rsp + 0x68]
mov rcx, qword [rsp + 0xe8]
mov qword [rax + 0x270], rcx
mov rax, qword [rsp + 0x68]
cmp qword [rax + 0x270], 0
je 0x140127cbe
lea rax, [rsp + 0x108]
mov qword [rsp + 0x20], rax
mov rax, qword [rsp + 0x68]
mov r9, qword [rax + 0x270]
mov rax, qword [rsp + 0x48]
mov r8, qword [rax + 0xc0]
mov rax, qword [rsp + 0x58]
mov rdx, qword [rax + 0x410]
mov rcx, qword [rsp + 0x200]
call fcn.14009a139
mov dword [rsp + 0x50], eax
cmp dword [rsp + 0x50], 0
jne 0x140127c72
mov r9, qword [rsp + 0x108]
mov rax, qword [rsp + 0x48]
mov r8, qword [rax + 0xc0]
mov edx, 2
mov rcx, qword [rsp + 0x200]
call fcn.14009a7bf
mov rax, qword [rsp + 0x68]
mov rcx, qword [rsp + 0x108]
mov rax, qword [rax + 0x270]
sub rax, rcx
mov rcx, qword [rsp + 0x68]
mov qword [rcx + 0x270], rax
mov rax, qword [rsp + 0x48]
mov rax, qword [rax + 0xc0]
add rax, qword [rsp + 0x108]
mov rcx, qword [rsp + 0x48]
mov qword [rcx + 0xc0], rax
mov eax, dword [rsp + 0x50]
jmp 0x140128886
mov rax, qword [rsp + 0x70]
mov dword [rax + 0x200], 0
mov dword [rsp + 0x114], 0
mov rax, qword [rsp + 0x68]
cmp dword [rax + 0x280], 0
je 0x140128588
lea rax, [rsp + 0x128]
mov qword [rsp + 0x20], rax
mov r9d, 1
lea r8, [rsp + 0x144]
mov rdx, qword [rsp + 0x60]
mov rcx, qword [rsp + 0x200]
call fcn.1400990e5
mov dword [rsp + 0x50], eax
cmp dword [rsp + 0x50], 0x51
jne 0x140127d29
xor eax, eax
jmp 0x140128886
mov rcx, qword [rsp + 0x200]
call fcn.14009a896
test eax, eax
je 0x140127d44
mov eax, Ordinal_45
jmp 0x140128886
cmp dword [rsp + 0x50], 0
je 0x140127d64
mov rax, qword [rsp + 0x68]
mov dword [rax + 0x280], 0
jmp 0x140128588
cmp qword [rsp + 0x128], 0
jg 0x140127dfc
mov rax, qword [rsp + 0x200]
cmp dword [rax + 0x210], 0
je 0x140127dc9
mov rax, qword [rsp + 0x200]
cmp dword [rax + 0xe20], 0
je 0x140127dc9
mov rax, qword [rsp + 0x200]
cmp qword [rax + 0x12a0], 0
je 0x140127dc9
mov rax, qword [rsp + 0x58]
mov byte [rax + 0x3a8], 1
lea rdx, str.Proxy_CONNECT_connection_closed
mov rcx, qword [rsp + 0x200]
call fcn.14009a8f0
jmp 0x140127de8
mov dword [rsp + 0x114], 1
lea rdx, str.Proxy_CONNECT_aborted
mov rcx, qword [rsp + 0x200]
call fcn.14009b14c
mov rax, qword [rsp + 0x68]
mov dword [rax + 0x280], 0
jmp 0x140128588
mov rax, qword [rsp + 0x68]
cmp dword [rax + 0x280], 2
jne 0x140127ef0
mov rax, qword [rsp + 0x68]
cmp qword [rax + 0x288], 0
je 0x140127e6c
mov rax, qword [rsp + 0x68]
mov rax, qword [rax + 0x288]
dec rax
mov rcx, qword [rsp + 0x68]
mov qword [rcx + 0x288], rax
mov rax, qword [rsp + 0x68]
cmp qword [rax + 0x288], 0
jg 0x140127e6a
mov rax, qword [rsp + 0x68]
mov dword [rax + 0x280], 0
mov rax, qword [rsp + 0x68]
mov dword [rax + 0x290], 2
jmp 0x140128588
jmp 0x140127eeb
mov qword [rsp + 0x188], 0
lea rax, [rsp + 0x164]
mov qword [rsp + 0x20], rax
lea r9, [rsp + 0x188]
mov r8d, 1
lea rdx, [rsp + 0x144]
mov rcx, qword [rsp + 0x200]
call fcn.140099f68
mov dword [rsp + 0x154], eax
cmp dword [rsp + 0x154], 0xffffffff
jne 0x140127eeb
lea rdx, [0x14020c5e8]
mov rcx, qword [rsp + 0x200]
call fcn.14009a8f0
mov rax, qword [rsp + 0x68]
mov dword [rax + 0x280], 0
mov rax, qword [rsp + 0x68]
mov dword [rax + 0x290], 2
jmp 0x140127cd8
mov rax, qword [rsp + 0x68]
add rax, 0x230
mov r8d, 1
lea rdx, [rsp + 0x144]
mov rcx, rax
call fcn.1400993f6
test eax, eax
je 0x140127f33
lea rdx, str.CONNECT_response_too_large
mov rcx, qword [rsp + 0x200]
call fcn.14009b14c
mov eax, gethostname
jmp 0x140128886
movsx eax, byte [rsp + 0x144]
cmp eax, 0xa
je 0x140127f45
jmp 0x140127cd8
mov rax, qword [rsp + 0x68]
mov rax, qword [rax + 0x278]
inc rax
mov rcx, qword [rsp + 0x68]
mov qword [rcx + 0x278], rax
mov rax, qword [rsp + 0x68]
add rax, 0x230
mov rcx, rax
call fcn.140099b26
mov qword [rsp + 0x78], rax
mov rax, qword [rsp + 0x68]
add rax, 0x230
mov rcx, rax
call fcn.140098fbe
mov qword [rsp + 0x80], rax
mov r9, qword [rsp + 0x80]
mov r8, qword [rsp + 0x78]
mov edx, 1
mov rcx, qword [rsp + 0x200]
call fcn.14009a7bf
mov rax, qword [rsp + 0x200]
movzx eax, byte [rax + 0xaf8]
test eax, eax
jne 0x140128068
mov rax, qword [rsp + 0x200]
movzx eax, byte [rax + 0xae0]
test eax, eax
je 0x140127fe9
mov dword [rsp + 0x1d8], 1
jmp 0x140127ff4
mov dword [rsp + 0x1d8], 0
mov rax, qword [rsp + 0x68]
cmp qword [rax + 0x278], 1
jne 0x140128010
mov dword [rsp + 0x1dc], 4
jmp 0x14012801b
mov dword [rsp + 0x1dc], 0
mov eax, dword [rsp + 0x1d8]
or eax, 0xa
or eax, dword [rsp + 0x1dc]
mov dword [rsp + 0x194], eax
mov r9, qword [rsp + 0x80]
mov r8, qword [rsp + 0x78]
mov edx, dword [rsp + 0x194]
mov rcx, qword [rsp + 0x200]
call fcn.1400997e8
mov dword [rsp + 0x50], eax
cmp dword [rsp + 0x50], 0
je 0x140128068
mov eax, dword [rsp + 0x50]
jmp 0x140128886
movsxd rax, dword [rsp + 0x80]
mov rcx, qword [rsp + 0x200]
add rax, qword [rcx + 0x1390]
mov rcx, qword [rsp + 0x200]
mov qword [rcx + 0x1390], rax
mov eax, 1
imul rax, rax, 0
mov rcx, qword [rsp + 0x78]
movsx eax, byte [rcx + rax]
cmp eax, 0xd
je 0x1401280c0
mov eax, 1
imul rax, rax, 0
mov rcx, qword [rsp + 0x78]
movsx eax, byte [rcx + rax]
cmp eax, 0xa
jne 0x140128253
mov rax, qword [rsp + 0x48]
cmp dword [rax + 0x70], 0x197
jne 0x14012820d
mov rax, qword [rsp + 0x200]
movzx eax, byte [rax + 0x1315]
test eax, eax
jne 0x14012820d
mov rax, qword [rsp + 0x68]
mov dword [rax + 0x280], 2
mov rax, qword [rsp + 0x68]
cmp qword [rax + 0x288], 0
je 0x14012812c
mov rax, qword [rsp + 0x68]
mov r8, qword [rax + 0x288]
lea rdx, str.Ignore__I64d_bytes_of_response_body
mov rcx, qword [rsp + 0x200]
call fcn.14009a8f0
jmp 0x14012820b
mov rax, qword [rsp + 0x68]
movzx eax, byte [rax + 0x294]
test eax, eax
je 0x1401281fc
lea rdx, str.Ignore_chunked_response_body
mov rcx, qword [rsp + 0x200]
call fcn.14009a8f0
mov rax, qword [rsp + 0x48]
mov byte [rax + 0xdc], 1
mov eax, 1
imul rax, rax, 1
mov rcx, qword [rsp + 0x78]
movsx eax, byte [rcx + rax]
cmp eax, 0xa
jne 0x140128184
mov rax, qword [rsp + 0x78]
inc rax
mov qword [rsp + 0x78], rax
mov rax, qword [rsp + 0x78]
inc rax
lea rcx, [rsp + 0x1a4]
mov qword [rsp + 0x20], rcx
lea r9, [rsp + 0x128]
mov r8d, 1
mov rdx, rax
mov rcx, qword [rsp + 0x200]
call fcn.140099f68
mov dword [rsp + 0x198], eax
cmp dword [rsp + 0x198], 0xffffffff
jne 0x1401281fa
lea rdx, str.chunk_reading_DONE
mov rcx, qword [rsp + 0x200]
call fcn.14009a8f0
mov rax, qword [rsp + 0x68]
mov dword [rax + 0x280], 0
mov rax, qword [rsp + 0x68]
mov dword [rax + 0x290], 2
jmp 0x14012820b
mov rax, qword [rsp + 0x68]
mov dword [rax + 0x280], 0
jmp 0x14012821c
mov rax, qword [rsp + 0x68]
mov dword [rax + 0x280], 0
mov rax, qword [rsp + 0x68]
cmp dword [rax + 0x280], 0
jne 0x140128248
mov rax, qword [rsp + 0x68]
cmp qword [rax + 0x288], 0
jne 0x140128248
mov rax, qword [rsp + 0x68]
mov dword [rax + 0x290], 2
xor eax, eax
test eax, eax
jne 0x140128248
jmp 0x140127cd8
mov r8d, reloc.WS2_32.dll_recvfrom
lea rdx, [0x14020c680]
mov rcx, qword [rsp + 0x78]
call fcn.14009a148
test eax, eax
je 0x14012827c
mov rax, qword [rsp + 0x48]
cmp dword [rax + 0x70], 0x191
je 0x1401282ad
mov r8d, reloc.WS2_32.dll_send
lea rdx, [0x14020c698]
mov rcx, qword [rsp + 0x78]
call fcn.14009a148
test eax, eax
je 0x14012836f
mov rax, qword [rsp + 0x48]
cmp dword [rax + 0x70], 0x197
jne 0x14012836f
mov rax, qword [rsp + 0x48]
cmp dword [rax + 0x70], 0x197
jne 0x1401282c8
mov dword [rsp + 0x1e0], 1
jmp 0x1401282d3
mov dword [rsp + 0x1e0], 0
cmp dword [rsp + 0x1e0], 0
jne 0x1401282ea
mov dword [rsp + 0x1e4], 0
jmp 0x1401282f5
mov dword [rsp + 0x1e4], 1
movzx eax, byte [rsp + 0x1e4]
mov byte [rsp + 0x1b4], al
mov rcx, qword [rsp + 0x78]
call fcn.140098361
mov qword [rsp + 0x1b8], rax
cmp qword [rsp + 0x1b8], 0
jne 0x14012832b
mov eax, reloc.WLDAP32.dll_Ordinal_27
jmp 0x140128886
mov r8, qword [rsp + 0x1b8]
movzx edx, byte [rsp + 0x1b4]
mov rcx, qword [rsp + 0x200]
call fcn.14009a9c7
mov dword [rsp + 0x50], eax
mov rcx, qword [rsp + 0x1b8]
call qword [0x14020a040]
cmp dword [rsp + 0x50], 0
je 0x14012836a
mov eax, dword [rsp + 0x50]
jmp 0x140128886
jmp 0x140128570
mov r8d, reloc.WS2_32.dll_ntohs
lea rdx, [0x14020c6b0]
mov rcx, qword [rsp + 0x78]
call fcn.14009a148
test eax, eax
je 0x140128408
mov rax, qword [rsp + 0x48]
mov eax, dword [rax + 0x70]
cdq
mov ecx, 0x64
idiv ecx
cmp eax, 2
jne 0x1401283be
mov rax, qword [rsp + 0x48]
mov r8d, dword [rax + 0x70]
lea rdx, str.Ignoring_Content_Length_in_CONNECT__03d_response
mov rcx, qword [rsp + 0x200]
call fcn.14009a8f0
jmp 0x140128403
mov rax, qword [rsp + 0x68]
add rax, 0x288
mov qword [rsp + 0x1e8], rax
lea rcx, [0x14020c6f8]
call fcn.140099469
mov rcx, qword [rsp + 0x78]
add rcx, rax
mov rax, rcx
mov rcx, qword [rsp + 0x1e8]
mov r9, rcx
mov r8d, 0xa
xor edx, edx
mov rcx, rax
call fcn.140099739
jmp 0x140128570
mov qword [rsp + 0x20], 5
lea r9, [0x14020c51c]
mov r8d, listen
lea rdx, [0x14020c708]
mov rcx, qword [rsp + 0x78]
call fcn.1400987b7
movzx eax, al
test eax, eax
je 0x140128447
mov rax, qword [rsp + 0x68]
mov byte [rax + 0x295], 1
jmp 0x140128570
mov r8d, reloc.WS2_32.dll_select
lea rdx, [0x14020c718]
mov rcx, qword [rsp + 0x78]
call fcn.14009a148
test eax, eax
je 0x1401284f7
mov rax, qword [rsp + 0x48]
mov eax, dword [rax + 0x70]
cdq
mov ecx, 0x64
idiv ecx
cmp eax, 2
jne 0x14012849a
mov rax, qword [rsp + 0x48]
mov r8d, dword [rax + 0x70]
lea rdx, str.Ignoring_Transfer_Encoding_in_CONNECT__03d_response
mov rcx, qword [rsp + 0x200]
call fcn.14009a8f0
jmp 0x1401284f5
mov qword [rsp + 0x20], 7
lea r9, [0x14020c768]
mov r8d, reloc.WS2_32.dll_select
lea rdx, [0x14020c770]
mov rcx, qword [rsp + 0x78]
call fcn.1400987b7
movzx eax, al
test eax, eax
je 0x1401284f5
lea rdx, str.CONNECT_responded_chunked
mov rcx, qword [rsp + 0x200]
call fcn.14009a8f0
mov rax, qword [rsp + 0x68]
mov byte [rax + 0x294], 1
mov rcx, qword [rsp + 0x200]
call fcn.14009a2c4
jmp 0x140128570
mov qword [rsp + 0x20], 5
lea r9, [0x14020c53c]
mov r8d, reloc.WS2_32.dll_recvfrom
lea rdx, [0x14020c7a8]
mov rcx, qword [rsp + 0x78]
call fcn.1400987b7
movzx eax, al
test eax, eax
je 0x140128533
mov rax, qword [rsp + 0x68]
mov byte [rax + 0x295], 1
jmp 0x140128570
mov rax, qword [rsp + 0x48]
add rax, 0x70
mov r9, rax
lea r8, [rsp + 0x34]
lea rdx, str.HTTP_1._d__d
mov rcx, qword [rsp + 0x78]
call fcn.140099e8c
cmp eax, 2
jne 0x140128570
mov rax, qword [rsp + 0x200]
mov rcx, qword [rsp + 0x48]
mov ecx, dword [rcx + 0x70]
mov dword [rax + 0x137c], ecx
mov rax, qword [rsp + 0x68]
add rax, 0x230
mov rcx, rax
call fcn.1400989d3
jmp 0x140127cd8
mov rcx, qword [rsp + 0x200]
call fcn.14009a896
test eax, eax
je 0x1401285a3
mov eax, Ordinal_45
jmp 0x140128886
cmp dword [rsp + 0x114], 0
je 0x1401285b7
mov eax, gethostname
jmp 0x140128886
mov rax, qword [rsp + 0x200]
mov eax, dword [rax + 0x137c]
cdq
mov ecx, 0x64
idiv ecx
cmp eax, 2
je 0x14012860f
mov rcx, qword [rsp + 0x200]
call fcn.140098e15
mov dword [rsp + 0x50], eax
cmp dword [rsp + 0x50], 0
je 0x1401285f3
mov eax, dword [rsp + 0x50]
jmp 0x140128886
mov rax, qword [rsp + 0x58]
movzx eax, byte [rax + 0x3aa]
test eax, eax
je 0x14012860f
mov rax, qword [rsp + 0x68]
mov byte [rax + 0x295], 1
mov rax, qword [rsp + 0x68]
movzx eax, byte [rax + 0x295]
test eax, eax
je 0x140128673
mov rax, qword [rsp + 0x200]
cmp qword [rax + 0x198], 0
je 0x140128673
movsxd rax, dword [rsp + 0x208]
mov rcx, qword [rsp + 0x58]
mov r8, qword [rcx + rax*8 + 0x1d0]
mov rdx, qword [rsp + 0x58]
mov rcx, qword [rsp + 0x200]
call fcn.14009a2a1
movsxd rax, dword [rsp + 0x208]
mov rcx, qword [rsp + 0x58]
mov qword [rcx + rax*8 + 0x1d0], 0xffffffffffffffff
jmp 0x1401286b8
mov rax, qword [rsp + 0x200]
cmp qword [rax + 0x198], 0
je 0x1401286a2
mov rax, qword [rsp + 0x68]
cmp dword [rax + 0x290], 2
jne 0x1401286a2
mov dl, 1
mov rcx, qword [rsp + 0x200]
call fcn.140127330
mov rax, qword [rsp + 0x200]
cmp qword [rax + 0x198], 0
jne 0x140127733
mov rax, qword [rsp + 0x200]
mov eax, dword [rax + 0x137c]
cdq
mov ecx, 0x64
idiv ecx
cmp eax, 2
je 0x1401287c5
mov rax, qword [rsp + 0x68]
movzx eax, byte [rax + 0x295]
test eax, eax
je 0x140128728
mov rax, qword [rsp + 0x200]
cmp qword [rax + 0x198], 0
je 0x140128728
mov rax, qword [rsp + 0x58]
mov byte [rax + 0x3a8], 1
lea rdx, str.Connect_me_again_please
mov rcx, qword [rsp + 0x200]
call fcn.14009a8f0
mov rcx, qword [rsp + 0x200]
call fcn.14009ab20
jmp 0x14012875f
mov rax, qword [rsp + 0x200]
mov rcx, qword [rax + 0x198]
call qword [0x14020a040]
mov rax, qword [rsp + 0x200]
mov qword [rax + 0x198], 0
mov edx, 2
mov rcx, qword [rsp + 0x58]
call fcn.14009960d
mov rax, qword [rsp + 0x68]
mov dword [rax + 0x290], 0
mov rax, qword [rsp + 0x58]
movzx eax, byte [rax + 0x3a8]
test eax, eax
je 0x140128785
xor eax, eax
jmp 0x140128886
mov rax, qword [rsp + 0x68]
add rax, 0x230
mov rcx, rax
call fcn.14009a189
mov rax, qword [rsp + 0x200]
mov r8d, dword [rax + 0x158]
lea rdx, str.Received_HTTP_code__d_from_proxy_after_CONNECT
mov rcx, qword [rsp + 0x200]
call fcn.14009b14c
mov eax, gethostname
jmp 0x140128886
mov rax, qword [rsp + 0x68]
mov dword [rax + 0x290], 2
mov rax, qword [rsp + 0x200]
mov rcx, qword [rax + 0x12a0]
call qword [0x14020a040]
mov rax, qword [rsp + 0x200]
mov qword [rax + 0x12a0], 0
xor eax, eax
test eax, eax
jne 0x1401287d4
mov rax, qword [rsp + 0x200]
mov qword [rax + 0x12a0], 0
mov rax, qword [rsp + 0x200]
mov byte [rax + 0xe24], 1
mov rax, qword [rsp + 0x200]
mov byte [rax + 0xe25], 0
mov rax, qword [rsp + 0x200]
mov r8d, dword [rax + 0x137c]
lea rdx, str.Proxy_replied__d_to_CONNECT_request
mov rcx, qword [rsp + 0x200]
call fcn.14009a8f0
mov rax, qword [rsp + 0x200]
mov byte [rax + 0x1c4], 0
mov rax, qword [rsp + 0x58]
mov byte [rax + 0x3b5], 0
mov rax, qword [rsp + 0x68]
add rax, 0x230
mov rcx, rax
call fcn.14009a189
xor eax, eax
mov rdi, rax
mov rcx, rsp
lea rdx, reloc.WS2_32.dll_ioctlsocket
call fcn.14009a508
mov rax, rdi
add rsp, 0x1f0
pop rdi
ret