Function at 0x180136e10
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:
push rbp
push rbx
push rsi
lea rbp, [rsp - 0x790]
sub rsp, 0x890
mov rax, qword [0x180594240]
xor rax, rsp
mov qword [rbp + 0x770], rax
cmp qword [rcx + 0x10], 0x200
mov rsi, r8
mov rbx, rcx
jb 0x1801367c1
cmp qword [rcx + 0x18], 0xf
jbe 0x18013679e
mov rbx, qword [rcx]
mov ecx, 2
call fcn.18040f100
mov r8, rbx
lea rdx, str.ERROR:_url_size_limit_exceeded:__s_n
mov rcx, rax
call fcn.180135690
xor eax, eax
jmp 0x18013698e
cmp qword [r8 + 0x10], 0xc8
jb 0x1801367f8
cmp qword [r8 + 0x18], 0xf
jbe 0x1801367d5
mov rsi, qword [r8]
mov ecx, 2
call fcn.18040f100
mov r8, rsi
lea rdx, str.ERROR:_origin_size_limit_exceeded:__s_n
mov rcx, rax
call fcn.180135690
xor eax, eax
jmp 0x18013698e
cmp qword [rcx + 0x18], 0xf
jbe 0x180136802
mov rcx, qword [rcx]
lea rax, [rbp + 0x570]
lea r9, [rsp + 0x50]
mov qword [rsp + 0x20], rax
lea r8, [rbp + 0x370]
lea rdx, str.ws:____:__:_d__s
call fcn.1801356e0
cmp eax, 3
je 0x1801368c7
cmp qword [rbx + 0x18], 0xf
mov rcx, rbx
jbe 0x18013683c
mov rcx, qword [rbx]
lea r9, [rbp + 0x570]
lea r8, [rbp + 0x370]
lea rdx, str.ws:____:____s
call fcn.1801356e0
cmp eax, 2
jne 0x180136865
mov dword [rsp + 0x50], 0x50
jmp 0x1801368c7
cmp qword [rbx + 0x18], 0xf
mov rcx, rbx
jbe 0x180136872
mov rcx, qword [rbx]
lea r9, [rsp + 0x50]
lea r8, [rbp + 0x370]
lea rdx, str.ws:____:__:_d
call fcn.1801356e0
cmp eax, 2
je 0x1801368c0
cmp qword [rbx + 0x18], 0xf
mov rcx, rbx
jbe 0x18013689c
mov rcx, qword [rbx]
lea r8, [rbp + 0x370]
lea rdx, str.ws:____:__
call fcn.1801356e0
cmp eax, 1
jne 0x1801369a8
mov dword [rsp + 0x50], 0x50
mov byte [rbp + 0x570], 0
mov qword [rsp + 0x8b8], rdi
lea rax, [rbp + 0x370]
mov qword [rsp + 0x888], r14
xorps xmm0, xmm0
mov r14d, dword [rsp + 0x50]
mov rdi, 0xffffffffffffffff
mov qword [rsp + 0x880], r15
mov r8, rdi
xor r15d, r15d
mov qword [rsp + 0x40], r15
mov qword [rsp + 0x48], r15
movups xmmword [rsp + 0x30], xmm0
nop word [rax + rax]
inc r8
cmp byte [rax + r8], r15b
jne 0x180136910
lea rdx, [rbp + 0x370]
lea rcx, [rsp + 0x30]
call fcn.180102210
mov edx, r14d
lea rcx, [rsp + 0x30]
call fcn.180135770
lea rcx, [rsp + 0x30]
mov r14, rax
call fcn.1801021b0
cmp r14, rdi
jne 0x1801369d2
mov ebx, dword [rsp + 0x50]
mov ecx, 2
call fcn.18040f100
mov r9d, ebx
lea r8, [rbp + 0x370]
lea rdx, str.Unable_to_connect_to__s:_d_n
mov rcx, rax
call fcn.180135690
xor eax, eax
mov r14, qword [rsp + 0x888]
mov rdi, qword [rsp + 0x8b8]
mov r15, qword [rsp + 0x880]
mov rcx, qword [rbp + 0x770]
xor rcx, rsp
call fcn.1803fd0a0
add rsp, 0x890
pop rsi
pop rbx
pop rbp
ret
cmp qword [rbx + 0x18], 0xf
jbe 0x1801369b2
mov rbx, qword [rbx]
mov ecx, 2
call fcn.18040f100
mov r8, rbx
lea rdx, str.ERROR:_Could_not_parse_WebSocket_url:__s_n
mov rcx, rax
call fcn.180135690
xor eax, eax
jmp 0x18013698e
lea r9, [rbp + 0x570]
mov edx, 0x400
lea r8, str.GET___s_HTTP_1.1_r_n
lea rcx, [rsp + 0x70]
call fcn.180137400
lea rax, [rsp + 0x70]
mov r8, rdi
inc r8
cmp byte [rax + r8], r15b
jne 0x1801369f7
xor r9d, r9d
lea rdx, [rsp + 0x70]
mov rcx, r14
call qword [sym.imp.WS2_32.dll_send]
mov eax, dword [rsp + 0x50]
lea r9, [rbp + 0x370]
lea rcx, [rsp + 0x70]
mov edx, 0x400
cmp eax, 0x50
jne 0x180136a4b
lea r8, str.Host:__s_r_n
call fcn.180137400
lea rax, [rsp + 0x70]
mov r8, rdi
nop
inc r8
cmp byte [rax + r8], r15b
jne 0x180136a40
jmp 0x180136a6c
lea r8, str.Host:__s:_d_r_n
mov dword [rsp + 0x20], eax
call fcn.180137400
lea rax, [rsp + 0x70]
mov r8, rdi
inc r8
cmp byte [rax + r8], r15b
jne 0x180136a63
xor r9d, r9d
lea rdx, [rsp + 0x70]
mov rcx, r14
call qword [sym.imp.WS2_32.dll_send]
lea r8, str.Upgrade:_websocket_r_n
mov edx, 0x400
lea rcx, [rsp + 0x70]
call fcn.180137400
lea rax, [rsp + 0x70]
mov r8, rdi
nop dword [rax + rax]
inc r8
cmp byte [rax + r8], r15b
jne 0x180136aa0
xor r9d, r9d
lea rdx, [rsp + 0x70]
mov rcx, r14
call qword [sym.imp.WS2_32.dll_send]
lea r8, str.Connection:_Upgrade_r_n
mov edx, 0x400
lea rcx, [rsp + 0x70]
call fcn.180137400
lea rax, [rsp + 0x70]
mov r8, rdi
nop dword [rax + rax]
inc r8
cmp byte [rax + r8], r15b
jne 0x180136ae0
xor r9d, r9d
lea rdx, [rsp + 0x70]
mov rcx, r14
call qword [sym.imp.WS2_32.dll_send]
cmp qword [rsi + 0x10], r15
je 0x180136b4a
cmp qword [rsi + 0x18], 0xf
jbe 0x180136b0a
mov rsi, qword [rsi]
mov r9, rsi
lea r8, str.Origin:__s_r_n
mov edx, 0x400
lea rcx, [rsp + 0x70]
call fcn.180137400
lea rax, [rsp + 0x70]
mov r8, rdi
nop dword [rax + rax]
inc r8
cmp byte [rax + r8], r15b
jne 0x180136b30
xor r9d, r9d
lea rdx, [rsp + 0x70]
mov rcx, r14
call qword [sym.imp.WS2_32.dll_send]
lea r8, str.Sec_WebSocket_Key:_x3JJHMbDL1EzLkh9GBhXDw_r_n
mov edx, 0x400
lea rcx, [rsp + 0x70]
call fcn.180137400
lea rax, [rsp + 0x70]
mov r8, rdi
nop dword [rax + rax]
inc r8
cmp byte [rax + r8], r15b
jne 0x180136b70
xor r9d, r9d
lea rdx, [rsp + 0x70]
mov rcx, r14
call qword [sym.imp.WS2_32.dll_send]
lea r8, str.Sec_WebSocket_Version:_13_r_n
mov edx, 0x400
lea rcx, [rsp + 0x70]
call fcn.180137400
lea rax, [rsp + 0x70]
mov r8, rdi
nop dword [rax + rax]
inc r8
cmp byte [rax + r8], r15b
jne 0x180136bb0
xor r9d, r9d
lea rdx, [rsp + 0x70]
mov rcx, r14
call qword [sym.imp.WS2_32.dll_send]
lea r8, [0x1805493cc]
mov edx, 0x400
lea rcx, [rsp + 0x70]
call fcn.180137400
lea rax, [rsp + 0x70]
inc rdi
cmp byte [rax + rdi], r15b
jne 0x180136be5
mov r8, rdi
lea rdx, [rsp + 0x70]
xor r9d, r9d
mov rcx, r14
call qword [sym.imp.WS2_32.dll_send]
lea rsi, [rsp + 0x70]
mov edi, r15d
dec rsi
nop dword [rax]
cmp edi, 2
jl 0x180136c28
cmp edi, 0x3ff
jge 0x180136c54
cmp byte [rsi - 1], 0xd
je 0x180136c54
cmp byte [rsi], 0xa
je 0x180136c54
movsxd rax, edi
lea rdx, [rsp + 0x70]
add rdx, rax
xor r9d, r9d
mov r8d, 1
mov rcx, r14
call qword [sym.imp.WS2_32.dll_recv]
test eax, eax
je 0x180136974
inc edi
inc rsi
jmp 0x180136c10
movsxd rax, edi
cmp rax, 0x400
jae 0x180136e0a
mov byte [rsp + rax + 0x70], r15b
cmp edi, 0x3ff
jne 0x180136c9b
cmp qword [rbx + 0x18], 0xf
jbe 0x180136c7a
mov rbx, qword [rbx]
mov ecx, 2
call fcn.18040f100
mov r8, rbx
lea rdx, str.ERROR:_Got_invalid_status_line_connecting_to:__s_n
mov rcx, rax
call fcn.180135690
jmp 0x180136974
lea r8, [rsp + 0x60]
lea rdx, str.HTTP_1.1__d
lea rcx, [rsp + 0x70]
call fcn.1801356e0
cmp eax, 1
jne 0x180136dda
cmp dword [rsp + 0x60], 0x65
jne 0x180136dda
lea rsi, [rsp + 0x70]
nop word [rax + rax]
mov ebx, r15d
lea rdi, [rsi - 1]
cmp ebx, 2
jl 0x180136cef
cmp ebx, 0x3ff
jge 0x180136d1b
cmp byte [rdi - 1], 0xd
je 0x180136d1b
cmp byte [rdi], 0xa
je 0x180136d1b
movsxd rax, ebx
lea rdx, [rsp + 0x70]
add rdx, rax
xor r9d, r9d
mov r8d, 1
mov rcx, r14
call qword [sym.imp.WS2_32.dll_recv]
test eax, eax
je 0x180136974
inc ebx
inc rdi
jmp 0x180136cd7
cmp byte [rsp + 0x70], 0xd
jne 0x180136cd0
cmp byte [rsp + 0x71], 0xa
jne 0x180136cd0
lea r9, [rsp + 0x54]
mov dword [rsp + 0x54], 1
mov edx, 6
mov dword [rsp + 0x20], 4
mov r8d, 1
mov rcx, r14
call qword [sym.imp.WS2_32.dll_setsockopt]
lea r8, [rsp + 0x58]
mov dword [rsp + 0x58], 1
mov edx, 0x8004667e
mov rcx, r14
call qword [sym.imp.WS2_32.dll_ioctlsocket]
mov ecx, 0x60
call fcn.1803fd0c0
mov qword [rsp + 0x60], rax
lea rcx, vtable._RealWebSocket.0
xorps xmm0, xmm0
movups xmmword [rax], xmm0
movups xmmword [rax + 0x10], xmm0
movups xmmword [rax + 0x20], xmm0
movups xmmword [rax + 0x30], xmm0
movups xmmword [rax + 0x40], xmm0
movups xmmword [rax + 0x50], xmm0
mov qword [rax], rcx
mov qword [rax + 8], r15
mov qword [rax + 0x10], r15
mov qword [rax + 0x18], r15
mov qword [rax + 0x20], r15
mov qword [rax + 0x28], r15
mov qword [rax + 0x30], r15
mov qword [rax + 0x38], r15
mov qword [rax + 0x40], r15
mov qword [rax + 0x48], r15
mov qword [rax + 0x50], r14
mov dword [rax + 0x58], 3
mov word [rax + 0x5c], 1
jmp 0x180136976
cmp qword [rbx + 0x18], 0xf
jbe 0x180136de4
mov rbx, qword [rbx]
mov ecx, 2
call fcn.18040f100
lea r9, [rsp + 0x70]
mov r8, rbx
lea rdx, str.ERROR:_Got_bad_status_connecting_to__s:__s
mov rcx, rax
call fcn.180135690
jmp 0x180136974
call fcn.1803fd368
int3
mov r8, rdx
jmp 0x180136760