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

Disassembly:
push rbp
push rbx
push rsi
push r12
push r13
push r14
push r15
lea rbp, [rsp - 0x160]
sub rsp, 0x260
mov rax, qword [0x1403c6da0]
xor rax, rsp
mov qword [rbp + 0x150], rax
mov rsi, qword [rcx]
mov qword [rsp + 0x40], rcx
xor r14d, r14d
mov qword [rsp + 0x38], r14
movzx ebx, word [rsi + 0x198]
mov r12d, dword [rsi + 0x19c]
mov r13, qword [rsi + 0x3e8]
mov r15d, r8d
mov qword [rsp + 0x48], rdx
lea rcx, [rbp + 0x51]
xor edx, edx
mov r8d, 0xff
mov byte [rbp + 0x50], r14b
call fcn.14025e980
test r13, r13
jne 0x1400fea3f
test bx, bx
jne 0x1400fea3f
xor eax, eax
jmp 0x1400fecf1
lea rcx, [rsp + 0x50]
xor edx, edx
mov r8d, 0x80
mov qword [rsp + 0x2b8], rdi
call fcn.14025e980
test r13, r13
je 0x1400feb9c
or rcx, 0xffffffffffffffff
xor eax, eax
mov rdi, r13
repne scasb al, byte [rdi]
not rcx
dec rcx
cmp rcx, 0xff
jae 0x1400feb9c
lea r8, [rbp + 0x50]
mov r9d, 0x100
mov rdx, r13
mov ecx, r15d
call fcn.14008faf0
test rax, rax
je 0x1400feaba
lea r9, [rbp + 0x50]
lea rdx, str.Local_Interface__s_is_ip__s_using_address_family__i_n
mov r8, r13
mov rcx, rsi
mov dword [rsp + 0x20], r15d
call fcn.1400fe360
jmp 0x1400feb60
mov eax, dword [rsi + 0x350]
mov rdi, qword [rsp + 0x40]
mov ecx, 1
mov dword [rsp + 0x30], eax
cmp r15d, 2
lea r9, [rsp + 0x38]
cmove eax, ecx
xor r8d, r8d
mov rcx, rdi
mov rdx, r13
mov dword [rsi + 0x350], eax
call fcn.1400f5000
cmp eax, 1
jne 0x1400feb00
lea rdx, [rsp + 0x38]
mov rcx, rdi
call fcn.140103c70
mov eax, dword [rsp + 0x30]
mov dword [rsi + 0x350], eax
mov rcx, qword [rsp + 0x38]
test rcx, rcx
je 0x1400feb80
mov rcx, qword [rcx]
lea rdx, [rbp + 0x50]
mov r8d, 0x100
call fcn.1400f4d60
mov rdx, qword [rsp + 0x38]
mov r9d, r15d
mov rax, qword [rdx]
lea rdx, str.Name__s_family__i_resolved_to__s_family__i_n
mov r8, r13
mov ecx, dword [rax + 4]
lea rax, [rbp + 0x50]
mov dword [rsp + 0x28], ecx
mov rcx, rsi
mov qword [rsp + 0x20], rax
call fcn.1400fe360
mov rdx, qword [rsp + 0x38]
mov rcx, rsi
call fcn.1400f51c0
cmp r15d, 2
jne 0x1400febbe
lea r8, [rsp + 0x54]
lea rdx, [rbp + 0x50]
mov ecx, r15d
mov edi, r15d
call fcn.140114ee0
test eax, eax
jle 0x1400febbe
jmp 0x1400feba5
lea rdx, str.Couldnt_bind_to__s
mov r8, r13
mov rcx, rsi
call fcn.1400fe410
mov eax, Ordinal_46
jmp 0x1400fece9
cmp r15d, 2
jne 0x1400febbe
mov edi, r15d
movzx ecx, bx
mov word [rsp + 0x50], di
call qword [sym.imp.WSOCK32.dll_htons]
mov r14d, reloc.WSOCK32.dll_recv
mov word [rsp + 0x52], ax
mov rdi, qword [rsp + 0x48]
lea rdx, [rsp + 0x50]
mov r8d, r14d
mov rcx, rdi
call qword [sym.imp.WSOCK32.dll_bind]
test eax, eax
jns 0x1400fec2d
nop dword [rax + rax]
dec r12d
test r12d, r12d
jle 0x1400fec92
lea rdx, str.Bind_to_local_port__d_failed__trying_next_n
movzx r8d, bx
mov rcx, rsi
call fcn.1400fe360
inc bx
cmp word [rsp + 0x50], 2
jne 0x1400fec18
movzx ecx, bx
call qword [sym.imp.WSOCK32.dll_ntohs]
mov word [rsp + 0x52], ax
lea rdx, [rsp + 0x50]
mov r8d, r14d
mov rcx, rdi
call qword [sym.imp.WSOCK32.dll_bind]
test eax, eax
js 0x1400febe0
lea rcx, [rbp - 0x30]
xor edx, edx
mov r8d, 0x80
mov dword [rsp + 0x30], 0x80
call fcn.14025e980
lea r8, [rsp + 0x30]
lea rdx, [rbp - 0x30]
mov rcx, rdi
call qword [sym.imp.WSOCK32.dll_getsockname]
test eax, eax
jns 0x1400fecc8
call qword [sym.imp.WSOCK32.dll_WSAGetLastError]
mov rcx, qword [rsp + 0x40]
mov edx, eax
mov edi, eax
mov dword [rsi + 0x868c], eax
call fcn.1400f2cd0
lea rdx, str.getsockname___failed_with_errno__d:__s
mov r8d, edi
mov r9, rax
mov rcx, rsi
call fcn.1400fe410
mov eax, Ordinal_46
jmp 0x1400fece9
call qword [sym.imp.WSOCK32.dll_WSAGetLastError]
mov rcx, qword [rsp + 0x40]
mov edx, eax
mov edi, eax
mov dword [rsi + 0x868c], eax
call fcn.1400f2cd0
lea rdx, str.bind_failed_with_errno__d:__s
mov r8d, edi
mov r9, rax
mov rcx, rsi
call fcn.1400fe410
mov eax, Ordinal_46
jmp 0x1400fece9
lea rdx, str.Local_port:__d_n
movzx r8d, bx
mov rcx, rsi
call fcn.1400fe360
mov rax, qword [rsp + 0x40]
mov byte [rax + 0x1ff], 1
xor eax, eax
mov rdi, qword [rsp + 0x2b8]
mov rcx, qword [rbp + 0x150]
xor rcx, rsp
call fcn.14025db20
add rsp, 0x260
pop r15
pop r14
pop r13
pop r12
pop rsi
pop rbx
pop rbp
ret