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

Disassembly:
push rbx
push rbp
push rsi
sub rsp, 0x140
mov rax, qword [0x1803bc678]
xor rax, rsp
mov qword [rsp + 0x130], rax
cmp dword [rcx + 0xbc], 2
mov rbx, rdx
mov rbp, qword [rcx]
mov rsi, rcx
je 0x1801b4f2d
cmp byte [rcx + 0x3aa], 0
mov qword [rsp + 0x170], rdi
jne 0x1801b4e4e
cmp byte [rcx + 0x3c6], 0
jne 0x1801b4e4e
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 0x1801b4d13
call qword [sym.imp.WS2_32.dll_WSAGetLastError]
mov edx, eax
mov rcx, rsi
mov ebx, eax
call fcn.1801d9b30
mov r9, rax
lea rdx, str.getpeername___failed_with_errno__d:__s
mov r8d, ebx
mov rcx, rbp
call fcn.1801b3450
jmp 0x1801b4f25
xor edx, edx
mov dword [rsp + 0x20], 0x80
mov r8d, 0x80
lea rcx, [rsp + 0x30]
call sub.VCRUNTIME140.dll_memset
lea r8, [rsp + 0x20]
mov rcx, rbx
lea rdx, [rsp + 0x30]
call qword [sym.imp.WS2_32.dll_getsockname]
test eax, eax
je 0x1801b4d70
call qword [sym.imp.WS2_32.dll_WSAGetLastError]
mov edx, eax
mov rcx, rsi
mov ebx, eax
call fcn.1801d9b30
mov r9, rax
lea rdx, str.getsockname___failed_with_errno__d:__s
mov r8d, ebx
mov rcx, rbp
call fcn.1801b3450
jmp 0x1801b4f25
lea rbx, [rsi + 0x186]
mov rdx, rbx
lea r8, [rsi + 0x1b4]
lea rcx, [rsp + 0xb0]
call fcn.1801b53c0
test al, al
jne 0x1801b4dc7
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__errno]
mov ebx, dword [rax]
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__errno]
mov edx, ebx
mov rcx, rsi
mov rdi, rax
call fcn.1801d9b30
mov r8d, dword [rdi]
lea rdx, str.ssrem_inet_ntop___failed_with_errno__d:__s
mov r9, rax
mov rcx, rbp
call fcn.1801b3450
jmp 0x1801b4f25
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.1801b53c0
test al, al
jne 0x1801b4e4e
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__errno]
mov ebx, dword [rax]
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__errno]
mov edx, ebx
mov rcx, rsi
mov rdi, rax
call fcn.1801d9b30
mov r8d, dword [rdi]
lea rdx, str.ssloc_inet_ntop___failed_with_errno__d:__s
mov r9, rax
mov rcx, rbp
call fcn.1801b3450
jmp 0x1801b4f25
mov rcx, qword [rsi]
movups xmm0, xmmword [rsi + 0x186]
movups xmmword [rcx + 0x5148], xmm0
movups xmm1, xmmword [rsi + 0x196]
movups xmmword [rcx + 0x5158], xmm1
movsd xmm0, qword [rsi + 0x1a6]
movsd qword [rcx + 0x5168], xmm0
mov eax, dword [rsi + 0x1ae]
mov dword [rcx + 0x5170], eax
movzx eax, word [rsi + 0x1b2]
mov word [rcx + 0x5174], ax
mov rcx, qword [rsi]
movups xmm0, xmmword [rsi + 0x1b8]
movups xmmword [rcx + 0x517c], xmm0
movups xmm1, xmmword [rsi + 0x1c8]
movups xmmword [rcx + 0x518c], xmm1
movsd xmm0, qword [rsi + 0x1d8]
movsd qword [rcx + 0x519c], xmm0
mov eax, dword [rsi + 0x1e0]
mov dword [rcx + 0x51a4], eax
movzx eax, word [rsi + 0x1e4]
mov word [rcx + 0x51a8], ax
mov rax, qword [rsi + 0x3f0]
mov rcx, qword [rsi]
mov rax, qword [rax]
mov qword [rcx + 0x51b0], rax
mov rax, qword [rsi + 0x3f0]
mov rcx, qword [rsi]
mov eax, dword [rax + 0x7c]
mov dword [rcx + 0x51b8], eax
mov rcx, qword [rsi]
mov eax, dword [rsi + 0x1b4]
mov dword [rcx + 0x5178], eax
mov rcx, qword [rsi]
mov eax, dword [rsi + 0x1e8]
mov dword [rcx + 0x51ac], eax
mov rdi, qword [rsp + 0x170]
mov rcx, qword [rsp + 0x130]
xor rcx, rsp
call fcn.1801e5c70
add rsp, 0x140
pop rsi
pop rbp
pop rbx
ret