Function at 0x100047a6c
Capabilities:
Access firewall policy via inetfwpolicy2

Disassembly:
mov rax, rsp
push rbp
push rsi
push rdi
push r12
push r13
push r14
push r15
sub rsp, 0x70
mov qword [rsp + 0x48], 0xfffffffffffffffe
mov qword [rax + 8], rbx
mov r13, rcx
lea rax, [0x100153eb8]
mov ebp, 5
lea r12, [0x10001e5a0]
lea r15d, [rbp - 4]
mov rcx, qword [0x100153eb8]
cmp rcx, rax
je 0x100047ad2
test byte [rcx + 0x1c], r15b
je 0x100047ad2
cmp byte [rcx + 0x19], bpl
jb 0x100047ad2
mov edx, 0x10f
mov r9d, dword [r13 + 0x4c]
mov r8, r12
mov rcx, qword [rcx + 0x10]
call fcn.100036510
xor r14d, r14d
mov esi, r14d
mov qword [rsp + 0x38], r14
lea rax, [rsp + 0x38]
mov qword [rsp + 0x20], rax
lea r9, [0x100020300]
mov r8d, r15d
xor edx, edx
lea rcx, [0x1000202f0]
call qword [sym.imp.ole32.dll_CoCreateInstance]
mov edi, eax
lea ebx, [r14 + 2]
mov rcx, qword [0x100153eb8]
lea rax, [0x100153eb8]
cmp rcx, rax
je 0x100047b4e
test byte [rcx + 0x1c], bl
je 0x100047b4e
movzx r8d, byte [rcx + 0x19]
mov edx, ebx
cmp edi, r14d
cmovge edx, ebp
cmp r8d, edx
jl 0x100047b4e
mov edx, 0x110
mov rax, qword [rsp + 0x38]
mov qword [rsp + 0x20], rax
mov r9d, edi
mov r8, r12
mov rcx, qword [rcx + 0x10]
call fcn.10003be94
cmp edi, r14d
jl 0x100047ddc
mov word [rsp + 0xb8], r14w
mov rcx, qword [rsp + 0x38]
mov rax, qword [rcx]
lea rdx, [rsp + 0xb8]
call qword [rax + 0x60]
mov edi, eax
mov rcx, qword [0x100153eb8]
lea rax, [0x100153eb8]
cmp rcx, rax
je 0x100047bbf
test byte [rcx + 0x1c], bl
je 0x100047bbf
movzx r8d, byte [rcx + 0x19]
mov edx, ebx
cmp edi, r14d
cmovge edx, ebp
cmp r8d, edx
jl 0x100047bbf
movsx eax, word [rsp + 0xb8]
mov edx, 0x111
mov dword [rsp + 0x20], eax
mov r9d, edi
mov r8, r12
mov rcx, qword [rcx + 0x10]
call fcn.10003be4c
cmp edi, r14d
jl 0x100047ddc
or eax, 0xffffffff
cmp ax, word [rsp + 0xb8]
jne 0x100047ddc
mov qword [rsp + 0x30], r14
lea rax, [rsp + 0x30]
mov qword [rsp + 0x20], rax
lea r9, [0x1000202e0]
mov r8d, r15d
xor edx, edx
lea rcx, [0x1000202d0]
call qword [sym.imp.ole32.dll_CoCreateInstance]
mov edi, eax
mov rcx, qword [0x100153eb8]
lea rax, [0x100153eb8]
cmp rcx, rax
je 0x100047c47
test byte [rcx + 0x1c], bl
je 0x100047c47
movzx edx, byte [rcx + 0x19]
cmp edi, r14d
cmovge ebx, ebp
cmp edx, ebx
jl 0x100047c47
mov edx, 0x112
mov rax, qword [rsp + 0x30]
mov qword [rsp + 0x20], rax
mov r9d, edi
mov r8, r12
mov rcx, qword [rcx + 0x10]
call fcn.10003be94
cmp edi, r14d
jl 0x100047dcc
mov dword [rsp + 0xc0], r14d
lea r8, [rsp + 0xc0]
lea rdx, [0x10001ef00]
mov rcx, qword [rsp + 0x30]
call fcn.100042c04
cmp eax, r14d
jl 0x100047dcc
cmp dword [rsp + 0xc0], r14d
je 0x100047dcc
lea rcx, [r13 + 0xe8]
call qword [sym.imp.KERNEL32.dll_EnterCriticalSection]
lea rcx, [r13 + 0x110]
call fcn.10004d410
mov qword [rsp + 0x40], rax
cmp rax, r14
je 0x100047db3
cmp esi, r14d
jne 0x100047db3
lea rdx, [rsp + 0x40]
lea rcx, [r13 + 0x110]
call fcn.10004d4b0
mov rcx, qword [rax]
mov rcx, qword [rcx]
cmp rcx, r14
je 0x100047d92
call fcn.100052b50
mov rdx, qword [rax]
lea rcx, [rsp + 0x60]
call fcn.10003b1a0
nop
mov qword [rsp + 0x50], r14
mov dword [rsp + 0x58], r14d
mov dword [rsp + 0x5c], r14d
lea rdx, [rsp + 0x50]
lea rcx, [rsp + 0x60]
call fcn.1000ea3a8
cmp eax, r14d
jne 0x100047d66
mov ebx, r14d
mov eax, dword [rsp + 0x58]
cmp eax, r14d
jle 0x100047d66
mov rdi, r14
cmp esi, r14d
jne 0x100047d66
cmp rdi, r14
jl 0x100047d9e
cmp ebx, eax
jge 0x100047d9e
mov rax, qword [rsp + 0x50]
lea r8, [rsp + 0xc8]
mov rdx, qword [rdi + rax]
lea rcx, [rsp + 0x60]
call fcn.1000eb330
cmp eax, r14d
jne 0x100047d57
cmp dword [rsp + 0xc8], r15d
cmove esi, r15d
add ebx, r15d
add rdi, 8
mov eax, dword [rsp + 0x58]
cmp ebx, eax
jl 0x100047d1d
lea rcx, [rsp + 0x50]
call fcn.10004d050
nop
mov rdx, qword [rsp + 0x68]
add rdx, 0xffffffffffffffe8
or eax, 0xffffffff
lock xadd dword [rdx + 0x10], eax
dec eax
cmp eax, r14d
jg 0x100047d92
mov rcx, qword [rdx]
mov rax, qword [rcx]
call qword [rax + 8]
cmp qword [rsp + 0x40], r14
je 0x100047db3
jmp 0x100047caf
xor r9d, r9d
xor r8d, r8d
mov edx, r15d
mov ecx, 0xc000008c
call qword [sym.imp.KERNEL32.dll_RaiseException]
lea rcx, [r13 + 0xe8]
call qword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
mov ebp, 5
lea r12, [0x10001e5a0]
mov rcx, qword [rsp + 0x30]
cmp rcx, r14
je 0x100047ddc
mov rax, qword [rcx]
call qword [rax + 0x10]
mov dword [r13 + 0x4c], esi
mov rcx, qword [0x100153eb8]
lea rax, [0x100153eb8]
cmp rcx, rax
je 0x100047e14
test byte [rcx + 0x1c], r15b
je 0x100047e14
cmp byte [rcx + 0x19], bpl
jb 0x100047e14
mov edx, 0x113
mov r9d, esi
mov r8, r12
mov rcx, qword [rcx + 0x10]
call fcn.100036510
nop
mov rcx, qword [rsp + 0x38]
cmp rcx, r14
je 0x100047e24
mov rax, qword [rcx]
call qword [rax + 0x10]
mov rbx, qword [rsp + 0xb0]
add rsp, 0x70
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
ret