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

Disassembly:
mov r11, rsp
push rbp
push rsi
push r14
push r15
lea rbp, [r11 - 0x128]
sub rsp, 0x208
mov rax, qword [0x180417240]
xor rax, rsp
mov qword [rbp + 0xe0], rax
xor eax, eax
mov qword [r11 - 0x28], rbx
xorps xmm0, xmm0
mov qword [r11 - 0x30], rdi
mov r14, rdx
mov qword [r11 - 0x38], r12
mov r12, r8
mov rsi, rcx
lea r15d, [rax - 1]
mov qword [rbp - 0x30], rax
movups xmmword [rbp - 0x50], xmm0
mov dword [rbp - 0x28], eax
movups xmmword [rbp - 0x40], xmm0
mov word [rbp - 0x24], ax
cmp byte [rdx + 0x337], al
jne 0x18016d513
cmp byte [rdx + 0x791], 3
jne 0x18016d3da
cmp byte [rdx + 0x348], al
jne 0x18016d513
lea r8, [rsp + 0x20]
mov dword [rsp + 0x20], 0x80
lea rdx, [rsp + 0x30]
mov rcx, r12
movups xmmword [rsp + 0x30], xmm0
movups xmmword [rsp + 0x40], xmm0
movups xmmword [rsp + 0x50], xmm0
movups xmmword [rsp + 0x60], xmm0
movups xmmword [rsp + 0x70], xmm0
movups xmmword [rbp - 0x80], xmm0
movups xmmword [rbp - 0x70], xmm0
movups xmmword [rbp - 0x60], xmm0
call qword [sym.imp.WS2_32.dll_getpeername]
test eax, eax
je 0x18016d451
call qword [sym.imp.WS2_32.dll_WSAGetLastError]
mov r8d, 0x100
lea rdx, [rbp - 0x20]
mov ecx, eax
mov ebx, eax
call fcn.18016fa10
mov r9, rax
lea rdx, str.getpeername___failed_with_errno__d:__s
mov r8d, ebx
mov rcx, rsi
call fcn.18016b710
jmp 0x18016d513
movzx ecx, word [rsp + 0x30]
mov edx, ecx
sub edx, 1
je 0x18016d4e5
sub edx, 1
je 0x18016d494
cmp edx, 0x15
jne 0x18016d49b
lea rdx, [rsp + 0x38]
lea r8, [r14 + 0x130]
mov r9d, 0x2e
call sub.WS2_32.dll_inet_ntop
test rax, rax
je 0x18016d49b
movzx ecx, word [rsp + 0x32]
call qword [sym.imp.WS2_32.dll_ntohs]
jmp 0x18016d513
lea rdx, [rsp + 0x34]
jmp 0x18016d470
mov byte [r14 + 0x130], 0
call fcn.1801dfb00
mov dword [rax], 0x273f
call fcn.1801dfb00
mov ebx, dword [rax]
call fcn.1801dfb00
mov r8d, 0x100
lea rdx, [rbp - 0x20]
mov ecx, ebx
mov rdi, rax
call fcn.18016fa10
mov r8d, dword [rdi]
lea rdx, str.ssrem_inet_ntop___failed_with_errno__d:__s
mov r9, rax
mov rcx, rsi
call fcn.18016b710
jmp 0x18016d513
cmp dword [rsp + 0x20], 2
jle 0x18016d50b
lea r9, [rsp + 0x32]
mov edx, 0x2e
lea r8, [0x180227f30]
lea rcx, [r14 + 0x130]
call fcn.1801648c0
jmp 0x18016d513
mov byte [r14 + 0x130], 0
xorps xmm0, xmm0
mov dword [rsp + 0x20], 0x80
lea r8, [rsp + 0x20]
mov rcx, r12
lea rdx, [rsp + 0x30]
movups xmmword [rsp + 0x30], xmm0
movups xmmword [rsp + 0x40], xmm0
movups xmmword [rsp + 0x50], xmm0
movups xmmword [rsp + 0x60], xmm0
movups xmmword [rsp + 0x70], xmm0
movups xmmword [rbp - 0x80], xmm0
movups xmmword [rbp - 0x70], xmm0
movups xmmword [rbp - 0x60], xmm0
call qword [sym.imp.WS2_32.dll_getsockname]
mov r12, qword [rsp + 0x1f0]
test eax, eax
je 0x18016d595
call qword [sym.imp.WS2_32.dll_WSAGetLastError]
mov r8d, 0x100
lea rdx, [rbp - 0x20]
mov ecx, eax
mov ebx, eax
call fcn.18016fa10
mov r9, rax
lea rdx, str.getsockname___failed_with_errno__d:__s
mov r8d, ebx
mov rcx, rsi
call fcn.18016b710
jmp 0x18016d653
movzx ecx, word [rsp + 0x30]
mov edx, ecx
sub edx, 1
je 0x18016d629
sub edx, 1
je 0x18016d5d9
cmp edx, 0x15
jne 0x18016d5e0
lea rdx, [rsp + 0x38]
lea r8, [rbp - 0x50]
mov r9d, 0x2e
call sub.WS2_32.dll_inet_ntop
test rax, rax
je 0x18016d5e0
movzx ecx, word [rsp + 0x32]
call qword [sym.imp.WS2_32.dll_ntohs]
movzx r15d, ax
jmp 0x18016d653
lea rdx, [rsp + 0x34]
jmp 0x18016d5b4
mov byte [rbp - 0x50], 0
xor r15d, r15d
call fcn.1801dfb00
mov dword [rax], 0x273f
call fcn.1801dfb00
mov ebx, dword [rax]
call fcn.1801dfb00
mov r8d, 0x100
lea rdx, [rbp - 0x20]
mov ecx, ebx
mov rdi, rax
call fcn.18016fa10
mov r8d, dword [rdi]
lea rdx, str.ssloc_inet_ntop___failed_with_errno__d:__s
mov r9, rax
mov rcx, rsi
call fcn.18016b710
jmp 0x18016d653
cmp dword [rsp + 0x20], 2
jle 0x18016d64c
lea r9, [rsp + 0x32]
mov edx, 0x2e
lea r8, [0x180227f30]
lea rcx, [rbp - 0x50]
call fcn.1801648c0
jmp 0x18016d650
mov byte [rbp - 0x50], 0
xor r15d, r15d
cmp byte [rbp - 0x50], 0
movups xmm0, xmmword [r14 + 0x130]
mov rdi, qword [rsp + 0x1f8]
mov rbx, qword [rsp + 0x200]
movups xmmword [rsi + 0x13b8], xmm0
movups xmm1, xmmword [r14 + 0x140]
movups xmmword [rsi + 0x13c8], xmm1
movsd xmm0, qword [r14 + 0x150]
movsd qword [rsi + 0x13d8], xmm0
mov eax, dword [r14 + 0x158]
mov dword [rsi + 0x13e0], eax
movzx eax, word [r14 + 0x15c]
mov word [rsi + 0x13e4], ax
je 0x18016d6ed
movups xmm0, xmmword [rbp - 0x50]
mov eax, dword [rbp - 0x28]
movups xmm1, xmmword [rbp - 0x40]
movups xmmword [rsi + 0x13f0], xmm0
movsd xmm0, qword [rbp - 0x30]
movups xmmword [rsi + 0x1400], xmm1
movsd qword [rsi + 0x1410], xmm0
mov dword [rsi + 0x1418], eax
movzx eax, word [rbp - 0x24]
mov word [rsi + 0x141c], ax
jmp 0x18016d6f4
mov byte [rsi + 0x13f0], 0
mov rax, qword [r14 + 0x370]
mov rcx, qword [rax]
mov qword [rsi + 0x1428], rcx
mov rax, qword [r14 + 0x370]
mov ecx, dword [rax + 0x84]
and ecx, 0x3ffffff
mov dword [rsi + 0x1430], ecx
mov eax, dword [r14 + 0x77c]
mov dword [rsi + 0x13e8], eax
mov eax, dword [r14 + 0x780]
mov dword [rsi + 0x13ec], eax
mov dword [rsi + 0x1420], r15d
mov rcx, qword [rbp + 0xe0]
xor rcx, rsp
call fcn.1801ce080
add rsp, 0x208
pop r15
pop r14
pop rsi
pop rbp
ret