Function at 0x1400cc150
Capabilities:
Resolve dns
Set socket configuration

Disassembly:
mov qword [rsp + 0x18], rbx
push rbp
push rsi
push rdi
push r14
push r15
lea rbp, [rsp - 0x17]
sub rsp, 0xc0
mov rax, qword [0x140330440]
xor rax, rsp
mov qword [rbp + 7], rax
mov rsi, qword [rbp + 0x77]
mov qword [rbp - 0x79], rsi
xor r15d, r15d
mov ebx, r15d
xorps xmm0, xmm0
movdqu xmmword [rbp - 0x31], xmm0
xorps xmm1, xmm1
movdqu xmmword [rbp - 0x21], xmm1
mov qword [rbp - 0x39], 1
cmp qword [rdx + 0x10], r15
je 0x1400cc1b9
mov rbx, rdx
cmp qword [rdx + 0x18], 0xf
jbe 0x1400cc1af
mov rbx, qword [rdx]
mov qword [rbp - 0x41], 4
jmp 0x1400cc1d4
cmp qword [rcx + 0x10], rbx
je 0x1400cc1cc
mov rbx, rcx
cmp qword [rcx + 0x18], 0xf
jbe 0x1400cc1cc
mov rbx, qword [rcx]
mov dword [rbp - 0x3d], r9d
mov dword [rbp - 0x41], r15d
lea r9, [rbp + 4]
test r8d, r8d
jns 0x1400cc220
neg r8d
dec r9
mov eax, 0xcccccccd
mul r8d
shr edx, 3
movzx eax, dl
shl al, 2
lea ecx, [rax + rdx]
add cl, cl
sub r8b, cl
add r8b, 0x30
mov byte [r9], r8b
mov r8d, edx
test edx, edx
jne 0x1400cc1e0
dec r9
mov byte [r9], reloc.WLDAP32.dll_Ordinal_45
jmp 0x1400cc24a
dec r9
mov eax, 0xcccccccd
mul r8d
shr edx, 3
movzx eax, dl
shl al, 2
lea ecx, [rax + rdx]
add cl, cl
sub r8b, cl
add r8b, 0x30
mov byte [r9], r8b
mov r8d, edx
test edx, edx
jne 0x1400cc220
lea r8, [rbp + 4]
mov rdx, r9
lea rcx, [rbp - 0x61]
call fcn.14005dd70
nop
lea rdx, [rbp - 0x61]
cmp qword [rbp - 0x49], 0xf
cmova rdx, qword [rbp - 0x61]
lea r9, [rbp - 0x71]
lea r8, [rbp - 0x41]
mov rcx, rbx
call qword [sym.imp.WS2_32.dll_getaddrinfo]
test eax, eax
jne 0x1400cc398
mov rbx, qword [rbp - 0x71]
test rbx, rbx
je 0x1400cc38e
movzx r14d, byte [rbp + 0x6f]
nop dword [rax]
nop dword [rax + rax]
mov dword [rsp + 0x28], 0x81
mov dword [rsp + 0x20], r15d
xor r9d, r9d
mov r8d, dword [rbx + 0xc]
mov edx, dword [rbx + 8]
mov ecx, dword [rbx + 4]
call qword [sym.imp.WS2_32.dll_WSASocketW]
mov rdi, rax
cmp rax, 0xffffffffffffffff
jne 0x1400cc2e6
mov r8d, dword [rbx + 0xc]
mov edx, dword [rbx + 8]
mov ecx, dword [rbx + 4]
call qword [sym.imp.WS2_32.dll_socket]
mov rdi, rax
cmp rax, 0xffffffffffffffff
je 0x1400cc37d
test r14b, r14b
je 0x1400cc310
mov dword [rbp - 0x69], 1
mov dword [rsp + 0x20], 4
lea r9, [rbp - 0x69]
mov edx, 6
lea r8d, [rdx - 5]
mov rcx, rdi
call qword [sym.imp.WS2_32.dll_setsockopt]
mov rcx, qword [rsi + 0x38]
test rcx, rcx
je 0x1400cc327
mov qword [rbp - 0x69], rdi
mov rax, qword [rcx]
lea rdx, [rbp - 0x69]
call qword [rax + reloc.WS2_32.dll_recv]
cmp dword [rbx + 4], 0x17
jne 0x1400cc34f
mov dword [rbp - 0x69], r15d
mov dword [rsp + 0x20], 4
lea r9, [rbp - 0x69]
mov edx, reloc.WLDAP32.dll_Ordinal_41
lea r8d, [rdx - 0xe]
mov rcx, rdi
call qword [sym.imp.WS2_32.dll_setsockopt]
mov r8d, dword [rbx + 0x10]
mov rdx, qword [rbx + 0x20]
mov rcx, rdi
call qword [sym.imp.WS2_32.dll_bind]
test eax, eax
jne 0x1400cc374
lea edx, [rax + 5]
mov rcx, rdi
call qword [sym.imp.WS2_32.dll_listen]
test eax, eax
je 0x1400cc3e5
mov rcx, rdi
call qword [sym.imp.WS2_32.dll_closesocket]
mov rbx, qword [rbx + 0x28]
test rbx, rbx
jne 0x1400cc2a0
mov rbx, qword [rbp - 0x71]
mov rcx, rbx
call qword [sym.imp.WS2_32.dll_freeaddrinfo]
nop
lea rcx, [rbp - 0x61]
call fcn.14005d600
nop
mov rcx, qword [rsi + 0x38]
test rcx, rcx
je 0x1400cc3bb
cmp rcx, rsi
mov rax, qword [rcx]
setne dl
call qword [rax + reloc.WLDAP32.dll_Ordinal_32]
mov qword [rsi + 0x38], r15
mov rax, 0xffffffffffffffff
mov rcx, qword [rbp + 7]
xor rcx, rsp
call fcn.140264720
mov rbx, qword [rsp + 0x100]
add rsp, 0xc0
pop r15
pop r14
pop rdi
pop rsi
pop rbp
ret
mov rcx, qword [rbp - 0x71]
call qword [sym.imp.WS2_32.dll_freeaddrinfo]
nop
lea rcx, [rbp - 0x61]
call fcn.14005d600
nop
mov rcx, qword [rsi + 0x38]
test rcx, rcx
je 0x1400cc413
mov rax, qword [rcx]
cmp rcx, rsi
setne dl
call qword [rax + reloc.WLDAP32.dll_Ordinal_32]
mov qword [rsi + 0x38], r15
mov rax, rdi
jmp 0x1400cc3c2