Function at 0x14000cc20
Capabilities:
Initialize winsock library
Resolve dns

Disassembly:
mov qword [rsp + 0x18], rbx
mov qword [rsp + 0x20], rsi
push rbp
push rdi
push r14
lea rbp, [rsp - 0x180]
sub rsp, 0x280
mov rax, qword [0x1400c3040]
xor rax, rsp
mov qword [rbp + 0x170], rax
mov rsi, rdx
mov rbx, rcx
mov qword [rsp + 0x58], rcx
xor r14d, r14d
mov qword [rsp + 0x50], r14
mov dword [rsp + 0x60], 0x2e
mov ecx, 0x202
lea rdx, [rbp - 0x60]
call qword [sym.imp.WS2_32.dll_WSAStartup]
test eax, eax
je 0x14000cccc
mov edx, eax
lea rcx, str.WSAStartup_failed:__d_n
call fcn.1400014f0
nop
mov rdx, qword [rbx + 0x18]
cmp rdx, 0xf
jbe 0x14000ccc5
inc rdx
cmp rdx, 0x1000
mov rcx, qword [rbx]
jb 0x14000ccc0
add rdx, 0x27
mov r8, qword [rcx - 8]
sub rcx, r8
lea rax, [rcx - 8]
cmp rax, 0x1f
ja 0x14000cf03
mov rcx, r8
call fcn.1400828f0
xor al, al
jmp 0x14000cecd
mov qword [rsp + 0x68], r14
xorps xmm0, xmm0
movdqu xmmword [rsp + 0x78], xmm0
xorps xmm1, xmm1
movdqu xmmword [rbp - 0x78], xmm1
mov dword [rsp + 0x70], 1
mov dword [rsp + 0x74], 6
xor edx, edx
lea rcx, [rsp + 0x30]
call fcn.1400139f0
lea rdx, [rsp + 0x30]
cmp qword [rsp + 0x48], 0xf
cmova rdx, qword [rsp + 0x30]
mov rcx, rbx
cmp qword [rbx + 0x18], 0xf
jbe 0x14000cd1c
mov rcx, qword [rbx]
lea r9, [rsp + 0x50]
lea r8, [rsp + 0x68]
call qword [sym.imp.WS2_32.dll_getaddrinfo]
mov edi, eax
mov rdx, qword [rsp + 0x48]
cmp rdx, 0xf
jbe 0x14000cd6e
inc rdx
mov rcx, qword [rsp + 0x30]
mov rax, rcx
cmp rdx, 0x1000
jb 0x14000cd69
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x14000cd69
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.1400828f0
test edi, edi
je 0x14000cd8b
mov edx, edi
lea rcx, str.getaddrinfo_failed_with_error:__d_n
call fcn.1400014f0
call qword [sym.imp.WS2_32.dll_WSACleanup]
jmp 0x14000cc8b
mov rdi, qword [rsp + 0x50]
test rdi, rdi
je 0x14000ce85
nop dword [rax]
mov edx, dword [rdi + 4]
test edx, edx
je 0x14000ce67
cmp edx, 2
je 0x14000ce3c
cmp edx, 0x11
je 0x14000ce33
cmp edx, 0x17
je 0x14000cdcf
lea rcx, str.Other__ld_n
call fcn.1400014f0
jmp 0x14000ce73
lea rcx, str.AF_INET6__IPv6__n
call fcn.1400014f0
mov rcx, qword [rdi + 0x20]
mov dword [rsp + 0x60], 0x2e
lea rax, [rsp + 0x60]
mov qword [rsp + 0x20], rax
lea r9, [rbp + 0x140]
xor r8d, r8d
mov edx, dword [rdi + 0x10]
call qword [sym.imp.WS2_32.dll_WSAAddressToStringA]
test eax, eax
je 0x14000ce1e
call qword [sym.imp.WS2_32.dll_WSAGetLastError]
mov edx, eax
lea rcx, str.WSAAddressToString_failed_with__u_n
call fcn.1400014f0
jmp 0x14000ce73
lea rdx, [rbp + 0x140]
lea rcx, str._tIPv6_address__s_n
call fcn.1400014f0
jmp 0x14000ce73
lea rcx, str.AF_NETBIOS__NetBIOS__n
jmp 0x14000ce6e
mov rcx, qword [rdi + 0x20]
mov ecx, dword [rcx + 4]
call qword [sym.imp.WS2_32.dll_inet_ntoa]
mov r8, 0xffffffffffffffff
inc r8
cmp byte [rax + r8], 0
jne 0x14000ce50
mov rdx, rax
mov rcx, rsi
call fcn.140008c50
jmp 0x14000ce73
lea rcx, str.Unspecified_n
call fcn.1400014f0
mov rdi, qword [rdi + 0x28]
test rdi, rdi
jne 0x14000cda0
mov rdi, qword [rsp + 0x50]
mov rcx, rdi
call qword [sym.imp.WS2_32.dll_freeaddrinfo]
call qword [sym.imp.WS2_32.dll_WSACleanup]
nop
mov rdx, qword [rbx + 0x18]
cmp rdx, 0xf
jbe 0x14000cecb
inc rdx
mov rcx, qword [rbx]
cmp rdx, 0x1000
jb 0x14000cec6
add rdx, 0x27
mov r8, qword [rcx - 8]
sub rcx, r8
lea rax, [rcx - 8]
cmp rax, 0x1f
ja 0x14000cf03
mov rcx, r8
call fcn.1400828f0
mov al, 1
mov byte [rbx], 0
mov qword [rbx + 0x18], 0xf
mov qword [rbx + 0x10], r14
mov rcx, qword [rbp + 0x170]
xor rcx, rsp
call fcn.1400828d0
lea r11, [rsp + 0x280]
mov rbx, qword [r11 + 0x30]
mov rsi, qword [r11 + 0x38]
mov rsp, r11
pop r14
pop rdi
pop rbp
ret
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3