Function at 0x14000d390
Capabilities:
Access firewall policy via inetfwpolicy2
Query or enumerate registry value

Disassembly:
mov qword [rsp + 8], rcx
push rbp
push rbx
push rsi
push rdi
push r12
push r13
push r14
mov rbp, rsp
sub rsp, 0x70
mov qword [rbp - 0x38], 0xfffffffffffffffe
mov rbx, qword [0x14010bb48]
lea r12, [0x140106190]
lea r13, [0x1400dd6d0]
mov rcx, qword [0x140106190]
cmp rcx, r12
je 0x14000d3e6
test byte [rcx + 0x1c], 1
je 0x14000d3e6
mov edx, 0x53
mov r8, r13
mov rcx, qword [rcx + 0x10]
call fcn.140003574
mov edi, 1
and qword [rbp - 0x20], 0
and qword [rbp - 0x18], 0
and qword [rbp - 0x10], 0
and qword [rbp - 0x40], 0
lea rax, [rbp - 0x40]
mov qword [rsp + 0x20], rax
mov r9d, 0x20119
xor r8d, r8d
lea rdx, str.SOFTWAREMicrosoftWindows_Media_Player_NSS3.0
mov rcx, 0xffffffff80000002
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
lea esi, [rdi + 4]
test eax, eax
jne 0x14000d4aa
mov rcx, qword [rbp - 0x40]
mov qword [rbp - 0x20], rcx
and dword [rbp + 0x48], eax
mov dword [rbp + 0x40], 4
lea rax, [rbp + 0x40]
mov qword [rsp + 0x28], rax
lea rax, [rbp + 0x48]
mov qword [rsp + 0x20], rax
lea r9, [rbp + 0x50]
xor r8d, r8d
lea rdx, str.SkipFirewallCheckOnUPnPAction
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x14000d4aa
cmp dword [rbp + 0x50], 4
jne 0x14000d4aa
test eax, eax
jne 0x14000d4aa
mov rcx, qword [0x140106190]
cmp rcx, r12
je 0x14000d5d0
test byte [rcx + 0x1c], 2
je 0x14000d5d0
cmp byte [rcx + 0x19], sil
jb 0x14000d5d0
lea edx, [rdi + 0x53]
mov r8, r13
mov rcx, qword [rcx + 0x10]
call fcn.140003574
jmp 0x14000d5d0
lea r14, [rbx + 0x3a8]
mov qword [rbp - 0x30], r14
mov rcx, r14
call qword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov byte [rbp - 0x28], 1
call qword [sym.imp.KERNEL32.dll_GetTickCount64]
mov rcx, rax
sub rcx, qword [rbx + 0x3e8]
mov eax, dword [0x140109348]
cmp rcx, rax
jae 0x14000d4e8
mov edi, dword [rbx + 0x3e0]
jmp 0x14000d5c7
lea rsi, [rbx + 0x3d8]
cmp qword [rsi], 0
jne 0x14000d559
mov qword [rsp + 0x20], rsi
lea r9, [0x1400dd630]
xor edx, edx
lea r8d, [rdx + 1]
lea rcx, [0x1400dd620]
call qword [sym.imp.ole32.dll_CoCreateInstance]
mov r9d, eax
mov rcx, qword [0x140106190]
cmp rcx, r12
je 0x14000d559
test byte [rcx + 0x1c], 2
je 0x14000d559
movzx r8d, byte [rcx + 0x19]
mov edx, 2
test eax, eax
lea eax, [rdx + 3]
cmovns edx, eax
cmp r8d, edx
jl 0x14000d559
mov rax, qword [rsi]
mov edx, 0x55
mov qword [rsp + 0x20], rax
mov r8, r13
mov rcx, qword [rcx + 0x10]
call fcn.14000acd0
mov rcx, qword [rsi]
test rcx, rcx
je 0x14000d5c2
lea r8, [rbp + 0x58]
lea rdx, str._FirewallAPI.dll__31252
call fcn.14000f92c
test eax, eax
js 0x14000d57e
mov eax, dword [rbp + 0x58]
neg eax
sbb ecx, ecx
and edi, ecx
call qword [sym.imp.KERNEL32.dll_GetTickCount64]
mov qword [rbx + 0x3e8], rax
mov dword [rbx + 0x3e0], edi
mov rcx, qword [0x140106190]
mov esi, 5
cmp rcx, r12
je 0x14000d5c7
test byte [rcx + 0x1c], 2
je 0x14000d5c7
cmp byte [rcx + 0x19], sil
jb 0x14000d5c7
lea edx, [rsi + 0x51]
mov r9d, edi
mov r8, r13
mov rcx, qword [rcx + 0x10]
call fcn.140003634
jmp 0x14000d5c7
mov esi, 5
mov rcx, r14
call qword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
mov rcx, qword [rbx + 0x3e8]
mov rax, qword [rbx + 0x70]
cmp rcx, rax
jbe 0x14000d5e8
lock cmpxchg qword [rbx + 0x70], rcx
jne 0x14000d5d7
mov rcx, qword [0x140106190]
cmp rcx, r12
je 0x14000d615
test byte [rcx + 0x1c], 1
je 0x14000d615
cmp byte [rcx + 0x19], sil
jb 0x14000d615
mov edx, 0x57
mov r9d, edi
mov r8, r13
mov rcx, qword [rcx + 0x10]
call fcn.140003634
nop
mov rcx, qword [rbp - 0x20]
test rcx, rcx
je 0x14000d624
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, edi
add rsp, 0x70
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbx
pop rbp
ret