Function at 0x140021ad0
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 r13, rcx
lea rax, [0x140148ea8]
mov r12d, 5
lea r15d, [r12 - 4]
mov rcx, qword [0x140148ea8]
cmp rcx, rax
je 0x140021b37
test byte [rcx + 0x1c], r15b
je 0x140021b37
cmp byte [rcx + 0x19], r12b
jb 0x140021b37
mov edx, 0x10e
mov r9d, dword [r13 + 0x4c]
lea r8, [0x140005d50]
mov rcx, qword [rcx + 0x10]
call fcn.14000fd64
xor edi, edi
mov r14d, edi
mov qword [rbp - 0x38], rdi
lea rax, [rbp - 0x38]
mov qword [rsp + 0x20], rax
lea r9, [0x140005c98]
mov r8d, r15d
xor edx, edx
lea rcx, [0x140005c88]
call qword [sym.imp.ole32.dll_CoCreateInstance]
mov ebx, eax
lea esi, [rdi + 2]
mov rcx, qword [0x140148ea8]
lea rax, [0x140148ea8]
cmp rcx, rax
je 0x140021bb3
test byte [rcx + 0x1c], sil
je 0x140021bb3
movzx r8d, byte [rcx + 0x19]
mov edx, esi
test ebx, ebx
cmovns edx, r12d
cmp r8d, edx
jl 0x140021bb3
mov edx, 0x10f
mov rax, qword [rbp - 0x38]
mov qword [rsp + 0x20], rax
mov r9d, ebx
lea r8, [0x140005d50]
mov rcx, qword [rcx + 0x10]
call fcn.14001783c
test ebx, ebx
js 0x140021e2a
mov word [rbp + 0x48], di
mov rbx, qword [rbp - 0x38]
mov rax, qword [rbx]
mov rdi, qword [rax + 0x60]
mov rcx, rdi
call qword [fcn.140015690]
lea rdx, [rbp + 0x48]
mov rcx, rbx
call rdi
mov ebx, eax
mov rcx, qword [0x140148ea8]
lea rax, [0x140148ea8]
xor edi, edi
cmp rcx, rax
je 0x140021c2b
test byte [rcx + 0x1c], sil
je 0x140021c2b
movzx r8d, byte [rcx + 0x19]
mov edx, esi
test ebx, ebx
cmovns edx, r12d
cmp r8d, edx
jl 0x140021c2b
movsx eax, word [rbp + 0x48]
mov edx, 0x110
mov dword [rsp + 0x20], eax
mov r9d, ebx
lea r8, [0x140005d50]
mov rcx, qword [rcx + 0x10]
call fcn.140011e38
test ebx, ebx
js 0x140021e2a
or eax, 0xffffffff
cmp ax, word [rbp + 0x48]
jne 0x140021e2a
mov qword [rbp - 0x40], rdi
lea rax, [rbp - 0x40]
mov qword [rsp + 0x20], rax
lea r9, [0x140005cb8]
mov r8d, r15d
xor edx, edx
lea rcx, [0x140005ca8]
call qword [sym.imp.ole32.dll_CoCreateInstance]
mov ebx, eax
mov rcx, qword [0x140148ea8]
lea rax, [0x140148ea8]
cmp rcx, rax
je 0x140021cb0
test byte [rcx + 0x1c], sil
je 0x140021cb0
movzx edx, byte [rcx + 0x19]
test ebx, ebx
cmovns esi, r12d
cmp edx, esi
jl 0x140021cb0
mov edx, 0x111
mov rax, qword [rbp - 0x40]
mov qword [rsp + 0x20], rax
mov r9d, ebx
lea r8, [0x140005d50]
mov rcx, qword [rcx + 0x10]
call fcn.14001783c
test ebx, ebx
js 0x140021e0c
mov dword [rbp + 0x50], edi
lea r8, [rbp + 0x50]
lea rdx, [0x140005990]
mov rcx, qword [rbp - 0x40]
call fcn.14001c8b4
test eax, eax
js 0x140021e0c
cmp dword [rbp + 0x50], edi
je 0x140021e0c
lea r15, [r13 + 0xe8]
mov rcx, r15
call qword [sym.imp.KERNEL32.dll_EnterCriticalSection]
lea r12, [r13 + 0x110]
mov rcx, r12
call fcn.140027420
mov qword [rbp - 0x30], rax
test rax, rax
je 0x140021df9
test r14d, r14d
jne 0x140021df9
lea rdx, [rbp - 0x30]
mov rcx, r12
call fcn.1400274a4
mov rcx, qword [rax]
mov rcx, qword [rcx]
test rcx, rcx
je 0x140021de0
call fcn.14002d5ec
mov rdx, qword [rax]
lea rcx, [rbp - 0x10]
call fcn.140016e50
nop
mov qword [rbp - 0x20], rdi
mov qword [rbp - 0x18], 0
lea rdx, [rbp - 0x20]
lea rcx, [rbp - 0x10]
call fcn.1400d6d18
test eax, eax
jne 0x140021dac
mov ebx, edi
mov eax, dword [rbp - 0x18]
test eax, eax
jle 0x140021daa
lea ecx, [r14 + 1]
test r14d, r14d
jne 0x140021daa
test rdi, rdi
js 0x140021de9
cmp ebx, eax
jge 0x140021de9
mov rax, qword [rbp - 0x20]
lea r8, [rbp + 0x58]
mov rdx, qword [rax + rdi*8]
lea rcx, [rbp - 0x10]
call fcn.1400d7c80
lea ecx, [r14 + 1]
test eax, eax
jne 0x140021d9e
cmp dword [rbp + 0x58], ecx
cmove r14d, ecx
add ebx, ecx
add rdi, rcx
mov eax, dword [rbp - 0x18]
cmp ebx, eax
jl 0x140021d6c
xor edi, edi
lea rcx, [rbp - 0x20]
call fcn.140026ee0
nop
mov rsi, qword [rbp - 8]
lock add dword [rsi - 8], 0xffffffff
jg 0x140021de0
mov rdi, qword [rsi - 0x18]
mov rax, qword [rdi]
mov rbx, qword [rax + 8]
mov rcx, rbx
call qword [fcn.140015690]
lea rdx, [rsi - 0x18]
mov rcx, rdi
call rbx
xor edi, edi
cmp qword [rbp - 0x30], rdi
jmp 0x140021d06
mov edx, ecx
mov ecx, 0xc000008c
call fcn.1400119d8
nop
jmp 0x140021df8
nop
mov rcx, r15
call qword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
mov r15d, 1
lea r12d, [r15 + 4]
mov rbx, qword [rbp - 0x40]
test rbx, rbx
je 0x140021e2a
mov rax, qword [rbx]
mov rdi, qword [rax + 0x10]
mov rcx, rdi
call qword [fcn.140015690]
mov rcx, rbx
call rdi
mov dword [r13 + 0x4c], r14d
mov rcx, qword [0x140148ea8]
lea rax, [0x140148ea8]
cmp rcx, rax
je 0x140021e66
test byte [rcx + 0x1c], r15b
je 0x140021e66
cmp byte [rcx + 0x19], r12b
jb 0x140021e66
mov edx, 0x112
mov r9d, r14d
lea r8, [0x140005d50]
mov rcx, qword [rcx + 0x10]
call fcn.14000fd64
nop
mov rbx, qword [rbp - 0x38]
test rbx, rbx
je 0x140021e84
mov rax, qword [rbx]
mov rdi, qword [rax + 0x10]
mov rcx, rdi
call qword [fcn.140015690]
mov rcx, rbx
call rdi
mov rbx, qword [rsp + 0xb0]
add rsp, 0x70
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
ret