Function at 0x140133898
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 [0x140191810]
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 0x140133918
lea rdx, str._Winsock_initialization_failed
lea ecx, [r15 + 1]
call fcn.1401330f8
movzx eax, bx
or eax, 0x80070000
test ebx, ebx
cmovle eax, ebx
jmp 0x140133c43
lea r8, [r14 + 0x20]
lea rdx, [rbp - 0x10]
mov rcx, r14
call fcn.1401335b4
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 0x140133985
lea r9, [rsp + 0x48]
lea r8, [rbp - 0x10]
lea rdx, str.GetAddrInfoW_failed_on_server__s_with_error__d
mov ecx, 1
call fcn.140039868
mov eax, dword [rsp + 0x48]
movzx ebx, ax
or ebx, 0x80070000
test eax, eax
cmovle ebx, eax
jmp 0x140133b2f
mov esi, r15d
mov rax, qword [rsp + 0x40]
jmp 0x140133995
inc esi
mov rax, qword [rax + 0x28]
test rax, rax
jne 0x14013398f
movsxd rcx, esi
mov eax, 0x1c
mul rcx
mov rcx, 0xffffffffffffffff
cmovo rax, rcx
mov rcx, rax
call fcn.140021ddc
mov rbx, rax
mov qword [rsp + 0x48], rax
test rax, rax
jne 0x1401339f2
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.140034b64
lea rdx, [0x1401df028]
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 0x140133ada
mov r12, r15
mov r15, rax
movsxd rax, esi
cmp r12, rax
jge 0x140133ab4
cmp dword [rdi + 4], ecx
jne 0x140133a4b
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.140133fe0
mov ecx, 2
lea edx, [rcx + 0x15]
jmp 0x140133a6d
cmp dword [rdi + 4], edx
jne 0x140133a85
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 0x140133a11
xor r15d, r15d
jmp 0x140133ada
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.14001a3f4
lea rdx, [0x1401df028]
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.140033d90
lea rdx, [0x1401df028]
lea rcx, [rbp + 0x10]
call sub.VCRUNTIME140.dll__CxxThrowException
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 0x140133b44
lea rdx, str.CreateSortedAddressPairs_failed
mov ecx, 1
call fcn.14012d340
nop
mov rcx, rbx
call fcn.140021dfc
mov ebx, 0x80004005
xor r8d, r8d
mov dl, 1
lea rcx, [rbp - 0x10]
call fcn.140007a08
mov eax, ebx
jmp 0x140133c43
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 0x140133b9e
cmp word [rdi + 0xa], r15w
jne 0x140133b9e
cmp word [rdi + 0xc], r15w
jne 0x140133b9e
cmp word [rdi + 0xe], r15w
jne 0x140133b9e
cmp word [rdi + 0x10], r15w
jne 0x140133b9e
mov eax, 0xffff
cmp word [rdi + 0x12], ax
jne 0x140133b9e
mov eax, 2
mov word [rsp + 0x70], ax
mov eax, dword [rdi + 0x14]
mov dword [rsp + 0x74], eax
jmp 0x140133bb8
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.140021dfc
nop
xor r8d, r8d
mov dl, 1
lea rcx, [rbp - 0x10]
call fcn.140007a08
xor eax, eax
mov rcx, qword [rbp + 0x540]
xor rcx, rsp
call fcn.140021f10
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