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

Disassembly:
mov qword [rsp + 0x18], 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 [0x1400e30a8]
xor rax, rsp
mov qword [rbp + 0x1d0], rax
mov rbx, qword [rcx + 0x780]
xor esi, esi
mov r15, qword [rcx + 0x18]
mov r13d, r8d
mov eax, dword [rcx + 0x23c]
mov rdi, rcx
movzx r14d, word [rcx + 0x238]
mov r12d, esi
mov qword [rsp + 0x48], rdx
mov qword [rsp + 0x38], r15
mov qword [rsp + 0x40], rsi
mov dword [rsp + 0x34], eax
test rbx, rbx
jne 0x140047216
test r14w, r14w
je 0x14004750d
xor edx, edx
lea rcx, [rsp + 0x50]
mov r8d, 0x80
call fcn.14008a770
test rbx, rbx
je 0x140047416
mov rcx, rbx
call fcn.140093e00
cmp rax, 0xff
jae 0x140047416
xor edx, edx
lea rcx, [rbp - 0x30]
mov r8d, 0x100
call fcn.14008a770
lea rcx, [0x1400d3250]
mov r15b, sil
call fcn.140093e00
mov r8, rax
lea rcx, [0x1400d3250]
mov rdx, rbx
call fcn.140096e50
mov esi, 2
test eax, eax
jne 0x140047353
lea rcx, [0x1400d3250]
call fcn.140093e00
add rbx, rax
mov r15b, 1
call fcn.140043300
mov ecx, eax
test eax, eax
je 0x14004738d
sub ecx, 1
je 0x140047349
cmp ecx, 1
je 0x1400473b2
test r15b, r15b
jne 0x140047406
mov r15, qword [rsp + 0x38]
mov al, byte [r15 + 0x18c]
mov byte [rsp + 0x30], al
cmp r13d, esi
jne 0x1400472dd
mov byte [r15 + 0x18c], 1
lea rax, [rsp + 0x40]
xor r9d, r9d
xor r8d, r8d
mov qword [rsp + 0x20], rax
mov rdx, rbx
mov rcx, rdi
call fcn.14005cc10
cmp eax, 1
jne 0x14004730a
lea rdx, [rsp + 0x40]
mov rcx, rdi
call fcn.140050630
mov al, byte [rsp + 0x30]
mov byte [r15 + 0x18c], al
mov r15, qword [rsp + 0x40]
test r15, r15
je 0x140047406
mov rcx, qword [r15]
lea rdx, [rbp - 0x30]
mov r8d, 0x100
call fcn.14005c598
mov rdx, r15
mov rcx, rdi
call fcn.14005ce5c
mov rcx, qword [r15]
cmp r13d, dword [rcx + 4]
je 0x1400473b2
mov eax, 1
jmp 0x14004750f
lea rcx, str.host_
call fcn.140093e00
mov r8, rax
lea rcx, str.host_
mov rdx, rbx
call fcn.140096e50
test eax, eax
jne 0x140047296
lea rcx, str.host_
call fcn.140093e00
add rbx, rax
jmp 0x1400472c0
test r15b, r15b
je 0x1400472c0
lea rdx, str.Couldnt_bind_to_interface__s
mov r8, rbx
mov rcx, rdi
call fcn.14004675c
mov eax, 0x2d
jmp 0x14004750f
cmp r13d, esi
jne 0x1400473e3
lea r8, [rsp + 0x54]
lea rdx, [rbp - 0x30]
call fcn.1400628d8
test eax, eax
jle 0x1400473e3
movzx ecx, r14w
mov word [rsp + 0x50], si
call qword [sym.imp.WS2_32.dll_htons]
mov word [rsp + 0x52], ax
mov r12d, reloc.WS2_32.dll_recv
mov r15, qword [rsp + 0x38]
mov rbx, qword [rsp + 0x48]
lea rdx, [rsp + 0x50]
mov rcx, rbx
mov r8d, r12d
call qword [sym.imp.WS2_32.dll_bind]
mov r13d, 1
jmp 0x14004747e
mov byte [rdi + 0x1263], r12b
lea rdx, str.Couldnt_bind_to__s
jmp 0x14004739d
mov esi, 2
cmp r13d, esi
jne 0x1400473e8
movzx ecx, r14w
mov word [rsp + 0x50], si
call qword [sym.imp.WS2_32.dll_htons]
mov word [rsp + 0x52], ax
lea r12d, [rsi + 0xe]
jmp 0x1400473e8
mov eax, dword [rsp + 0x34]
sub eax, r13d
mov dword [rsp + 0x34], eax
test eax, eax
jle 0x1400474e4
add r14w, r13w
je 0x1400474e4
cmp word [rsp + 0x50], si
jne 0x14004746d
movzx ecx, r14w
call qword [sym.imp.WS2_32.dll_ntohs]
mov word [rsp + 0x52], ax
mov r8d, r12d
lea rdx, [rsp + 0x50]
mov rcx, rbx
call qword [sym.imp.WS2_32.dll_bind]
test eax, eax
js 0x14004743a
mov r8d, 0x80
lea rcx, [rbp - 0x30]
xor edx, edx
mov dword [rsp + 0x34], r8d
call fcn.14008a770
lea r8, [rsp + 0x34]
mov rcx, rbx
lea rdx, [rbp - 0x30]
call qword [sym.imp.WS2_32.dll_getsockname]
test eax, eax
jns 0x140047506
call qword [sym.imp.WS2_32.dll_WSAGetLastError]
mov ecx, eax
mov dword [rdi + 0xd34], eax
lea rdx, [rbp + 0xd0]
mov ebx, eax
call fcn.140062360
lea rdx, str.getsockname___failed_with_errno__d:__s
mov r8d, ebx
mov r9, rax
mov rcx, rdi
call fcn.14004675c
jmp 0x1400473a8
call qword [sym.imp.WS2_32.dll_WSAGetLastError]
mov ecx, eax
mov dword [rdi + 0xd34], eax
lea rdx, [rbp - 0x30]
mov ebx, eax
call fcn.140062360
lea rdx, str.bind_failed_with_errno__d:__s
jmp 0x1400474d1
mov byte [r15 + 0x3d7], r13b
xor eax, eax
mov rcx, qword [rbp + 0x1d0]
xor rcx, rsp
call fcn.140089130
mov rbx, qword [rsp + 0x330]
add rsp, 0x2e0
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
ret