Function at 0x140013e50
Capabilities:
Access firewall policy via inetfwpolicy2

Disassembly:
mov rax, rsp
push rbp
push rsi
push rdi
push r12
push r13
push r14
push r15
mov rbp, rsp
sub rsp, 0x70
mov qword [rbp - 0x28], 0xfffffffffffffffe
mov qword [rax + 8], rbx
mov r15, rcx
lea rax, [0x140106190]
mov r12d, 5
lea r14d, [r12 - 4]
mov rcx, qword [0x140106190]
cmp rcx, rax
je 0x140013eb7
test byte [rcx + 0x1c], r14b
je 0x140013eb7
cmp byte [rcx + 0x19], r12b
jb 0x140013eb7
mov edx, 0x10d
mov r9d, dword [r15 + 0x4c]
lea r8, [0x1400dcd50]
mov rcx, qword [rcx + 0x10]
call fcn.1400035ec
xor r13d, r13d
mov edi, r13d
mov qword [rbp - 0x38], r13
lea rax, [rbp - 0x38]
mov qword [rsp + 0x20], rax
lea r9, [0x1400dcc90]
mov r8d, r14d
xor edx, edx
lea rcx, [0x1400dcc80]
call qword [sym.imp.ole32.dll_CoCreateInstance]
mov esi, eax
lea ebx, [r13 + 2]
mov rcx, qword [0x140106190]
lea rax, [0x140106190]
cmp rcx, rax
je 0x140013f34
test byte [rcx + 0x1c], bl
je 0x140013f34
movzx r8d, byte [rcx + 0x19]
mov edx, ebx
test esi, esi
cmovns edx, r12d
cmp r8d, edx
jb 0x140013f34
mov edx, 0x10e
mov rax, qword [rbp - 0x38]
mov qword [rsp + 0x20], rax
mov r9d, esi
lea r8, [0x1400dcd50]
mov rcx, qword [rcx + 0x10]
call fcn.14000a9bc
test esi, esi
js 0x140014184
mov word [rbp + 0x48], r13w
mov rcx, qword [rbp - 0x38]
mov rax, qword [rcx]
lea rdx, [rbp + 0x48]
mov rax, qword [rax + 0x60]
call qword [case.0x14006d218.0]
mov esi, eax
mov rcx, qword [0x140106190]
lea rax, [0x140106190]
cmp rcx, rax
je 0x140013fa2
test byte [rcx + 0x1c], bl
je 0x140013fa2
movzx r8d, byte [rcx + 0x19]
mov edx, ebx
test esi, esi
cmovns edx, r12d
cmp r8d, edx
jb 0x140013fa2
movsx eax, word [rbp + 0x48]
mov edx, 0x10f
mov dword [rsp + 0x20], eax
mov r9d, esi
lea r8, [0x1400dcd50]
mov rcx, qword [rcx + 0x10]
call fcn.1400053dc
test esi, esi
js 0x140014184
or eax, 0xffffffff
cmp ax, word [rbp + 0x48]
jne 0x140014184
mov qword [rbp - 0x40], r13
lea rax, [rbp - 0x40]
mov qword [rsp + 0x20], rax
lea r9, [0x1400dccb0]
mov r8d, r14d
xor edx, edx
lea rcx, [0x1400dcca0]
call qword [sym.imp.ole32.dll_CoCreateInstance]
mov esi, eax
mov rcx, qword [0x140106190]
lea rax, [0x140106190]
cmp rcx, rax
je 0x140014026
test byte [rcx + 0x1c], bl
je 0x140014026
movzx edx, byte [rcx + 0x19]
test esi, esi
cmovns ebx, r12d
cmp edx, ebx
jb 0x140014026
mov edx, 0x110
mov rax, qword [rbp - 0x40]
mov qword [rsp + 0x20], rax
mov r9d, esi
lea r8, [0x1400dcd50]
mov rcx, qword [rcx + 0x10]
call fcn.14000a9bc
test esi, esi
js 0x14001416e
mov dword [rbp + 0x50], r13d
lea r8, [rbp + 0x50]
lea rdx, str._FirewallAPI.dll__31252
mov rcx, qword [rbp - 0x40]
call fcn.14000f4fc
test eax, eax
js 0x14001416e
cmp dword [rbp + 0x50], r13d
je 0x14001416e
lea r14, [r15 + 0xe8]
mov rcx, r14
call qword [sym.imp.KERNEL32.dll_EnterCriticalSection]
lea r12, [r15 + 0x110]
mov rcx, r12
call fcn.140018e28
mov qword [rbp - 0x30], rax
test rax, rax
je 0x14001415b
test edi, edi
jne 0x14001415b
lea rdx, [rbp - 0x30]
mov rcx, r12
call fcn.140018ea8
mov rcx, qword [rax]
mov rcx, qword [rcx]
test rcx, rcx
je 0x140014152
call fcn.14001e6c0
mov rdx, qword [rax]
lea rcx, [rbp - 0x10]
call fcn.140009ff0
nop
mov qword [rbp - 0x20], r13
mov qword [rbp - 0x18], r13
lea rdx, [rbp - 0x20]
lea rcx, [rbp - 0x10]
call fcn.1400b8740
test eax, eax
jne 0x140014123
mov ebx, r13d
mov eax, dword [rbp - 0x18]
test eax, eax
jle 0x140014123
mov rsi, r13
test edi, edi
jne 0x140014123
test rsi, rsi
js 0x1400141ee
cmp ebx, eax
jge 0x1400141ee
mov rax, qword [rbp - 0x20]
lea r8, [rbp + 0x58]
mov rdx, qword [rsi + rax]
lea rcx, [rbp - 0x10]
call fcn.1400b95b0
test eax, eax
lea eax, [rdi + 1]
jne 0x140014116
cmp dword [rbp + 0x58], eax
cmove edi, eax
add ebx, eax
add rsi, 8
mov eax, dword [rbp - 0x18]
cmp ebx, eax
jl 0x1400140df
lea rcx, [rbp - 0x20]
call fcn.14001817c
nop
mov rdx, qword [rbp - 8]
add rdx, 0xffffffffffffffe8
or eax, 0xffffffff
lock xadd dword [rdx + 0x10], eax
sub eax, 1
jg 0x140014152
mov rcx, qword [rdx]
mov rax, qword [rcx]
mov rax, qword [rax + 8]
call qword [case.0x14006d218.0]
cmp qword [rbp - 0x30], r13
jmp 0x14001407e
mov rcx, r14
call qword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
mov r14d, 1
lea r12d, [r14 + 4]
mov rcx, qword [rbp - 0x40]
test rcx, rcx
je 0x140014184
mov rax, qword [rcx]
mov rax, qword [rax + 0x10]
call qword [case.0x14006d218.0]
mov dword [r15 + 0x4c], edi
mov rcx, qword [0x140106190]
lea rax, [0x140106190]
cmp rcx, rax
je 0x1400141c0
test byte [rcx + 0x1c], r14b
je 0x1400141c0
cmp byte [rcx + 0x19], r12b
jb 0x1400141c0
mov edx, 0x111
mov r9d, edi
lea r8, [0x1400dcd50]
mov rcx, qword [rcx + 0x10]
call fcn.1400035ec
nop
mov rcx, qword [rbp - 0x38]
test rcx, rcx
je 0x1400141d6
mov rax, qword [rcx]
mov rax, qword [rax + 0x10]
call qword [case.0x14006d218.0]
mov rbx, qword [rsp + 0xb0]
add rsp, 0x70
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
ret
mov ecx, 0xc000008c
call fcn.140004f50
int3