Function at 0x140ccadd0
Capabilities:
Receive data
Receive data on socket

Disassembly:
mov qword [rsp + 0x18], rbx
push rbp
push rsi
push rdi
push r12
push r13
push r14
push r15
lea rbp, [rsp - 0x27]
sub rsp, 0xe0
mov rax, qword [0x14100f500]
xor rax, rsp
mov qword [rbp + 0x17], rax
movsx rax, byte [rcx + 0x4ed]
mov rsi, rdx
mov r15, qword [rcx]
xor r12d, r12d
mov edx, dword [rcx + 0x4b8]
mov rbx, rcx
movzx edx, dx
mov r13d, 0x20b
lea r14, [rax + rax*2]
shl r14, 7
mov rdi, qword [r14 + r15 + 0x308]
mov qword [rsp + 0x30], r12
cmp edx, 0x202
ja 0x140ccaeeb
je 0x140ccaebf
sub edx, 0x12
je 0x140ccb187
sub edx, 1
je 0x140ccb26c
sub edx, 1
je 0x140ccae9b
cmp edx, 0x1ed
jne 0x140ccb2bd
call fcn.140ca7d10
mov r9, rax
lea r8, str.lws_http_client_socket_service
lea rdx, str._s:__s:_WAITING_DNS_n
mov ecx, 1
call fcn.140ca84f0
mov rcx, rbx
call fcn.140cb8b70
test rax, rax
je 0x140ccb415
xor eax, eax
jmp 0x140ccb41a
test dword [rcx + 0x4d8], 0x400000
jne 0x140ccb2bd
call fcn.140ca7310
test eax, eax
je 0x140ccb345
xor eax, eax
jmp 0x140ccb41a
test byte [rsi + 0xa], 0x10
je 0x140ccb2bd
xor r9d, r9d
mov qword [rsp + 0x20], r12
xor r8d, r8d
xor edx, edx
call fcn.140cc94b0
test rax, rax
je 0x140ccb415
xor eax, eax
jmp 0x140ccb41a
sub edx, 0x203
je 0x140ccb083
sub edx, 1
je 0x140ccb1dd
cmp edx, 7
jne 0x140ccb2bd
movzx eax, word [rsi + 0xa]
mov ecx, 0x302
and ax, cx
cmp ax, 2
jne 0x140ccaf43
lea rcx, [rbx + 0x438]
call fcn.140cba260
test rax, rax
je 0x140ccb04e
mov edx, 6
mov r8d, 3
mov rcx, rbx
call fcn.140cb9d70
test byte [rsi + 0xa], 0x10
je 0x140ccaf61
xor r8d, r8d
mov edx, reloc.WS2_32.dll_recv
mov rcx, rbx
call fcn.140cad110
test eax, eax
jne 0x140ccb415
mov eax, 0x300
test word [rsi + 0xa], ax
je 0x140ccb2bd
mov rax, qword [rbx + 0x40]
cmp byte [rax + 0x3d0], 0x65
je 0x140ccb030
lea rsi, str.lws_http_client_socket_service
nop dword [rax + rax]
lea rcx, [r15 + 0x1f8]
mov qword [rbp - 0x79], r12
add rcx, r14
mov dword [rbp - 0x71], r12d
xor r9d, r9d
mov qword [rsp + 0x20], rsi
lea r8, [rbp - 0x79]
mov rdx, rbx
call fcn.140cab660
mov ecx, dword [rbp - 0x71]
mov edi, eax
cmp ecx, 0xfffffffc
je 0x140ccb2bd
test eax, eax
js 0x140ccb077
test ecx, ecx
js 0x140ccb077
je 0x140ccb2bd
mov rdx, qword [rbp - 0x79]
lea r8, [rsp + 0x38]
mov dword [rsp + 0x38], ecx
mov rcx, rbx
call fcn.140cb0580
test eax, eax
jne 0x140ccb05a
mov r8d, dword [rbp - 0x71]
lea rdx, [rbp - 0x79]
sub r8d, dword [rsp + 0x38]
mov r9d, edi
mov rcx, rbx
mov qword [rsp + 0x20], rsi
call fcn.140cab570
test eax, eax
jne 0x140ccb415
cmp dword [rsp + 0x38], r12d
jne 0x140ccb030
mov rax, qword [rbx + 0x40]
cmp byte [rax + 0x3d0], 0x65
jne 0x140ccaf90
mov rax, qword [rbx + 0x40]
cmp byte [rax + 0x3d0], 0x65
jne 0x140ccb2bd
mov rcx, rbx
call fcn.140cc9ef0
jmp 0x140ccb41a
lea rdi, str.Peer_hung_up
jmp 0x140ccb3dd
lea rdx, str.problems_parsing_header_n
mov ecx, 2
call fcn.140ca84f0
lea rdi, str.problems_parsing_header
jmp 0x140ccb3dd
lea rdi, str.read_failed
jmp 0x140ccb3dd
test byte [rsi + 0xa], 2
je 0x140ccb0b1
call fcn.140ca7d10
mov r9, qword [rsi]
lea rdx, str.Proxy_conn__s__fd_d__dead_n
mov r8, rax
mov ecx, 2
call fcn.140ca84f0
lea rdi, str.proxy_conn_dead
jmp 0x140ccb3dd
mov r8d, dword [r15 + 0x89c]
xor r9d, r9d
mov rcx, qword [rcx + 0x4b0]
mov rdx, rdi
call qword [sym.imp.WS2_32.dll_recv]
mov ecx, eax
test eax, eax
jns 0x140ccb0ff
call qword [sym.imp.WS2_32.dll_WSAGetLastError]
cmp eax, 0x2733
je 0x140ccb2bd
lea rdx, str.ERROR_reading_from_proxy_socket_n
mov ecx, 1
call fcn.140ca84f0
lea rdi, str.proxy_read_err
jmp 0x140ccb3dd
mov rax, qword [r14 + r15 + 0x308]
mov byte [rax + 0xd], r12b
cmp ecx, 0xd
jl 0x140ccb3d6
mov r8d, 7
lea rdx, str.HTTP_1.
mov rcx, rdi
call fcn.140da20d0
test eax, eax
jne 0x140ccb3d6
movzx eax, byte [rdi + 7]
sub al, 0x30
cmp al, 1
ja 0x140ccb3d6
cmp byte [rdi + 8], 0x20
jne 0x140ccb3d6
lea rcx, [rdi + 9]
call fcn.140cfb6ac
cmp eax, 0xc8
je 0x140ccb17a
mov r9d, eax
lea r8, str.http_proxy_____u
mov edx, reloc.WS2_32.dll_sendto
mov rcx, rdi
call fcn.140ca62f0
mov qword [rsp + 0x30], rdi
jmp 0x140ccb3c8
xor r8d, r8d
xor edx, edx
mov rcx, rbx
call fcn.140cb9d70
xor r8d, r8d
mov edx, reloc.WS2_32.dll_recv
mov rcx, rbx
call fcn.140cad110
test eax, eax
jne 0x140ccb415
test byte [rbx + 0x490], 1
jne 0x140ccb1b8
test dword [rbx + 0x4c8], 0x40000
je 0x140ccb26c
mov r8d, 1
lea rdx, [rsp + 0x30]
mov rcx, rbx
call fcn.140cb8750
cmp eax, 0xffffffff
je 0x140ccb3c3
cmp eax, 1
je 0x140ccb2bd
test byte [rbx + 0x490], 1
je 0x140ccb20b
mov r8d, 0x80
lea rdx, [rbp - 0x69]
mov rcx, rbx
call fcn.140cb8aa0
test eax, eax
je 0x140ccb2bd
jns 0x140ccb22d
lea rdi, [rbp - 0x69]
jmp 0x140ccb3dd
test dword [rbx + 0x4c8], 0x40000
mov qword [rbx + 0x448], r12
je 0x140ccb22d
lea rdx, [0x140e7bf20]
mov rcx, rbx
call fcn.140caadd0
test dword [rbx + 0x4d8], 0x10000000
je 0x140ccb26c
mov rcx, rbx
call fcn.140cbb140
test eax, eax
je 0x140ccb251
lea rdi, str.error_sending_h2_preface
jmp 0x140ccb3dd
mov r8d, dword [r15 + 0x898]
mov edx, reloc.WS2_32.dll_inet_addr
mov rcx, rbx
call fcn.140cb9d70
xor eax, eax
jmp 0x140ccb41a
mov rdx, rdi
mov rcx, rbx
call fcn.140cca8f0
test rax, rax
jne 0x140ccb2c4
mov rax, qword [rbx + 0x3a8]
lea rcx, str.raw_skt
cmp rax, rcx
je 0x140ccb2bd
lea rcx, str.raw_file
cmp rax, rcx
je 0x140ccb2bd
lea rdx, str.Failed_to_generate_handshake_for_client_n
mov ecx, 1
call fcn.140ca84f0
lea r8, [0x140e7dfd4]
xor edx, edx
mov rcx, rbx
call fcn.140caef80
xor eax, eax
jmp 0x140ccb41a
sub rax, rdi
mov rdx, rdi
mov r8, rax
mov rcx, rbx
call fcn.140caf520
cmp eax, 0xfffffffc
je 0x140ccb2f7
cmp eax, 0xffffffff
jne 0x140ccb2ff
lea r8, [0x140e7dfd8]
xor edx, edx
mov rcx, rbx
call fcn.140caef80
xor eax, eax
jmp 0x140ccb41a
mov rcx, rbx
call fcn.140cad060
test dword [rbx + 0x4d8], 0x400000
jne 0x140ccb38a
mov rcx, rbx
call fcn.140ca7310
test eax, eax
jne 0x140ccb38a
mov r8, qword [rbx]
mov edx, 4
and dword [rbx + 0x4d4], 0xfffffffe
mov rcx, rbx
mov word [rbx + 0x4b8], r13w
mov r8d, dword [r8 + 0x898]
call fcn.140cb9d70
mov rcx, rbx
call fcn.140cad060
mov rax, qword [rbx + 0x40]
mov edx, 4
mov rcx, rbx
mov byte [rax + 0x3d0], 0x61
mov rax, qword [rbx + 0x40]
mov word [rax + 0x3c8], r12w
mov rax, qword [rbx + 0x40]
mov dword [rax + 0x3b8], r12d
mov word [rbx + 0x4b8], r13w
mov r8d, dword [r15 + 0x898]
call fcn.140cb9d70
xor eax, eax
jmp 0x140ccb41a
mov word [rbx + 0x4b8], 0x14
mov edx, reloc.WS2_32.dll_select
mov r8d, dword [r15 + 0x898]
mov rcx, rbx
call fcn.140cb9d70
test dword [rbx + 0x4c8], 0x800
je 0x140ccb2bd
mov rcx, rbx
call fcn.140cad060
xor eax, eax
jmp 0x140ccb41a
mov rdi, qword [rsp + 0x30]
test rdi, rdi
jne 0x140ccb3e2
lea rdi, str.unknown
jmp 0x140ccb3dd
lea rdi, str.http_proxy_fail
mov qword [rsp + 0x30], rdi
mov r8, 0xffffffffffffffff
nop dword [rax]
inc r8
cmp byte [rdi + r8], r12b
jne 0x140ccb3f0
mov rdx, rdi
mov rcx, rbx
call fcn.140caefc0
lea r8, str.cbail3
xor edx, edx
mov rcx, rbx
call fcn.140caef80
mov eax, 0xffffffff
mov rcx, qword [rbp + 0x17]
xor rcx, rsp
call fcn.140cd9320
mov rbx, qword [rsp + 0x130]
add rsp, 0xe0
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
ret