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

Disassembly:
mov qword [rsp + 0x20], rbx
push rbp
push rsi
push rdi
push r12
push r13
push r14
push r15
lea rbp, [rsp - 0x1e0]
sub rsp, 0x2e0
mov rax, qword [0x14009d0d8]
xor rax, rsp
mov qword [rbp + 0x1d0], rax
mov rax, qword [rcx + 0x18]
xor r14d, r14d
mov rbx, qword [rcx + 0x688]
mov r13d, r8d
movzx r12d, word [rcx + 0x228]
mov rdi, rcx
mov qword [rsp + 0x40], rax
mov r15d, r14d
mov eax, dword [rcx + 0x22c]
mov dword [rsp + 0x30], eax
mov qword [rsp + 0x48], rdx
mov dword [rsp + 0x34], r14d
mov qword [rsp + 0x38], r14
test rbx, rbx
jne 0x1400224c0
test r12w, r12w
je 0x1400227cd
xor edx, edx
lea rcx, [rsp + 0x50]
mov r8d, 0x80
call fcn.14003c9f0
test rbx, rbx
je 0x1400226ba
or rsi, 0xffffffffffffffff
mov rax, rsi
inc rax
cmp byte [rbx + rax], r14b
jne 0x1400224e2
cmp rax, 0xff
jae 0x1400226ba
xor edx, edx
lea rcx, [rbp - 0x30]
mov r8d, 0x100
call fcn.14003c9f0
mov rcx, qword [0x14009d040]
mov r8, rsi
inc r8
cmp byte [rcx + r8], r14b
jne 0x140022512
mov rdx, rbx
call fcn.140044140
mov r14d, 2
test eax, eax
jne 0x140022613
mov rax, qword [0x14009d040]
inc rsi
cmp byte [rax + rsi], r15b
jne 0x140022538
add rbx, rsi
mov r15b, 1
mov r9d, 0x100
lea r8, [rbp - 0x30]
mov rdx, rbx
mov ecx, r13d
call fcn.1400153f0
mov ecx, eax
test eax, eax
je 0x14002264e
sub ecx, 1
je 0x140022609
cmp ecx, 1
je 0x140022673
test r15b, r15b
jne 0x1400226aa
mov r15, qword [rsp + 0x40]
mov sil, byte [r15 + 0x5fe]
cmp r13d, r14d
jne 0x14002259a
mov byte [r15 + 0x5fe], 1
lea rax, [rsp + 0x38]
xor r9d, r9d
xor r8d, r8d
mov qword [rsp + 0x20], rax
mov rdx, rbx
mov rcx, rdi
call fcn.140026524
cmp eax, 1
jne 0x1400225c7
lea rdx, [rsp + 0x38]
mov rcx, rdi
call fcn.14001ab34
mov byte [r15 + 0x5fe], sil
mov rcx, qword [rsp + 0x38]
test rcx, rcx
je 0x1400226aa
mov rcx, qword [rcx]
lea rdx, [rbp - 0x30]
mov r8d, 0x100
call fcn.1400264f8
mov rdx, qword [rsp + 0x38]
mov rcx, rdi
call fcn.14002678c
mov rcx, qword [rsp + 0x38]
mov rdx, qword [rcx]
cmp r13d, dword [rdx + 4]
je 0x140022673
mov eax, 1
jmp 0x1400227cf
mov rcx, qword [str.host_]
mov r8, rsi
inc r8
cmp byte [rcx + r8], r15b
jne 0x14002261d
mov rdx, rbx
call fcn.140044140
test eax, eax
jne 0x140022547
mov rax, qword [str.host_]
inc rsi
cmp byte [rax + rsi], r15b
jne 0x14002263d
add rbx, rsi
jmp 0x140022581
test r15b, r15b
je 0x140022581
lea rdx, str.Couldnt_bind_to_interface__s
mov r8, rbx
mov rcx, rdi
call fcn.140020ce4
mov eax, 0x2d
jmp 0x1400227cf
cmp r13d, r14d
jne 0x1400226c7
lea r8, [rsp + 0x54]
mov ecx, r14d
lea rdx, [rbp - 0x30]
call fcn.140033ee0
test eax, eax
jle 0x1400226c7
movzx ecx, r12w
mov word [rsp + 0x50], r14w
call qword [sym.imp.WS2_32.dll_htons]
mov word [rsp + 0x52], ax
mov r15d, reloc.WS2_32.dll_recv
jmp 0x1400226cc
mov byte [rdi + 0x1173], 0
lea rdx, str.Couldnt_bind_to__s
jmp 0x14002265e
mov r14d, 2
cmp r13d, r14d
jne 0x1400226cc
jmp 0x14002268d
mov r15d, dword [rsp + 0x34]
mov rbx, qword [rsp + 0x48]
lea rdx, [rsp + 0x50]
mov rcx, rbx
mov r8d, r15d
call qword [sym.imp.WS2_32.dll_bind]
mov esi, 1
jmp 0x14002272d
mov eax, dword [rsp + 0x30]
sub eax, esi
mov dword [rsp + 0x30], eax
test eax, eax
jle 0x140022799
add r12w, si
je 0x140022799
cmp word [rsp + 0x50], r14w
jne 0x14002271c
movzx ecx, r12w
call qword [sym.imp.WS2_32.dll_ntohs]
mov word [rsp + 0x52], ax
mov r8d, r15d
lea rdx, [rsp + 0x50]
mov rcx, rbx
call qword [sym.imp.WS2_32.dll_bind]
test eax, eax
js 0x1400226e9
mov r8d, 0x80
lea rcx, [rbp - 0x30]
xor edx, edx
mov dword [rsp + 0x30], r8d
call fcn.14003c9f0
lea r8, [rsp + 0x30]
mov rcx, rbx
lea rdx, [rbp - 0x30]
call qword [sym.imp.WS2_32.dll_getsockname]
test eax, eax
jns 0x1400227c1
call qword [sym.imp.WS2_32.dll_WSAGetLastError]
mov r8d, 0x100
lea rdx, [rbp + 0xd0]
mov ecx, eax
mov dword [rdi + 0xc14], eax
mov ebx, eax
call fcn.140032da4
lea rdx, str.getsockname___failed_with_errno__d:__s
mov r8d, ebx
mov r9, rax
mov rcx, rdi
call fcn.140020ce4
jmp 0x140022669
call qword [sym.imp.WS2_32.dll_WSAGetLastError]
mov r8d, 0x100
lea rdx, [rbp - 0x30]
mov ecx, eax
mov dword [rdi + 0xc14], eax
mov ebx, eax
call fcn.140032da4
lea rdx, str.bind_failed_with_errno__d:__s
jmp 0x140022786
mov rax, qword [rsp + 0x40]
mov byte [rax + 0x29e], sil
xor eax, eax
mov rcx, qword [rbp + 0x1d0]
xor rcx, rsp
call fcn.14003b480
mov rbx, qword [rsp + 0x338]
add rsp, 0x2e0
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
ret