Function at 0x14004c9f0
Capabilities:
Query or enumerate registry value

Disassembly:
push rbp
push rsi
push rdi
push r12
push r13
push r14
push r15
lea rbp, [rsp - 0x27]
sub rsp, 0x90
mov qword [rbp - 0x21], 0xfffffffffffffffe
mov qword [rsp + 0xd0], rbx
mov r15, rcx
xor r12d, r12d
mov dword [rbp + 0x77], r12d
call fcn.140011b88
mov rcx, rax
test rax, rax
je 0x14004cda6
mov rax, qword [rax]
mov rdx, qword [rax + 0x18]
lea r13, vtable.ATL::CAtlStringMgr.0
cmp rax, r13
jne 0x14004cdb1
lock inc dword [rcx + 0x20]
lea rax, [rcx + 0x10]
add rax, 0x18
mov qword [rbp - 0x31], rax
lea rdx, str.SYSTEMCurrentControlSetServicesSharedAccessParametersFirewallPolicyStandardProfile
mov rdi, 0xffffffffffffffff
cmp rdx, 0x10000
jae 0x14004ca7f
movzx edx, dx
lea rcx, [rbp - 0x31]
call fcn.140012370
jmp 0x14004ca99
mov rax, rdi
inc rax
cmp word [rdx + rax*2], 0
jne 0x14004ca82
mov r8d, eax
lea rcx, [rbp - 0x31]
call fcn.140002a7c
nop
call fcn.140011b88
mov rcx, rax
test rax, rax
je 0x14004cdb8
mov rax, qword [rax]
mov rdx, qword [rax + 0x18]
cmp rax, r13
jne 0x14004cdc3
lock inc dword [rcx + 0x20]
lea rax, [rcx + 0x10]
add rax, 0x18
mov qword [rbp - 0x29], rax
lea rdx, str.EnableFirewall
cmp rdx, 0x10000
jae 0x14004cae8
movzx edx, dx
lea rcx, [rbp - 0x29]
call fcn.140012370
jmp 0x14004cb07
mov rax, rdi
nop dword [rax + rax]
inc rax
cmp word [rdx + rax*2], 0
jne 0x14004caf0
mov r8d, eax
lea rcx, [rbp - 0x29]
call fcn.140002a7c
nop
mov dword [rbp + 0x77], 1
xor r14b, r14b
mov qword [rbp + 7], r12
mov dword [rbp + 0xf], r12d
mov qword [rbp + 0x17], r12
mov r9d, 0x20019
mov r8, qword [rbp - 0x31]
mov rdx, 0xffffffff80000002
lea rcx, [rbp + 7]
call fcn.14003d370
mov rbx, qword [rbp - 0x29]
test eax, eax
jne 0x14004cba0
mov dword [rbp + 0x7f], 4
lea rax, [rbp + 0x7f]
mov qword [rsp + 0x28], rax
lea rax, [rbp + 0x6f]
mov qword [rsp + 0x20], rax
lea r9, [rbp - 0x39]
xor r8d, r8d
mov rdx, rbx
mov rsi, qword [rbp + 7]
mov rcx, rsi
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x14004cb7e
cmp dword [rbp - 0x39], 4
jne 0x14004cb7e
mov r14b, 1
jmp 0x14004cb82
mov dword [rbp + 0x6f], r12d
test rsi, rsi
je 0x14004cb90
mov rcx, rsi
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
test r14b, r14b
je 0x14004cbaf
cmp dword [rbp + 0x6f], 0
je 0x14004cbaf
mov sil, 1
jmp 0x14004cbb2
mov rcx, qword [rbp + 7]
test rcx, rcx
je 0x14004cbaf
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
xor sil, sil
lea rdx, [rbx - 0x18]
mov eax, edi
lock xadd dword [rdx + 0x10], eax
lea r14, vtable.ATL::CWin32Heap.0
sub eax, 1
jg 0x14004cbff
mov rcx, qword [rdx]
mov rax, qword [rcx]
mov r8, qword [rax + 8]
cmp rax, r13
jne 0x14004cdca
mov rcx, qword [rcx + 8]
mov rax, qword [rcx]
mov r8, qword [rax + 8]
cmp rax, r14
jne 0x14004cdca
mov r8, rdx
xor edx, edx
mov rcx, qword [rcx + 8]
call qword [sym.imp.KERNEL32.dll_HeapFree]
test sil, sil
je 0x14004ccaa
mov byte [rbp - 0x19], 1
lea rcx, [rbp - 0x11]
call fcn.1400154a0
nop
lea rax, [0x1402f7e88]
lea rdx, [0x1402ef4b8]
cmp byte [rbp - 0x19], 0
cmovne rdx, rax
mov rax, rdi
nop
inc rax
cmp word [rdx + rax*2], 0
jne 0x14004cc30
mov r8d, eax
lea rcx, [rbp - 0x11]
call fcn.140002a7c
mov rbx, qword [rbp - 0x11]
mov r9, rbx
xor r8d, r8d
mov edx, 0x11748
mov rcx, qword [r15]
call fcn.14001fa50
nop
lea rdx, [rbx - 0x18]
mov eax, edi
lock xadd dword [rdx + 0x10], eax
sub eax, 1
jg 0x14004cca5
mov rcx, qword [rdx]
mov rax, qword [rcx]
mov r8, qword [rax + 8]
cmp rax, r13
jne 0x14004cdd2
mov rcx, qword [rcx + 8]
mov rax, qword [rcx]
mov r8, qword [rax + 8]
cmp rax, r14
jne 0x14004cdd2
mov r8, rdx
xor edx, edx
mov rcx, qword [rcx + 8]
call qword [sym.imp.KERNEL32.dll_HeapFree]
nop
jmp 0x14004cd46
mov byte [rbp - 9], 0
lea rcx, [rbp - 1]
call fcn.1400154a0
nop
lea rax, [0x1402f7e88]
lea rdx, [0x1402ef4b8]
cmp byte [rbp - 9], 0
cmovne rdx, rax
mov rax, rdi
inc rax
cmp word [rdx + rax*2], 0
jne 0x14004ccd1
mov r8d, eax
lea rcx, [rbp - 1]
call fcn.140002a7c
mov rbx, qword [rbp - 1]
mov r9, rbx
xor r8d, r8d
mov edx, 0x11748
mov rcx, qword [r15]
call fcn.14001fa50
nop
lea rdx, [rbx - 0x18]
mov eax, edi
lock xadd dword [rdx + 0x10], eax
sub eax, 1
jg 0x14004cd46
mov rcx, qword [rdx]
mov rax, qword [rcx]
mov r8, qword [rax + 8]
cmp rax, r13
jne 0x14004cdda
mov rcx, qword [rcx + 8]
mov rax, qword [rcx]
mov r8, qword [rax + 8]
cmp rax, r14
jne 0x14004cdda
mov r8, rdx
xor edx, edx
mov rcx, qword [rcx + 8]
call qword [sym.imp.KERNEL32.dll_HeapFree]
nop
mov rdx, qword [rbp - 0x31]
add rdx, 0xffffffffffffffe8
lock xadd dword [rdx + 0x10], edi
sub edi, 1
jg 0x14004cd86
mov rcx, qword [rdx]
mov rax, qword [rcx]
mov r8, qword [rax + 8]
cmp rax, r13
jne 0x14004cda1
mov rcx, qword [rcx + 8]
mov rax, qword [rcx]
mov r8, qword [rax + 8]
cmp rax, r14
jne 0x14004cda1
mov r8, rdx
xor edx, edx
mov rcx, qword [rcx + 8]
call qword [sym.imp.KERNEL32.dll_HeapFree]
mov rbx, qword [rsp + 0xd0]
add rsp, 0x90
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
ret
call r8
jmp 0x14004cd86
mov ecx, 0x80004005
call fcn.140002d3c
int3
call rdx
jmp 0x14004ca52
mov ecx, 0x80004005
call fcn.140002d3c
int3
call rdx
jmp 0x14004cac2
call r8
jmp 0x14004cbff
call r8
jmp 0x14004cca5
call r8
jmp 0x14004cd46