Function at 0x180008190
Capabilities:
Connect socket
Receive data
Receive data on socket
Resolve dns
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 r14
push r15
lea rbp, [rsp - 0x7d0]
sub rsp, 0x8d0
mov rax, qword [0x1800df010]
xor rax, rsp
mov qword [rbp + 0x7c0], rax
mov r15, r8
mov rdi, rcx
cmp qword [rcx + 0x10], 0x200
jb 0x180008226
cmp qword [rcx + 0x18], 0x10
jb 0x1800081dc
mov rdi, qword [rcx]
mov ecx, 2
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll___acrt_iob_func]
mov r8, rdi
lea rdx, str.ERROR:_url_size_limit_exceeded:__s_n
mov rcx, rax
call fcn.180006900
xor eax, eax
mov rcx, qword [rbp + 0x7c0]
xor rcx, rsp
call fcn.18009ce50
lea r11, [rsp + 0x8d0]
mov rbx, qword [r11 + 0x38]
mov rsi, qword [r11 + 0x48]
mov rsp, r11
pop r15
pop r14
pop r12
pop rdi
pop rbp
ret
cmp qword [r8 + 0x10], 0xc8
jb 0x180008251
cmp qword [r8 + 0x18], 0x10
jb 0x18000823a
mov r15, qword [r8]
mov ecx, 2
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll___acrt_iob_func]
mov r8, r15
lea rdx, str.ERROR:_origin_size_limit_exceeded:__s_n
jmp 0x1800081f1
cmp qword [rcx + 0x18], 0x10
jb 0x18000825b
mov rcx, qword [rcx]
lea rax, [rbp + 0x5c0]
mov qword [rsp + 0x20], rax
lea r9, [rsp + 0x68]
lea r8, [rbp + 0x3c0]
lea rdx, str.ws:____:__:_d__s
call fcn.180006a90
cmp eax, 3
je 0x180008320
mov rcx, rdi
cmp qword [rdi + 0x18], 0x10
jb 0x180008295
mov rcx, qword [rdi]
lea r9, [rbp + 0x5c0]
lea r8, [rbp + 0x3c0]
lea rdx, str.ws:____:____s
call fcn.180006a90
cmp eax, 2
jne 0x1800082be
mov dword [rsp + 0x68], 0x50
jmp 0x180008320
mov rcx, rdi
cmp qword [rdi + 0x18], 0x10
jb 0x1800082cb
mov rcx, qword [rdi]
lea r9, [rsp + 0x68]
lea r8, [rbp + 0x3c0]
lea rdx, str.ws:____:__:_d
call fcn.180006a90
cmp eax, 2
je 0x180008319
mov rcx, rdi
cmp qword [rdi + 0x18], 0x10
jb 0x1800082f5
mov rcx, qword [rdi]
lea r8, [rbp + 0x3c0]
lea rdx, str.ws:____:__
call fcn.180006a90
cmp eax, 1
jne 0x18000842c
mov dword [rsp + 0x68], 0x50
mov byte [rbp + 0x5c0], 0
mov ebx, dword [rsp + 0x68]
xor r12d, r12d
mov qword [rsp + 0x40], r12
mov qword [rsp + 0x50], r12
mov qword [rsp + 0x58], r12
mov qword [rsp + 0x50], r12
mov qword [rsp + 0x58], reloc.WS2_32.dll_ntohs
mov byte [rsp + 0x40], r12b
lea rax, [rbp + 0x3c0]
mov r14, 0xffffffffffffffff
mov r8, r14
nop word [rax + rax]
inc r8
cmp byte [rax + r8], r12b
jne 0x180008360
lea rdx, [rbp + 0x3c0]
lea rcx, [rsp + 0x40]
call fcn.180009130
nop
mov rsi, r14
xorps xmm0, xmm0
movups xmmword [rsp + 0x78], xmm0
movups xmmword [rbp - 0x78], xmm0
movups xmmword [rbp - 0x68], xmm0
mov dword [rbp - 0x80], 1
mov r9d, ebx
lea r8, [0x1800b4480]
mov edx, reloc.WS2_32.dll_recv
lea rcx, [rbp - 0x58]
call fcn.1800094b0
lea rcx, [rsp + 0x40]
cmp qword [rsp + 0x58], 0x10
cmovae rcx, qword [rsp + 0x40]
lea r9, [rsp + 0x60]
lea r8, [rsp + 0x78]
lea rdx, [rbp - 0x58]
call qword [sym.imp.WS2_32.dll_getaddrinfo]
test eax, eax
je 0x180008450
mov qword [rsp + 0x30], r12
mov dword [rsp + 0x28], 0x400
lea rbx, [0x1800e2f30]
mov qword [rsp + 0x20], rbx
mov r9d, 0x400
mov r8d, eax
xor edx, edx
mov ecx, 0x12ff
call qword [sym.imp.KERNEL32.dll_FormatMessageA]
mov ecx, 2
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll___acrt_iob_func]
mov r8, rbx
lea rdx, str.getaddrinfo:__s_n
mov rcx, rax
call fcn.180006900
mov esi, 1
jmp 0x1800084b3
cmp qword [rdi + 0x18], 0x10
jb 0x180008436
mov rdi, qword [rdi]
mov ecx, 2
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll___acrt_iob_func]
mov r8, rdi
lea rdx, str.ERROR:_Could_not_parse_WebSocket_url:__s_n
jmp 0x1800081f1
mov rbx, qword [rsp + 0x60]
test rbx, rbx
je 0x1800084a9
nop word [rax + rax]
mov r8d, dword [rbx + 0xc]
mov edx, dword [rbx + 8]
mov ecx, dword [rbx + 4]
call qword [sym.imp.WS2_32.dll_socket]
mov rsi, rax
cmp rax, 0xffffffffffffffff
je 0x18000849b
mov r8d, dword [rbx + 0x10]
mov rdx, qword [rbx + 0x20]
mov rcx, rax
call qword [sym.imp.WS2_32.dll_connect]
cmp eax, 0xffffffff
jne 0x1800084a4
mov rcx, rsi
call qword [sym.imp.WS2_32.dll_closesocket]
mov rsi, r14
mov rbx, qword [rbx + 0x28]
test rbx, rbx
jne 0x180008460
mov rbx, qword [rsp + 0x60]
mov rcx, rbx
call qword [sym.imp.WS2_32.dll_freeaddrinfo]
nop
mov rdx, qword [rsp + 0x58]
cmp rdx, 0x10
jb 0x1800084f3
inc rdx
mov rcx, qword [rsp + 0x40]
mov rax, rcx
cmp rdx, 0x1000
jb 0x1800084ee
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x1800084ee
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.18009d5c8
mov qword [rsp + 0x50], r12
mov qword [rsp + 0x58], reloc.WS2_32.dll_ntohs
mov byte [rsp + 0x40], 0
cmp rsi, 0xffffffffffffffff
jne 0x180008537
mov ebx, dword [rsp + 0x68]
lea ecx, [rsi + 3]
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll___acrt_iob_func]
mov r9d, ebx
lea r8, [rbp + 0x3c0]
lea rdx, str.Unable_to_connect_to__s:_d_n
mov rcx, rax
call fcn.180006900
jmp 0x1800081f9
lea r9, [rbp + 0x5c0]
lea r8, str.GET___s_HTTP_1.1_r_n
mov edx, 0x400
lea rcx, [rbp - 0x40]
call fcn.180009e50
lea rax, [rbp - 0x40]
mov r8, r14
nop word [rax + rax]
inc r8
cmp byte [rax + r8], 0
jne 0x180008560
xor r9d, r9d
lea rdx, [rbp - 0x40]
mov rcx, rsi
call qword [sym.imp.WS2_32.dll_send]
mov eax, dword [rsp + 0x68]
lea r9, [rbp + 0x3c0]
mov edx, 0x400
lea rcx, [rbp - 0x40]
cmp eax, 0x50
jne 0x1800085b2
lea r8, str.Host:__s_r_n
call fcn.180009e50
lea rax, [rbp - 0x40]
mov r8, r14
inc r8
cmp byte [rax + r8], 0
jne 0x1800085a6
jmp 0x1800085da
mov dword [rsp + 0x20], eax
lea r8, str.Host:__s:_d_r_n
call fcn.180009e50
lea rax, [rbp - 0x40]
mov r8, r14
nop dword [rax]
inc r8
cmp byte [rax + r8], 0
jne 0x1800085d0
xor r9d, r9d
lea rdx, [rbp - 0x40]
mov rcx, rsi
call qword [sym.imp.WS2_32.dll_send]
lea r8, str.Upgrade:_websocket_r_n
mov edx, 0x400
lea rcx, [rbp - 0x40]
call fcn.180009e50
lea rax, [rbp - 0x40]
mov r8, r14
inc r8
cmp byte [rax + r8], 0
jne 0x180008606
xor r9d, r9d
lea rdx, [rbp - 0x40]
mov rcx, rsi
call qword [sym.imp.WS2_32.dll_send]
lea r8, str.Connection:_Upgrade_r_n
mov edx, 0x400
lea rcx, [rbp - 0x40]
call fcn.180009e50
lea rax, [rbp - 0x40]
mov r8, r14
nop dword [rax]
inc r8
cmp byte [rax + r8], 0
jne 0x180008640
xor r9d, r9d
lea rdx, [rbp - 0x40]
mov rcx, rsi
call qword [sym.imp.WS2_32.dll_send]
cmp qword [r15 + 0x10], 0
je 0x1800086aa
cmp qword [r15 + 0x18], 0x10
jb 0x18000866b
mov r15, qword [r15]
mov r9, r15
lea r8, str.Origin:__s_r_n
mov edx, 0x400
lea rcx, [rbp - 0x40]
call fcn.180009e50
lea rax, [rbp - 0x40]
mov r8, r14
nop word [rax + rax]
inc r8
cmp byte [rax + r8], 0
jne 0x180008690
xor r9d, r9d
lea rdx, [rbp - 0x40]
mov rcx, rsi
call qword [sym.imp.WS2_32.dll_send]
lea r8, str.Sec_WebSocket_Key:_x3JJHMbDL1EzLkh9GBhXDw_r_n
mov edx, 0x400
lea rcx, [rbp - 0x40]
call fcn.180009e50
lea rax, [rbp - 0x40]
mov r8, r14
inc r8
cmp byte [rax + r8], 0
jne 0x1800086c6
xor r9d, r9d
lea rdx, [rbp - 0x40]
mov rcx, rsi
call qword [sym.imp.WS2_32.dll_send]
lea r8, str.Sec_WebSocket_Version:_13_r_n
mov edx, 0x400
lea rcx, [rbp - 0x40]
call fcn.180009e50
lea rax, [rbp - 0x40]
mov r8, r14
nop dword [rax]
inc r8
cmp byte [rax + r8], 0
jne 0x180008700
xor r9d, r9d
lea rdx, [rbp - 0x40]
mov rcx, rsi
call qword [sym.imp.WS2_32.dll_send]
lea r8, [0x1800b46e4]
mov edx, 0x400
lea rcx, [rbp - 0x40]
call fcn.180009e50
lea rax, [rbp - 0x40]
inc r14
cmp byte [rax + r14], 0
jne 0x180008733
mov r8, r14
xor r9d, r9d
lea rdx, [rbp - 0x40]
mov rcx, rsi
call qword [sym.imp.WS2_32.dll_send]
mov ebx, r12d
lea r15, [rbp - 0x40]
lea r14, [r15 - 1]
nop dword [rax + rax]
cmp ebx, 2
jl 0x18000877a
cmp ebx, 0x3ff
jge 0x1800087a3
cmp byte [r14 - 1], 0xd
je 0x1800087a3
cmp byte [r14], 0xa
je 0x1800087a3
movsxd rax, ebx
lea rdx, [rbp - 0x40]
add rdx, rax
xor r9d, r9d
lea r8d, [r9 + 1]
mov rcx, rsi
call qword [sym.imp.WS2_32.dll_recv]
test eax, eax
je 0x1800081f9
inc ebx
inc r14
jmp 0x180008760
movsxd rax, ebx
cmp rax, 0x400
jae 0x18000894d
mov byte [rbp + rax - 0x40], 0
cmp ebx, 0x3ff
jne 0x1800087e3
cmp qword [rdi + 0x18], 0x10
jb 0x1800087c9
mov rdi, qword [rdi]
mov ecx, 2
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll___acrt_iob_func]
mov r8, rdi
lea rdx, str.ERROR:_Got_invalid_status_line_connecting_to:__s_n
jmp 0x1800081f1
lea r8, [rsp + 0x60]
lea rdx, str.HTTP_1.1__d
lea rcx, [rbp - 0x40]
call fcn.180006a90
cmp eax, 1
jne 0x18000891d
cmp dword [rsp + 0x60], 0x65
jne 0x18000891d
nop dword [rax]
mov ebx, r12d
lea rdi, [r15 - 1]
cmp ebx, 2
jl 0x18000882f
cmp ebx, 0x3ff
jge 0x180008858
cmp byte [rdi - 1], 0xd
je 0x180008858
cmp byte [rdi], 0xa
je 0x180008858
movsxd rax, ebx
lea rdx, [rbp - 0x40]
add rdx, rax
xor r9d, r9d
lea r8d, [r9 + 1]
mov rcx, rsi
call qword [sym.imp.WS2_32.dll_recv]
test eax, eax
je 0x1800081f9
inc ebx
inc rdi
jmp 0x180008817
cmp byte [rbp - 0x40], 0xd
jne 0x180008810
cmp byte [rbp - 0x3f], 0xa
jne 0x180008810
mov dword [rsp + 0x6c], 1
mov dword [rsp + 0x20], 4
lea r9, [rsp + 0x6c]
mov edx, 6
lea r8d, [rdx - 5]
mov rcx, rsi
call qword [sym.imp.WS2_32.dll_setsockopt]
mov dword [rsp + 0x70], 1
lea r8, [rsp + 0x70]
mov edx, 0x8004667e
mov rcx, rsi
call qword [sym.imp.WS2_32.dll_ioctlsocket]
mov ecx, 0x60
call fcn.18009d58c
mov qword [rsp + 0x60], rax
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
lea rcx, vtable.easywsclient::WebSocket.0
mov qword [rax], rcx
lea rcx, vtable._RealWebSocket.0
mov qword [rax], rcx
mov qword [rax + 8], r12
mov qword [rax + 0x10], r12
mov qword [rax + 0x18], r12
mov qword [rax + 0x20], r12
mov qword [rax + 0x28], r12
mov qword [rax + 0x30], r12
mov qword [rax + 0x38], r12
mov qword [rax + 0x40], r12
mov qword [rax + 0x48], r12
mov qword [rax + 0x50], rsi
mov dword [rax + 0x58], 3
mov word [rax + 0x5c], 1
jmp 0x1800081fb
cmp qword [rdi + 0x18], 0x10
jb 0x180008927
mov rdi, qword [rdi]
mov ecx, 2
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll___acrt_iob_func]
lea r9, [rbp - 0x40]
mov r8, rdi
lea rdx, str.ERROR:_Got_bad_status_connecting_to__s:__s
mov rcx, rax
call fcn.180006900
jmp 0x1800081f9
call fcn.18009d2e8
int3