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

Disassembly:
push rbp
push rbx
push rsi
push rdi
push r12
push r13
push r14
push r15
lea rbp, [rsp - 0x1e8]
sub rsp, 0x2e8
mov rax, qword [0x14042f068]
xor rax, rsp
mov qword [rbp + 0x1d0], rax
mov rbx, qword [rcx + 0x730]
xor r12d, r12d
movzx eax, word [rcx + 0x232]
mov r15d, r9d
movzx esi, word [rcx + 0x230]
mov r13, rdx
mov qword [rsp + 0x48], r8
mov rdi, rcx
mov qword [rsp + 0x40], rdx
mov r14d, r12d
mov qword [rsp + 0x38], r12
mov dword [rsp + 0x34], eax
test rbx, rbx
jne 0x140291b32
test si, si
je 0x140291f73
xor edx, edx
lea rcx, [rsp + 0x50]
mov r8d, 0x80
call fcn.1402b0760
test rbx, rbx
je 0x140291e0b
mov rcx, rbx
call fcn.1402b31f0
mov r8d, 0xff
cmp rax, r8
jae 0x140291e0b
xor edx, edx
mov byte [rbp - 0x30], r12b
lea rcx, [rbp - 0x2f]
call fcn.1402b0760
mov rcx, qword [0x14042ea40]
mov r13b, r12b
call fcn.1402b31f0
mov rcx, qword [0x14042ea40]
mov r8, rax
mov rdx, rbx
call fcn.1402b4ea0
mov r12d, 0x17
test eax, eax
jne 0x140291c2a
mov rcx, qword [0x14042ea40]
call fcn.1402b31f0
add rbx, rax
mov r13b, 1
mov r8, qword [rsp + 0x40]
lea rax, [rbp - 0x30]
mov edx, dword [rbp + 0x250]
mov r9, rbx
mov dword [rsp + 0x28], 0x100
mov ecx, r15d
mov qword [rsp + 0x20], rax
mov r8d, dword [r8 + 0x518]
call fcn.14017fc38
mov ecx, eax
test eax, eax
je 0x140291cf5
sub ecx, 1
je 0x140291dcc
cmp ecx, 1
je 0x140291c61
test r13b, r13b
jne 0x140291df8
mov r13, qword [rsp + 0x40]
mov al, byte [r13 + 0x524]
mov byte [rsp + 0x30], al
cmp r15d, 2
jne 0x140291d1a
mov byte [r13 + 0x524], 1
jmp 0x140291d27
mov rcx, qword [str.host_]
call fcn.1402b31f0
mov rcx, qword [str.host_]
mov r8, rax
mov rdx, rbx
call fcn.1402b4ea0
test eax, eax
jne 0x140291bb4
mov rcx, qword [str.host_]
call fcn.1402b31f0
add rbx, rax
jmp 0x140291c03
lea r9, [rbp - 0x30]
mov dword [rsp + 0x20], r15d
mov r8, rbx
lea rdx, str.Local_Interface__s_is_ip__s_using_address_family__i
mov rcx, rdi
call fcn.14027c27c
mov r13, qword [rsp + 0x40]
cmp r15d, r12d
jne 0x140291dd6
mov edx, 0x25
lea rcx, [rbp - 0x30]
call fcn.1402b0d04
mov rbx, rax
test rax, rax
je 0x140291ca6
mov byte [rax], r14b
inc rbx
lea r8, [rsp + 0x58]
mov ecx, r12d
lea rdx, [rbp - 0x30]
call fcn.14028a564
test eax, eax
jle 0x140291ce6
movzx ecx, si
mov word [rsp + 0x50], r12w
call qword [sym.imp.ws2_32.dll_htons]
mov word [rsp + 0x52], ax
test rbx, rbx
je 0x140291ce6
xor edx, edx
mov rcx, rbx
lea r8d, [rdx + 0xa]
call fcn.1402bd22c
mov dword [rsp + 0x68], eax
mov r14d, 0x1c
lea r12d, [r14 - 0x1a]
jmp 0x140291e55
test r13b, r13b
je 0x140291c03
lea rdx, str.Couldnt_bind_to_interface__s
mov r8, rbx
mov rcx, rdi
call fcn.14027c1b0
mov eax, 0x2d
jmp 0x140291f75
cmp r15d, r12d
jne 0x140291d27
mov byte [r13 + 0x524], 2
xor r9d, r9d
lea rax, [rsp + 0x38]
mov rdx, rbx
mov qword [rsp + 0x20], rax
mov rcx, rdi
lea r8d, [r9 + 0x50]
call fcn.14026b8f8
cmp eax, 1
jne 0x140291d55
lea rdx, [rsp + 0x38]
mov rcx, rdi
call fcn.14026ac98
mov rcx, qword [rsp + 0x38]
mov al, byte [rsp + 0x30]
mov byte [r13 + 0x524], al
test rcx, rcx
je 0x140291df8
mov rcx, qword [rcx]
lea rdx, [rbp - 0x30]
mov r8d, 0x100
call fcn.14026b8bc
mov rax, qword [rsp + 0x38]
lea rdx, str.Name__s_family__i_resolved_to__s_family__i
mov r9d, r15d
mov r8, rbx
mov rcx, qword [rax]
mov eax, dword [rcx + 4]
mov rcx, rdi
mov dword [rsp + 0x28], eax
lea rax, [rbp - 0x30]
mov qword [rsp + 0x20], rax
call fcn.14027c27c
mov rdx, qword [rsp + 0x38]
mov rcx, rdi
call fcn.14026bc98
mov rcx, qword [rsp + 0x38]
mov rdx, qword [rcx]
cmp r15d, dword [rdx + 4]
je 0x140291c81
mov eax, 1
jmp 0x140291f75
mov r12d, 2
cmp r15d, r12d
jne 0x140291e55
lea r8, [rsp + 0x54]
mov ecx, r12d
lea rdx, [rbp - 0x30]
call fcn.14028a564
test eax, eax
jle 0x140291e55
jmp 0x140291e3b
mov byte [rdi + 0x12ef], r14b
lea rdx, str.Couldnt_bind_to__s
jmp 0x140291d05
mov r12d, 0x17
cmp r15d, r12d
jne 0x140291e30
movzx ecx, si
mov word [rsp + 0x50], r12w
call qword [sym.imp.ws2_32.dll_htons]
lea r14d, [r12 + 5]
lea r12d, [r14 - 0x1a]
jmp 0x140291e50
mov r12d, 2
cmp r15d, r12d
jne 0x140291e55
movzx ecx, si
mov word [rsp + 0x50], r12w
call qword [sym.imp.ws2_32.dll_htons]
mov r14d, 0x10
mov word [rsp + 0x52], ax
mov rbx, qword [rsp + 0x48]
lea rdx, [rsp + 0x50]
mov rcx, rbx
mov r8d, r14d
call qword [sym.imp.ws2_32.dll_bind]
mov r15d, 1
jmp 0x140291ec5
mov eax, dword [rsp + 0x34]
sub eax, r15d
mov dword [rsp + 0x34], eax
test eax, eax
jle 0x140291f31
add si, r15w
je 0x140291f31
movzx r8d, si
lea rdx, str.Bind_to_local_port__d_failed__trying_next
sub r8d, r15d
mov rcx, rdi
call fcn.14027c27c
movzx ecx, si
call qword [sym.imp.ws2_32.dll_ntohs]
mov r8d, r14d
lea rdx, [rsp + 0x50]
mov rcx, rbx
mov word [rsp + 0x52], ax
call qword [sym.imp.ws2_32.dll_bind]
test eax, eax
js 0x140291e73
mov r8d, 0x80
lea rcx, [rbp - 0x30]
xor edx, edx
mov dword [rsp + 0x34], r8d
call fcn.1402b0760
lea r8, [rsp + 0x34]
mov rcx, rbx
lea rdx, [rbp - 0x30]
call qword [sym.imp.ws2_32.dll_getsockname]
test eax, eax
jns 0x140291f59
call qword [sym.imp.ws2_32.dll_WSAGetLastError]
mov r8d, 0x100
lea rdx, [rbp + 0xd0]
mov ecx, eax
mov dword [rdi + 0xd14], eax
mov ebx, eax
call fcn.140259f94
lea rdx, str.getsockname___failed_with_errno__d:__s
mov r8d, ebx
mov r9, rax
mov rcx, rdi
call fcn.14027c1b0
jmp 0x140291d10
call qword [sym.imp.ws2_32.dll_WSAGetLastError]
mov r8d, 0x100
lea rdx, [rbp - 0x30]
mov ecx, eax
mov dword [rdi + 0xd14], eax
mov ebx, eax
call fcn.140259f94
lea rdx, str.bind_failed_with_errno__d:__s
jmp 0x140291f1e
movzx r8d, si
lea rdx, str.Local_port:__hu
mov rcx, rdi
call fcn.14027c27c
mov byte [r13 + 0x2da], r15b
xor eax, eax
mov rcx, qword [rbp + 0x1d0]
xor rcx, rsp
call fcn.1402af300
add rsp, 0x2e8
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbx
pop rbp
ret