Function at 0x1400245c8
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 [0x14009a0f8]
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 0x140024644
test r12w, r12w
je 0x140024951
xor edx, edx
lea rcx, [rsp + 0x50]
mov r8d, 0x80
call fcn.14003ea90
test rbx, rbx
je 0x14002483e
or rsi, 0xffffffffffffffff
mov rax, rsi
inc rax
cmp byte [rbx + rax], r14b
jne 0x140024666
cmp rax, 0xff
jae 0x14002483e
xor edx, edx
lea rcx, [rbp - 0x30]
mov r8d, 0x100
call fcn.14003ea90
mov rcx, qword [0x14009a060]
mov r8, rsi
inc r8
cmp byte [rcx + r8], r14b
jne 0x140024696
mov rdx, rbx
call fcn.140046310
mov r14d, 2
test eax, eax
jne 0x140024797
mov rax, qword [0x14009a060]
inc rsi
cmp byte [rax + rsi], r15b
jne 0x1400246bc
add rbx, rsi
mov r15b, 1
mov r9d, 0x100
lea r8, [rbp - 0x30]
mov rdx, rbx
mov ecx, r13d
call fcn.140017640
mov ecx, eax
test eax, eax
je 0x1400247d2
sub ecx, 1
je 0x14002478d
cmp ecx, 1
je 0x1400247f7
test r15b, r15b
jne 0x14002482e
mov r15, qword [rsp + 0x40]
mov sil, byte [r15 + 0x5fe]
cmp r13d, r14d
jne 0x14002471e
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.1400286a4
cmp eax, 1
jne 0x14002474b
lea rdx, [rsp + 0x38]
mov rcx, rdi
call fcn.14001ccc4
mov byte [r15 + 0x5fe], sil
mov rcx, qword [rsp + 0x38]
test rcx, rcx
je 0x14002482e
mov rcx, qword [rcx]
lea rdx, [rbp - 0x30]
mov r8d, 0x100
call fcn.140028678
mov rdx, qword [rsp + 0x38]
mov rcx, rdi
call fcn.14002890c
mov rcx, qword [rsp + 0x38]
mov rdx, qword [rcx]
cmp r13d, dword [rdx + 4]
je 0x1400247f7
mov eax, 1
jmp 0x140024953
mov rcx, qword [str.host_]
mov r8, rsi
inc r8
cmp byte [rcx + r8], r15b
jne 0x1400247a1
mov rdx, rbx
call fcn.140046310
test eax, eax
jne 0x1400246cb
mov rax, qword [str.host_]
inc rsi
cmp byte [rax + rsi], r15b
jne 0x1400247c1
add rbx, rsi
jmp 0x140024705
test r15b, r15b
je 0x140024705
lea rdx, str.Couldnt_bind_to_interface__s
mov r8, rbx
mov rcx, rdi
call fcn.140022e68
mov eax, 0x2d
jmp 0x140024953
cmp r13d, r14d
jne 0x14002484b
lea r8, [rsp + 0x54]
mov ecx, r14d
lea rdx, [rbp - 0x30]
call fcn.140036060
test eax, eax
jle 0x14002484b
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 0x140024850
mov byte [rdi + 0x1173], 0
lea rdx, str.Couldnt_bind_to__s
jmp 0x1400247e2
mov r14d, 2
cmp r13d, r14d
jne 0x140024850
jmp 0x140024811
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 0x1400248b1
mov eax, dword [rsp + 0x30]
sub eax, esi
mov dword [rsp + 0x30], eax
test eax, eax
jle 0x14002491d
add r12w, si
je 0x14002491d
cmp word [rsp + 0x50], r14w
jne 0x1400248a0
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 0x14002486d
mov r8d, 0x80
lea rcx, [rbp - 0x30]
xor edx, edx
mov dword [rsp + 0x30], r8d
call fcn.14003ea90
lea r8, [rsp + 0x30]
mov rcx, rbx
lea rdx, [rbp - 0x30]
call qword [sym.imp.WS2_32.dll_getsockname]
test eax, eax
jns 0x140024945
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.140034f24
lea rdx, str.getsockname___failed_with_errno__d:__s
mov r8d, ebx
mov r9, rax
mov rcx, rdi
call fcn.140022e68
jmp 0x1400247ed
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.140034f24
lea rdx, str.bind_failed_with_errno__d:__s
jmp 0x14002490a
mov rax, qword [rsp + 0x40]
mov byte [rax + 0x29e], sil
xor eax, eax
mov rcx, qword [rbp + 0x1d0]
xor rcx, rsp
call fcn.14003d6b0
mov rbx, qword [rsp + 0x338]
add rsp, 0x2e0
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
ret