Function at 0x1400017f0
Capabilities:
Connect socket
Initialize winsock library

Disassembly:
push rbx
push rbp
push rsi
push rdi
push r15
sub rsp, 0x210
mov rax, qword [0x140554040]
xor rax, rsp
mov qword [rsp + 0x200], rax
movzx ebp, r8w
mov rbx, rdx
mov rdi, rcx
call fcn.140076490
mov rax, qword [0x140706608]
mov ecx, 4
test rax, rax
je 0x140001834
call rax
jmp 0x14000183a
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_malloc]
mov rcx, rax
test rax, rax
je 0x140001857
mov word [rsp + 0x40], 0x403
movzx eax, word [rsp + 0x40]
mov word [rcx], ax
mov word [rcx + 2], 0x101
call fcn.140075080
mov qword [rdi + 0x10], rax
lea rdx, [0x140706fb8]
cmp qword [0x140706fd0], 0xf
cmova rdx, qword [0x140706fb8]
mov esi, 1
test rax, rax
je 0x14000188e
test byte [rax + 0xa1], 2
je 0x14000188e
xor ecx, ecx
jmp 0x140001890
mov ecx, esi
mov dword [rsp + 0x30], ecx
mov qword [rsp + 0x28], 0
mov dword [rsp + 0x20], 5
mov r9d, esi
mov r8d, dword [0x140706fc8]
mov rcx, rax
call fcn.1400781a0
cmp eax, esi
jne 0x140001a9c
mov rcx, qword [rdi + 0x10]
test rcx, rcx
je 0x1400018e5
movzx eax, byte [rcx + 0xa1]
and al, 0xf1
or al, sil
mov byte [rcx + 0xa1], al
mov qword [rcx + 0x118], 0
mov ecx, 0x202
lea rdx, [rsp + 0x60]
call qword [sym.imp.WS2_32.dll_WSAStartup]
test eax, eax
jne 0x140001a9c
lea r8d, [rax + 6]
mov edx, esi
mov r15d, 2
mov ecx, r15d
call qword [sym.imp.WS2_32.dll_socket]
mov dword [rdi], eax
cmp eax, 0xffffffff
je 0x140001a9c
mov word [rsp + 0x50], r15w
mov rcx, qword [rbx]
call qword [sym.imp.WS2_32.dll_inet_addr]
mov dword [rsp + 0x54], eax
movzx ecx, bp
call qword [sym.imp.WS2_32.dll_htons]
mov word [rsp + 0x52], ax
movsxd rcx, dword [rdi]
lea r8d, [r15 + 0xe]
lea rdx, [rsp + 0x50]
call qword [sym.imp.WS2_32.dll_connect]
test eax, eax
js 0x140001a9c
mov rbp, qword [rdi + 0x10]
test rbp, rbp
jne 0x14000196a
mov qword [rdi + 8], rbp
jmp 0x140001a16
mov rax, qword [0x140706608]
mov ecx, 0x1940
test rax, rax
je 0x14000197f
call rax
jmp 0x140001985
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_malloc]
mov rbx, rax
test rax, rax
je 0x1400019a6
mov rdx, rbp
mov rcx, rax
call fcn.140088600
test eax, eax
jns 0x1400019a6
mov rcx, rbx
call fcn.140089c00
xor ebx, ebx
mov qword [rdi + 8], rbx
mov edx, dword [rdi]
test rbx, rbx
je 0x140001a16
lea rax, [rbx + 0x2ec]
mov dword [rax], edx
mov qword [rbx + 0x88], rax
movzx r8d, byte [rbx + 0x2a8]
and r8b, 0xfd
mov byte [rbx + 0x2a8], r8b
test byte [rbx + 0x4e6], 0x80
je 0x140001a06
lea rcx, [rbx + 0x290]
mov qword [rbx + 0x88], rcx
mov dword [rbx + 0x2a0], edx
mov dword [rbx + 0x2f0], edx
mov qword [rbx + 0x90], rcx
mov dword [rbx + 0x2a4], edx
jmp 0x140001a16
lea rax, [rbx + 0x2f0]
mov dword [rax], edx
mov qword [rbx + 0x90], rax
mov rcx, qword [rdi + 8]
call fcn.140078af0
cmp eax, esi
jne 0x140001a9c
xchg byte [rdi + 4], sil
add rdi, 0x4e8
mov qword [rsp + 0x48], rdi
mov rcx, rdi
call qword [sym.imp.MSVCP140.dll__Mtx_lock]
test eax, eax
je 0x140001a4c
mov ecx, 5
call qword [sym.imp.MSVCP140.dll_void___cdecl_std::_Throw_Cpp_error_int_]
int3
mov eax, dword [rdi + 0x4c]
cmp eax, 0x7fffffff
jne 0x140001a67
dec eax
mov dword [rdi + 0x4c], eax
mov ecx, 6
call qword [sym.imp.MSVCP140.dll_void___cdecl_std::_Throw_Cpp_error_int_]
nop
mov rbx, qword [rdi + 0x50]
mov rsi, qword [rdi + 0x58]
cmp rbx, rsi
je 0x140001a93
mov rcx, qword [rbx + 0x38]
test rcx, rcx
je 0x140001a8a
mov rax, qword [rcx]
mov rax, qword [rax + 0x10]
call qword [case.0x14001f545.0]
add rbx, 0x40
cmp rbx, rsi
jne 0x140001a74
mov rcx, rdi
call qword [sym.imp.MSVCP140.dll__Mtx_unlock]
mov rcx, qword [rsp + 0x200]
xor rcx, rsp
call fcn.1400e9c90
add rsp, 0x210
pop r15
pop rdi
pop rsi
pop rbp
pop rbx
ret