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

Disassembly:
push rbx
push rbp
push rsi
sub rsp, 0x140
mov rax, qword [0x1400c5518]
xor rax, rsp
mov qword [rsp + 0x130], rax
cmp dword [rcx + 0xbc], 2
mov rbx, rdx
mov rbp, qword [rcx]
mov rsi, rcx
je 0x140037fdb
cmp byte [rcx + 0x552], 0
mov qword [rsp + 0x170], rdi
jne 0x140037efc
cmp byte [rcx + 0x56e], 0
jne 0x140037efc
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 0x140037da3
call qword [sym.imp.WS2_32.dll_WSAGetLastError]
mov edx, eax
mov rcx, rsi
mov ebx, eax
call fcn.140024720
mov r9, rax
lea rdx, str.getpeername___failed_with_errno__d:__s
mov r8d, ebx
mov rcx, rbp
call fcn.140025650
jmp 0x140037fd3
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 0x140037e22
call qword [sym.imp.WS2_32.dll_WSAGetLastError]
mov edx, eax
mov rcx, rsi
mov ebx, eax
call fcn.140024720
mov r9, rax
lea rdx, str.getsockname___failed_with_errno__d:__s
mov r8d, ebx
mov rcx, rbp
call fcn.140025650
jmp 0x140037fd3
lea rbx, [rsi + 0x186]
mov rdx, rbx
lea r8, [rsi + 0x1b4]
lea rcx, [rsp + 0xb0]
call fcn.140038480
test al, al
jne 0x140037e77
call fcn.14007031c
mov ebx, dword [rax]
call fcn.14007031c
mov edx, ebx
mov rcx, rsi
mov rdi, rax
call fcn.140024720
mov r8d, dword [rdi]
lea rdx, str.ssrem_inet_ntop___failed_with_errno__d:__s
mov r9, rax
mov rcx, rbp
call fcn.140025650
jmp 0x140037fd3
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.140038480
test al, al
jne 0x140037efc
call fcn.14007031c
mov ebx, dword [rax]
call fcn.14007031c
mov edx, ebx
mov rcx, rsi
mov rdi, rax
call fcn.140024720
mov r8d, dword [rdi]
lea rdx, str.ssloc_inet_ntop___failed_with_errno__d:__s
mov r9, rax
mov rcx, rbp
call fcn.140025650
jmp 0x140037fd3
mov rcx, qword [rsi]
movups xmm0, xmmword [rsi + 0x186]
movups xmmword [rcx + 0x4fe0], xmm0
movups xmm1, xmmword [rsi + 0x196]
movups xmmword [rcx + 0x4ff0], xmm1
movsd xmm0, qword [rsi + 0x1a6]
movsd qword [rcx + 0x5000], xmm0
mov eax, dword [rsi + 0x1ae]
mov dword [rcx + 0x5008], eax
movzx eax, word [rsi + 0x1b2]
mov word [rcx + 0x500c], ax
mov rcx, qword [rsi]
movups xmm0, xmmword [rsi + 0x1b8]
movups xmmword [rcx + 0x5014], xmm0
movups xmm1, xmmword [rsi + 0x1c8]
movups xmmword [rcx + 0x5024], xmm1
movsd xmm0, qword [rsi + 0x1d8]
movsd qword [rcx + 0x5034], xmm0
mov eax, dword [rsi + 0x1e0]
mov dword [rcx + 0x503c], eax
movzx eax, word [rsi + 0x1e4]
mov word [rcx + 0x5040], ax
mov rax, qword [rsi + 0x598]
mov rcx, qword [rsi]
mov rax, qword [rax]
mov qword [rcx + 0x5048], rax
mov rax, qword [rsi + 0x598]
mov rcx, qword [rsi]
mov eax, dword [rax + 0x7c]
mov dword [rcx + 0x5050], eax
mov rcx, qword [rsi]
mov eax, dword [rsi + 0x1b4]
mov dword [rcx + 0x5010], eax
mov rcx, qword [rsi]
mov eax, dword [rsi + 0x1e8]
mov dword [rcx + 0x5044], eax
mov rdi, qword [rsp + 0x170]
mov rcx, qword [rsp + 0x130]
xor rcx, rsp
call fcn.140067810
add rsp, 0x140
pop rsi
pop rbp
pop rbx
ret