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

Disassembly:
push rbx
push rbp
push rsi
push rdi
push r15
sub rsp, 0x90
mov rax, qword [0x1400c7008]
xor rax, rsp
mov qword [rsp + 0x88], rax
xor esi, esi
mov rdi, r8
mov qword [rsp + 0x40], rsi
mov rbp, rdx
mov rbx, rcx
mov r15d, esi
test rcx, rcx
je 0x1400644d3
test r8, r8
je 0x1400644ec
mov eax, dword [r8]
test eax, eax
je 0x140064052
mov r15d, dword [r8]
mov dword [r8], esi
add rcx, 0x40
xor r9d, r9d
xor r8d, r8d
call fcn.140084220
xor r9d, r9d
lea rcx, [rbx + 0xc8]
mov rdx, rbp
lea r8d, [r9 + 1]
call fcn.140084220
mov rax, qword [rbx + 0x60]
mov qword [rbx + 0x150], rax
mov rax, qword [rbx + 0xe8]
mov qword [rbx + 0x158], rax
mov eax, dword [rbx + 0x24]
cmp eax, 4
ja 0x1400644ba
cmp eax, 1
je 0x14006416b
movups xmm0, xmmword [rbx + 0x98]
movups xmmword [rbx + 0x1d0], xmm0
movsd xmm1, qword [rbx + 0xa8]
movsd qword [rbx + 0x1e0], xmm1
movsxd rax, dword [rbx + 0x1d8]
mov dword [rbx + 0x200], eax
mov rdx, rax
mov dword [rbx + 0x1d8], esi
cmp rax, 0xf4240
jae 0x140064505
mov ecx, 1
mov dword [rsp + 0x50], eax
mov qword [rsp + 0x54], rsi
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_calloc]
mov qword [rsp + 0x60], rax
test rax, rax
je 0x14006450e
movups xmm0, xmmword [rsp + 0x50]
mov byte [rbx + 0x23c], sil
movsd xmm1, qword [rsp + 0x60]
movups xmmword [rbx + 0x1e8], xmm0
mov byte [rbx + 0x204], sil
movups xmm0, xmmword [rbx + 0x1d0]
mov dword [rbx + 0x238], 0xffffffff
movsd qword [rbx + 0x1f8], xmm1
movsd xmm1, qword [rbx + 0x1e0]
movups xmmword [rbx + 0x208], xmm0
movsd qword [rbx + 0x218], xmm1
mov qword [rbx + 0x220], rsi
mov dword [rbx + 0x228], esi
mov qword [rbx + 0x230], rsi
cmp dword [rbx + 0x1ac], esi
je 0x140064181
mov rbp, qword [rbx + 0x178]
mov qword [rsp + 0x40], rbp
jmp 0x140064186
mov rbp, qword [rsp + 0x40]
cmp dword [rbx + 0x1a4], esi
je 0x1400642bc
cmp dword [rbx + 0x24], 3
jne 0x140064478
mov rax, qword [rbx]
lea r8, [rsp + 0x48]
mov edx, 2
mov dword [rsp + 0x48], 0x1c
mov word [rax + 0x18], dx
lea rdx, [rsp + 0x68]
mov rcx, qword [rbx + 0x30]
call qword [sym.imp.WS2_32.dll_getsockname]
test eax, eax
jne 0x14006420b
mov rcx, qword [rbx]
movzx eax, word [rsp + 0x68]
mov word [rcx + 0x18], ax
mov r9, qword [rbx]
mov r8, rbp
cmp dword [rbx + 0x1a4], 2
mov rcx, qword [rbx + 0x30]
sete al
mov qword [rsp + 0x30], rdi
lea rdx, [r9 + 0x18]
mov byte [rsp + 0x28], al
mov r9, qword [r9]
mov byte [rsp + 0x20], 0
call fcn.140062570
mov qword [rbx + 0x30], rax
jmp 0x140064478
mov qword [rsp + 0xd8], r14
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__errno]
mov ecx, 0x140
mov r14d, dword [rax]
call fcn.14000e3d0
test al, al
je 0x140064269
movzx edx, word [rbx + 0x28]
lea rcx, [0x140094de4]
cmp word [rcx - 4], dx
jne 0x140064242
mov eax, dword [rbx + 0x24]
cmp dword [rcx], eax
je 0x1400642a9
inc esi
add rcx, 0x18
cmp esi, 0xd
jb 0x140064235
lea r8, str._unknown_protocol_
mov r9d, dword [rbx + 0x30]
lea rdx, str.inetd__s_:_getsockname__d__failed__using_AF_INET
mov ecx, 0x140
call fcn.14000e000
cmp r14d, 0x80
mov r14, qword [rsp + 0xd8]
jne 0x1400641d4
mov ecx, reloc.WS2_32.dll_recv
call fcn.14000e3d0
test al, al
je 0x14006429d
lea rdx, str.ERROR:_socket_required_for___inetd_operation
mov ecx, reloc.WS2_32.dll_recv
call fcn.14000e000
mov ecx, 1
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__exit]
int3
mov eax, esi
lea r8, str.proto_uninitialized
lea rcx, [rax + rax*2]
mov r8, qword [r8 + rcx*8]
jmp 0x140064254
mov r9, rdi
lea r8, [rsp + 0x40]
mov edx, 2
mov rcx, rbx
call fcn.140062e50
mov rax, qword [rbx]
mov rdx, qword [rax + 0x10]
test rdx, rdx
je 0x1400642e5
mov rcx, rbx
call fcn.1400620e0
cmp qword [rbx + 0x30], 0xffffffffffffffff
jne 0x1400643a8
cmp byte [rbx + 0x1a0], sil
je 0x140064377
cmp qword [rbx + 0x178], rsi
jne 0x140064377
mov rax, qword [rbx]
mov rdx, qword [rax]
test rdx, rdx
je 0x140064377
cmp word [rbx + 0x28], si
jne 0x14006436f
mov ecx, 0x40
call fcn.14000e3d0
test al, al
je 0x14006435e
mov rax, qword [rbx]
mov rcx, qword [rax]
mov eax, dword [rcx + 4]
cmp eax, 2
je 0x140064346
cmp eax, 0x17
lea r8, str.AF_UNSPEC
lea rcx, str.AF_INET6
cmove r8, rcx
jmp 0x14006434d
lea r8, str.AF_INET
lea rdx, str.Could_not_determine_IPv4_IPv6_protocol._Using__s
mov ecx, 0x40
call fcn.14000e000
mov rdx, qword [rbx]
mov rax, qword [rdx]
movzx ecx, word [rax + 4]
mov word [rbx + 0x28], cx
mov rdx, qword [rdx]
mov rcx, rbx
call fcn.1400620e0
cmp qword [rbx + 0x30], 0xffffffffffffffff
jne 0x1400643a8
mov ecx, 0x40
call fcn.14000e3d0
test al, al
je 0x14006439d
lea rdx, str.Could_not_determine_IPv4_IPv6_protocol
mov ecx, 0x40
call fcn.14000e000
mov dword [rdi], 0xa
jmp 0x14006448e
mov eax, dword [rdi]
test eax, eax
jne 0x14006448e
mov eax, dword [rbx + 0x24]
cmp eax, 3
jne 0x14006444d
mov ecx, dword [rbx + 0x1a8]
test ecx, ecx
je 0x140064420
sub ecx, 1
je 0x140064409
cmp ecx, 1
jne 0x140064514
mov rdx, qword [rbx]
xor r8d, r8d
mov rcx, qword [rbx + 0x30]
add rdx, 0x18
call fcn.1400623a0
mov qword [rbx + 0x30], rax
cmp rax, 0xffffffffffffffff
jne 0x1400643fb
mov dword [rdi], reloc.WS2_32.dll_ntohs
jmp 0x140064478
mov rcx, qword [rbx]
add rcx, 0x18
call fcn.1400624c0
jmp 0x140064478
mov rdx, qword [rbx]
xor r9d, r9d
mov rcx, qword [rbx + 0x30]
mov r8b, 1
mov rdx, qword [rdx]
call fcn.140062230
jmp 0x140064478
mov r9, qword [rbx]
mov r8, qword [rsp + 0x40]
mov rcx, qword [rbx + 0x30]
mov qword [rsp + 0x30], rdi
lea rdx, [r9 + 0x18]
mov byte [rsp + 0x28], sil
mov r9, qword [r9]
mov byte [rsp + 0x20], 1
call fcn.140062570
mov qword [rbx + 0x30], rax
jmp 0x140064478
cmp eax, 4
jne 0x14006445f
mov rdx, rdi
mov rcx, rbx
call fcn.140063b60
jmp 0x140064478
cmp eax, 1
jne 0x140064478
cmp qword [rbx + 0x268], rsi
je 0x140064478
mov rdx, rdi
mov rcx, rbx
call fcn.140063e40
mov eax, dword [rdi]
test eax, eax
jne 0x14006448e
mov rcx, rbx
call fcn.1400635e0
mov rcx, rbx
call fcn.140063770
test r15d, r15d
je 0x14006449c
mov eax, dword [rdi]
test eax, eax
jne 0x14006449c
mov dword [rdi], r15d
mov rcx, qword [rsp + 0x88]
xor rcx, rsp
call fcn.140088150
add rsp, 0x90
pop r15
pop rdi
pop rsi
pop rbp
pop rbx
ret
lea r8, [0x14008b3f4]
mov edx, 0xc88
lea rcx, str.C:Users_vagrant_buildopenvpn_srcopenvpn_socket.c
call fcn.14000e4c0
int3
lea r8, str.sock
mov edx, 0x8dc
lea rcx, str.C:Users_vagrant_buildopenvpn_srcopenvpn_socket.c
call fcn.14000e4c0
int3
lea r8, str.sig_info
mov edx, 0x8dd
lea rcx, str.C:Users_vagrant_buildopenvpn_srcopenvpn_socket.c
call fcn.14000e4c0
int3
mov rcx, rdx
call fcn.140002d70
int3
call fcn.14000e540
int3
lea r8, [0x14008b3f4]
mov edx, 0x87c
lea rcx, str.C:Users_vagrant_buildopenvpn_srcopenvpn_socket.c
call fcn.14000e4c0
int3