Function at 0x140050280
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 + 0xa4], 0
mov rax, qword [rsp + 0x130]
add rax, 0xe8
mov qword [rsp + 0x60], rax
mov rax, qword [rsp + 0x130]
mov rax, qword [rax + 0x18]
mov qword [rsp + 0x48], rax
movsxd rax, dword [rsp + 0x138]
mov rcx, qword [rsp + 0x48]
mov rax, qword [rcx + rax*8 + 0x1d0]
mov qword [rsp + 0x108], rax
mov rax, qword [rsp + 0x48]
mov rax, qword [rax + 0x6d0]
mov qword [rsp + 0x38], rax
mov rax, qword [rsp + 0x130]
mov rax, qword [rax + 0x1b0]
mov qword [rsp + 0xb0], rax
mov rcx, qword [rsp + 0x48]
call fcn.14004fc60
movzx eax, al
test eax, eax
je 0x140050326
xor eax, eax
jmp 0x140051351
mov rax, qword [rsp + 0x48]
mov byte [rax + 0x3a8], 0
mov rax, qword [rsp + 0x38]
cmp dword [rax + 0x290], 0
jne 0x1400506c0
mov rax, qword [rsp + 0x38]
add rax, 0x250
mov qword [rsp + 0x68], rax
mov qword [rsp + 0x90], 0
mov qword [rsp + 0x88], 0
xor eax, eax
test eax, eax
jne 0x14005036c
mov rax, qword [rsp + 0x130]
mov rcx, qword [rax + 0x198]
call qword [fcn.140095dfc]
mov rax, qword [rsp + 0x130]
mov qword [rax + 0x198], 0
xor eax, eax
test eax, eax
jne 0x140050372
mov edx, 0x100000
mov rcx, qword [rsp + 0x68]
call fcn.140034c80
lea rax, [rsp + 0x88]
mov qword [rsp + 0x28], rax
lea rax, [rsp + 0x90]
mov qword [rsp + 0x20], rax
mov r9d, dword [rsp + 0x148]
mov r8, qword [rsp + 0x140]
mov rdx, qword [rsp + 0x48]
mov rcx, qword [rsp + 0x130]
call fcn.1400500e0
mov dword [rsp + 0x30], eax
cmp dword [rsp + 0x30], 0
je 0x1400503ff
mov eax, dword [rsp + 0x30]
jmp 0x140051351
mov byte [rsp + 0x28], 1
mov rax, qword [rsp + 0x90]
mov qword [rsp + 0x20], rax
xor r9d, r9d
lea r8, str.CONNECT
mov rdx, qword [rsp + 0x48]
mov rcx, qword [rsp + 0x130]
call fcn.14005f470
mov dword [rsp + 0x30], eax
cmp dword [rsp + 0x30], 0
jne 0x140050685
mov rax, qword [rsp + 0x48]
movzx eax, byte [rax + 0x134]
cmp eax, 1
jne 0x14005045e
lea rax, [0x1400f011c]
mov qword [rsp + 0xc8], rax
jmp 0x14005046d
lea rax, [0x1400f012c]
mov qword [rsp + 0xc8], rax
mov rax, qword [rsp + 0xc8]
mov qword [rsp + 0xf0], rax
mov rax, qword [rsp + 0x130]
cmp qword [rax + 0x1210], 0
je 0x1400504a8
mov rax, qword [rsp + 0x130]
mov rax, qword [rax + 0x1210]
mov qword [rsp + 0xd0], rax
jmp 0x1400504b7
lea rax, [0x1400f5f20]
mov qword [rsp + 0xd0], rax
cmp qword [rsp + 0x88], 0
je 0x1400504d4
mov rax, qword [rsp + 0x88]
mov qword [rsp + 0xd8], rax
jmp 0x1400504e3
lea rax, [0x1400f5f21]
mov qword [rsp + 0xd8], rax
mov rax, qword [rsp + 0xd0]
mov qword [rsp + 0x28], rax
mov rax, qword [rsp + 0xd8]
mov qword [rsp + 0x20], rax
mov r9, qword [rsp + 0xf0]
mov r8, qword [rsp + 0x90]
lea rdx, str.CONNECT__s_HTTP__s_r_n_s_s
mov rcx, qword [rsp + 0x68]
call fcn.140034e10
mov dword [rsp + 0x30], eax
cmp dword [rsp + 0x30], 0
jne 0x140050597
mov r9d, 0xa
lea r8, [0x1400f0158]
mov rdx, qword [rsp + 0x48]
mov rcx, qword [rsp + 0x130]
call fcn.140058ae0
test rax, rax
jne 0x140050597
mov eax, 8
imul rax, rax, 0x24
mov rcx, qword [rsp + 0x130]
cmp qword [rcx + rax + 0x738], 0
je 0x140050597
mov eax, 8
imul rax, rax, 0x24
mov rcx, qword [rsp + 0x130]
mov r8, qword [rcx + rax + 0x738]
lea rdx, [0x1400f0168]
mov rcx, qword [rsp + 0x68]
call fcn.140034e10
mov dword [rsp + 0x30], eax
cmp dword [rsp + 0x30], 0
jne 0x1400505dd
mov r9d, reloc.WS2_32.dll_recv
lea r8, [0x1400f0188]
mov rdx, qword [rsp + 0x48]
mov rcx, qword [rsp + 0x130]
call fcn.140058ae0
test rax, rax
jne 0x1400505dd
mov r8d, 0x1e
lea rdx, [0x1400f01a8]
mov rcx, qword [rsp + 0x68]
call fcn.140034d40
mov dword [rsp + 0x30], eax
cmp dword [rsp + 0x30], 0
jne 0x1400505fc
mov r8, qword [rsp + 0x68]
mov dl, 1
mov rcx, qword [rsp + 0x130]
call fcn.140059320
mov dword [rsp + 0x30], eax
cmp dword [rsp + 0x30], 0
jne 0x14005061e
mov r8d, 2
lea rdx, [0x1400f0154]
mov rcx, qword [rsp + 0x68]
call fcn.140034d40
mov dword [rsp + 0x30], eax
cmp dword [rsp + 0x30], 0
jne 0x14005066a
mov rax, qword [rsp + 0x130]
add rax, 0x12b8
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.140058bc0
mov dword [rsp + 0x30], eax
mov rax, qword [rsp + 0x38]
mov qword [rax + 0x278], 0
cmp dword [rsp + 0x30], 0
je 0x140050685
lea rdx, str.Failed_sending_CONNECT_to_proxy
mov rcx, qword [rsp + 0x130]
call fcn.140046e70
mov rcx, qword [rsp + 0x88]
call qword [fcn.140095dfc]
mov rcx, qword [rsp + 0x90]
call qword [fcn.140095dfc]
cmp dword [rsp + 0x30], 0
je 0x1400506b1
mov eax, dword [rsp + 0x30]
jmp 0x140051351
mov rax, qword [rsp + 0x38]
mov dword [rax + 0x290], 1
mov r8b, 1
xor edx, edx
mov rcx, qword [rsp + 0x130]
call fcn.140048d30
mov qword [rsp + 0xf8], rax
cmp qword [rsp + 0xf8], 0
jg 0x140050703
lea rdx, str.Proxy_CONNECT_aborted_due_to_timeout
mov rcx, qword [rsp + 0x130]
call fcn.140046e70
mov eax, 0x1c
jmp 0x140051351
mov edx, dword [rsp + 0x138]
mov rcx, qword [rsp + 0x48]
call fcn.140049bd0
movzx eax, al
test eax, eax
jne 0x140050733
mov rax, qword [rsp + 0xb0]
cmp dword [rax + 0x200], 0
jne 0x140050733
xor eax, eax
jmp 0x140051351
mov rax, qword [rsp + 0xb0]
cmp dword [rax + 0x200], 1
jne 0x14005089f
mov rax, qword [rsp + 0x38]
cmp qword [rax + 0x270], 0
jne 0x1400507bf
mov rax, qword [rsp + 0x60]
mov rcx, qword [rsp + 0x130]
mov rcx, qword [rcx + 0xc70]
mov qword [rax + 0xc0], rcx
mov rax, qword [rsp + 0x130]
mov eax, dword [rax + 0x6e0]
lea r8, [rsp + 0x100]
mov edx, eax
mov rcx, qword [rsp + 0x130]
call fcn.140052b40
mov dword [rsp + 0x30], eax
cmp dword [rsp + 0x30], 0
je 0x1400507ab
mov eax, dword [rsp + 0x30]
jmp 0x140051351
mov rax, qword [rsp + 0x38]
mov rcx, qword [rsp + 0x100]
mov qword [rax + 0x270], rcx
mov rax, qword [rsp + 0x38]
cmp qword [rax + 0x270], 0
je 0x14005088d
lea rax, [rsp + 0xa8]
mov qword [rsp + 0x20], rax
mov rax, qword [rsp + 0x38]
mov r9, qword [rax + 0x270]
mov rax, qword [rsp + 0x60]
mov r8, qword [rax + 0xc0]
mov rax, qword [rsp + 0x48]
mov rdx, qword [rax + 0x408]
mov rcx, qword [rsp + 0x130]
call fcn.140047610
mov dword [rsp + 0x30], eax
cmp dword [rsp + 0x30], 0
jne 0x140050841
mov r9, qword [rsp + 0xa8]
mov rax, qword [rsp + 0x60]
mov r8, qword [rax + 0xc0]
mov edx, 2
mov rcx, qword [rsp + 0x130]
call fcn.1400477c0
mov rax, qword [rsp + 0x38]
mov rcx, qword [rsp + 0xa8]
mov rax, qword [rax + 0x270]
sub rax, rcx
mov rcx, qword [rsp + 0x38]
mov qword [rcx + 0x270], rax
mov rax, qword [rsp + 0x60]
mov rax, qword [rax + 0xc0]
add rax, qword [rsp + 0xa8]
mov rcx, qword [rsp + 0x60]
mov qword [rcx + 0xc0], rax
mov eax, dword [rsp + 0x30]
jmp 0x140051351
mov rax, qword [rsp + 0xb0]
mov dword [rax + 0x200], 0
mov dword [rsp + 0x80], 0
mov rax, qword [rsp + 0x38]
cmp dword [rax + 0x280], 0
je 0x14005107e
lea rax, [rsp + 0xe0]
mov qword [rsp + 0x20], rax
mov r9d, 1
lea r8, [rsp + 0x40]
mov rdx, qword [rsp + 0x108]
mov rcx, qword [rsp + 0x130]
call fcn.1400474b0
mov dword [rsp + 0x30], eax
cmp dword [rsp + 0x30], 0x51
jne 0x1400508fb
xor eax, eax
jmp 0x140051351
mov rcx, qword [rsp + 0x130]
call fcn.140060f40
test eax, eax
je 0x140050916
mov eax, 0x2a
jmp 0x140051351
cmp dword [rsp + 0x30], 0
je 0x140050936
mov rax, qword [rsp + 0x38]
mov dword [rax + 0x280], 0
jmp 0x14005107e
cmp qword [rsp + 0xe0], 0
jg 0x1400509bc
mov rax, qword [rsp + 0x130]
cmp dword [rax + 0x210], 0
je 0x140050989
mov rax, qword [rsp + 0x130]
cmp dword [rax + 0xda8], 0
je 0x140050989
mov rax, qword [rsp + 0x130]
cmp qword [rax + 0x1210], 0
je 0x140050989
mov rax, qword [rsp + 0x48]
mov byte [rax + 0x3a8], 1
xor eax, eax
test eax, eax
jne 0x140050981
jmp 0x1400509a8
mov dword [rsp + 0x80], 1
lea rdx, str.Proxy_CONNECT_aborted
mov rcx, qword [rsp + 0x130]
call fcn.140046e70
mov rax, qword [rsp + 0x38]
mov dword [rax + 0x280], 0
jmp 0x14005107e
mov rax, qword [rsp + 0x38]
cmp dword [rax + 0x280], 2
jne 0x140050a9f
mov rax, qword [rsp + 0x38]
cmp qword [rax + 0x288], 0
je 0x140050a2c
mov rax, qword [rsp + 0x38]
mov rax, qword [rax + 0x288]
dec rax
mov rcx, qword [rsp + 0x38]
mov qword [rcx + 0x288], rax
mov rax, qword [rsp + 0x38]
cmp qword [rax + 0x288], 0
jg 0x140050a2a
mov rax, qword [rsp + 0x38]
mov dword [rax + 0x280], 0
mov rax, qword [rsp + 0x38]
mov dword [rax + 0x290], 2
jmp 0x14005107e
jmp 0x140050a9a
mov qword [rsp + 0x110], 0
lea rax, [rsp + 0xe8]
mov qword [rsp + 0x20], rax
lea r9, [rsp + 0x110]
mov r8d, 1
lea rdx, [rsp + 0x40]
mov rcx, qword [rsp + 0x130]
call fcn.14007c120
mov dword [rsp + 0x98], eax
cmp dword [rsp + 0x98], 0xffffffff
jne 0x140050a9a
xor eax, eax
test eax, eax
jne 0x140050a76
mov rax, qword [rsp + 0x38]
mov dword [rax + 0x280], 0
mov rax, qword [rsp + 0x38]
mov dword [rax + 0x290], 2
jmp 0x1400508aa
mov rax, qword [rsp + 0x38]
add rax, 0x230
mov r8d, 1
lea rdx, [rsp + 0x40]
mov rcx, rax
call fcn.140034d40
test eax, eax
je 0x140050adf
lea rdx, str.CONNECT_response_too_large
mov rcx, qword [rsp + 0x130]
call fcn.140046e70
mov eax, 0x38
jmp 0x140051351
movsx eax, byte [rsp + 0x40]
cmp eax, 0xa
je 0x140050aee
jmp 0x1400508aa
mov rax, qword [rsp + 0x38]
mov rax, qword [rax + 0x278]
inc rax
mov rcx, qword [rsp + 0x38]
mov qword [rcx + 0x278], rax
mov rax, qword [rsp + 0x38]
add rax, 0x230
mov rcx, rax
call fcn.140035070
mov qword [rsp + 0x50], rax
mov rax, qword [rsp + 0x38]
add rax, 0x230
mov rcx, rax
call fcn.1400350d0
mov qword [rsp + 0xb8], rax
mov r9, qword [rsp + 0xb8]
mov r8, qword [rsp + 0x50]
mov edx, 1
mov rcx, qword [rsp + 0x130]
call fcn.1400477c0
mov rax, qword [rsp + 0x130]
movzx eax, byte [rax + 0xa80]
test eax, eax
jne 0x140050bff
mov rax, qword [rsp + 0x130]
movzx eax, byte [rax + 0xa6a]
test eax, eax
je 0x140050b8f
mov dword [rsp + 0x70], 1
jmp 0x140050b97
mov dword [rsp + 0x70], 0
mov rax, qword [rsp + 0x38]
cmp qword [rax + 0x278], 1
jne 0x140050bb0
mov dword [rsp + 0x74], 4
jmp 0x140050bb8
mov dword [rsp + 0x74], 0
mov eax, dword [rsp + 0x70]
or eax, 0xa
or eax, dword [rsp + 0x74]
mov dword [rsp + 0x9c], eax
mov r9, qword [rsp + 0xb8]
mov r8, qword [rsp + 0x50]
mov edx, dword [rsp + 0x9c]
mov rcx, qword [rsp + 0x130]
call fcn.140047010
mov dword [rsp + 0x30], eax
cmp dword [rsp + 0x30], 0
je 0x140050bff
mov eax, dword [rsp + 0x30]
jmp 0x140051351
movsxd rax, dword [rsp + 0xb8]
mov rcx, qword [rsp + 0x130]
add rax, qword [rcx + 0x12b0]
mov rcx, qword [rsp + 0x130]
mov qword [rcx + 0x12b0], rax
mov eax, 1
imul rax, rax, 0
mov rcx, qword [rsp + 0x50]
movsx eax, byte [rcx + rax]
cmp eax, 0xd
je 0x140050c57
mov eax, 1
imul rax, rax, 0
mov rcx, qword [rsp + 0x50]
movsx eax, byte [rcx + rax]
cmp eax, 0xa
jne 0x140050db4
mov rax, qword [rsp + 0x60]
cmp dword [rax + 0x70], 0x197
jne 0x140050d6e
mov rax, qword [rsp + 0x130]
movzx eax, byte [rax + 0x1285]
test eax, eax
jne 0x140050d6e
mov rax, qword [rsp + 0x38]
mov dword [rax + 0x280], 2
mov rax, qword [rsp + 0x38]
cmp qword [rax + 0x288], 0
je 0x140050ca9
xor eax, eax
test eax, eax
jne 0x140050c9e
jmp 0x140050d6c
mov rax, qword [rsp + 0x38]
movzx eax, byte [rax + 0x294]
test eax, eax
je 0x140050d5d
xor eax, eax
test eax, eax
jne 0x140050cbd
mov rax, qword [rsp + 0x60]
mov byte [rax + 0xdc], 1
mov eax, 1
imul rax, rax, 1
mov rcx, qword [rsp + 0x50]
movsx eax, byte [rcx + rax]
cmp eax, 0xa
jne 0x140050cf3
mov rax, qword [rsp + 0x50]
inc rax
mov qword [rsp + 0x50], rax
mov rax, qword [rsp + 0x50]
inc rax
lea rcx, [rsp + 0xec]
mov qword [rsp + 0x20], rcx
lea r9, [rsp + 0xe0]
mov r8d, 1
mov rdx, rax
mov rcx, qword [rsp + 0x130]
call fcn.14007c120
mov dword [rsp + 0xa0], eax
cmp dword [rsp + 0xa0], 0xffffffff
jne 0x140050d5b
xor eax, eax
test eax, eax
jne 0x140050d37
mov rax, qword [rsp + 0x38]
mov dword [rax + 0x280], 0
mov rax, qword [rsp + 0x38]
mov dword [rax + 0x290], 2
jmp 0x140050d6c
mov rax, qword [rsp + 0x38]
mov dword [rax + 0x280], 0
jmp 0x140050d7d
mov rax, qword [rsp + 0x38]
mov dword [rax + 0x280], 0
mov rax, qword [rsp + 0x38]
cmp dword [rax + 0x280], 0
jne 0x140050da9
mov rax, qword [rsp + 0x38]
cmp qword [rax + 0x288], 0
jne 0x140050da9
mov rax, qword [rsp + 0x38]
mov dword [rax + 0x290], 2
xor eax, eax
test eax, eax
jne 0x140050da9
jmp 0x1400508aa
mov r8d, send
lea rdx, [0x1400f0248]
mov rcx, qword [rsp + 0x50]
call fcn.14004e600
test eax, eax
je 0x140050ddd
mov rax, qword [rsp + 0x60]
cmp dword [rax + 0x70], 0x191
je 0x140050e0e
mov r8d, reloc.WS2_32.dll_send
lea rdx, [0x1400f0260]
mov rcx, qword [rsp + 0x50]
call fcn.14004e600
test eax, eax
je 0x140050eb8
mov rax, qword [rsp + 0x60]
cmp dword [rax + 0x70], 0x197
jne 0x140050eb8
mov rax, qword [rsp + 0x60]
cmp dword [rax + 0x70], 0x197
jne 0x140050e26
mov dword [rsp + 0x78], 1
jmp 0x140050e2e
mov dword [rsp + 0x78], 0
cmp dword [rsp + 0x78], 0
jne 0x140050e3f
mov dword [rsp + 0x7c], 0
jmp 0x140050e47
mov dword [rsp + 0x7c], 1
movzx eax, byte [rsp + 0x7c]
mov byte [rsp + 0x58], al
mov rcx, qword [rsp + 0x50]
call fcn.140058920
mov qword [rsp + 0xc0], rax
cmp qword [rsp + 0xc0], 0
jne 0x140050e77
mov eax, 0x1b
jmp 0x140051351
mov r8, qword [rsp + 0xc0]
movzx edx, byte [rsp + 0x58]
mov rcx, qword [rsp + 0x130]
call fcn.14005d920
mov dword [rsp + 0x30], eax
mov rcx, qword [rsp + 0xc0]
call qword [fcn.140095dfc]
cmp dword [rsp + 0x30], 0
je 0x140050eb3
mov eax, dword [rsp + 0x30]
jmp 0x140051351
jmp 0x140051066
mov r8d, reloc.WS2_32.dll_ntohs
lea rdx, [0x1400f0278]
mov rcx, qword [rsp + 0x50]
call fcn.14004e600
test eax, eax
je 0x140050f24
mov rax, qword [rsp + 0x60]
mov eax, dword [rax + 0x70]
cdq
mov ecx, 0x64
idiv ecx
cmp eax, 2
jne 0x140050ef0
xor eax, eax
test eax, eax
jne 0x140050ee8
jmp 0x140050f1f
mov rax, qword [rsp + 0x38]
add rax, 0x288
mov ecx, 1
imul rcx, rcx, 0xf
mov rdx, qword [rsp + 0x50]
add rdx, rcx
mov rcx, rdx
mov r9, rax
mov r8d, 0xa
xor edx, edx
call fcn.14007bef0
jmp 0x140051066
mov qword [rsp + 0x20], 5
lea r9, [0x1400f017c]
mov r8d, recv
lea rdx, [0x1400f0288]
mov rcx, qword [rsp + 0x50]
call fcn.1400587b0
movzx eax, al
test eax, eax
je 0x140050f63
mov rax, qword [rsp + 0x38]
mov byte [rax + 0x295], 1
jmp 0x140051066
mov r8d, reloc.WS2_32.dll_select
lea rdx, [0x1400f0298]
mov rcx, qword [rsp + 0x50]
call fcn.14004e600
test eax, eax
je 0x140050fea
mov rax, qword [rsp + 0x60]
mov eax, dword [rax + 0x70]
cdq
mov ecx, 0x64
idiv ecx
cmp eax, 2
jne 0x140050f9b
xor eax, eax
test eax, eax
jne 0x140050f93
jmp 0x140050fe8
mov qword [rsp + 0x20], 7
lea r9, [0x1400f02b0]
mov r8d, reloc.WS2_32.dll_select
lea rdx, [0x1400f02b8]
mov rcx, qword [rsp + 0x50]
call fcn.1400587b0
movzx eax, al
test eax, eax
je 0x140050fe8
xor eax, eax
test eax, eax
jne 0x140050fc9
mov rax, qword [rsp + 0x38]
mov byte [rax + 0x294], 1
mov rcx, qword [rsp + 0x130]
call fcn.14007c0c0
jmp 0x140051066
mov qword [rsp + 0x20], 5
lea r9, [0x1400f019c]
mov r8d, send
lea rdx, [0x1400f02d0]
mov rcx, qword [rsp + 0x50]
call fcn.1400587b0
movzx eax, al
test eax, eax
je 0x140051026
mov rax, qword [rsp + 0x38]
mov byte [rax + 0x295], 1
jmp 0x140051066
mov rax, qword [rsp + 0x60]
add rax, 0x70
mov r9, rax
lea r8, [rsp + 0xa4]
lea rdx, str.HTTP_1._d__d
mov rcx, qword [rsp + 0x50]
call fcn.14004d200
cmp eax, 2
jne 0x140051066
mov rax, qword [rsp + 0x130]
mov rcx, qword [rsp + 0x60]
mov ecx, dword [rcx + 0x70]
mov dword [rax + 0x129c], ecx
mov rax, qword [rsp + 0x38]
add rax, 0x230
mov rcx, rax
call fcn.140034ee0
jmp 0x1400508aa
mov rcx, qword [rsp + 0x130]
call fcn.140060f40
test eax, eax
je 0x140051099
mov eax, 0x2a
jmp 0x140051351
cmp dword [rsp + 0x80], 0
je 0x1400510ad
mov eax, 0x38
jmp 0x140051351
mov rax, qword [rsp + 0x130]
mov eax, dword [rax + 0x129c]
cdq
mov ecx, 0x64
idiv ecx
cmp eax, 2
je 0x140051105
mov rcx, qword [rsp + 0x130]
call fcn.14005de90
mov dword [rsp + 0x30], eax
cmp dword [rsp + 0x30], 0
je 0x1400510e9
mov eax, dword [rsp + 0x30]
jmp 0x140051351
mov rax, qword [rsp + 0x48]
movzx eax, byte [rax + 0x3aa]
test eax, eax
je 0x140051105
mov rax, qword [rsp + 0x38]
mov byte [rax + 0x295], 1
mov rax, qword [rsp + 0x38]
movzx eax, byte [rax + 0x295]
test eax, eax
je 0x140051169
mov rax, qword [rsp + 0x130]
cmp qword [rax + 0x198], 0
je 0x140051169
movsxd rax, dword [rsp + 0x138]
mov rcx, qword [rsp + 0x48]
mov r8, qword [rcx + rax*8 + 0x1d0]
mov rdx, qword [rsp + 0x48]
mov rcx, qword [rsp + 0x130]
call fcn.1400497d0
movsxd rax, dword [rsp + 0x138]
mov rcx, qword [rsp + 0x48]
mov qword [rcx + rax*8 + 0x1d0], 0xffffffffffffffff
jmp 0x1400511ae
mov rax, qword [rsp + 0x130]
cmp qword [rax + 0x198], 0
je 0x140051198
mov rax, qword [rsp + 0x38]
cmp dword [rax + 0x290], 2
jne 0x140051198
mov dl, 1
mov rcx, qword [rsp + 0x130]
call fcn.14004ff50
mov rax, qword [rsp + 0x130]
cmp qword [rax + 0x198], 0
jne 0x140050332
mov rax, qword [rsp + 0x130]
mov eax, dword [rax + 0x129c]
cdq
mov ecx, 0x64
idiv ecx
cmp eax, 2
je 0x1400512ad
mov rax, qword [rsp + 0x38]
movzx eax, byte [rax + 0x295]
test eax, eax
je 0x140051210
mov rax, qword [rsp + 0x130]
cmp qword [rax + 0x198], 0
je 0x140051210
mov rax, qword [rsp + 0x48]
mov byte [rax + 0x3a8], 1
xor eax, eax
test eax, eax
jne 0x1400511fb
mov rcx, qword [rsp + 0x130]
call fcn.14004fd90
jmp 0x140051247
mov rax, qword [rsp + 0x130]
mov rcx, qword [rax + 0x198]
call qword [fcn.140095dfc]
mov rax, qword [rsp + 0x130]
mov qword [rax + 0x198], 0
mov edx, 2
mov rcx, qword [rsp + 0x48]
call fcn.140049b00
mov rax, qword [rsp + 0x38]
mov dword [rax + 0x290], 0
mov rax, qword [rsp + 0x48]
movzx eax, byte [rax + 0x3a8]
test eax, eax
je 0x14005126d
xor eax, eax
jmp 0x140051351
mov rax, qword [rsp + 0x38]
add rax, 0x230
mov rcx, rax
call fcn.140034ce0
mov rax, qword [rsp + 0x130]
mov r8d, dword [rax + 0x158]
lea rdx, str.Received_HTTP_code__d_from_proxy_after_CONNECT
mov rcx, qword [rsp + 0x130]
call fcn.140046e70
mov eax, 0x38
jmp 0x140051351
mov rax, qword [rsp + 0x38]
mov dword [rax + 0x290], 2
mov rax, qword [rsp + 0x130]
mov rcx, qword [rax + 0x1210]
call qword [fcn.140095dfc]
mov rax, qword [rsp + 0x130]
mov qword [rax + 0x1210], 0
xor eax, eax
test eax, eax
jne 0x1400512bc
mov rax, qword [rsp + 0x130]
mov qword [rax + 0x1210], 0
mov rax, qword [rsp + 0x130]
mov byte [rax + 0xdac], 1
mov rax, qword [rsp + 0x130]
mov byte [rax + 0xdad], 0
xor eax, eax
test eax, eax
jne 0x14005131b
mov rax, qword [rsp + 0x130]
mov byte [rax + 0x1c4], 0
mov rax, qword [rsp + 0x48]
mov byte [rax + 0x3b5], 0
mov rax, qword [rsp + 0x38]
add rax, 0x230
mov rcx, rax
call fcn.140034ce0
xor eax, eax
add rsp, 0x128
ret