Function at 0x140002c24
Capabilities:
Receive data
Receive data on socket
Send data
Send data on socket
Send http request
Send http request with host header
Set socket configuration

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x20], rsi
push rbp
push rdi
push r12
push r13
push r15
lea rbp, [rsp - 0x780]
sub rsp, 0x880
mov rax, qword [0x14008f0c0]
xor rax, rsp
mov qword [rbp + 0x770], rax
cmp qword [rcx + 0x10], 0x200
mov rdi, r8
mov r12b, dl
mov rbx, rcx
jb 0x140002648
cmp qword [rcx + 0x18], 0xf
jbe 0x1400025ff
mov rbx, qword [rcx]
mov ecx, 2
call fcn.1400312e4
lea rdx, str.ERROR:_url_size_limit_exceeded:__s_n
mov r8, rbx
mov rcx, rax
call fcn.1400032e8
xor eax, eax
mov rcx, qword [rbp + 0x770]
xor rcx, rsp
call fcn.14002a7b0
lea r11, [rsp + 0x880]
mov rbx, qword [r11 + 0x38]
mov rsi, qword [r11 + 0x48]
mov rsp, r11
pop r15
pop r13
pop r12
pop rdi
pop rbp
ret
cmp qword [r8 + 0x10], 0xc8
jb 0x140002672
cmp qword [r8 + 0x18], 0xf
jbe 0x14000265c
mov rdi, qword [r8]
mov ecx, 2
call fcn.1400312e4
mov r8, rdi
lea rdx, str.ERROR:_origin_size_limit_exceeded:__s_n
jmp 0x140002613
cmp qword [rcx + 0x18], 0xf
jbe 0x14000267c
mov rcx, qword [rcx]
lea rax, [rbp + 0x570]
lea r9, [rsp + 0x30]
mov qword [rsp + 0x20], rax
lea r8, [rbp + 0x370]
lea rdx, str.ws:____:__:_d__s
call fcn.14000332c
xor r13d, r13d
mov esi, 0x50
cmp eax, 3
je 0x1400026e1
cmp qword [rbx + 0x18], 0xf
mov rcx, rbx
jbe 0x1400026ba
mov rcx, qword [rbx]
lea r9, [rbp + 0x570]
lea r8, [rbp + 0x370]
lea rdx, str.ws:____:____s
call fcn.14000332c
cmp eax, 2
jne 0x1400027a1
mov dword [rsp + 0x30], esi
mov r15d, dword [rsp + 0x30]
lea rax, [rbp + 0x370]
xorps xmm0, xmm0
xorps xmm1, xmm1
or rsi, 0xffffffffffffffff
movups xmmword [rsp + 0x48], xmm0
mov r8, rsi
movdqu xmmword [rsp + 0x58], xmm1
inc r8
cmp byte [rax + r8], r13b
jne 0x140002705
lea rdx, [rbp + 0x370]
lea rcx, [rsp + 0x48]
call fcn.14000112c
mov edx, r15d
lea rcx, [rsp + 0x48]
call fcn.140002c34
mov rdx, qword [rsp + 0x60]
mov r15, rax
cmp rdx, 0xf
jbe 0x14000276c
mov rcx, qword [rsp + 0x48]
inc rdx
mov rax, rcx
cmp rdx, 0x1000
jb 0x140002767
mov rcx, qword [rcx - 8]
add rdx, 0x27
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x140002c15
call fcn.14002a2e0
cmp r15, rsi
jne 0x140002822
mov ebx, dword [rsp + 0x30]
mov ecx, 2
call fcn.1400312e4
mov r9d, ebx
lea r8, [rbp + 0x370]
lea rdx, str.Unable_to_connect_to__s:_d_n
mov rcx, rax
call fcn.1400032e8
jmp 0x14000261b
cmp qword [rbx + 0x18], 0xf
mov rcx, rbx
jbe 0x1400027ae
mov rcx, qword [rbx]
lea r9, [rsp + 0x30]
lea r8, [rbp + 0x370]
lea rdx, str.ws:____:__:_d
call fcn.14000332c
cmp eax, 2
jne 0x1400027d7
mov byte [rbp + 0x570], r13b
jmp 0x1400026e1
cmp qword [rbx + 0x18], 0xf
mov rcx, rbx
jbe 0x1400027e4
mov rcx, qword [rbx]
lea r8, [rbp + 0x370]
lea rdx, str.ws:____:__
call fcn.14000332c
cmp eax, 1
jne 0x140002802
mov dword [rsp + 0x30], esi
jmp 0x1400027cb
cmp qword [rbx + 0x18], 0xf
jbe 0x14000280c
mov rbx, qword [rbx]
mov ecx, 2
call fcn.1400312e4
lea rdx, str.ERROR:_Could_not_parse_WebSocket_url:__s_n
jmp 0x140002610
lea r9, [rbp + 0x570]
mov edx, 0x400
lea r8, str.GET___s_HTTP_1.1_r_n
lea rcx, [rsp + 0x70]
call fcn.140001764
lea rax, [rsp + 0x70]
mov r8, rsi
inc r8
cmp byte [rax + r8], r13b
jne 0x140002847
xor r9d, r9d
lea rdx, [rsp + 0x70]
mov rcx, r15
call qword [sym.imp.WS2_32.dll_send]
mov eax, dword [rsp + 0x30]
lea r9, [rbp + 0x370]
lea rcx, [rsp + 0x70]
mov edx, 0x400
cmp eax, 0x50
jne 0x14000289a
lea r8, str.Host:__s_r_n
call fcn.140001764
lea rax, [rsp + 0x70]
mov r8, rsi
inc r8
cmp byte [rax + r8], r13b
jne 0x14000288f
jmp 0x1400028bb
lea r8, str.Host:__s:_d_r_n
mov dword [rsp + 0x20], eax
call fcn.140001764
lea rax, [rsp + 0x70]
mov r8, rsi
inc r8
cmp byte [rax + r8], r13b
jne 0x1400028b2
xor r9d, r9d
lea rdx, [rsp + 0x70]
mov rcx, r15
call qword [sym.imp.WS2_32.dll_send]
lea r8, str.Upgrade:_websocket_r_n
mov edx, 0x400
lea rcx, [rsp + 0x70]
call fcn.140001764
lea rax, [rsp + 0x70]
mov r8, rsi
inc r8
cmp byte [rax + r8], r13b
jne 0x1400028ea
xor r9d, r9d
lea rdx, [rsp + 0x70]
mov rcx, r15
call qword [sym.imp.WS2_32.dll_send]
lea r8, str.Connection:_Upgrade_r_n
mov edx, 0x400
lea rcx, [rsp + 0x70]
call fcn.140001764
lea rax, [rsp + 0x70]
mov r8, rsi
inc r8
cmp byte [rax + r8], r13b
jne 0x140002922
xor r9d, r9d
lea rdx, [rsp + 0x70]
mov rcx, r15
call qword [sym.imp.WS2_32.dll_send]
cmp qword [rdi + 0x10], r13
je 0x14000298b
cmp qword [rdi + 0x18], 0xf
jbe 0x14000294c
mov rdi, qword [rdi]
mov r9, rdi
lea r8, str.Origin:__s_r_n
mov edi, 0x400
lea rcx, [rsp + 0x70]
mov edx, edi
call fcn.140001764
lea rax, [rsp + 0x70]
mov r8, rsi
inc r8
cmp byte [rax + r8], r13b
jne 0x14000296f
xor r9d, r9d
lea rdx, [rsp + 0x70]
mov rcx, r15
call qword [sym.imp.WS2_32.dll_send]
jmp 0x140002990
mov edi, 0x400
lea r8, str.Sec_WebSocket_Key:_x3JJHMbDL1EzLkh9GBhXDw_r_n
mov rdx, rdi
lea rcx, [rsp + 0x70]
call fcn.140001764
lea rax, [rsp + 0x70]
mov r8, rsi
inc r8
cmp byte [rax + r8], r13b
jne 0x1400029ac
xor r9d, r9d
lea rdx, [rsp + 0x70]
mov rcx, r15
call qword [sym.imp.WS2_32.dll_send]
lea r8, str.Sec_WebSocket_Version:_13_r_n
mov rdx, rdi
lea rcx, [rsp + 0x70]
call fcn.140001764
lea rax, [rsp + 0x70]
mov r8, rsi
inc r8
cmp byte [rax + r8], r13b
jne 0x1400029e2
xor r9d, r9d
lea rdx, [rsp + 0x70]
mov rcx, r15
call qword [sym.imp.WS2_32.dll_send]
lea r8, [0x1400568ec]
mov rdx, rdi
lea rcx, [rsp + 0x70]
call fcn.140001764
lea rax, [rsp + 0x70]
inc rsi
cmp byte [rax + rsi], r13b
jne 0x140002a15
mov r8, rsi
lea rdx, [rsp + 0x70]
xor r9d, r9d
mov rcx, r15
call qword [sym.imp.WS2_32.dll_send]
lea rsi, [rsp + 0x70]
mov edi, r13d
dec rsi
cmp edi, 2
jl 0x140002a55
cmp edi, 0x3ff
jge 0x140002a7f
cmp byte [rsi - 1], 0xd
je 0x140002a7f
cmp byte [rsi], 0xa
je 0x140002a7f
xor r9d, r9d
movsxd rax, edi
lea rdx, [rsp + 0x70]
mov rcx, r15
add rdx, rax
lea r8d, [r9 + 1]
call qword [sym.imp.WS2_32.dll_recv]
test eax, eax
je 0x14000261b
inc edi
inc rsi
jmp 0x140002a3d
movsxd rax, edi
cmp rax, 0x400
jae 0x140002c1b
mov byte [rsp + rax + 0x70], r13b
cmp edi, 0x3ff
jne 0x140002abb
cmp qword [rbx + 0x18], 0xf
jbe 0x140002aa5
mov rbx, qword [rbx]
mov ecx, 2
call fcn.1400312e4
lea rdx, str.ERROR:_Got_invalid_status_line_connecting_to:__s_n
jmp 0x140002610
lea r8, [rsp + 0x34]
lea rdx, str.HTTP_1.1__d
lea rcx, [rsp + 0x70]
call fcn.14000332c
cmp eax, 1
jne 0x140002be5
cmp dword [rsp + 0x34], 0x65
jne 0x140002be5
lea rsi, [rsp + 0x70]
mov ebx, r13d
lea rdi, [rsi - 1]
cmp ebx, 2
jl 0x140002b09
cmp ebx, 0x3ff
jge 0x140002b33
cmp byte [rdi - 1], 0xd
je 0x140002b33
cmp byte [rdi], 0xa
je 0x140002b33
xor r9d, r9d
movsxd rax, ebx
lea rdx, [rsp + 0x70]
mov rcx, r15
add rdx, rax
lea r8d, [r9 + 1]
call qword [sym.imp.WS2_32.dll_recv]
test eax, eax
je 0x14000261b
inc ebx
inc rdi
jmp 0x140002af1
cmp byte [rsp + 0x70], 0xd
jne 0x140002aea
cmp byte [rsp + 0x71], 0xa
jne 0x140002aea
mov edx, 6
mov dword [rsp + 0x38], 1
lea r9, [rsp + 0x38]
mov dword [rsp + 0x20], 4
mov rcx, r15
lea r8d, [rdx - 5]
call qword [sym.imp.WS2_32.dll_setsockopt]
lea r8, [rsp + 0x40]
mov dword [rsp + 0x40], 1
mov edx, 0x8004667e
mov rcx, r15
call qword [sym.imp.WS2_32.dll_ioctlsocket]
mov ecx, 0x60
call fcn.14002a2a4
mov qword [rsp + 0x40], rax
test rax, rax
je 0x140002bdd
lea rcx, vtable._RealWebSocket.0
mov qword [rax], rcx
mov qword [rax + 8], r13
mov qword [rax + 0x10], r13
mov qword [rax + 0x18], r13
mov qword [rax + 0x20], r13
mov qword [rax + 0x28], r13
mov qword [rax + 0x30], r13
mov qword [rax + 0x38], r13
mov qword [rax + 0x40], r13
mov qword [rax + 0x48], r13
mov qword [rax + 0x50], r15
mov dword [rax + 0x58], 3
mov byte [rax + 0x5c], r12b
mov byte [rax + 0x5d], r13b
jmp 0x14000261d
mov rax, r13
jmp 0x14000261d
cmp qword [rbx + 0x18], 0xf
jbe 0x140002bef
mov rbx, qword [rbx]
mov ecx, 2
call fcn.1400312e4
lea r9, [rsp + 0x70]
mov r8, rbx
lea rdx, str.ERROR:_Got_bad_status_connecting_to__s:__s
mov rcx, rax
call fcn.1400032e8
jmp 0x14000261b
call fcn.14003114c
int3
call fcn.14002a3f0
int3
mov r8, rdx
mov dl, 1
jmp 0x1400025b0