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

Disassembly:
push r15
push r14
push r13
push r12
push rsi
push rdi
push rbp
push rbx
sub rsp, 0xd8
mov rbx, rdx
mov rsi, rcx
movzx eax, byte [0x14043f240]
mov edx, 0x18
xor ecx, ecx
call fcn.1401d3670
test rax, rax
je 0x14009e8a2
mov rdi, rax
mov qword [rax], 1
mov qword [rax + 8], 1
mov byte [rax + 0x10], 0
mov r14, qword [rbx + 0x10]
cmp r14, 0xffffffffffffffff
je 0x14009e8b1
xorps xmm0, xmm0
movaps xmmword [rsp + 0xc0], xmm0
movaps xmmword [rsp + 0xb0], xmm0
movaps xmmword [rsp + 0xa0], xmm0
movaps xmmword [rsp + 0x90], xmm0
movaps xmmword [rsp + 0x80], xmm0
movaps xmmword [rsp + 0x70], xmm0
movaps xmmword [rsp + 0x60], xmm0
movaps xmmword [rsp + 0x50], xmm0
mov dword [rsp + 0x2c], 0x80
lea rdx, [rsp + 0x50]
lea r8, [rsp + 0x2c]
mov rcx, r14
call qword [sym.imp.ws2_32.dll_getpeername]
cmp eax, 0xffffffff
je 0x14009e56b
mov eax, dword [rsp + 0x2c]
movzx ecx, word [rsp + 0x50]
cmp ecx, 0x17
je 0x14009e581
cmp ecx, 2
jne 0x14009e5c4
cmp eax, 0xf
jbe 0x14009e8d5
mov eax, dword [rsp + 0x54]
movzx ecx, word [rsp + 0x52]
rol cx, 8
movzx r12d, cx
shl r12, 0x20
or r12, rax
xor ebp, ebp
jmp 0x14009e5cf
call qword [sym.imp.ws2_32.dll_WSAGetLastError]
mov ebx, eax
shl rbx, 0x20
or rbx, 2
mov bp, 2
jmp 0x14009e5cf
cmp eax, 0x1b
jbe 0x14009e8bd
movzx eax, word [rsp + 0x52]
rol ax, 8
mov word [rsp + 0x32], ax
mov eax, dword [rsp + 0x54]
mov dword [rsp + 0x48], eax
mov eax, dword [rsp + 0x68]
mov dword [rsp + 0x4c], eax
mov r12d, dword [rsp + 0x58]
shl r12, 0x10
mov rbx, qword [rsp + 0x5c]
mov bp, 1
mov eax, dword [rsp + 0x64]
mov dword [rsp + 0x44], eax
jmp 0x14009e5cf
mov bp, 2
lea rbx, str.invalid_argument
xorps xmm0, xmm0
movaps xmmword [rsp + 0xc0], xmm0
movaps xmmword [rsp + 0xb0], xmm0
movaps xmmword [rsp + 0xa0], xmm0
movaps xmmword [rsp + 0x90], xmm0
movaps xmmword [rsp + 0x80], xmm0
movaps xmmword [rsp + 0x70], xmm0
movaps xmmword [rsp + 0x60], xmm0
movaps xmmword [rsp + 0x50], xmm0
mov dword [rsp + 0x2c], 0x80
lea rdx, [rsp + 0x50]
lea r8, [rsp + 0x2c]
mov rcx, r14
call qword [sym.imp.ws2_32.dll_getsockname]
cmp eax, 0xffffffff
je 0x14009e695
mov eax, dword [rsp + 0x2c]
movzx ecx, word [rsp + 0x50]
cmp ecx, 2
je 0x14009e6c9
cmp ecx, 0x17
jne 0x14009e7a2
cmp eax, 0x1b
jbe 0x14009e8bd
movzx r15d, word [rsp + 0x52]
rol r15w, 8
mov eax, dword [rsp + 0x54]
mov ecx, dword [rsp + 0x68]
mov r13d, dword [rsp + 0x58]
shl r13, 0x10
mov r14, qword [rsp + 0x5c]
mov r8w, 1
mov edx, dword [rsp + 0x64]
cmp bp, 2
jne 0x14009e6f3
mov qword [rsi], 0
mov qword [rsi + 0x10], rdi
mov word [rsi + 0x18], 1
xor edi, edi
jmp 0x14009e7c3
call qword [sym.imp.ws2_32.dll_WSAGetLastError]
mov r14d, eax
shl r14, 0x20
or r14, 2
mov qword [rsi], 0
mov qword [rsi + 0x10], rdi
mov word [rsi + 0x18], 1
mov dil, 1
cmp bp, 2
je 0x14009e7c3
jmp 0x14009e820
cmp eax, 0xf
jbe 0x14009e8d5
mov eax, dword [rsp + 0x54]
movzx ecx, word [rsp + 0x52]
rol cx, 8
movzx r13d, cx
shl r13, 0x20
or r13, rax
xor r8d, r8d
cmp bp, 2
je 0x14009e67d
mov dword [rsp + 0x34], r8d
mov dword [rsp + 0x38], edx
mov dword [rsp + 0x3c], ecx
mov dword [rsp + 0x40], eax
movzx eax, byte [0x14043f240]
mov edx, 0x40
xor ecx, ecx
call fcn.1401d3670
test rax, rax
je 0x14009e8ed
mov word [rax], bp
mov dword [rax + 2], r12d
shr r12, 0x20
mov word [rax + 6], r12w
mov qword [rax + 8], rbx
mov ecx, dword [rsp + 0x44]
mov dword [rax + 0x10], ecx
mov ecx, dword [rsp + 0x48]
mov dword [rax + 0x14], ecx
mov ecx, dword [rsp + 0x4c]
mov dword [rax + 0x18], ecx
movzx ecx, word [rsp + 0x32]
mov word [rax + 0x1c], cx
mov ecx, dword [rsp + 0x34]
mov word [rax + 0x20], cx
mov dword [rax + 0x22], r13d
shr r13, 0x20
mov word [rax + 0x26], r13w
mov qword [rax + 0x28], r14
mov ecx, dword [rsp + 0x38]
mov dword [rax + 0x30], ecx
mov ecx, dword [rsp + 0x40]
mov dword [rax + 0x34], ecx
mov ecx, dword [rsp + 0x3c]
mov dword [rax + 0x38], ecx
mov word [rax + 0x3c], r15w
mov qword [rsi], rax
lea rax, [0x14035e2c0]
mov qword [rsi + 8], rax
mov qword [rsi + 0x10], rdi
mov word [rsi + 0x18], 1
jmp 0x14009e88d
mov qword [rsi], 0
mov qword [rsi + 0x10], rdi
mov word [rsi + 0x18], 1
mov dil, 1
lea r14, str.invalid_argument
cmp bp, 2
jne 0x14009e820
mov eax, ebx
and eax, 3
cmp eax, 1
jne 0x14009e81b
mov rsi, qword [rbx - 1]
mov r15, qword [rbx + 7]
mov rax, qword [r15]
test rax, rax
je 0x14009e7e2
mov rcx, rsi
call rax
dec rbx
cmp qword [r15 + 8], 0
je 0x14009e809
cmp qword [r15 + 0x10], 0x11
jb 0x14009e7f7
mov rsi, qword [rsi - 8]
mov rcx, qword [0x14043f190]
xor edx, edx
mov r8, rsi
call qword [sym.imp.kernel32.dll_HeapFree]
mov rcx, qword [0x14043f190]
xor edx, edx
mov r8, rbx
call qword [sym.imp.kernel32.dll_HeapFree]
test dil, dil
je 0x14009e88d
mov eax, r14d
and eax, 3
cmp eax, 1
jne 0x14009e88d
mov rsi, qword [r14 - 1]
mov rdi, qword [r14 + 7]
mov rax, qword [rdi]
test rax, rax
je 0x14009e840
mov rcx, rsi
call rax
dec r14
cmp qword [rdi + 8], 0
je 0x14009e867
cmp qword [rdi + 0x10], 0x11
jb 0x14009e855
mov rsi, qword [rsi - 8]
mov rcx, qword [0x14043f190]
xor edx, edx
mov r8, rsi
call qword [sym.imp.kernel32.dll_HeapFree]
mov rcx, qword [0x14043f190]
xor edx, edx
mov r8, r14
add rsp, 0xd8
pop rbx
pop rbp
pop rdi
pop rsi
pop r12
pop r13
pop r14
pop r15
jmp qword [sym.imp.kernel32.dll_HeapFree]
nop
add rsp, 0xd8
pop rbx
pop rbp
pop rdi
pop rsi
pop r12
pop r13
pop r14
pop r15
ret
mov ecx, 8
mov edx, 0x18
call fcn.14032afd0
lea rcx, [0x1403debe8]
call fcn.14032ba30
lea rcx, str.assertion_failed:_len___mem::size_of::_c::sockaddr_in6___
lea r8, str.library_std_src_sys_common_net.rsassertion_failed:_len___mem::size_of::_c::sockaddr_in___
mov edx, 0x3a
call fcn.14032b650
lea rcx, [0x1403dc6f2]
lea r8, str.library_std_src_sys_common_net.rsassertion_failed:_len___mem::size_of::_c::sockaddr_in___
mov edx, 0x39
call fcn.14032b650
mov ecx, 4
mov edx, 0x40
call fcn.14032afd0
int3