Function at 0x1401cb020
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.14012b0b0
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.0x1401cb07d
lea r12, [0x140000000]
lea r15d, [rsi + 3]
nop
cdqe
mov ecx, dword [r12 + rax*4 + 0x1cb55c]
add rcx, r12
jmp rcx
mov rbx, qword [rdi + 8]
test rbx, rbx
je 0x1401cb36d
cmp byte [rbx], 0
je 0x1401cb0a4
movzx eax, byte [rbx]
cmp al, 0x3a
je 0x1401cb0a4
cmp al, 0x2f
je 0x1401cb0a4
inc rbx
cmp byte [rbx], 0
jne 0x1401cb091
movsx eax, byte [rbx]
mov dword [rsp + 0x68], eax
cmp eax, 0x3a
je 0x1401cb0b5
cmp eax, 0x2f
jne 0x1401cb0fd
mov byte [rbx], 0
cmp dword [rsp + 0x68], 0x3a
jne 0x1401cb0fd
cmp byte [rbx + 1], 0
lea rax, [rbx + 1]
je 0x1401cb0e2
nop dword [rax]
cmp byte [rax], 0x2f
je 0x1401cb0df
inc rax
cmp byte [rax], 0
jne 0x1401cb0d0
jmp 0x1401cb0e2
mov byte [rax], 0
mov rcx, qword [rdi + 0x10]
test rcx, rcx
je 0x1401cb0f0
call fcn.1401aa120
lea rcx, [rbx + 1]
call fcn.1401c2190
mov qword [rdi + 0x10], rax
cmp qword [rdi + 0x10], 0
je 0x1401cb335
mov dword [rdi], r15d
jmp 0x1401cb309
mov rcx, qword [rdi + 8]
lea rdx, [rdi + 0x1c]
call fcn.14020e6d0
test eax, eax
jle case.default.0x1401cb07d
mov dword [rdi], 3
jmp 0x1401cb309
mov rcx, qword [rdi + 0x10]
test rcx, rcx
je case.default.0x1401cb07d
lea rdx, [rdi + 0x20]
call fcn.14020e840
test eax, eax
jle case.default.0x1401cb07d
mov dword [rdi], 4
jmp 0x1401cb309
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 0x1401cb392
mov dword [rbp + 0x28], eax
mov dword [rdi], 8
jmp 0x1401cb309
cmp dword [rdi + 0x18], 0
je 0x1401cb1eb
mov ecx, dword [rbp + 0x28]
mov edx, 1
call fcn.14020ebc0
test eax, eax
je 0x1401cb401
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 0x1401cb309
call qword [sym.imp.WS2_32.dll_WSAGetLastError]
lea r9, [0x1403c7e98]
mov dword [rsp + 0x20], 0xe2
mov r8d, eax
mov edx, 4
mov ecx, r15d
call fcn.1401bb520
mov rax, qword [rdi + 0x10]
lea r9, [0x1403c7eb0]
mov r8, qword [rdi + 8]
lea rdx, [0x1403c7eb4]
mov ecx, 4
mov qword [rsp + 0x20], rax
call fcn.1401ba990
mov edx, reloc.WS2_32.dll_WSAStartup
mov dword [rsp + 0x20], 0xe5
lea r9, [0x1403c7ec0]
lea ecx, [rdx - 0x53]
lea r8d, [rdx - 6]
call fcn.1401bb520
jmp case.default.0x1401cb07d
mov edx, reloc.WS2_32.dll_ntohs
mov rcx, rbp
call fcn.1401aaf60
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 0x1401cb303
mov ecx, eax
call fcn.1401c41d0
test eax, eax
je 0x1401cb44b
mov edx, ntohs
mov rcx, rbp
call fcn.1401ab920
mov dword [rdi], 7
mov dword [rbp + 0x24], r15d
jmp case.default.0x1401cb07d
mov ecx, dword [rbp + 0x28]
call fcn.14020eab0
mov dword [rsp + 0x68], eax
test eax, eax
jne 0x1401cb4b5
mov dword [rdi], 6
test r14, r14
je 0x1401cb323
mov edx, dword [rdi]
mov r8d, esi
mov rcx, rbp
call r14
mov esi, eax
test eax, eax
je 0x1401cb543
mov eax, dword [rdi]
dec eax
cmp eax, 7
jbe 0x1401cb070
jmp case.default.0x1401cb07d
mov edx, reloc.WS2_32.dll_WSAStartup
mov dword [rsp + 0x20], Ordinal_167
lea r9, [0x1403c7e18]
lea ecx, [rdx - 0x53]
lea r8d, [rdx - 1]
call fcn.1401bb520
mov r8, qword [rdi + 8]
lea rdx, [0x1403c7e30]
mov ecx, r15d
call fcn.1401ba990
jmp case.default.0x1401cb07d
mov edx, reloc.WS2_32.dll_WSAStartup
mov dword [rsp + 0x20], Ordinal_142
lea r9, [0x1403c7e00]
lea ecx, [rdx - 0x53]
lea r8d, [rdx - 3]
call fcn.1401bb520
jmp case.default.0x1401cb07d
call qword [sym.imp.WS2_32.dll_WSAGetLastError]
lea r9, [0x1403c7e38]
mov dword [rsp + 0x20], 0xc8
mov r8d, eax
mov edx, 4
mov ecx, r15d
call fcn.1401bb520
mov rax, qword [rdi + 0x10]
lea r9, [0x1403c7e50]
mov r8, qword [rdi + 8]
lea rdx, [0x1403c7e54]
mov ecx, 4
mov qword [rsp + 0x20], rax
call fcn.1401ba990
mov edx, reloc.WS2_32.dll_WSAStartup
mov dword [rsp + 0x20], Ordinal_208
lea r9, [0x1403c7e60]
lea ecx, [rdx - 0x53]
lea r8d, [rdx + 3]
call fcn.1401bb520
jmp case.default.0x1401cb07d
mov edx, reloc.WS2_32.dll_WSAStartup
mov dword [rsp + 0x20], Ordinal_219
lea r9, [0x1403c7e78]
lea ecx, [rdx - 0x53]
lea r8d, [rdx - 0xb]
call fcn.1401bb520
mov rax, qword [rdi + 0x10]
lea r9, [0x1403c7e5c]
mov r8, qword [rdi + 8]
lea rdx, [0x1403c7e90]
mov ecx, 4
mov qword [rsp + 0x20], rax
call fcn.1401ba990
jmp case.default.0x1401cb07d
call qword [sym.imp.WS2_32.dll_WSAGetLastError]
lea r9, [0x1403c7ed8]
mov dword [rsp + 0x20], 0xf6
mov r8d, eax
mov edx, r15d
mov ecx, r15d
call fcn.1401bb520
mov rax, qword [rdi + 0x10]
lea r9, [0x1403c7ebc]
mov r8, qword [rdi + 8]
lea rdx, [0x1403c7ef0]
mov ecx, 4
mov qword [rsp + 0x20], rax
call fcn.1401ba990
mov edx, reloc.WS2_32.dll_WSAStartup
mov dword [rsp + 0x20], 0xf9
lea r9, [0x1403c7ef8]
lea ecx, [rdx - 0x53]
lea r8d, [rdx - 0xc]
call fcn.1401bb520
jmp case.default.0x1401cb07d
mov edx, reloc.WS2_32.dll_ntohs
mov rcx, rbp
call fcn.1401aaf60
mov r8d, dword [rsp + 0x68]
lea r9, [0x1403c7f10]
mov edx, r15d
mov dword [rsp + 0x20], 0x104
mov ecx, r15d
call fcn.1401bb520
mov rax, qword [rdi + 0x10]
lea r9, [0x1403c7f28]
mov r8, qword [rdi + 8]
lea rdx, [0x1403c7f2c]
mov ecx, 4
mov qword [rsp + 0x20], rax
call fcn.1401ba990
mov edx, reloc.WS2_32.dll_WSAStartup
mov dword [rsp + 0x20], 0x107
lea r9, [0x1403c7f38]
lea ecx, [rdx - 0x53]
lea r8d, [rdx - 5]
call fcn.1401bb520
xor esi, esi
jmp case.default.0x1401cb07d
mov esi, 1
test r14, r14
je 0x1401cb541
mov edx, dword [rdi]
mov r8d, esi
mov rcx, rbp
call r14
jmp 0x1401cb543
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