Function at 0x1400583e8
Capabilities:
Check http status code

Disassembly:
mov dword [rsp + 0x20], r9d
mov qword [rsp + 0x18], r8
mov dword [rsp + 0x10], edx
push rbp
push rbx
push rsi
push rdi
push r12
push r13
push r14
push r15
mov rbp, rsp
sub rsp, 0x78
mov r14, qword [rcx + 0x18]
mov rdi, rcx
and dword [rbp + 0x48], 0
mov r12d, r9d
mov rbx, qword [rcx + 0x1b0]
mov r13, r8
mov rcx, r14
mov qword [rbp - 0x38], rbx
mov r15, qword [r14 + 0x1f0]
mov rsi, qword [r14 + 0x6f8]
mov qword [rbp - 0x40], r15
call fcn.140058138
test al, al
jne 0x140058d60
mov byte [r14 + 0x3c8], al
cmp dword [rsi + 0x290], 0
jne 0x140058652
mov rcx, qword [rdi + 0x198]
lea r15, [rsi + 0x250]
and qword [rbp - 0x30], 0
and qword [rbp - 0x28], 0
call qword [fcn.140093ea8]
and qword [rdi + 0x198], 0
mov edx, 0x100000
mov rcx, r15
call fcn.140041ad0
lea rcx, [rbp - 0x28]
mov r9d, r12d
mov qword [rsp + 0x28], rcx
lea rax, [rbp - 0x30]
mov rcx, rdi
mov qword [rsp + 0x20], rax
mov r8, r13
mov rdx, r14
call fcn.1400582f0
test eax, eax
jne 0x140058d62
mov r12, qword [rbp - 0x30]
lea r8, str.CONNECT
mov byte [rsp + 0x28], 1
xor r9d, r9d
mov rdx, r14
mov qword [rsp + 0x20], r12
mov rcx, rdi
call fcn.14005e1f4
mov r13, qword [rbp - 0x28]
mov ebx, eax
test eax, eax
jne 0x140058621
cmp dword [r14 + 0x13c], 1
lea rax, [0x1400d4ba8]
lea r9, [0x1400d4bac]
mov r8, r12
cmove r9, rax
lea rcx, [0x1400d18c1]
mov rax, qword [rdi + 0x11f0]
lea rdx, str.CONNECT__s_HTTP__s_r_n_s_s
test rax, rax
cmovne rcx, rax
test r13, r13
mov qword [rsp + 0x28], rcx
lea rax, [0x1400d18c1]
cmovne rax, r13
mov rcx, r15
mov qword [rsp + 0x20], rax
call fcn.140041c4c
mov ebx, eax
test eax, eax
jne 0x140058612
lea r9d, [rax + 0xa]
mov rdx, r14
lea r8, str.User_Agent
mov rcx, rdi
call fcn.14005d94c
test rax, rax
jne 0x14005858d
mov r8, qword [rdi + 0x860]
test r8, r8
je 0x14005858d
lea rdx, str.User_Agent:__s_r_n
mov rcx, r15
call fcn.140041c4c
mov ebx, eax
test eax, eax
jne 0x140058612
mov r9d, reloc.WS2_32.dll_recv
lea r8, str.Proxy_Connection
mov rdx, r14
mov rcx, rdi
call fcn.14005d94c
test rax, rax
jne 0x1400585c3
lea r8d, [rax + 0x1e]
mov rcx, r15
lea rdx, str.Proxy_Connection:_Keep_Alive_r_n
call fcn.140041bfc
mov ebx, eax
test eax, eax
jne 0x140058612
mov r8, r15
mov dl, 1
mov rcx, rdi
call fcn.14005eed8
mov ebx, eax
test eax, eax
jne 0x140058612
lea r8d, [rax + 2]
mov rcx, r15
lea rdx, [0x1400d1960]
call fcn.140041bfc
mov ebx, eax
test eax, eax
jne 0x140058612
lea r8, [rdi + 0x1298]
xor r9d, r9d
mov rdx, rdi
mov rcx, r15
call fcn.14005e774
and qword [rsi + 0x278], 0
mov ebx, eax
test eax, eax
je 0x140058621
lea rdx, str.Failed_sending_CONNECT_to_proxy
mov rcx, rdi
call fcn.14004675c
mov rcx, r13
call qword [fcn.140093ea8]
mov rcx, r12
call qword [fcn.140093ea8]
xor r12d, r12d
test ebx, ebx
jne 0x1400588f5
mov rbx, qword [rbp - 0x38]
mov r15, qword [rbp - 0x40]
mov dword [rsi + 0x290], 1
jmp 0x140058655
xor r12d, r12d
mov r8b, 1
xor edx, edx
mov rcx, rdi
call fcn.140047078
test rax, rax
jle 0x140058d7a
mov rcx, r14
call fcn.140048794
test al, al
jne 0x140058684
cmp dword [rbx + 0x200], r12d
je 0x140058d60
cmp dword [rbx + 0x200], 1
jne 0x1400586e3
mov r9, qword [rsi + 0x270]
test r9, r9
jne 0x140058c07
mov rax, qword [rdi + 0xc80]
lea r8, [rbp - 0x18]
mov qword [rdi + 0x1a8], rax
mov rcx, rdi
mov edx, dword [rdi + 0x6e8]
call fcn.140058f5c
test eax, eax
jne 0x140058d62
mov rax, qword [rbp - 0x18]
mov qword [rsi + 0x270], rax
mov r9, rax
test rax, rax
jne 0x140058c07
mov dword [rbx + 0x200], r12d
mov r13d, r12d
cmp dword [rsi + 0x280], r12d
je 0x140058b5d
lea rax, [rbp - 0x20]
mov r9d, 1
lea r8, [rbp + 0x50]
mov qword [rsp + 0x20], rax
mov rdx, r15
mov rcx, rdi
call fcn.140046d54
mov ebx, eax
cmp eax, 0x51
je 0x140058d60
mov rcx, rdi
call fcn.140057f28
test eax, eax
jne 0x140058d73
test ebx, ebx
jne 0x140058b52
cmp qword [rbp - 0x20], r12
jle 0x140058b18
cmp dword [rsi + 0x280], 2
jne 0x1400587b7
mov rax, qword [rsi + 0x288]
test rax, rax
je 0x140058775
dec rax
mov qword [rsi + 0x288], rax
test rax, rax
jg 0x140058a4e
mov dword [rsi + 0x290], 2
jmp 0x140058b52
lea rax, [rbp - 0x48]
mov qword [rbp - 0x28], r12
lea r9, [rbp - 0x28]
mov qword [rsp + 0x20], rax
mov r8d, 1
lea rdx, [rbp + 0x50]
mov rcx, rdi
call fcn.14006792c
cmp eax, 0xffffffff
jne 0x140058a4e
mov dword [rsi + 0x280], r12d
mov dword [rsi + 0x290], 2
jmp 0x140058a4e
lea r12, [rsi + 0x230]
mov r8d, 1
mov rcx, r12
lea rdx, [rbp + 0x50]
call fcn.140041bfc
test eax, eax
jne 0x140058c60
cmp byte [rbp + 0x50], 0xa
jne 0x140058a4b
inc qword [rsi + 0x278]
mov rcx, r12
call fcn.140041c70
mov r15, rax
call fcn.140041c74
mov r9, rax
mov r8, r15
mov edx, 1
mov rcx, rdi
mov rbx, rax
call fcn.140046dc4
cmp byte [rdi + 0xa89], 0
jne 0x14005884e
xor edx, edx
mov ecx, 0xa
cmp byte [rdi + 0xa71], dl
mov r9, rbx
mov r8, r15
setne dl
cmp qword [rsi + 0x278], 1
lea eax, [rcx + 4]
cmove ecx, eax
or edx, ecx
mov rcx, rdi
call fcn.140046d08
test eax, eax
jne 0x140058d62
movsxd rax, ebx
add qword [rdi + 0x1290], rax
cmp byte [r15], 0xd
je 0x140058a60
cmp byte [r15], 0xa
je 0x140058a60
mov r8d, select
lea rdx, str.WWW_Authenticate:
mov rcx, r15
call fcn.1400525e8
test eax, eax
je 0x140058893
mov ebx, dword [rdi + 0x158]
cmp ebx, 0x191
je 0x1400588ba
mov r8d, reloc.WS2_32.dll_send
lea rdx, str.Proxy_authenticate:
mov rcx, r15
call fcn.1400525e8
test eax, eax
je 0x1400588fc
mov ebx, dword [rdi + 0x158]
cmp ebx, 0x197
jne 0x1400588fc
mov rcx, r15
call fcn.14005d9d0
mov r15, rax
test rax, rax
je 0x140058c56
cmp ebx, 0x197
mov r8, rax
mov rcx, rdi
sete dl
call fcn.14005e370
mov rcx, r15
mov ebx, eax
call qword [fcn.140093ea8]
test ebx, ebx
je 0x140058a3f
mov eax, ebx
jmp 0x140058d62
mov r8d, reloc.WS2_32.dll_ntohs
lea rdx, str.Content_Length:
mov rcx, r15
call fcn.1400525e8
test eax, eax
je 0x140058950
mov eax, dword [rdi + 0x158]
sub eax, 0xc8
cmp eax, 0x64
jb 0x140058a3f
lea rcx, str.Content_Length:
call fcn.140093e00
xor edx, edx
lea r9, [rsi + 0x288]
lea rcx, [r15 + rax]
lea r8d, [rdx + 0xa]
call fcn.140062c88
jmp 0x140058a3f
lea r9, str.close
mov qword [rsp + 0x20], 5
mov r8d, listen
lea rdx, str.Connection:
mov rcx, r15
call fcn.14005e9e4
test al, al
jne 0x140058a38
mov ebx, reloc.WS2_32.dll_select
lea rdx, str.Transfer_Encoding:
mov r8d, ebx
mov rcx, r15
call fcn.1400525e8
test eax, eax
je 0x1400589e3
mov eax, dword [rdi + 0x158]
sub eax, 0xc8
cmp eax, 0x64
jb 0x140058a3f
lea r9, str.chunked
mov qword [rsp + 0x20], 7
mov r8d, ebx
lea rdx, str.Transfer_Encoding:
mov rcx, r15
call fcn.14005e9e4
test al, al
je 0x140058a3f
mov rcx, rdi
mov byte [rsi + 0x294], 1
call fcn.14006790c
jmp 0x140058a3f
lea r9, str.close
mov qword [rsp + 0x20], 5
mov r8d, select
lea rdx, str.Proxy_Connection:
mov rcx, r15
call fcn.14005e9e4
test al, al
jne 0x140058a38
lea rbx, [rdi + 0x158]
mov rcx, r15
mov r9, rbx
lea r8, [rbp + 0x48]
lea rdx, str.HTTP_1._d__d
call fcn.1400488c0
cmp eax, 2
jne 0x140058a3f
mov eax, dword [rbx]
mov dword [rdi + 0x127c], eax
jmp 0x140058a3f
mov byte [rsi + 0x295], 1
mov rcx, r12
call fcn.140041be8
mov r15, qword [rbp - 0x40]
xor r12d, r12d
cmp dword [rsi + 0x280], r12d
je 0x140058b59
jmp 0x1400586f3
xor r12d, r12d
cmp dword [rdi + 0x158], 0x197
jne 0x140058afb
cmp byte [rdi + 0x1265], r12b
jne 0x140058afb
lea eax, [r12 + 2]
mov dword [rsi + 0x280], 2
cmp qword [rsi + 0x288], r12
jne 0x140058ae6
cmp byte [rsi + 0x294], r12b
je 0x140058adc
lea rax, [r15 + 1]
mov byte [rdi + 0x1c4], 1
cmp byte [rax], 0xa
lea r9, [rbp - 0x20]
lea r8d, [r12 + 1]
mov rcx, rdi
cmove r15, rax
lea rax, [rbp - 0x44]
mov qword [rsp + 0x20], rax
lea rdx, [r15 + 1]
call fcn.14006792c
cmp eax, 0xffffffff
jne 0x140058af3
mov dword [rsi + 0x290], 2
mov eax, r12d
mov dword [rsi + 0x280], r12d
test eax, eax
je 0x140058b02
mov r15, qword [rbp - 0x40]
jmp 0x140058a4e
mov eax, dword [rsi + 0x280]
jmp 0x140058ae6
mov dword [rsi + 0x280], r12d
mov r15, qword [rbp - 0x40]
cmp qword [rsi + 0x288], r12
jne 0x140058a4e
jmp 0x1400587a8
cmp dword [rdi + 0x210], r12d
je 0x140058b3d
cmp dword [rdi + 0xdb0], r12d
je 0x140058b3d
cmp qword [rdi + 0x11f0], r12
je 0x140058b3d
mov byte [r14 + 0x3c8], 1
jmp 0x140058b52
lea rdx, str.Proxy_CONNECT_aborted
mov rcx, rdi
mov r13d, 1
call fcn.14004675c
mov dword [rsi + 0x280], r12d
mov rbx, qword [rbp - 0x38]
mov rcx, rdi
call fcn.140057f28
test eax, eax
jne 0x140058d73
test r13d, r13d
jne 0x140058c6f
mov eax, dword [rdi + 0x127c]
sub eax, 0xc8
cmp eax, 0x64
jb 0x140058ba6
mov rcx, rdi
call fcn.14005ddf8
test eax, eax
jne 0x140058d62
cmp byte [r14 + 0x3ca], r12b
je 0x140058ba6
mov byte [rsi + 0x295], 1
cmp byte [rsi + 0x295], r12b
je 0x140058bbc
cmp qword [rdi + 0x198], r12
jne 0x140058c79
mov rax, qword [rdi + 0x198]
test rax, rax
je 0x140058c93
cmp dword [rsi + 0x290], 2
mov r12d, dword [rbp + 0x60]
mov r13, qword [rbp + 0x58]
jne 0x14005844e
mov dl, 1
mov rcx, rdi
call fcn.14005818c
mov rax, qword [rdi + 0x198]
xor r12d, r12d
test rax, rax
je 0x140058c93
mov r12d, dword [rbp + 0x60]
jmp 0x14005844e
mov r8, qword [rdi + 0x1a8]
lea rax, [rbp - 0x18]
mov rdx, qword [r14 + 0x430]
mov rcx, rdi
mov qword [rsp + 0x20], rax
call fcn.140046828
mov rbx, qword [rbp - 0x18]
test eax, eax
jne 0x140058c43
mov r8, qword [rdi + 0x1a8]
lea edx, [rax + 2]
mov r9, rbx
mov rcx, rdi
call fcn.140046dc4
sub qword [rsi + 0x270], rbx
add qword [rdi + 0x1a8], rbx
jmp 0x140058d62
mov eax, 0x1b
jmp 0x140058d62
lea rdx, str.CONNECT_response_too_large
mov rcx, rdi
call fcn.14004675c
mov eax, 0x38
jmp 0x140058d62
mov r8, qword [r14 + 0x1f0]
mov rdx, r14
mov rcx, rdi
call fcn.1400485a8
or qword [r14 + 0x1f0], 0xffffffffffffffff
mov eax, dword [rdi + 0x127c]
sub eax, 0xc8
cmp eax, 0x64
jb 0x140058d1f
cmp byte [rsi + 0x295], r12b
je 0x140058cc7
cmp qword [rdi + 0x198], r12
je 0x140058cc7
mov rcx, rdi
mov byte [r14 + 0x3c8], 1
call fcn.140058274
jmp 0x140058ce8
mov rcx, qword [rdi + 0x198]
call qword [fcn.140093ea8]
mov edx, 2
mov qword [rdi + 0x198], r12
mov rcx, r14
call fcn.140048744
mov dword [rsi + 0x290], r12d
cmp byte [r14 + 0x3c8], r12b
jne 0x140058d60
lea rcx, [rsi + 0x230]
call fcn.140041ae4
mov r8d, dword [rdi + 0x158]
lea rdx, str.Received_HTTP_code__d_from_proxy_after_CONNECT
mov rcx, rdi
call fcn.14004675c
jmp 0x140058c6f
mov dword [rsi + 0x290], 2
mov rcx, qword [rdi + 0x11f0]
call qword [fcn.140093ea8]
mov qword [rdi + 0x11f0], r12
lea rcx, [rsi + 0x230]
mov word [rdi + 0xdb4], 1
mov byte [rdi + 0x1c4], r12b
mov byte [r14 + 0x3d5], r12b
call fcn.140041ae4
xor eax, eax
add rsp, 0x78
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbx
pop rbp
ret
mov eax, 0x2a
jmp 0x140058d62
lea rdx, str.Proxy_CONNECT_aborted_due_to_timeout
mov rcx, rdi
call fcn.14004675c
mov eax, 0x1c
jmp 0x140058d62