Function at 0x1400017c0
Capabilities:
Connect socket
Initialize winsock library

Disassembly:
mov qword [rsp + 0x18], rbx
push rbp
push rsi
push rdi
sub rsp, 0x210
mov rax, qword [0x14019d0c0]
xor rax, rsp
mov qword [rsp + 0x200], rax
mov rbx, rdx
mov rdi, rcx
call fcn.14006ff00
mov rax, qword [0x1401a22f0]
mov ecx, 4
test rax, rax
je 0x140001801
call rax
jmp 0x140001806
call fcn.1401325bc
mov rcx, rax
test rax, rax
je 0x140001823
mov word [rsp + 0x40], 0x403
movzx eax, word [rsp + 0x40]
mov word [rcx], ax
mov word [rcx + 2], 0x101
call fcn.14006e950
mov qword [rdi + 0x10], rax
lea rdx, [0x1401a2358]
cmp qword [0x1401a2370], 0xf
cmova rdx, qword [0x1401a2358]
mov esi, 1
test rax, rax
je 0x14000185a
test byte [rax + 0xa1], 2
je 0x14000185a
xor ecx, ecx
jmp 0x14000185c
mov ecx, esi
mov dword [rsp + 0x30], ecx
mov qword [rsp + 0x28], 0
mov dword [rsp + 0x20], 5
mov r9d, esi
mov r8d, dword [0x1401a2368]
mov rcx, rax
call fcn.140071c50
cmp eax, esi
jne 0x140001a40
mov rcx, qword [rdi + 0x10]
test rcx, rcx
je 0x1400018b1
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 0x140001a40
lea r8d, [rax + 6]
mov edx, esi
mov ebp, 2
mov ecx, ebp
call qword [sym.imp.WS2_32.dll_socket]
mov dword [rdi], eax
cmp eax, 0xffffffff
je 0x140001a40
mov word [rsp + 0x50], bp
mov rcx, qword [rbx]
call qword [sym.imp.WS2_32.dll_inet_addr]
mov dword [rsp + 0x54], eax
mov ecx, 0x1a0a
call qword [sym.imp.WS2_32.dll_htons]
mov word [rsp + 0x52], ax
movsxd rcx, dword [rdi]
lea r8d, [rbp + 0xe]
lea rdx, [rsp + 0x50]
call qword [sym.imp.WS2_32.dll_connect]
test eax, eax
js 0x140001a40
mov rbp, qword [rdi + 0x10]
test rbp, rbp
jne 0x140001935
mov qword [rdi + 8], rbp
jmp 0x1400019e0
mov rax, qword [0x1401a22f0]
mov ecx, 0x1930
test rax, rax
je 0x14000194a
call rax
jmp 0x14000194f
call fcn.1401325bc
mov rbx, rax
test rax, rax
je 0x140001970
mov rdx, rbp
mov rcx, rax
call fcn.140081fa0
test eax, eax
jns 0x140001970
mov rcx, rbx
call fcn.140083410
xor ebx, ebx
mov qword [rdi + 8], rbx
mov edx, dword [rdi]
test rbx, rbx
je 0x1400019e0
lea rax, [rbx + 0x2e4]
mov dword [rax], edx
mov qword [rbx + 0x80], rax
movzx r8d, byte [rbx + 0x2a0]
and r8b, 0xfd
mov byte [rbx + 0x2a0], r8b
test byte [rbx + 0x4d6], 0x80
je 0x1400019d0
lea rcx, [rbx + 0x288]
mov qword [rbx + 0x80], rcx
mov dword [rbx + 0x298], edx
mov dword [rbx + 0x2e8], edx
mov qword [rbx + 0x88], rcx
mov dword [rbx + 0x29c], edx
jmp 0x1400019e0
lea rax, [rbx + 0x2e8]
mov dword [rax], edx
mov qword [rbx + 0x88], rax
mov rcx, qword [rdi + 8]
call fcn.140072590
cmp eax, esi
jne 0x140001a40
xchg byte [rdi + 4], sil
add rdi, 0x1b8
mov qword [rsp + 0x48], rdi
mov rcx, rdi
call fcn.14011addc
test eax, eax
jne 0x140001a73
mov eax, dword [rdi + 0x4c]
cmp eax, 0x7fffffff
je 0x140001a63
mov rbx, qword [rdi + 0x50]
mov rsi, qword [rdi + 0x58]
cmp rbx, rsi
je 0x140001a38
mov rcx, qword [rbx + 0x38]
test rcx, rcx
je 0x140001a2f
mov rax, qword [rcx]
call qword [rax + reloc.WS2_32.dll_recv]
add rbx, 0x40
cmp rbx, rsi
jne 0x140001a20
mov rcx, rdi
call fcn.14011ade4
mov rcx, qword [rsp + 0x200]
xor rcx, rsp
call fcn.14011c6a0
mov rbx, qword [rsp + 0x240]
add rsp, 0x210
pop rdi
pop rsi
pop rbp
ret
dec eax
mov dword [rdi + 0x4c], eax
mov ecx, 6
call fcn.14011aac0
int3
mov ecx, 5
call fcn.14011aac0
int3