Function at 0x14005a580
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
mov eax, 0x1d0
call fcn.1401ef830
sub rsp, rax
mov rax, qword [0x140310170]
xor rax, rsp
mov qword [rsp + 0x1c0], rax
mov rbp, qword [rcx]
xor r12d, r12d
mov r15d, r8d
mov dword [rsp + 0x30], r8d
mov r13, rdx
mov qword [rsp + 0x38], r12
mov r14, rcx
mov rdi, qword [rbp + 0x5e8]
movzx ebx, word [rbp + 0x278]
mov esi, dword [rbp + 0x27c]
test rdi, rdi
jne 0x14005a5ea
test bx, bx
je 0x14005a8b5
xor edx, edx
lea rcx, [rsp + 0x40]
mov r8d, 0x80
call fcn.14020fde0
test rdi, rdi
je 0x14005a774
or rax, 0xffffffffffffffff
nop dword [rax]
inc rax
cmp byte [rdi + rax], r12b
jne 0x14005a610
cmp rax, 0xff
jae 0x14005a774
xor edx, edx
lea rcx, [rsp + 0xc0]
mov r8d, 0x100
call fcn.14020fde0
mov r8d, 3
lea rcx, [0x1402cf6c0]
mov rdx, rdi
call fcn.1402167d0
test eax, eax
jne 0x14005a670
lea r8, [rdi + 3]
mov rcx, rbp
lea rdx, str.Couldnt_bind_to_interface__s
call fcn.140059810
mov eax, Ordinal_46
jmp 0x14005a8b7
mov r8d, 5
lea rcx, str.host_
mov rdx, rdi
call fcn.1402167d0
test eax, eax
jne 0x14005a68d
add rdi, 5
cmp dword [rsp + 0x30], 2
mov r15d, dword [r14 + 0x410]
jne 0x14005a6a6
mov dword [r14 + 0x410], 1
lea r9, [rsp + 0x38]
xor r8d, r8d
mov rdx, rdi
mov rcx, r14
call fcn.14005c820
cmp eax, 1
jne 0x14005a6cb
lea rdx, [rsp + 0x38]
mov rcx, r14
call fcn.140068050
mov dword [r14 + 0x410], r15d
mov r15, qword [rsp + 0x38]
test r15, r15
je 0x14005a758
mov rcx, qword [r15]
cmp dword [rcx + 4], 2
jne 0x14005a700
mov rcx, qword [rcx + 0x20]
lea rdx, [rsp + 0xc0]
add rcx, 4
mov r8d, 0x100
call fcn.1400757c0
mov rax, qword [r15]
lea rdx, str.Name__s_family__i_resolved_to__s_family__i_n
mov r9d, dword [rsp + 0x30]
mov r8, rdi
mov ecx, dword [rax + 4]
lea rax, [rsp + 0xc0]
mov dword [rsp + 0x28], ecx
mov rcx, rbp
mov qword [rsp + 0x20], rax
call fcn.140059720
mov rdx, r15
mov rcx, rbp
call fcn.14005c9b0
cmp dword [rsp + 0x30], 2
jne 0x14005a798
lea rdx, [rsp + 0x44]
lea rcx, [rsp + 0xc0]
call fcn.1400756e0
test eax, eax
jle 0x14005a798
jmp 0x14005a77a
mov r8, rdi
lea rdx, str.Couldnt_bind_to__s
mov rcx, rbp
call fcn.140059810
mov eax, Ordinal_46
jmp 0x14005a8b7
cmp r15d, 2
jne 0x14005a798
mov eax, 2
movzx ecx, bx
mov word [rsp + 0x40], ax
call qword [sym.imp.WS2_32.dll_htons]
mov word [rsp + 0x42], ax
mov r12d, reloc.WS2_32.dll_recv
mov r8d, r12d
lea rdx, [rsp + 0x40]
mov rcx, r13
call qword [sym.imp.WS2_32.dll_bind]
test eax, eax
jns 0x14005a7fb
nop dword [rax]
dec esi
test esi, esi
jle 0x14005a866
movzx r8d, bx
lea rdx, str.Bind_to_local_port__hu_failed__trying_next_n
mov rcx, rbp
call fcn.140059720
inc bx
cmp word [rsp + 0x40], 2
jne 0x14005a7e6
movzx ecx, bx
call qword [sym.imp.WS2_32.dll_ntohs]
mov word [rsp + 0x42], ax
mov r8d, r12d
lea rdx, [rsp + 0x40]
mov rcx, r13
call qword [sym.imp.WS2_32.dll_bind]
test eax, eax
js 0x14005a7b0
xor edx, edx
mov dword [rsp + 0x30], 0x80
mov r8d, 0x80
lea rcx, [rsp + 0xc0]
call fcn.14020fde0
lea r8, [rsp + 0x30]
mov rcx, r13
lea rdx, [rsp + 0xc0]
call qword [sym.imp.WS2_32.dll_getsockname]
test eax, eax
jns 0x14005a89a
call qword [sym.imp.WS2_32.dll_WSAGetLastError]
mov edx, eax
mov dword [rbp + 0x89e4], eax
mov rcx, r14
mov ebx, eax
call fcn.1400755c0
mov r9, rax
lea rdx, str.getsockname___failed_with_errno__d:__s
mov r8d, ebx
mov rcx, rbp
call fcn.140059810
mov eax, Ordinal_46
jmp 0x14005a8b7
call qword [sym.imp.WS2_32.dll_WSAGetLastError]
mov edx, eax
mov dword [rbp + 0x89e4], eax
mov rcx, r14
mov ebx, eax
call fcn.1400755c0
mov r9, rax
lea rdx, str.bind_failed_with_errno__d:__s
mov r8d, ebx
mov rcx, rbp
call fcn.140059810
mov eax, Ordinal_46
jmp 0x14005a8b7
movzx r8d, bx
lea rdx, str.Local_port:__hu_n
mov rcx, rbp
call fcn.140059720
mov byte [r14 + 0x3e3], 1
xor eax, eax
mov rcx, qword [rsp + 0x1c0]
xor rcx, rsp
call fcn.1401ef4e0
mov rbx, qword [rsp + 0x228]
add rsp, 0x1d0
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
ret