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

Disassembly:
push rbp
push r15
push r14
push rsi
push rdi
push rbx
sub rsp, 0x168
lea rbp, [rsp + 0x80]
mov qword [rbp + 0xe0], 0xfffffffffffffffe
mov rdi, rdx
mov rsi, rcx
push 0x18
pop rcx
push 8
pop rdx
call fcn.1400378dc
push 1
pop rcx
mov qword [rax], rcx
mov qword [rax + 8], rcx
mov byte [rax + 0x10], 0
mov word [rbp - 8], 1
and qword [rbp - 0x20], 0
mov qword [rbp - 0x10], rax
mov rcx, rdi
call fcn.1400d498a
mov rcx, qword [rax]
pxor xmm0, xmm0
mov rdx, rbp
movdqa xmmword [rdx + 0x70], xmm0
movdqa xmmword [rdx + 0x60], xmm0
movdqa xmmword [rdx + 0x50], xmm0
movdqa xmmword [rdx + 0x40], xmm0
movdqa xmmword [rdx + 0x30], xmm0
movdqa xmmword [rdx + 0x20], xmm0
movdqa xmmword [rdx + 0x10], xmm0
movdqa xmmword [rdx], xmm0
lea r8, [rbp + 0xa0]
mov dword [r8], 0x80
call qword [sym.imp.ws2_32.dll_getpeername]
cmp eax, 0xffffffff
je 0x140038e55
mov eax, dword [rbp + 0xa0]
movzx ecx, word [rbp]
cmp ecx, 2
je 0x140038e65
cmp ecx, 0x17
jne 0x140038e92
cmp eax, 0x1b
jbe 0x14003917c
movdqu xmm0, xmmword [rbp + 8]
movzx ebx, word [rbp + 2]
rol bx, 8
mov r15d, dword [rbp + 4]
mov r14d, dword [rbp + 0x18]
movdqu xmmword [rbp + 0x82], xmm0
movq rax, xmm0
pshufd xmm0, xmm0, 0xee
movq rcx, xmm0
shld rcx, rax, 0x20
mov qword [rbp + 0xd0], rcx
mov ax, 1
mov dword [rbp + 0xc8], eax
jmp 0x140038eb1
call qword [sym.imp.ws2_32.dll_WSAGetLastError]
shl rax, 0x20
or rax, 2
jmp 0x140038e99
cmp eax, 0xf
jbe 0x140039194
movzx eax, word [rbp + 2]
rol ax, 8
mov ecx, dword [rbp + 4]
mov word [rbp + 0x84], ax
mov dword [rbp + 0x80], ecx
mov dword [rbp + 0xc8], 0
jmp 0x140038eb1
lea rax, str.invalid_argument
mov qword [rbp + 0xd0], rax
mov qword [rbp + 0x86], rax
mov ax, 2
mov dword [rbp + 0xc8], eax
mov rcx, rdi
call fcn.1400d498a
mov rcx, qword [rax]
pxor xmm0, xmm0
mov rdx, rbp
movdqa xmmword [rdx + 0x70], xmm0
movdqa xmmword [rdx + 0x60], xmm0
movdqa xmmword [rdx + 0x50], xmm0
movdqa xmmword [rdx + 0x40], xmm0
movdqa xmmword [rdx + 0x30], xmm0
movdqa xmmword [rdx + 0x20], xmm0
movdqa xmmword [rdx + 0x10], xmm0
movdqa xmmword [rdx], xmm0
lea r8, [rbp + 0x94]
mov dword [r8], 0x80
call qword [sym.imp.ws2_32.dll_getsockname]
cmp eax, 0xffffffff
je 0x140038f43
mov eax, dword [rbp + 0x94]
movzx ecx, word [rbp]
cmp ecx, 2
je 0x140038f53
cmp ecx, 0x17
jne 0x140038f78
cmp eax, 0x1b
jbe 0x1400391ac
movdqu xmm0, xmmword [rbp + 8]
movzx r8d, word [rbp + 2]
rol r8w, 8
mov edx, dword [rbp + 4]
mov ecx, dword [rbp + 0x18]
movdqu xmmword [rbp + 0xa2], xmm0
mov ax, 1
jmp 0x140038f8a
call qword [sym.imp.ws2_32.dll_WSAGetLastError]
shl rax, 0x20
or rax, 2
jmp 0x140038f7f
cmp eax, 0xf
jbe 0x1400391c4
movzx eax, word [rbp + 2]
rol ax, 8
mov ecx, dword [rbp + 4]
mov word [rbp + 0xa4], ax
mov dword [rbp + 0xa0], ecx
xor eax, eax
jmp 0x140038f8a
lea rax, str.invalid_argument
mov qword [rbp + 0xa6], rax
mov ax, 2
mov r10d, dword [rbp + 0xc8]
mov word [rbp], r10w
movups xmm0, xmmword [rbp + 0x80]
movups xmmword [rbp + 2], xmm0
movzx r9d, word [rbp + 0x90]
mov word [rbp + 0x12], r9w
mov dword [rbp + 0x14], r15d
mov dword [rbp + 0x18], r14d
mov word [rbp + 0x1c], bx
mov word [rbp + 0x20], ax
mov r9d, dword [rbp + 0xa0]
mov dword [rbp + 0x22], r9d
movzx r9d, word [rbp + 0xa4]
mov word [rbp + 0x26], r9w
mov r9, qword [rbp + 0xa6]
mov qword [rbp + 0x28], r9
movzx r9d, word [rbp + 0xae]
mov word [rbp + 0x30], r9w
movzx r9d, word [rbp + 0xb0]
mov word [rbp + 0x32], r9w
mov dword [rbp + 0x34], edx
mov dword [rbp + 0x38], ecx
mov word [rbp + 0x3c], r8w
cmp r10w, 2
je 0x1400390c5
cmp ax, 2
je 0x1400390c5
lea rax, [rbp + 0x20]
movups xmm0, xmmword [rax - 0x20]
movups xmm1, xmmword [rax - 0x10]
movaps xmmword [rbp - 0x50], xmm1
movaps xmmword [rbp - 0x60], xmm0
movups xmm0, xmmword [rax]
movups xmm1, xmmword [rax + 0x10]
movaps xmmword [rbp - 0x40], xmm0
movaps xmmword [rbp - 0x30], xmm1
movups xmm0, xmmword [rbp - 0x20]
movups xmm1, xmmword [rbp - 0x10]
movaps xmmword [rbp + 0xa0], xmm0
movaps xmmword [rbp + 0xb0], xmm1
mov rax, qword [rbp + 0xa0]
mov qword [rbp + 0xc8], rax
test rax, rax
je 0x1400390d9
mov rax, qword [rbp + 0xa8]
mov qword [rbp + 0xd0], rax
push 0x50
pop rcx
push 8
pop rdx
call fcn.1400378dc
movaps xmm0, xmmword [rbp - 0x60]
movaps xmm1, xmmword [rbp - 0x50]
movaps xmm2, xmmword [rbp - 0x40]
movaps xmm3, xmmword [rbp - 0x30]
movups xmmword [rax + 0x30], xmm3
movups xmmword [rax + 0x20], xmm2
movups xmmword [rax + 0x10], xmm1
movups xmmword [rax], xmm0
mov rcx, qword [rbp + 0xc8]
mov qword [rax + 0x40], rcx
mov rcx, qword [rbp + 0xd0]
mov qword [rax + 0x48], rcx
mov qword [rbp + 0xa0], rax
lea rax, [0x1401287b0]
jmp 0x14003913c
movups xmm0, xmmword [rbp - 0x20]
movups xmm1, xmmword [rbp - 0x10]
movups xmmword [rsi + 0x10], xmm1
movups xmmword [rsi], xmm0
jmp 0x140039163
and qword [rbp + 0x98], 0
mov byte [rbp + 0xdf], 1
push 0x40
pop rcx
push 4
pop rdx
call fcn.1400378dc
movaps xmm0, xmmword [rbp - 0x60]
movaps xmm1, xmmword [rbp - 0x50]
movaps xmm2, xmmword [rbp - 0x40]
movaps xmm3, xmmword [rbp - 0x30]
movups xmmword [rax + 0x30], xmm3
movups xmmword [rax + 0x20], xmm2
movups xmmword [rax + 0x10], xmm1
mov qword [rbp + 0xd0], rax
movups xmmword [rax], xmm0
mov rdx, qword [rbp + 0xa8]
xor ecx, ecx
call fcn.1400d8501
mov rax, qword [rbp + 0xd0]
mov qword [rbp + 0xa0], rax
lea rax, [0x1401287d8]
mov qword [rbp + 0xa8], rax
mov rax, qword [rbp + 0xa0]
mov rcx, qword [rbp + 0xa8]
movaps xmm0, xmmword [rbp + 0xb0]
movups xmmword [rsi + 0x10], xmm0
mov qword [rsi], rax
mov qword [rsi + 8], rcx
mov rcx, rbp
call fcn.1400393ad
nop
add rsp, 0x168
pop rbx
pop rdi
pop rsi
pop r14
pop r15
pop rbp
ret
lea rcx, str.assertion_failed:_len_as_usize___mem::size_of::_c::sockaddr_in6___
lea r8, str.library_std_src_sys_common_net.rsassertion_failed:_len_as_usize___mem::size_of::_c::sockaddr_in___
push 0x43
pop rdx
call fcn.1400eacd0
jmp 0x1400391da
lea rcx, [0x140144a31]
lea r8, str.library_std_src_sys_common_net.rsassertion_failed:_len_as_usize___mem::size_of::_c::sockaddr_in___
push 0x42
pop rdx
call fcn.1400eacd0
jmp 0x1400391da
lea rcx, str.assertion_failed:_len_as_usize___mem::size_of::_c::sockaddr_in6___
lea r8, str.library_std_src_sys_common_net.rsassertion_failed:_len_as_usize___mem::size_of::_c::sockaddr_in___
push 0x43
pop rdx
call fcn.1400eacd0
jmp 0x1400391da
lea rcx, [0x140144a31]
lea r8, str.library_std_src_sys_common_net.rsassertion_failed:_len_as_usize___mem::size_of::_c::sockaddr_in___
push 0x42
pop rdx
call fcn.1400eacd0
ud2