Function at 0x1401d1b14
Capabilities:
Initialize winsock library
Resolve dns

Disassembly:
mov rax, rsp
push rbp
push r12
push r13
push r14
push r15
lea rbp, [rax - 0x578]
sub rsp, 0x650
mov qword [rsp + 0x60], 0xfffffffffffffffe
mov qword [rax + 0x10], rbx
mov qword [rax + 0x18], rsi
mov qword [rax + 0x20], rdi
mov rax, qword [0x140334860]
xor rax, rsp
mov qword [rbp + 0x540], rax
mov r14, rcx
mov ecx, 0x203
lea rdx, [rbp + 0x3a0]
call qword [sym.imp.WS2_32.dll_WSAStartup]
mov ebx, eax
xor r15d, r15d
test eax, eax
je 0x1401d1b94
lea rdx, str._Winsock_initialization_failed
lea ecx, [r15 + 1]
call fcn.1401d12a8
movzx eax, bx
or eax, 0x80070000
test ebx, ebx
cmovle eax, ebx
jmp 0x1401d1ebf
lea r8, [r14 + 0x20]
lea rdx, [rbp - 0x10]
mov rcx, r14
call fcn.1401d1830
nop
mov qword [rsp + 0x40], r15
lea rcx, [rbp - 0x10]
cmp qword [rbp + 8], 8
cmovae rcx, qword [rbp - 0x10]
lea r9, [rsp + 0x40]
xor r8d, r8d
xor edx, edx
call qword [sym.imp.WS2_32.dll_GetAddrInfoW]
mov dword [rsp + 0x48], eax
test eax, eax
je 0x1401d1c01
lea r9, [rsp + 0x48]
lea r8, [rbp - 0x10]
lea rdx, str.GetAddrInfoW_failed_on_server__s_with_error__d
mov ecx, 1
call fcn.14019edac
mov eax, dword [rsp + 0x48]
movzx ebx, ax
or ebx, 0x80070000
test eax, eax
cmovle ebx, eax
jmp 0x1401d1dab
mov esi, r15d
mov rax, qword [rsp + 0x40]
jmp 0x1401d1c11
inc esi
mov rax, qword [rax + 0x28]
test rax, rax
jne 0x1401d1c0b
movsxd rcx, esi
mov eax, 0x1c
mul rcx
mov rcx, 0xffffffffffffffff
cmovo rax, rcx
mov rcx, rax
call fcn.14000e5ac
mov rbx, rax
mov qword [rsp + 0x48], rax
test rax, rax
jne 0x1401d1c6e
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov r8d, eax
lea r9, str.Memory_allocation_for_socket_list_failed
lea edx, [rbx + 0x58]
lea rcx, [rbp + 0x10]
call fcn.1400e5394
lea rdx, [0x140294a58]
lea rcx, [rbp + 0x10]
call fcn.1401377ec
int3
mov r13d, r15d
mov rdi, qword [rsp + 0x40]
mov ecx, 2
lea edx, [rcx + 0x15]
test rdi, rdi
je 0x1401d1d56
mov r12, r15
mov r15, rax
movsxd rax, esi
cmp r12, rax
jge 0x1401d1d30
cmp dword [rdi + 4], ecx
jne 0x1401d1cc7
mov r8, qword [rdi + 0x20]
movsxd rax, r13d
lea rdx, [r8 + 4]
imul rcx, rax, 0x1c
add rcx, rbx
movzx r9d, word [r8 + 2]
xor r8d, r8d
call fcn.1401d2220
mov ecx, 2
lea edx, [rcx + 0x15]
jmp 0x1401d1ce9
cmp dword [rdi + 4], edx
jne 0x1401d1d01
mov rax, qword [rdi + 0x20]
movups xmm0, xmmword [rax]
movups xmmword [r15], xmm0
movsd xmm1, qword [rax + 0x10]
movsd qword [r15 + 0x10], xmm1
mov eax, dword [rax + 0x18]
mov dword [r15 + 0x18], eax
inc r13d
inc r12
add r15, 0x1c
mov rdi, qword [rdi + 0x28]
test rdi, rdi
jne 0x1401d1c8d
xor r15d, r15d
jmp 0x1401d1d56
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov r8d, eax
lea r9, str.Unsupported_IP_Family
mov edx, 0x58
lea rcx, [rbp + 0x10]
call fcn.1401c0340
lea rdx, [0x140294a58]
lea rcx, [rbp + 0x10]
call fcn.1401377ec
int3
lea r8, str.Different_sizes_walking_address_list
mov edx, 0x58
lea rcx, [rbp + 0x10]
call fcn.140175b5c
lea rdx, [0x140294a58]
lea rcx, [rbp + 0x10]
call fcn.1401377ec
int3
mov qword [rsp + 0x58], r15
mov dword [rsp + 0x50], r15d
lea rax, [rsp + 0x50]
mov qword [rsp + 0x30], rax
lea rax, [rsp + 0x58]
mov qword [rsp + 0x28], rax
mov dword [rsp + 0x20], r15d
mov r9d, esi
mov r8, rbx
xor edx, edx
xor ecx, ecx
call sub.IPHLPAPI.DLL_CreateSortedAddressPairs
test eax, eax
je 0x1401d1dc0
lea rdx, str.CreateSortedAddressPairs_failed
mov ecx, 1
call fcn.1401d1300
nop
mov rcx, rbx
call fcn.1401d95fc
mov ebx, 0x80004005
xor r8d, r8d
mov dl, 1
lea rcx, [rbp - 0x10]
call fcn.14000b190
mov eax, ebx
jmp 0x1401d1ebf
mov rsi, qword [rsp + 0x58]
mov rdi, qword [rsi + 8]
xor edx, edx
lea r8d, [rdx + 0x7e]
lea rcx, [rsp + 0x72]
call fcn.1401380c0
cmp word [rdi + 8], r15w
jne 0x1401d1e1a
cmp word [rdi + 0xa], r15w
jne 0x1401d1e1a
cmp word [rdi + 0xc], r15w
jne 0x1401d1e1a
cmp word [rdi + 0xe], r15w
jne 0x1401d1e1a
cmp word [rdi + 0x10], r15w
jne 0x1401d1e1a
mov eax, 0xffff
cmp word [rdi + 0x12], ax
jne 0x1401d1e1a
mov eax, 2
mov word [rsp + 0x70], ax
mov eax, dword [rdi + 0x14]
mov dword [rsp + 0x74], eax
jmp 0x1401d1e34
mov eax, 0x17
mov word [rsp + 0x70], ax
movups xmm0, xmmword [rdi + 8]
movdqu xmmword [rsp + 0x78], xmm0
mov eax, dword [rdi + 0x18]
mov dword [rbp - 0x78], eax
movzx eax, word [rdi + 2]
mov word [rsp + 0x72], ax
movaps xmm0, xmmword [rsp + 0x70]
movups xmmword [r14 + 0x40], xmm0
movaps xmm1, xmmword [rbp - 0x80]
movups xmmword [r14 + 0x50], xmm1
movaps xmm0, xmmword [rbp - 0x70]
movups xmmword [r14 + 0x60], xmm0
movaps xmm1, xmmword [rbp - 0x60]
movups xmmword [r14 + 0x70], xmm1
movaps xmm0, xmmword [rbp - 0x50]
movups xmmword [r14 + 0x80], xmm0
movaps xmm1, xmmword [rbp - 0x40]
movups xmmword [r14 + 0x90], xmm1
movaps xmm0, xmmword [rbp - 0x30]
movups xmmword [r14 + 0xa0], xmm0
movaps xmm1, xmmword [rbp - 0x20]
movups xmmword [r14 + 0xb0], xmm1
mov rcx, rsi
call sub.IPHLPAPI.DLL_FreeMibTable
mov rcx, qword [rsp + 0x40]
call qword [sym.imp.WS2_32.dll_FreeAddrInfoW]
nop
mov rcx, rbx
call fcn.1401d95fc
nop
xor r8d, r8d
mov dl, 1
lea rcx, [rbp - 0x10]
call fcn.14000b190
xor eax, eax
mov rcx, qword [rbp + 0x540]
xor rcx, rsp
call fcn.140135130
lea r11, [rsp + 0x650]
mov rbx, qword [r11 + 0x38]
mov rsi, qword [r11 + 0x40]
mov rdi, qword [r11 + 0x48]
mov rsp, r11
pop r15
pop r14
pop r13
pop r12
pop rbp
ret