Function at 0x1400403a0
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
sub rsp, 0x128
mov dword [rsp + 0xa0], 0
mov rax, qword [rsp + 0x130]
mov rax, qword [rax]
mov qword [rsp + 0x50], rax
mov rax, qword [rsp + 0x50]
add rax, 0xd8
mov qword [rsp + 0x60], rax
movsxd rax, dword [rsp + 0x138]
mov rcx, qword [rsp + 0x130]
mov rax, qword [rcx + rax*8 + 0x238]
mov qword [rsp + 0x108], rax
mov byte [rsp + 0x4c], 0
mov rax, qword [rsp + 0x130]
mov rax, qword [rax + 0x858]
mov qword [rsp + 0x40], rax
mov rcx, qword [rsp + 0x130]
call fcn.1400400d4
movzx eax, al
test eax, eax
je 0x140040439
xor eax, eax
jmp 0x14004156d
mov rax, qword [rsp + 0x130]
mov byte [rax + 0x3ba], 0
mov rax, qword [rsp + 0x40]
cmp dword [rax + 0x4024], 0
jne 0x140040943
mov r9d, dword [rsp + 0x148]
mov r8, qword [rsp + 0x140]
lea rdx, str.Establish_HTTP_proxy_tunnel_to__s:_hu_n
mov rcx, qword [rsp + 0x50]
call fcn.1400338d0
mov rax, qword [rsp + 0x50]
mov rcx, qword [rax + 0x1d8]
call qword [fcn.1400979f4]
mov rax, qword [rsp + 0x50]
mov qword [rax + 0x1d8], 0
call fcn.140043374
mov qword [rsp + 0x68], rax
cmp qword [rsp + 0x68], 0
jne 0x1400404b9
mov eax, reloc.WLDAP32.dll_Ordinal_27
jmp 0x14004156d
mov r8d, dword [rsp + 0x148]
mov rdx, qword [rsp + 0x140]
lea rcx, str._s:_hu
call fcn.14004f0cc
mov qword [rsp + 0xa8], rax
cmp qword [rsp + 0xa8], 0
jne 0x1400404fc
mov rcx, qword [rsp + 0x68]
call fcn.140043394
mov eax, reloc.WLDAP32.dll_Ordinal_27
jmp 0x14004156d
mov r9b, 1
mov r8, qword [rsp + 0xa8]
lea rdx, str.CONNECT
mov rcx, qword [rsp + 0x130]
call fcn.140049938
mov dword [rsp + 0x48], eax
mov rcx, qword [rsp + 0xa8]
call qword [fcn.1400979f4]
cmp dword [rsp + 0x48], 0
jne 0x14004090b
mov qword [rsp + 0x78], 0
lea rax, [0x1400f35ca]
mov qword [rsp + 0xd0], rax
lea rax, [0x1400f35cb]
mov qword [rsp + 0xd8], rax
mov rax, qword [rsp + 0x130]
cmp dword [rax + 0x164], 1
jne 0x140040581
lea rax, [0x1400e865c]
mov qword [rsp + 0xb8], rax
jmp 0x140040590
lea rax, [0x1400e8690]
mov qword [rsp + 0xb8], rax
mov rax, qword [rsp + 0xb8]
mov qword [rsp + 0xf8], rax
mov rax, qword [rsp + 0x130]
mov al, byte [rax + 0x3aa]
mov byte [rsp + 0x58], al
mov rax, qword [rsp + 0x130]
mov rax, qword [rax + 0xd0]
cmp qword [rsp + 0x140], rax
je 0x140040627
mov edx, Ordinal_60
mov rcx, qword [rsp + 0x140]
call fcn.1400911f8
test rax, rax
je 0x1400405ef
mov dword [rsp + 0x80], 1
jmp 0x1400405fa
mov dword [rsp + 0x80], 0
cmp dword [rsp + 0x80], 0
jne 0x140040611
mov dword [rsp + 0x84], 0
jmp 0x14004061c
mov dword [rsp + 0x84], 1
mov al, byte [rsp + 0x84]
mov byte [rsp + 0x58], al
movzx eax, byte [rsp + 0x58]
test eax, eax
je 0x140040641
lea rax, [0x1400e8694]
mov qword [rsp + 0xc0], rax
jmp 0x140040650
lea rax, [0x1400f35cc]
mov qword [rsp + 0xc0], rax
movzx eax, byte [rsp + 0x58]
test eax, eax
je 0x14004066a
lea rax, [0x1400e8698]
mov qword [rsp + 0xc8], rax
jmp 0x140040679
lea rax, [0x1400f35cd]
mov qword [rsp + 0xc8], rax
mov eax, dword [rsp + 0x148]
mov dword [rsp + 0x20], eax
mov r9, qword [rsp + 0xc0]
mov r8, qword [rsp + 0x140]
mov rdx, qword [rsp + 0xc8]
lea rcx, str._s_s_s:_hu
call fcn.14004f0cc
mov qword [rsp + 0x90], rax
cmp qword [rsp + 0x90], 0
jne 0x1400406cf
mov rcx, qword [rsp + 0x68]
call fcn.140043394
mov eax, reloc.WLDAP32.dll_Ordinal_27
jmp 0x14004156d
lea rdx, [0x1400e86ac]
mov rcx, qword [rsp + 0x130]
call fcn.14004328c
test rax, rax
jne 0x14004072b
mov rdx, qword [rsp + 0x90]
lea rcx, str.Host:__s_r_n
call fcn.14004f0cc
mov qword [rsp + 0x78], rax
cmp qword [rsp + 0x78], 0
jne 0x14004072b
mov rcx, qword [rsp + 0x90]
call qword [fcn.1400979f4]
mov rcx, qword [rsp + 0x68]
call fcn.140043394
mov eax, reloc.WLDAP32.dll_Ordinal_27
jmp 0x14004156d
lea rdx, [0x1400e86c8]
mov rcx, qword [rsp + 0x130]
call fcn.14004328c
test rax, rax
jne 0x140040753
lea rax, [0x1400e86e0]
mov qword [rsp + 0xd0], rax
lea rdx, [0x1400e8700]
mov rcx, qword [rsp + 0x130]
call fcn.14004328c
test rax, rax
jne 0x14004079c
mov eax, 8
imul rax, rax, 0x24
mov rcx, qword [rsp + 0x50]
cmp qword [rcx + rax + 0x778], 0
je 0x14004079c
mov rax, qword [rsp + 0x130]
mov rax, qword [rax + 0x418]
mov qword [rsp + 0xd8], rax
mov rax, qword [rsp + 0x130]
cmp qword [rax + 0x410], 0
je 0x1400407c7
mov rax, qword [rsp + 0x130]
mov rax, qword [rax + 0x410]
mov qword [rsp + 0xe0], rax
jmp 0x1400407d6
lea rax, [0x1400f35ce]
mov qword [rsp + 0xe0], rax
cmp qword [rsp + 0x78], 0
je 0x1400407ed
mov rax, qword [rsp + 0x78]
mov qword [rsp + 0xe8], rax
jmp 0x1400407fc
lea rax, [0x1400f35cf]
mov qword [rsp + 0xe8], rax
mov rax, qword [rsp + 0xd0]
mov qword [rsp + 0x38], rax
mov rax, qword [rsp + 0xd8]
mov qword [rsp + 0x30], rax
mov rax, qword [rsp + 0xe0]
mov qword [rsp + 0x28], rax
mov rax, qword [rsp + 0xe8]
mov qword [rsp + 0x20], rax
mov r9, qword [rsp + 0xf8]
mov r8, qword [rsp + 0x90]
lea rdx, str.CONNECT__s_HTTP__s_r_n_s_s_s_s
mov rcx, qword [rsp + 0x68]
call fcn.1400433cc
mov dword [rsp + 0x48], eax
cmp qword [rsp + 0x78], 0
je 0x140040868
mov rcx, qword [rsp + 0x78]
call qword [fcn.1400979f4]
mov rcx, qword [rsp + 0x90]
call qword [fcn.1400979f4]
cmp dword [rsp + 0x48], 0
jne 0x140040895
mov r8, qword [rsp + 0x68]
mov dl, 1
mov rcx, qword [rsp + 0x130]
call fcn.140043c60
mov dword [rsp + 0x48], eax
cmp dword [rsp + 0x48], 0
jne 0x1400408b1
lea rdx, [0x1400e869c]
mov rcx, qword [rsp + 0x68]
call fcn.1400433cc
mov dword [rsp + 0x48], eax
cmp dword [rsp + 0x48], 0
jne 0x1400408ea
mov rax, qword [rsp + 0x50]
add rax, 0x5120
mov ecx, dword [rsp + 0x138]
mov dword [rsp + 0x20], ecx
xor r9d, r9d
mov r8, rax
mov rdx, qword [rsp + 0x130]
mov rcx, qword [rsp + 0x68]
call fcn.140043630
mov dword [rsp + 0x48], eax
mov qword [rsp + 0x68], 0
cmp dword [rsp + 0x48], 0
je 0x14004090b
lea rdx, str.Failed_sending_CONNECT_to_proxy
mov rcx, qword [rsp + 0x50]
call fcn.1400339c8
mov rcx, qword [rsp + 0x68]
call fcn.140043394
cmp dword [rsp + 0x48], 0
je 0x140040925
mov eax, dword [rsp + 0x48]
jmp 0x14004156d
mov rax, qword [rsp + 0x40]
mov dword [rax + 0x4024], 1
mov rax, qword [rsp + 0x40]
mov dword [rax + 0x4000], 0
mov r8b, 1
xor edx, edx
mov rcx, qword [rsp + 0x50]
call fcn.14003588c
mov qword [rsp + 0x100], rax
cmp qword [rsp + 0x100], 0
jg 0x140040980
lea rdx, str.Proxy_CONNECT_aborted_due_to_timeout
mov rcx, qword [rsp + 0x50]
call fcn.1400339c8
mov eax, Ordinal_32
jmp 0x14004156d
mov edx, dword [rsp + 0x138]
mov rcx, qword [rsp + 0x130]
call fcn.1400364a8
movzx eax, al
test eax, eax
jne 0x1400409a2
xor eax, eax
jmp 0x14004156d
mov dword [rsp + 0x74], 0
mov rax, qword [rsp + 0x40]
cmp dword [rax + 0x4004], 0
je 0x140041298
cmp dword [rsp + 0x74], 0
jne 0x140041298
mov eax, 1
imul rax, rax, 0x4000
mov rcx, qword [rsp + 0x40]
add rcx, rax
mov rax, rcx
mov rcx, qword [rsp + 0x40]
cmp qword [rcx + 0x4010], rax
jb 0x140040a07
lea rdx, str.CONNECT_response_too_large_
mov rcx, qword [rsp + 0x50]
call fcn.1400339c8
mov eax, gethostname
jmp 0x14004156d
lea rax, [rsp + 0xf0]
mov qword [rsp + 0x20], rax
mov r9d, 1
mov rax, qword [rsp + 0x40]
mov r8, qword [rax + 0x4010]
mov rdx, qword [rsp + 0x108]
mov rcx, qword [rsp + 0x130]
call fcn.14003427c
mov dword [rsp + 0x48], eax
cmp dword [rsp + 0x48], 0x51
jne 0x140040a4d
xor eax, eax
jmp 0x14004156d
mov rcx, qword [rsp + 0x130]
call fcn.14004c034
test eax, eax
je 0x140040a68
mov eax, Ordinal_45
jmp 0x14004156d
cmp dword [rsp + 0x48], 0
je 0x140040a85
mov rax, qword [rsp + 0x40]
mov dword [rax + 0x4004], 0
jmp 0x140041298
cmp qword [rsp + 0xf0], 0
jg 0x140040afb
mov rax, qword [rsp + 0x50]
cmp dword [rax + 0x248], 0
je 0x140040ace
mov rax, qword [rsp + 0x50]
cmp dword [rax + 0x4dd0], 0
je 0x140040ace
mov rax, qword [rsp + 0x130]
mov byte [rax + 0x3ba], 1
lea rdx, str.Proxy_CONNECT_connection_closed_n
mov rcx, qword [rsp + 0x50]
call fcn.1400338d0
jmp 0x140040ae7
mov dword [rsp + 0x74], 1
lea rdx, str.Proxy_CONNECT_aborted
mov rcx, qword [rsp + 0x50]
call fcn.1400339c8
mov rax, qword [rsp + 0x40]
mov dword [rax + 0x4004], 0
jmp 0x140041298
mov rax, qword [rsp + 0x40]
cmp dword [rax + 0x4004], 1
jle 0x140040bf4
mov rax, qword [rsp + 0x40]
mov rcx, qword [rsp + 0x40]
mov qword [rcx + 0x4010], rax
mov rax, qword [rsp + 0x40]
cmp qword [rax + 0x4018], 0
je 0x140040b7c
mov rax, qword [rsp + 0x40]
mov rax, qword [rax + 0x4018]
dec rax
mov rcx, qword [rsp + 0x40]
mov qword [rcx + 0x4018], rax
mov rax, qword [rsp + 0x40]
cmp qword [rax + 0x4018], 0
jg 0x140040b7a
mov rax, qword [rsp + 0x40]
mov dword [rax + 0x4004], 0
mov rax, qword [rsp + 0x40]
mov dword [rax + 0x4024], 2
jmp 0x140041298
jmp 0x140040bef
mov qword [rsp + 0x110], 0
lea r9, [rsp + 0x110]
mov r8d, 1
mov rax, qword [rsp + 0x40]
mov rdx, qword [rax + 0x4010]
mov rcx, qword [rsp + 0x130]
call fcn.14007b358
mov dword [rsp + 0x98], eax
cmp dword [rsp + 0x98], 0xffffffff
jne 0x140040bef
lea rdx, [0x1400e87e0]
mov rcx, qword [rsp + 0x50]
call fcn.1400338d0
mov rax, qword [rsp + 0x40]
mov dword [rax + 0x4004], 0
mov rax, qword [rsp + 0x40]
mov dword [rax + 0x4024], 2
jmp 0x1400409aa
mov rax, qword [rsp + 0x40]
mov eax, dword [rax + 0x4000]
inc eax
mov rcx, qword [rsp + 0x40]
mov dword [rcx + 0x4000], eax
mov rax, qword [rsp + 0x40]
mov rax, qword [rax + 0x4010]
movsx eax, byte [rax]
cmp eax, 0xa
je 0x140040c40
mov rax, qword [rsp + 0x40]
mov rax, qword [rax + 0x4010]
inc rax
mov rcx, qword [rsp + 0x40]
mov qword [rcx + 0x4010], rax
jmp 0x1400409aa
mov dword [rsp + 0x48], 0
cmp dword [rsp + 0x48], 0
je 0x140040c58
mov eax, dword [rsp + 0x48]
jmp 0x14004156d
mov rax, qword [rsp + 0x50]
movzx eax, byte [rax + 0x748]
test eax, eax
je 0x140040c9f
mov rax, qword [rsp + 0x40]
movsxd rax, dword [rax + 0x4000]
mov rcx, qword [rsp + 0x130]
mov qword [rsp + 0x20], rcx
mov r9, rax
mov rax, qword [rsp + 0x40]
mov r8, qword [rax + 0x4008]
mov edx, 1
mov rcx, qword [rsp + 0x50]
call fcn.14003475c
mov rax, qword [rsp + 0x50]
movzx eax, byte [rax + 0x9b8]
test eax, eax
jne 0x140040d12
mov dword [rsp + 0x70], 2
mov rax, qword [rsp + 0x50]
movzx eax, byte [rax + 0x73e]
test eax, eax
je 0x140040cd2
mov eax, dword [rsp + 0x70]
or eax, 1
mov dword [rsp + 0x70], eax
mov rax, qword [rsp + 0x40]
movsxd rax, dword [rax + 0x4000]
mov r9, rax
mov rax, qword [rsp + 0x40]
mov r8, qword [rax + 0x4008]
mov edx, dword [rsp + 0x70]
mov rcx, qword [rsp + 0x130]
call fcn.140033e88
mov dword [rsp + 0x48], eax
cmp dword [rsp + 0x48], 0
je 0x140040d12
mov eax, dword [rsp + 0x48]
jmp 0x14004156d
mov rax, qword [rsp + 0x50]
mov eax, dword [rax + 0x511c]
mov rcx, qword [rsp + 0x40]
add eax, dword [rcx + 0x4000]
mov rcx, qword [rsp + 0x50]
mov dword [rcx + 0x511c], eax
mov rax, qword [rsp + 0x50]
mov eax, dword [rax + 0x108]
mov rcx, qword [rsp + 0x40]
add eax, dword [rcx + 0x4000]
mov rcx, qword [rsp + 0x50]
mov dword [rcx + 0x108], eax
mov eax, 1
imul rax, rax, 0
mov rcx, qword [rsp + 0x40]
mov rcx, qword [rcx + 0x4008]
movsx eax, byte [rcx + rax]
cmp eax, 0xd
je 0x140040d94
mov eax, 1
imul rax, rax, 0
mov rcx, qword [rsp + 0x40]
mov rcx, qword [rcx + 0x4008]
movsx eax, byte [rcx + rax]
cmp eax, 0xa
jne 0x140040f2a
mov rax, qword [rsp + 0x40]
mov rcx, qword [rsp + 0x40]
mov qword [rcx + 0x4010], rax
mov rax, qword [rsp + 0x60]
cmp dword [rax + 0xa8], 0x197
jne 0x140040ef8
mov rax, qword [rsp + 0x50]
movzx eax, byte [rax + 0x4dd8]
test eax, eax
jne 0x140040ef8
mov rax, qword [rsp + 0x40]
mov dword [rax + 0x4004], 2
mov rax, qword [rsp + 0x40]
cmp qword [rax + 0x4018], 0
je 0x140040e0e
mov rax, qword [rsp + 0x40]
mov r8, qword [rax + 0x4018]
lea rdx, str.Ignore__I64d_bytes_of_response_body_n
mov rcx, qword [rsp + 0x50]
call fcn.1400338d0
jmp 0x140040ef6
mov rax, qword [rsp + 0x40]
movzx eax, byte [rax + 0x4020]
test eax, eax
je 0x140040ee7
lea rdx, str.Ignore_chunked_response_body_n
mov rcx, qword [rsp + 0x50]
call fcn.1400338d0
mov rax, qword [rsp + 0x60]
mov byte [rax + 0xf5], 1
mov eax, 1
imul rax, rax, 1
mov rcx, qword [rsp + 0x40]
mov rcx, qword [rcx + 0x4008]
movsx eax, byte [rcx + rax]
cmp eax, 0xa
jne 0x140040e78
mov rax, qword [rsp + 0x40]
mov rax, qword [rax + 0x4008]
inc rax
mov rcx, qword [rsp + 0x40]
mov qword [rcx + 0x4008], rax
mov rax, qword [rsp + 0x40]
mov rax, qword [rax + 0x4008]
inc rax
lea r9, [rsp + 0xf0]
mov r8d, 1
mov rdx, rax
mov rcx, qword [rsp + 0x130]
call fcn.14007b358
mov dword [rsp + 0x9c], eax
cmp dword [rsp + 0x9c], 0xffffffff
jne 0x140040ee5
lea rdx, str.chunk_reading_DONE_n
mov rcx, qword [rsp + 0x50]
call fcn.1400338d0
mov rax, qword [rsp + 0x40]
mov dword [rax + 0x4004], 0
mov rax, qword [rsp + 0x40]
mov dword [rax + 0x4024], 2
jmp 0x140040ef6
mov rax, qword [rsp + 0x40]
mov dword [rax + 0x4004], 0
jmp 0x140040f07
mov rax, qword [rsp + 0x40]
mov dword [rax + 0x4004], 0
mov rax, qword [rsp + 0x40]
cmp qword [rax + 0x4018], 0
jne 0x140040f25
mov rax, qword [rsp + 0x40]
mov dword [rax + 0x4024], 2
jmp 0x1400409aa
mov rax, qword [rsp + 0x40]
movsxd rax, dword [rax + 0x4000]
mov rcx, qword [rsp + 0x40]
mov rcx, qword [rcx + 0x4008]
mov byte [rcx + rax], 0
mov r8d, reloc.WS2_32.dll_recvfrom
mov rax, qword [rsp + 0x40]
mov rdx, qword [rax + 0x4008]
lea rcx, [0x1400e8858]
call fcn.1400379fc
test eax, eax
je 0x140040f79
mov rax, qword [rsp + 0x60]
cmp dword [rax + 0xa8], 0x191
je 0x140040fb4
mov r8d, reloc.WS2_32.dll_send
mov rax, qword [rsp + 0x40]
mov rdx, qword [rax + 0x4008]
lea rcx, [0x1400e8870]
call fcn.1400379fc
test eax, eax
je 0x140041078
mov rax, qword [rsp + 0x60]
cmp dword [rax + 0xa8], 0x197
jne 0x140041078
mov rax, qword [rsp + 0x60]
cmp dword [rax + 0xa8], 0x197
jne 0x140040fd2
mov dword [rsp + 0x88], 1
jmp 0x140040fdd
mov dword [rsp + 0x88], 0
cmp dword [rsp + 0x88], 0
jne 0x140040ff4
mov dword [rsp + 0x8c], 0
jmp 0x140040fff
mov dword [rsp + 0x8c], 1
mov al, byte [rsp + 0x8c]
mov byte [rsp + 0x59], al
mov rax, qword [rsp + 0x40]
mov rcx, qword [rax + 0x4008]
call fcn.14004310c
mov qword [rsp + 0xb0], rax
cmp qword [rsp + 0xb0], 0
jne 0x140041038
mov eax, reloc.WLDAP32.dll_Ordinal_27
jmp 0x14004156d
mov r8, qword [rsp + 0xb0]
mov dl, byte [rsp + 0x59]
mov rcx, qword [rsp + 0x130]
call fcn.140047670
mov dword [rsp + 0x48], eax
mov rcx, qword [rsp + 0xb0]
call qword [fcn.1400979f4]
cmp dword [rsp + 0x48], 0
je 0x140041073
mov eax, dword [rsp + 0x48]
jmp 0x14004156d
jmp 0x14004125b
mov r8d, reloc.WS2_32.dll_ntohs
mov rax, qword [rsp + 0x40]
mov rdx, qword [rax + 0x4008]
lea rcx, [0x1400e8888]
call fcn.1400379fc
test eax, eax
je 0x140041106
mov rax, qword [rsp + 0x60]
mov eax, dword [rax + 0xa8]
cdq
mov ecx, 0x64
idiv ecx
cmp eax, 2
jne 0x1400410d1
mov rax, qword [rsp + 0x60]
mov r8d, dword [rax + 0xa8]
lea rdx, str.Ignoring_Content_Length_in_CONNECT__03d_response_n
mov rcx, qword [rsp + 0x50]
call fcn.1400338d0
jmp 0x140041101
mov rax, qword [rsp + 0x40]
add rax, 0x4018
mov ecx, 1
imul rcx, rcx, 0xf
mov rdx, qword [rsp + 0x40]
add rcx, qword [rdx + 0x4008]
mov r9, rax
mov r8d, 0xa
xor edx, edx
call fcn.14004eadc
jmp 0x14004125b
lea r8, [0x1400e87bc]
lea rdx, [0x1400e88d0]
mov rax, qword [rsp + 0x40]
mov rcx, qword [rax + 0x4008]
call fcn.140042f70
movzx eax, al
test eax, eax
je 0x140041136
mov byte [rsp + 0x4c], 1
jmp 0x14004125b
mov r8d, reloc.WS2_32.dll_select
mov rax, qword [rsp + 0x40]
mov rdx, qword [rax + 0x4008]
lea rcx, [0x1400e88e0]
call fcn.1400379fc
test eax, eax
je 0x1400411e5
mov rax, qword [rsp + 0x60]
mov eax, dword [rax + 0xa8]
cdq
mov ecx, 0x64
idiv ecx
cmp eax, 2
jne 0x140041193
mov rax, qword [rsp + 0x60]
mov r8d, dword [rax + 0xa8]
lea rdx, str.Ignoring_Transfer_Encoding_in_CONNECT__03d_response_n
mov rcx, qword [rsp + 0x50]
call fcn.1400338d0
jmp 0x1400411e3
lea r8, [0x1400e8930]
lea rdx, [0x1400e8938]
mov rax, qword [rsp + 0x40]
mov rcx, qword [rax + 0x4008]
call fcn.140042f70
movzx eax, al
test eax, eax
je 0x1400411e3
lea rdx, str.CONNECT_responded_chunked_n
mov rcx, qword [rsp + 0x50]
call fcn.1400338d0
mov rax, qword [rsp + 0x40]
mov byte [rax + 0x4020], 1
mov rcx, qword [rsp + 0x130]
call fcn.14007b314
jmp 0x14004125b
lea r8, [0x1400e896c]
lea rdx, [0x1400e8978]
mov rax, qword [rsp + 0x40]
mov rcx, qword [rax + 0x4008]
call fcn.140042f70
movzx eax, al
test eax, eax
je 0x140041212
mov byte [rsp + 0x4c], 1
jmp 0x14004125b
mov rax, qword [rsp + 0x60]
add rax, 0xa8
mov r9, rax
lea r8, [rsp + 0xa0]
lea rdx, str.HTTP_1._d__d
mov rax, qword [rsp + 0x40]
mov rcx, qword [rax + 0x4008]
call fcn.140023158
cmp eax, 2
jne 0x14004125b
mov rax, qword [rsp + 0x50]
mov rcx, qword [rsp + 0x60]
mov ecx, dword [rcx + 0xa8]
mov dword [rax + 0x510c], ecx
mov rax, qword [rsp + 0x40]
mov dword [rax + 0x4000], 0
mov rax, qword [rsp + 0x40]
mov rcx, qword [rsp + 0x40]
mov qword [rcx + 0x4010], rax
mov rax, qword [rsp + 0x40]
mov rcx, qword [rsp + 0x40]
mov rcx, qword [rcx + 0x4010]
mov qword [rax + 0x4008], rcx
jmp 0x1400409aa
mov rcx, qword [rsp + 0x130]
call fcn.14004c034
test eax, eax
je 0x1400412b3
mov eax, Ordinal_45
jmp 0x14004156d
cmp dword [rsp + 0x74], 0
je 0x1400412c4
mov eax, gethostname
jmp 0x14004156d
mov rax, qword [rsp + 0x50]
mov eax, dword [rax + 0x510c]
cdq
mov ecx, 0x64
idiv ecx
cmp eax, 2
je 0x140041315
mov rcx, qword [rsp + 0x130]
call fcn.140047ae0
mov dword [rsp + 0x48], eax
cmp dword [rsp + 0x48], 0
je 0x1400412fd
mov eax, dword [rsp + 0x48]
jmp 0x14004156d
mov rax, qword [rsp + 0x130]
movzx eax, byte [rax + 0x3a1]
test eax, eax
je 0x140041315
mov byte [rsp + 0x4c], 1
movzx eax, byte [rsp + 0x4c]
test eax, eax
je 0x140041370
mov rax, qword [rsp + 0x50]
cmp qword [rax + 0x1d8], 0
je 0x140041370
movsxd rax, dword [rsp + 0x138]
mov rcx, qword [rsp + 0x130]
mov rdx, qword [rcx + rax*8 + 0x238]
mov rcx, qword [rsp + 0x130]
call fcn.1400360b4
movsxd rax, dword [rsp + 0x138]
mov rcx, qword [rsp + 0x130]
mov qword [rcx + rax*8 + 0x238], 0xffffffffffffffff
jmp 0x1400413af
mov rax, qword [rsp + 0x50]
cmp qword [rax + 0x1d8], 0
je 0x14004139c
mov rax, qword [rsp + 0x40]
cmp dword [rax + 0x4024], 2
jne 0x14004139c
mov dl, 1
mov rcx, qword [rsp + 0x130]
call fcn.140040270
mov rax, qword [rsp + 0x50]
cmp qword [rax + 0x1d8], 0
jne 0x140040448
mov rax, qword [rsp + 0x50]
mov eax, dword [rax + 0x510c]
cdq
mov ecx, 0x64
idiv ecx
cmp eax, 2
je 0x1400414d7
movzx eax, byte [rsp + 0x4c]
test eax, eax
je 0x140041412
mov rax, qword [rsp + 0x50]
cmp qword [rax + 0x1d8], 0
je 0x140041412
mov rax, qword [rsp + 0x130]
mov byte [rax + 0x3ba], 1
lea rdx, str.Connect_me_again_please_n
mov rcx, qword [rsp + 0x50]
call fcn.1400338d0
mov rcx, qword [rsp + 0x130]
call fcn.140040358
jmp 0x140041487
mov rax, qword [rsp + 0x50]
mov rcx, qword [rax + 0x1d8]
call qword [fcn.1400979f4]
mov rax, qword [rsp + 0x50]
mov qword [rax + 0x1d8], 0
mov edx, 2
mov rcx, qword [rsp + 0x130]
call fcn.1400363e0
movsxd rax, dword [rsp + 0x138]
mov rcx, qword [rsp + 0x130]
mov rdx, qword [rcx + rax*8 + 0x238]
mov rcx, qword [rsp + 0x130]
call fcn.1400360b4
movsxd rax, dword [rsp + 0x138]
mov rcx, qword [rsp + 0x130]
mov qword [rcx + rax*8 + 0x238], 0xffffffffffffffff
mov rax, qword [rsp + 0x40]
mov dword [rax + 0x4024], 0
mov rax, qword [rsp + 0x130]
movzx eax, byte [rax + 0x3ba]
test eax, eax
je 0x1400414b0
xor eax, eax
jmp 0x14004156d
mov rax, qword [rsp + 0x50]
mov r8d, dword [rax + 0x180]
lea rdx, str.Received_HTTP_code__d_from_proxy_after_CONNECT
mov rcx, qword [rsp + 0x50]
call fcn.1400339c8
mov eax, gethostname
jmp 0x14004156d
mov rax, qword [rsp + 0x40]
mov dword [rax + 0x4024], 2
mov rax, qword [rsp + 0x130]
mov rcx, qword [rax + 0x410]
call qword [fcn.1400979f4]
mov rax, qword [rsp + 0x130]
mov qword [rax + 0x410], 0
xor eax, eax
test eax, eax
jne 0x1400414e6
mov rax, qword [rsp + 0x130]
mov qword [rax + 0x410], 0
mov rax, qword [rsp + 0x50]
mov byte [rax + 0x4dd4], 1
mov rax, qword [rsp + 0x50]
mov r8d, dword [rax + 0x510c]
lea rdx, str.Proxy_replied__d_to_CONNECT_request_n
mov rcx, qword [rsp + 0x50]
call fcn.1400338d0
mov rax, qword [rsp + 0x50]
mov byte [rax + 0x1cd], 0
mov rax, qword [rsp + 0x130]
mov byte [rax + 0x3b3], 0
xor eax, eax
add rsp, 0x128
ret