Function at 0x14012932c
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 [0x1401dd0a8]
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 0x1401293a5
test r12w, r12w
je 0x140129757
xor edx, edx
lea rcx, [rsp + 0x60]
mov r8d, 0x80
call fcn.140146460
test rbx, rbx
je 0x140129613
or rsi, 0xffffffffffffffff
mov rax, rsi
inc rax
cmp byte [rbx + rax], r15b
jne 0x1401293c7
cmp rax, 0xff
jae 0x140129613
xor edx, edx
lea rcx, [rbp - 0x20]
mov r8d, 0x100
call fcn.140146460
mov rcx, qword [0x1401dd070]
mov r8, rsi
inc r8
cmp byte [rcx + r8], r15b
jne 0x1401293f7
mov rdx, rbx
call fcn.140171770
mov r15d, reloc.WS2_32.dll_socket
test eax, eax
jne 0x14012942a
mov rax, qword [0x1401dd070]
inc rsi
cmp byte [rax + rsi], r14b
jne 0x140129419
add rbx, rsi
mov sil, 1
jmp 0x140129481
mov rcx, qword [str.host_]
mov r8, rsi
inc r8
cmp byte [rcx + r8], r14b
jne 0x140129434
mov rdx, rbx
call fcn.140171770
test eax, eax
jne 0x14012947e
mov rax, qword [str.host_]
inc rsi
cmp byte [rax + rsi], r14b
jne 0x140129450
add rbx, rsi
mov rax, qword [rsp + 0x48]
mov sil, byte [rax + 0x602]
cmp r13d, 2
jne 0x1401294ff
mov byte [rax + 0x602], 1
jmp 0x14012950b
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.14013bba8
mov ecx, eax
test eax, eax
je 0x1401294da
sub ecx, 1
je 0x14012957f
cmp ecx, 1
je 0x140129589
test sil, sil
je 0x14012945c
mov byte [rdi + 0x117b], r14b
lea rdx, str.Couldnt_bind_to__s
jmp 0x1401294ea
test sil, sil
je 0x14012945c
lea rdx, str.Couldnt_bind_to_interface__s
mov r8, rbx
mov rcx, rdi
call fcn.140127a14
mov eax, 0x2d
jmp 0x140129759
cmp r13d, r15d
jne 0x14012950b
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.14012d8f4
cmp eax, 1
jne 0x140129538
lea rdx, [rsp + 0x40]
mov rcx, rdi
call fcn.140121528
mov rax, qword [rsp + 0x48]
mov byte [rax + 0x602], sil
mov rcx, qword [rsp + 0x40]
test rcx, rcx
je 0x1401294ca
mov rcx, qword [rcx]
lea rdx, [rbp - 0x20]
mov r8d, 0x100
call fcn.14012d8b8
mov rdx, qword [rsp + 0x40]
mov rcx, rdi
call fcn.14012db90
mov rcx, qword [rsp + 0x40]
mov rdx, qword [rcx]
cmp r13d, dword [rdx + 4]
je 0x140129589
mov eax, 1
jmp 0x140129759
cmp r13d, r15d
jne 0x1401295f1
mov edx, 0x25
lea rcx, [rbp - 0x20]
call fcn.1401465f0
mov rbx, rax
test rax, rax
je 0x1401295aa
mov byte [rax], r14b
inc rbx
lea r8, [rsp + 0x68]
mov ecx, r15d
lea rdx, [rbp - 0x20]
call fcn.14013bf90
test eax, eax
jle 0x1401295e5
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 0x1401295e5
mov rcx, rbx
call fcn.140174a34
mov dword [rsp + 0x78], eax
mov r14d, 0x1c
lea r15d, [r14 - 0x1a]
jmp 0x14012965e
mov r15d, 2
cmp r13d, r15d
jne 0x14012965e
lea r8, [rsp + 0x64]
mov ecx, r15d
lea rdx, [rbp - 0x20]
call fcn.14013bf90
test eax, eax
jle 0x14012965e
jmp 0x140129643
mov r15d, reloc.WS2_32.dll_socket
cmp r13d, r15d
jne 0x140129638
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 0x140129659
mov r15d, 2
cmp r13d, r15d
jne 0x14012965e
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 0x1401296b7
mov eax, dword [rsp + 0x38]
sub eax, esi
mov dword [rsp + 0x38], eax
test eax, eax
jle 0x140129723
add r12w, si
je 0x140129723
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 0x14012967b
mov r8d, 0x80
lea rcx, [rbp - 0x20]
xor edx, edx
mov dword [rsp + 0x34], r8d
call fcn.140146460
lea r8, [rsp + 0x34]
mov rcx, rbx
lea rdx, [rbp - 0x20]
call qword [sym.imp.WS2_32.dll_getsockname]
test eax, eax
jns 0x14012974b
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.14013a778
lea rdx, str.getsockname___failed_with_errno__d:__s
mov r8d, ebx
mov r9, rax
mov rcx, rdi
call fcn.140127a14
jmp 0x1401294f5
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.14013a778
lea rdx, str.bind_failed_with_errno__d:__s
jmp 0x140129710
mov rax, qword [rsp + 0x48]
mov byte [rax + 0x29e], sil
xor eax, eax
mov rcx, qword [rbp + 0x1e0]
xor rcx, rsp
call fcn.140143b50
add rsp, 0x2f8
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbx
pop rbp
ret