Function at 0x1401c6710
Capabilities:
Connect socket
Set socket configuration

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x18], rbp
push rsi
push rdi
push r12
push r14
push r15
mov eax, gethostbyname
call fcn.140126870
sub rsp, rax
mov rax, qword [rdx + 0x38]
xor r14d, r14d
or esi, 0xffffffff
mov rdi, rdx
test rax, rax
mov rbp, rcx
cmovne r14, rax
mov eax, dword [rdx]
dec eax
cmp eax, 7
ja case.default.0x1401c676d
lea r12, [0x140000000]
lea r15d, [rsi + 3]
nop
cdqe
mov ecx, dword [r12 + rax*4 + 0x1c6c4c]
add rcx, r12
jmp rcx
mov rbx, qword [rdi + 8]
test rbx, rbx
je 0x1401c6a5d
cmp byte [rbx], 0
je 0x1401c6794
movzx eax, byte [rbx]
cmp al, 0x3a
je 0x1401c6794
cmp al, 0x2f
je 0x1401c6794
inc rbx
cmp byte [rbx], 0
jne 0x1401c6781
movsx eax, byte [rbx]
mov dword [rsp + 0x68], eax
cmp eax, 0x3a
je 0x1401c67a5
cmp eax, 0x2f
jne 0x1401c67ed
mov byte [rbx], 0
cmp dword [rsp + 0x68], 0x3a
jne 0x1401c67ed
cmp byte [rbx + 1], 0
lea rax, [rbx + 1]
je 0x1401c67d2
nop dword [rax]
cmp byte [rax], 0x2f
je 0x1401c67cf
inc rax
cmp byte [rax], 0
jne 0x1401c67c0
jmp 0x1401c67d2
mov byte [rax], 0
mov rcx, qword [rdi + 0x10]
test rcx, rcx
je 0x1401c67e0
call fcn.1401a58c0
lea rcx, [rbx + 1]
call fcn.1401bd880
mov qword [rdi + 0x10], rax
cmp qword [rdi + 0x10], 0
je 0x1401c6a25
mov dword [rdi], r15d
jmp 0x1401c69f9
mov rcx, qword [rdi + 8]
lea rdx, [rdi + 0x1c]
call fcn.140209d40
test eax, eax
jle case.default.0x1401c676d
mov dword [rdi], 3
jmp 0x1401c69f9
mov rcx, qword [rdi + 0x10]
test rcx, rcx
je case.default.0x1401c676d
lea rdx, [rdi + 0x20]
call fcn.140209eb0
test eax, eax
jle case.default.0x1401c676d
mov dword [rdi], 4
jmp 0x1401c69f9
xor eax, eax
mov qword [rdi + 0x24], rax
mov qword [rdi + 0x2c], rax
movzx ecx, word [rdi + 0x20]
mov word [rdi + 0x24], r15w
call qword [sym.imp.WS2_32.dll_htons]
mov word [rdi + 0x26], ax
movzx eax, byte [rdi + 0x1d]
movzx ecx, byte [rdi + 0x1c]
shl ecx, 8
or ecx, eax
movzx eax, byte [rdi + 0x1e]
shl ecx, 8
or ecx, eax
movzx eax, byte [rdi + 0x1f]
shl ecx, 8
or ecx, eax
call qword [sym.imp.WS2_32.dll_htonl]
mov edx, 1
mov dword [rdi], 4
mov ecx, r15d
mov dword [rdi + 0x28], eax
lea r8d, [rdx + 5]
call qword [sym.imp.WS2_32.dll_socket]
mov rsi, rax
cmp eax, 0xffffffff
je 0x1401c6a82
mov dword [rbp + 0x28], eax
mov dword [rdi], 8
jmp 0x1401c69f9
cmp dword [rdi + 0x18], 0
je 0x1401c68db
mov ecx, dword [rbp + 0x28]
mov edx, 1
call fcn.14020a230
test eax, eax
je 0x1401c6af1
mov dword [rdi], 5
lea r9, [rsp + 0x68]
movsxd rcx, dword [rbp + 0x28]
mov edx, 0xffff
mov r8d, 8
mov dword [rsp + 0x68], 1
mov dword [rsp + 0x20], 4
call qword [sym.imp.WS2_32.dll_setsockopt]
mov dword [rsp + 0x68], eax
test eax, eax
jns 0x1401c69f9
call qword [sym.imp.WS2_32.dll_WSAGetLastError]
lea r9, [0x1403bfe98]
mov dword [rsp + 0x20], 0xe2
mov r8d, eax
mov edx, 4
mov ecx, r15d
call fcn.1401b6c10
mov rax, qword [rdi + 0x10]
lea r9, [0x1403bfeb0]
mov r8, qword [rdi + 8]
lea rdx, [0x1403bfeb4]
mov ecx, 4
mov qword [rsp + 0x20], rax
call fcn.1401b6080
mov edx, reloc.WS2_32.dll_WSAStartup
mov dword [rsp + 0x20], 0xe5
lea r9, [0x1403bfec0]
lea ecx, [rdx - 0x53]
lea r8d, [rdx - 6]
call fcn.1401b6c10
jmp case.default.0x1401c676d
mov edx, reloc.WS2_32.dll_ntohs
mov rcx, rbp
call fcn.1401a6700
movsxd rcx, dword [rbp + 0x28]
lea rdx, [rdi + 0x24]
mov r8d, reloc.WS2_32.dll_recv
call qword [sym.imp.WS2_32.dll_connect]
mov dword [rbp + 0x24], 0
mov esi, eax
test eax, eax
jns 0x1401c69f3
mov ecx, eax
call fcn.1401bf8c0
test eax, eax
je 0x1401c6b3b
mov edx, ntohs
mov rcx, rbp
call fcn.1401a70d0
mov dword [rdi], 7
mov dword [rbp + 0x24], r15d
jmp case.default.0x1401c676d
mov ecx, dword [rbp + 0x28]
call fcn.14020a120
mov dword [rsp + 0x68], eax
test eax, eax
jne 0x1401c6ba5
mov dword [rdi], 6
test r14, r14
je 0x1401c6a13
mov edx, dword [rdi]
mov r8d, esi
mov rcx, rbp
call r14
mov esi, eax
test eax, eax
je 0x1401c6c33
mov eax, dword [rdi]
dec eax
cmp eax, 7
jbe 0x1401c6760
jmp case.default.0x1401c676d
mov edx, reloc.WS2_32.dll_WSAStartup
mov dword [rsp + 0x20], Ordinal_167
lea r9, [0x1403bfe18]
lea ecx, [rdx - 0x53]
lea r8d, [rdx - 1]
call fcn.1401b6c10
mov r8, qword [rdi + 8]
lea rdx, [0x1403bfe30]
mov ecx, r15d
call fcn.1401b6080
jmp case.default.0x1401c676d
mov edx, reloc.WS2_32.dll_WSAStartup
mov dword [rsp + 0x20], Ordinal_145
lea r9, [0x1403bfe00]
lea ecx, [rdx - 0x53]
lea r8d, [rdx - 3]
call fcn.1401b6c10
jmp case.default.0x1401c676d
call qword [sym.imp.WS2_32.dll_WSAGetLastError]
lea r9, [0x1403bfe38]
mov dword [rsp + 0x20], 0xc8
mov r8d, eax
mov edx, 4
mov ecx, r15d
call fcn.1401b6c10
mov rax, qword [rdi + 0x10]
lea r9, [0x1403bfe50]
mov r8, qword [rdi + 8]
lea rdx, [0x1403bfe54]
mov ecx, 4
mov qword [rsp + 0x20], rax
call fcn.1401b6080
mov edx, reloc.WS2_32.dll_WSAStartup
mov dword [rsp + 0x20], Ordinal_208
lea r9, [0x1403bfe60]
lea ecx, [rdx - 0x53]
lea r8d, [rdx + 3]
call fcn.1401b6c10
jmp case.default.0x1401c676d
mov edx, reloc.WS2_32.dll_WSAStartup
mov dword [rsp + 0x20], Ordinal_216
lea r9, [0x1403bfe78]
lea ecx, [rdx - 0x53]
lea r8d, [rdx - 0xb]
call fcn.1401b6c10
mov rax, qword [rdi + 0x10]
lea r9, [0x1403bfe5c]
mov r8, qword [rdi + 8]
lea rdx, [0x1403bfe90]
mov ecx, 4
mov qword [rsp + 0x20], rax
call fcn.1401b6080
jmp case.default.0x1401c676d
call qword [sym.imp.WS2_32.dll_WSAGetLastError]
lea r9, [0x1403bfed8]
mov dword [rsp + 0x20], 0xf6
mov r8d, eax
mov edx, r15d
mov ecx, r15d
call fcn.1401b6c10
mov rax, qword [rdi + 0x10]
lea r9, [0x1403bfebc]
mov r8, qword [rdi + 8]
lea rdx, [0x1403bfef0]
mov ecx, 4
mov qword [rsp + 0x20], rax
call fcn.1401b6080
mov edx, reloc.WS2_32.dll_WSAStartup
mov dword [rsp + 0x20], 0xf9
lea r9, [0x1403bfef8]
lea ecx, [rdx - 0x53]
lea r8d, [rdx - 0xc]
call fcn.1401b6c10
jmp case.default.0x1401c676d
mov edx, reloc.WS2_32.dll_ntohs
mov rcx, rbp
call fcn.1401a6700
mov r8d, dword [rsp + 0x68]
lea r9, [0x1403bff10]
mov edx, r15d
mov dword [rsp + 0x20], 0x104
mov ecx, r15d
call fcn.1401b6c10
mov rax, qword [rdi + 0x10]
lea r9, [0x1403bff28]
mov r8, qword [rdi + 8]
lea rdx, [0x1403bff2c]
mov ecx, 4
mov qword [rsp + 0x20], rax
call fcn.1401b6080
mov edx, reloc.WS2_32.dll_WSAStartup
mov dword [rsp + 0x20], 0x107
lea r9, [0x1403bff38]
lea ecx, [rdx - 0x53]
lea r8d, [rdx - 5]
call fcn.1401b6c10
xor esi, esi
jmp case.default.0x1401c676d
mov esi, 1
test r14, r14
je 0x1401c6c31
mov edx, dword [rdi]
mov r8d, esi
mov rcx, rbp
call r14
jmp 0x1401c6c33
mov eax, esi
mov rbx, qword [rsp + 0x60]
mov rbp, qword [rsp + 0x70]
add rsp, 0x30
pop r15
pop r14
pop r12
pop rdi
pop rsi
ret