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

Disassembly:
push rbx
push rbp
push rsi
sub rsp, 0x140
mov rax, qword [0x1402bf270]
xor rax, rsp
mov qword [rsp + 0x130], rax
cmp dword [rcx + 0xbc], 2
mov rbx, rdx
mov rbp, qword [rcx]
mov rsi, rcx
je 0x1401cf78b
cmp byte [rcx + 0x3aa], 0
mov qword [rsp + 0x170], rdi
jne 0x1401cf6ac
cmp byte [rcx + 0x3c6], 0
jne 0x1401cf6ac
lea r8, [rsp + 0x20]
mov dword [rsp + 0x20], 0x80
lea rdx, [rsp + 0xb0]
mov rcx, rbx
call qword [sym.imp.WS2_32.dll_getpeername]
test eax, eax
je 0x1401cf553
call qword [sym.imp.WS2_32.dll_WSAGetLastError]
mov edx, eax
mov rcx, rsi
mov ebx, eax
call fcn.1401dd3f0
mov r9, rax
lea rdx, str.getpeername___failed_with_errno__d:__s
mov r8d, ebx
mov rcx, rbp
call fcn.1401cdae0
jmp 0x1401cf783
xorps xmm0, xmm0
mov dword [rsp + 0x20], 0x80
lea r8, [rsp + 0x20]
mov rcx, rbx
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 [rsp + 0x80], xmm0
movups xmmword [rsp + 0x90], xmm0
movups xmmword [rsp + 0xa0], xmm0
call qword [sym.imp.WS2_32.dll_getsockname]
test eax, eax
je 0x1401cf5d2
call qword [sym.imp.WS2_32.dll_WSAGetLastError]
mov edx, eax
mov rcx, rsi
mov ebx, eax
call fcn.1401dd3f0
mov r9, rax
lea rdx, str.getsockname___failed_with_errno__d:__s
mov r8d, ebx
mov rcx, rbp
call fcn.1401cdae0
jmp 0x1401cf783
lea rbx, [rsi + 0x186]
mov rdx, rbx
lea r8, [rsi + 0x1b4]
lea rcx, [rsp + 0xb0]
call fcn.1401ceb20
test al, al
jne 0x1401cf627
call sub.api_ms_win_crt_runtime_l1_1_0.dll__errno
mov ebx, dword [rax]
call sub.api_ms_win_crt_runtime_l1_1_0.dll__errno
mov edx, ebx
mov rcx, rsi
mov rdi, rax
call fcn.1401dd3f0
mov r8d, dword [rdi]
lea rdx, str.ssrem_inet_ntop___failed_with_errno__d:__s
mov r9, rax
mov rcx, rbp
call fcn.1401cdae0
jmp 0x1401cf783
movups xmm0, xmmword [rbx]
mov eax, dword [rbx + 0x28]
lea r8, [rsi + 0x1e8]
movups xmm1, xmmword [rbx + 0x10]
lea rdx, [rsi + 0x1b8]
movups xmmword [rsi + 0x88], xmm0
lea rcx, [rsp + 0x30]
movsd xmm0, qword [rbx + 0x20]
movups xmmword [rsi + 0x98], xmm1
movsd qword [rsi + 0xa8], xmm0
mov dword [rsi + 0xb0], eax
movzx eax, word [rbx + 0x2c]
mov word [rsi + 0xb4], ax
call fcn.1401ceb20
test al, al
jne 0x1401cf6ac
call sub.api_ms_win_crt_runtime_l1_1_0.dll__errno
mov ebx, dword [rax]
call sub.api_ms_win_crt_runtime_l1_1_0.dll__errno
mov edx, ebx
mov rcx, rsi
mov rdi, rax
call fcn.1401dd3f0
mov r8d, dword [rdi]
lea rdx, str.ssloc_inet_ntop___failed_with_errno__d:__s
mov r9, rax
mov rcx, rbp
call fcn.1401cdae0
jmp 0x1401cf783
mov rcx, qword [rsi]
movups xmm0, xmmword [rsi + 0x186]
movups xmmword [rcx + 0x5160], xmm0
movups xmm1, xmmword [rsi + 0x196]
movups xmmword [rcx + 0x5170], xmm1
movsd xmm0, qword [rsi + 0x1a6]
movsd qword [rcx + 0x5180], xmm0
mov eax, dword [rsi + 0x1ae]
mov dword [rcx + 0x5188], eax
movzx eax, word [rsi + 0x1b2]
mov word [rcx + 0x518c], ax
mov rcx, qword [rsi]
movups xmm0, xmmword [rsi + 0x1b8]
movups xmmword [rcx + 0x5194], xmm0
movups xmm1, xmmword [rsi + 0x1c8]
movups xmmword [rcx + 0x51a4], xmm1
movsd xmm0, qword [rsi + 0x1d8]
movsd qword [rcx + 0x51b4], xmm0
mov eax, dword [rsi + 0x1e0]
mov dword [rcx + 0x51bc], eax
movzx eax, word [rsi + 0x1e4]
mov word [rcx + 0x51c0], ax
mov rax, qword [rsi + 0x3f0]
mov rcx, qword [rsi]
mov rax, qword [rax]
mov qword [rcx + 0x51c8], rax
mov rax, qword [rsi + 0x3f0]
mov rcx, qword [rsi]
mov eax, dword [rax + 0x7c]
mov dword [rcx + 0x51d0], eax
mov rcx, qword [rsi]
mov eax, dword [rsi + 0x1b4]
mov dword [rcx + 0x5190], eax
mov rcx, qword [rsi]
mov eax, dword [rsi + 0x1e8]
mov dword [rcx + 0x51c4], eax
mov rdi, qword [rsp + 0x170]
mov rcx, qword [rsp + 0x130]
xor rcx, rsp
call fcn.1402683a0
add rsp, 0x140
pop rsi
pop rbp
pop rbx
ret