Function at 0x14013682c
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 [0x140198858]
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 0x1401368ac
lea rdx, str._Winsock_initialization_failed
lea ecx, [r15 + 1]
call fcn.14013608c
movzx eax, bx
or eax, 0x80070000
test ebx, ebx
cmovle eax, ebx
jmp 0x140136bd7
lea r8, [r14 + 0x20]
lea rdx, [rbp - 0x10]
mov rcx, r14
call fcn.140136548
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 + 0x50], eax
test eax, eax
je 0x140136919
lea r9, [rsp + 0x50]
lea r8, [rbp - 0x10]
lea rdx, str.GetAddrInfoW_failed_on_server__s_with_error__d
mov ecx, 1
call fcn.140035fc4
mov eax, dword [rsp + 0x50]
movzx ebx, ax
or ebx, 0x80070000
test eax, eax
cmovle ebx, eax
jmp 0x140136ac3
mov esi, r15d
mov rax, qword [rsp + 0x40]
jmp 0x140136929
inc esi
mov rax, qword [rax + 0x28]
test rax, rax
jne 0x140136923
movsxd rcx, esi
mov eax, 0x1c
mul rcx
mov rcx, 0xffffffffffffffff
cmovo rax, rcx
mov rcx, rax
call fcn.140022308
mov rbx, rax
mov qword [rsp + 0x50], rax
test rax, rax
jne 0x140136986
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.14002ee78
lea rdx, [0x1401e5908]
lea rcx, [rbp + 0x10]
call sub.VCRUNTIME140.dll__CxxThrowException
int3
mov r13d, r15d
mov rdi, qword [rsp + 0x40]
mov ecx, 2
lea edx, [rcx + 0x15]
test rdi, rdi
je 0x140136a6e
mov r12, r15
mov r15, rax
movsxd rax, esi
cmp r12, rax
jge 0x140136a48
cmp dword [rdi + 4], ecx
jne 0x1401369df
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.140136f70
mov ecx, 2
lea edx, [rcx + 0x15]
jmp 0x140136a01
cmp dword [rdi + 4], edx
jne 0x140136a19
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 0x1401369a5
xor r15d, r15d
jmp 0x140136a6e
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.140018a20
lea rdx, [0x1401e5908]
lea rcx, [rbp + 0x10]
call sub.VCRUNTIME140.dll__CxxThrowException
int3
lea r8, str.Different_sizes_walking_address_list
mov edx, 0x58
lea rcx, [rbp + 0x10]
call fcn.14002bd0c
lea rdx, [0x1401e5908]
lea rcx, [rbp + 0x10]
call sub.VCRUNTIME140.dll__CxxThrowException
int3
mov qword [rsp + 0x58], r15
mov dword [rsp + 0x48], r15d
lea rax, [rsp + 0x48]
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 0x140136ad8
lea rdx, str.CreateSortedAddressPairs_failed
mov ecx, 1
call fcn.1401302b4
nop
mov rcx, rbx
call fcn.140022300
mov ebx, 0x80004005
xor r8d, r8d
mov dl, 1
lea rcx, [rbp - 0x10]
call fcn.140007eb8
mov eax, ebx
jmp 0x140136bd7
mov rsi, qword [rsp + 0x58]
mov rdi, qword [rsi + 8]
xor edx, edx
lea r8d, [rdx + 0x7e]
lea rcx, [rsp + 0x72]
call sub.VCRUNTIME140.dll_memset
cmp word [rdi + 8], r15w
jne 0x140136b32
cmp word [rdi + 0xa], r15w
jne 0x140136b32
cmp word [rdi + 0xc], r15w
jne 0x140136b32
cmp word [rdi + 0xe], r15w
jne 0x140136b32
cmp word [rdi + 0x10], r15w
jne 0x140136b32
mov eax, 0xffff
cmp word [rdi + 0x12], ax
jne 0x140136b32
mov eax, 2
mov word [rsp + 0x70], ax
mov eax, dword [rdi + 0x14]
mov dword [rsp + 0x74], eax
jmp 0x140136b4c
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.140022300
nop
xor r8d, r8d
mov dl, 1
lea rcx, [rbp - 0x10]
call fcn.140007eb8
xor eax, eax
mov rcx, qword [rbp + 0x540]
xor rcx, rsp
call fcn.140022430
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