Function at 0x14012c1e8
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 - 0x1f8]
sub rsp, 0x2f8
mov rax, qword [0x1401e00a8]
xor rax, rsp
mov qword [rbp + 0x1e0], rax
mov rax, qword [rcx + 0x18]
xor r15d, r15d
mov rbx, qword [rcx + 0x688]
mov r13d, r8d
movzx r12d, word [rcx + 0x228]
mov rdi, rcx
mov qword [rsp + 0x48], rax
mov r14d, r15d
mov eax, dword [rcx + 0x22c]
mov dword [rsp + 0x38], eax
mov dword [rsp + 0x34], r9d
mov qword [rsp + 0x50], rdx
mov qword [rsp + 0x40], r15
test rbx, rbx
jne 0x14012c261
test r12w, r12w
je 0x14012c613
xor edx, edx
lea rcx, [rsp + 0x60]
mov r8d, 0x80
call fcn.140149310
test rbx, rbx
je 0x14012c4cf
or rsi, 0xffffffffffffffff
mov rax, rsi
inc rax
cmp byte [rbx + rax], r15b
jne 0x14012c283
cmp rax, 0xff
jae 0x14012c4cf
xor edx, edx
lea rcx, [rbp - 0x20]
mov r8d, 0x100
call fcn.140149310
mov rcx, qword [0x1401e0070]
mov r8, rsi
inc r8
cmp byte [rcx + r8], r15b
jne 0x14012c2b3
mov rdx, rbx
call fcn.140174620
mov r15d, reloc.WS2_32.dll_socket
test eax, eax
jne 0x14012c2e6
mov rax, qword [0x1401e0070]
inc rsi
cmp byte [rax + rsi], r14b
jne 0x14012c2d5
add rbx, rsi
mov sil, 1
jmp 0x14012c33d
mov rcx, qword [str.host_]
mov r8, rsi
inc r8
cmp byte [rcx + r8], r14b
jne 0x14012c2f0
mov rdx, rbx
call fcn.140174620
test eax, eax
jne 0x14012c33a
mov rax, qword [str.host_]
inc rsi
cmp byte [rax + rsi], r14b
jne 0x14012c30c
add rbx, rsi
mov rax, qword [rsp + 0x48]
mov sil, byte [rax + 0x602]
cmp r13d, 2
jne 0x14012c3bb
mov byte [rax + 0x602], 1
jmp 0x14012c3c7
mov sil, r14b
mov edx, dword [rsp + 0x34]
lea rax, [rbp - 0x20]
mov dword [rsp + 0x28], 0x100
mov r9, rbx
mov qword [rsp + 0x20], rax
mov ecx, r13d
mov rax, qword [rsp + 0x48]
mov r8d, dword [rax + 0x5f8]
call fcn.14013ea64
mov ecx, eax
test eax, eax
je 0x14012c396
sub ecx, 1
je 0x14012c43b
cmp ecx, 1
je 0x14012c445
test sil, sil
je 0x14012c318
mov byte [rdi + 0x117b], r14b
lea rdx, str.Couldnt_bind_to__s
jmp 0x14012c3a6
test sil, sil
je 0x14012c318
lea rdx, str.Couldnt_bind_to_interface__s
mov r8, rbx
mov rcx, rdi
call fcn.14012a8d0
mov eax, 0x2d
jmp 0x14012c615
cmp r13d, r15d
jne 0x14012c3c7
mov byte [rax + 0x602], 2
lea rax, [rsp + 0x40]
xor r9d, r9d
xor r8d, r8d
mov qword [rsp + 0x20], rax
mov rdx, rbx
mov rcx, rdi
call fcn.1401307b0
cmp eax, 1
jne 0x14012c3f4
lea rdx, [rsp + 0x40]
mov rcx, rdi
call fcn.1401243e4
mov rax, qword [rsp + 0x48]
mov byte [rax + 0x602], sil
mov rcx, qword [rsp + 0x40]
test rcx, rcx
je 0x14012c386
mov rcx, qword [rcx]
lea rdx, [rbp - 0x20]
mov r8d, 0x100
call fcn.140130774
mov rdx, qword [rsp + 0x40]
mov rcx, rdi
call fcn.140130a4c
mov rcx, qword [rsp + 0x40]
mov rdx, qword [rcx]
cmp r13d, dword [rdx + 4]
je 0x14012c445
mov eax, 1
jmp 0x14012c615
cmp r13d, r15d
jne 0x14012c4ad
mov edx, 0x25
lea rcx, [rbp - 0x20]
call fcn.1401494a0
mov rbx, rax
test rax, rax
je 0x14012c466
mov byte [rax], r14b
inc rbx
lea r8, [rsp + 0x68]
mov ecx, r15d
lea rdx, [rbp - 0x20]
call fcn.14013ee4c
test eax, eax
jle 0x14012c4a1
movzx ecx, r12w
mov word [rsp + 0x60], r15w
call qword [sym.imp.WS2_32.dll_htons]
mov word [rsp + 0x62], ax
test rbx, rbx
je 0x14012c4a1
mov rcx, rbx
call fcn.1401778e4
mov dword [rsp + 0x78], eax
mov r14d, 0x1c
lea r15d, [r14 - 0x1a]
jmp 0x14012c51a
mov r15d, 2
cmp r13d, r15d
jne 0x14012c51a
lea r8, [rsp + 0x64]
mov ecx, r15d
lea rdx, [rbp - 0x20]
call fcn.14013ee4c
test eax, eax
jle 0x14012c51a
jmp 0x14012c4ff
mov r15d, reloc.WS2_32.dll_socket
cmp r13d, r15d
jne 0x14012c4f4
movzx ecx, r12w
mov word [rsp + 0x60], r15w
call qword [sym.imp.WS2_32.dll_htons]
lea r14d, [r15 + 5]
lea r15d, [r14 - 0x1a]
jmp 0x14012c515
mov r15d, 2
cmp r13d, r15d
jne 0x14012c51a
movzx ecx, r12w
mov word [rsp + 0x60], r15w
call qword [sym.imp.WS2_32.dll_htons]
mov r14d, reloc.WS2_32.dll_recv
mov word [rsp + 0x62], ax
mov rbx, qword [rsp + 0x50]
lea rdx, [rsp + 0x60]
mov rcx, rbx
mov r8d, r14d
call qword [sym.imp.WS2_32.dll_bind]
mov esi, 1
jmp 0x14012c573
mov eax, dword [rsp + 0x38]
sub eax, esi
mov dword [rsp + 0x38], eax
test eax, eax
jle 0x14012c5df
add r12w, si
je 0x14012c5df
movzx ecx, r12w
call qword [sym.imp.WS2_32.dll_ntohs]
mov r8d, r14d
lea rdx, [rsp + 0x60]
mov rcx, rbx
mov word [rsp + 0x62], ax
call qword [sym.imp.WS2_32.dll_bind]
test eax, eax
js 0x14012c537
mov r8d, 0x80
lea rcx, [rbp - 0x20]
xor edx, edx
mov dword [rsp + 0x34], r8d
call fcn.140149310
lea r8, [rsp + 0x34]
mov rcx, rbx
lea rdx, [rbp - 0x20]
call qword [sym.imp.WS2_32.dll_getsockname]
test eax, eax
jns 0x14012c607
call qword [sym.imp.WS2_32.dll_WSAGetLastError]
mov r8d, 0x100
lea rdx, [rbp + 0xe0]
mov ecx, eax
mov dword [rdi + 0xc1c], eax
mov ebx, eax
call fcn.14013d634
lea rdx, str.getsockname___failed_with_errno__d:__s
mov r8d, ebx
mov r9, rax
mov rcx, rdi
call fcn.14012a8d0
jmp 0x14012c3b1
call qword [sym.imp.WS2_32.dll_WSAGetLastError]
mov r8d, 0x100
lea rdx, [rbp - 0x20]
mov ecx, eax
mov dword [rdi + 0xc1c], eax
mov ebx, eax
call fcn.14013d634
lea rdx, str.bind_failed_with_errno__d:__s
jmp 0x14012c5cc
mov rax, qword [rsp + 0x48]
mov byte [rax + 0x29e], sil
xor eax, eax
mov rcx, qword [rbp + 0x1e0]
xor rcx, rsp
call fcn.140146a00
add rsp, 0x2f8
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbx
pop rbp
ret