Function at 0x4a062f
Capabilities:
Get local ipv4 addresses
Get socket information

Disassembly:
push r15
push r14
push r13
push r12
push rsi
push rdi
push rbp
push rbx
sub rsp, 0xc8
mov r14, rdx
mov rsi, rcx
mov ecx, 0x18
mov edx, 8
call fcn.0044b333
mov rdi, rax
mov eax, 1
mov qword [rdi], rax
mov qword [rdi + 8], rax
mov byte [rdi + 0x10], 0
mov rcx, r14
call fcn.004edc6f
xorps xmm0, xmm0
lea rdx, [rsp + 0x40]
movaps xmmword [rdx + 0x70], xmm0
movaps xmmword [rdx + 0x60], xmm0
movaps xmmword [rdx + 0x50], xmm0
movaps xmmword [rdx + 0x40], xmm0
movaps xmmword [rdx + 0x30], xmm0
movaps xmmword [rdx + 0x20], xmm0
movaps xmmword [rdx + 0x10], xmm0
movaps xmmword [rdx], xmm0
lea r8, [rsp + 0x24]
mov dword [r8], pe_nt_image_headers64
mov rcx, qword [rax + 8]
call sub.ws2_32.dll_getpeername
cmp eax, 0xffffffff
je 0x4a06eb
mov eax, dword [rsp + 0x24]
movzx ecx, word [rsp + 0x40]
cmp ecx, 0x17
je 0x4a0700
cmp ecx, 2
jne 0x4a0743
cmp eax, 0x10
jb 0x4a094d
mov eax, dword [rsp + 0x44]
movzx ecx, word [rsp + 0x42]
rol cx, 8
movzx r13d, cx
shl r13, 0x20
or r13, rax
xor ebp, ebp
jmp 0x4a074e
call sub.ws2_32.dll_WSAGetLastError
mov ebx, eax
shl rbx, 0x20
or rbx, 2
mov bp, 2
jmp 0x4a074e
cmp eax, 0x1c
jb 0x4a0938
mov rbx, qword [rsp + 0x4c]
mov eax, dword [rsp + 0x54]
mov dword [rsp + 0x3c], eax
movzx eax, word [rsp + 0x42]
rol ax, 8
mov word [rsp + 0x2a], ax
mov eax, dword [rsp + 0x44]
mov dword [rsp + 0x38], eax
mov eax, dword [rsp + 0x58]
mov dword [rsp + 0x34], eax
mov r13d, dword [rsp + 0x48]
shl r13, 0x10
mov bp, 1
jmp 0x4a074e
mov bp, 2
lea rbx, str.invalid_argumentlibrary_std_src_sys_common_net.rsinvalid_port_value
mov rcx, r14
call fcn.004edc6f
xorps xmm0, xmm0
lea rdx, [rsp + 0x40]
movaps xmmword [rdx + 0x70], xmm0
movaps xmmword [rdx + 0x60], xmm0
movaps xmmword [rdx + 0x50], xmm0
movaps xmmword [rdx + 0x40], xmm0
movaps xmmword [rdx + 0x30], xmm0
movaps xmmword [rdx + 0x20], xmm0
movaps xmmword [rdx + 0x10], xmm0
movaps xmmword [rdx], xmm0
lea r8, [rsp + 0x24]
mov dword [r8], pe_nt_image_headers64
mov rcx, qword [rax + 8]
call sub.ws2_32.dll_getsockname
cmp eax, 0xffffffff
je 0x4a07e2
mov eax, dword [rsp + 0x24]
movzx ecx, word [rsp + 0x40]
cmp ecx, 2
je 0x4a07f7
cmp ecx, 0x17
jne 0x4a08f4
cmp eax, 0x1c
jb 0x4a0938
mov r14, qword [rsp + 0x4c]
mov eax, dword [rsp + 0x54]
movzx ecx, word [rsp + 0x42]
rol cx, 8
mov edx, dword [rsp + 0x44]
mov r8d, dword [rsp + 0x58]
mov r12d, dword [rsp + 0x48]
shl r12, 0x10
mov r15w, 1
jmp 0x4a081b
call sub.ws2_32.dll_WSAGetLastError
mov r14d, eax
shl r14, 0x20
or r14, 2
jmp 0x4a08fb
cmp eax, 0x10
jb 0x4a094d
mov eax, dword [rsp + 0x44]
movzx ecx, word [rsp + 0x42]
rol cx, 8
movzx r12d, cx
shl r12, 0x20
or r12, rax
xor r15d, r15d
cmp bp, 2
je 0x4a0900
cmp r15w, 2
je 0x4a0900
and qword [rsp + 0x40], 0
mov qword [rsp + 0x50], rdi
mov word [rsp + 0x58], 1
mov word [rsp + 0x28], cx
mov ecx, 0x40
mov dword [rsp + 0x30], edx
mov edx, 4
mov edi, eax
mov dword [rsp + 0x2c], r8d
call fcn.0044b333
mov word [rax], bp
mov rcx, r13
shr rcx, 0x20
mov word [rax + 6], cx
mov dword [rax + 2], r13d
mov qword [rax + 8], rbx
mov ecx, dword [rsp + 0x3c]
mov dword [rax + 0x10], ecx
mov ecx, dword [rsp + 0x38]
mov dword [rax + 0x14], ecx
mov ecx, dword [rsp + 0x34]
mov dword [rax + 0x18], ecx
movzx ecx, word [rsp + 0x2a]
mov word [rax + 0x1c], cx
mov word [rax + 0x20], r15w
mov rcx, r12
shr rcx, 0x20
mov word [rax + 0x26], cx
mov dword [rax + 0x22], r12d
mov qword [rax + 0x28], r14
mov dword [rax + 0x30], edi
mov ecx, dword [rsp + 0x30]
mov dword [rax + 0x34], ecx
mov ecx, dword [rsp + 0x2c]
mov dword [rax + 0x38], ecx
movzx ecx, word [rsp + 0x28]
mov word [rax + 0x3c], cx
mov qword [rsp + 0x40], rax
lea rax, [0x0051ab68]
mov qword [rsp + 0x48], rax
mov rax, qword [rsp + 0x40]
mov qword [rsi], rax
mov rax, qword [rsp + 0x48]
mov qword [rsi + 8], rax
movups xmm0, xmmword [rsp + 0x50]
movups xmmword [rsi + 0x10], xmm0
jmp 0x4a090e
lea r14, str.invalid_argumentlibrary_std_src_sys_common_net.rsinvalid_port_value
mov r15w, 2
and qword [rsi], 0
mov qword [rsi + 0x10], rdi
mov word [rsi + 0x18], 1
mov ecx, ebp
mov rdx, rbx
call fcn.00451ad8
mov ecx, r15d
mov rdx, r14
call fcn.00451ad8
nop
add rsp, 0xc8
pop rbx
pop rbp
pop rdi
pop rsi
pop r12
pop r13
pop r14
pop r15
ret
lea rcx, str.assertion_failed:_len_as_usize___mem::size_of::_c::sockaddr_in6___
lea r8, [0x005369e8]
mov edx, 0x43
jmp 0x4a0960
lea rcx, str.assertion_failed:_len_as_usize___mem::size_of::_c::sockaddr_in___
lea r8, [0x00536a48]
mov edx, 0x42
call fcn.0042fe50
ud2