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

Disassembly:
push rsi
push rdi
push rbp
push rbx
sub rsp, 0x138
mov rbx, rdx
mov rdi, rcx
movzx eax, byte [0x1401ba120]
mov edx, 0x18
xor ecx, ecx
call fcn.14010f230
test rax, rax
je 0x140051b57
mov rsi, rax
mov qword [rax], 1
mov qword [rax + 8], 1
mov byte [rax + 0x10], 0
mov word [rsp + 0x130], 1
mov qword [rsp + 0x118], 0
mov qword [rsp + 0x128], rax
mov rbx, qword [rbx + 0x18]
cmp rbx, 0xffffffffffffffff
je 0x140051b66
xorps xmm0, xmm0
movaps xmmword [rsp + 0x100], xmm0
movaps xmmword [rsp + 0xf0], xmm0
movaps xmmword [rsp + 0xe0], xmm0
movaps xmmword [rsp + 0xd0], xmm0
movaps xmmword [rsp + 0xc0], xmm0
movaps xmmword [rsp + 0xb0], xmm0
movaps xmmword [rsp + 0xa0], xmm0
movaps xmmword [rsp + 0x90], xmm0
mov dword [rsp + 0x2c], pe_nt_image_headers64
lea rdx, [rsp + 0x90]
lea r8, [rsp + 0x2c]
mov rcx, rbx
call sub.ws2_32.dll_getpeername
cmp eax, 0xffffffff
je 0x14005187c
mov eax, dword [rsp + 0x2c]
movzx ecx, word [rsp + 0x90]
cmp ecx, 0x17
je 0x14005188b
cmp ecx, 2
jne 0x1400518e9
cmp eax, 0xf
jbe 0x140051b85
mov eax, dword [rsp + 0x94]
movzx ecx, word [rsp + 0x92]
rol cx, 8
mov word [rsp + 0x30], 0
mov word [rsp + 0x36], cx
mov dword [rsp + 0x32], eax
jmp 0x1400518e5
call sub.ws2_32.dll_WSAGetLastError
shl rax, 0x20
or rax, 2
jmp 0x1400518f0
cmp eax, 0x1b
jbe 0x140051b9a
movzx eax, word [rsp + 0x92]
rol ax, 8
mov ecx, dword [rsp + 0x94]
mov edx, dword [rsp + 0xa8]
movups xmm0, xmmword [rsp + 0x98]
movups xmmword [rsp + 0x52], xmm0
mov word [rsp + 0x30], 1
movups xmm0, xmmword [rsp + 0x50]
movups xmmword [rsp + 0x32], xmm0
movzx r8d, word [rsp + 0x60]
mov word [rsp + 0x42], r8w
mov dword [rsp + 0x44], ecx
mov dword [rsp + 0x48], edx
mov word [rsp + 0x4c], ax
xor ebp, ebp
jmp 0x1400518ff
lea rax, str.invalid_argumentx
mov qword [rsp + 0x38], rax
mov word [rsp + 0x30], 2
mov bpl, 1
xorps xmm0, xmm0
movaps xmmword [rsp + 0x100], xmm0
movaps xmmword [rsp + 0xf0], xmm0
movaps xmmword [rsp + 0xe0], xmm0
movaps xmmword [rsp + 0xd0], xmm0
movaps xmmword [rsp + 0xc0], xmm0
movaps xmmword [rsp + 0xb0], xmm0
movaps xmmword [rsp + 0xa0], xmm0
movaps xmmword [rsp + 0x90], xmm0
mov dword [rsp + 0x50], pe_nt_image_headers64
lea rdx, [rsp + 0x90]
lea r8, [rsp + 0x50]
mov rcx, rbx
call sub.ws2_32.dll_getsockname
cmp eax, 0xffffffff
je 0x1400519a9
mov eax, dword [rsp + 0x50]
movzx ecx, word [rsp + 0x90]
cmp ecx, 0x17
je 0x1400519bc
cmp ecx, 2
jne 0x140051a02
cmp eax, 0xf
jbe 0x140051bb4
mov eax, dword [rsp + 0x94]
movzx ecx, word [rsp + 0x92]
rol cx, 8
movzx r9d, cx
shl r9, 0x20
or r9, rax
xor ebx, ebx
jmp 0x140051a0d
call sub.ws2_32.dll_WSAGetLastError
shl rax, 0x20
or rax, 2
mov bx, 2
jmp 0x140051a0d
cmp eax, 0x1b
jbe 0x140051bc9
movzx ecx, word [rsp + 0x92]
rol cx, 8
mov r8d, dword [rsp + 0x94]
mov edx, dword [rsp + 0xa8]
mov r9d, dword [rsp + 0x98]
shl r9, 0x10
mov rax, qword [rsp + 0x9c]
mov bx, 1
mov r10d, dword [rsp + 0xa4]
jmp 0x140051a0d
mov bx, 2
lea rax, str.invalid_argumentx
movups xmm0, xmmword [rsp + 0x30]
movups xmm1, xmmword [rsp + 0x40]
movaps xmmword [rsp + 0x60], xmm1
movaps xmmword [rsp + 0x50], xmm0
mov word [rsp + 0x70], bx
mov dword [rsp + 0x72], r9d
shr r9, 0x20
mov word [rsp + 0x76], r9w
mov qword [rsp + 0x78], rax
mov dword [rsp + 0x80], r10d
mov dword [rsp + 0x84], r8d
mov dword [rsp + 0x88], edx
mov word [rsp + 0x8c], cx
movzx eax, word [rsp + 0x50]
cmp ax, 2
je 0x140051b13
cmp bx, 2
je 0x140051b13
lea rax, [rsp + 0x70]
movaps xmm0, xmmword [rsp + 0x50]
movaps xmm1, xmmword [rsp + 0x60]
movaps xmmword [rsp + 0xa0], xmm1
movaps xmmword [rsp + 0x90], xmm0
movups xmm0, xmmword [rax]
movups xmm1, xmmword [rax + 0x10]
movaps xmmword [rsp + 0xb0], xmm0
movaps xmmword [rsp + 0xc0], xmm1
mov rbx, qword [rsp + 0x130]
movzx eax, byte [0x1401ba120]
mov edx, 0x40
xor ecx, ecx
call fcn.14010f230
test rax, rax
je 0x140051b74
movaps xmm0, xmmword [rsp + 0x90]
movaps xmm1, xmmword [rsp + 0xa0]
movaps xmm2, xmmword [rsp + 0xb0]
movaps xmm3, xmmword [rsp + 0xc0]
movups xmmword [rax + 0x30], xmm3
movups xmmword [rax + 0x20], xmm2
movups xmmword [rax + 0x10], xmm1
movups xmmword [rax], xmm0
mov qword [rdi], rax
lea rax, [0x140155b48]
mov qword [rdi + 8], rax
mov qword [rdi + 0x10], rsi
mov qword [rdi + 0x18], rbx
jmp 0x140051b4a
movups xmm0, xmmword [rsp + 0x118]
movups xmm1, xmmword [rsp + 0x128]
movups xmmword [rdi + 0x10], xmm1
movups xmmword [rdi], xmm0
cmp ax, 2
jne 0x140051b3a
lea rcx, [rsp + 0x58]
call fcn.14003ea60
cmp bx, 2
jne 0x140051b4a
lea rcx, [rsp + 0x78]
call fcn.14003ea60
nop
add rsp, 0x138
pop rbx
pop rbp
pop rdi
pop rsi
ret
mov ecx, 8
mov edx, 0x18
call fcn.140012d60
lea rcx, str.YedZxBvomMtva1lSqVS5YJ5ySNxaU4Yfh4ewB2wF6SyMR7ZtD1AKcVpIjwQ9OBdVyCbvnaTGrC1su8YimLvfT7Bv4TGv2pLzQKy
call fcn.140019f10
jmp 0x140051be1
mov ecx, 4
mov edx, 0x40
call fcn.140012d60
jmp 0x140051be1
lea r8, [0x14016fc08]
mov edx, 0x39
lea rcx, str.0dwUEQaTZH89j9QsBdTXw8p1f1t1rWMpsewXcY5qVuKLnnpV9HB2bxyD7x23hlXvFyAAWK8JoefVNwMEHZQP5ylxdb
jmp 0x140051bad
lea r8, [0x14016fc60]
mov edx, 0x3a
lea rcx, str.assertion_failed:_len___mem::size_of::_c::sockaddr_in6___
call fcn.140018100
jmp 0x140051be1
lea r8, [0x14016fc08]
mov edx, 0x39
lea rcx, str.0dwUEQaTZH89j9QsBdTXw8p1f1t1rWMpsewXcY5qVuKLnnpV9HB2bxyD7x23hlXvFyAAWK8JoefVNwMEHZQP5ylxdb
jmp 0x140051bdc
lea r8, [0x14016fc60]
mov edx, 0x3a
lea rcx, str.assertion_failed:_len___mem::size_of::_c::sockaddr_in6___
call fcn.140018100
ud2