Function at 0x14004f5a0
Capabilities:
Query or enumerate registry value

Disassembly:
mov rax, rsp
push rbp
push r12
push r13
push r14
push r15
lea rbp, [rax - 0xe8]
sub rsp, 0x1c0
mov qword [rbp + 0x30], 0xfffffffffffffffe
mov qword [rax + 0x10], rbx
mov qword [rax + 0x18], rsi
mov qword [rax + 0x20], rdi
mov rax, qword [0x14035d8c0]
xor rax, rsp
mov qword [rbp + 0xb0], rax
mov rsi, rcx
mov byte [rbp - 0x60], 0
lea rcx, [rbp - 0x58]
call fcn.140015830
nop
lea rax, [0x1402f8ce8]
lea rdx, [0x1402f0688]
cmp byte [rbp - 0x60], 0
cmovne rdx, rax
mov rdi, 0xffffffffffffffff
mov rax, rdi
inc rax
cmp word [rdx + rax*2], 0
jne 0x14004f610
mov r8d, eax
lea rcx, [rbp - 0x58]
call fcn.140002a7c
mov rbx, qword [rbp - 0x58]
mov r9, rbx
xor r8d, r8d
mov edx, 0x11720
mov rcx, qword [rsi]
call fcn.14001fdd0
nop
lea rdx, [rbx - 0x18]
mov eax, edi
lock xadd dword [rdx + 0x10], eax
lea r15, vtable.ATL::CAtlStringMgr.0
lea r12, vtable.ATL::CWin32Heap.0
sub eax, 1
jg 0x14004f693
mov rcx, qword [rdx]
mov rax, qword [rcx]
mov r8, qword [rax + 8]
cmp rax, r15
jne 0x14004ff66
mov rcx, qword [rcx + 8]
mov rax, qword [rcx]
mov r8, qword [rax + 8]
cmp rax, r12
jne 0x14004ff66
mov r8, rdx
xor edx, edx
mov rcx, qword [rcx + 8]
call qword [sym.imp.KERNEL32.dll_HeapFree]
nop
xor r13d, r13d
mov qword [rbp - 0x78], r13
mov dword [rbp - 0x70], r13d
mov qword [rbp - 0x68], r13
mov r9d, 0x20019
lea r8, str.SOFTWAREApple_Computer__Inc.Safari
mov rdx, 0xffffffff80000002
lea rcx, [rbp - 0x78]
call fcn.14003e420
lea r14, str.Safari
test eax, eax
jne 0x14004fcbe
mov dword [rsp + 0x30], 0x64
lea rax, [rsp + 0x30]
mov qword [rsp + 0x28], rax
lea rax, [rbp + 0x40]
mov qword [rsp + 0x20], rax
lea r9, [rsp + 0x68]
xor r8d, r8d
lea rdx, str.Version
mov rcx, qword [rbp - 0x78]
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x14004fcbe
mov eax, dword [rsp + 0x68]
dec eax
cmp eax, 1
ja 0x14004fcbe
mov eax, dword [rsp + 0x30]
test eax, eax
je 0x14004f739
test al, 1
jne 0x14004fcbe
shr rax, 1
cmp word [rbp + rax*2 + 0x3e], r13w
je 0x14004f73e
jmp 0x14004fcbe
mov word [rbp + 0x40], r13w
lea rax, [rsp + 0x38]
mov qword [rbp - 0x80], rax
call fcn.140011f18
mov rcx, rax
test rax, rax
je 0x14004ff6e
mov rax, qword [rax]
mov rdx, qword [rax + 0x18]
cmp rax, r15
jne 0x14004ff79
lock inc dword [rcx + 0x20]
lea rax, [rcx + 0x10]
add rax, 0x18
mov qword [rsp + 0x38], rax
lea rax, [rbp + 0x40]
cmp rax, 0x10000
jae 0x14004f798
lea rax, [rbp + 0x40]
movzx edx, ax
lea rcx, [rsp + 0x38]
call fcn.140012700
jmp 0x14004f7bc
lea rcx, [rbp + 0x40]
mov rax, rdi
nop
inc rax
cmp word [rcx + rax*2], 0
jne 0x14004f7a0
mov r8d, eax
lea rdx, [rbp + 0x40]
lea rcx, [rsp + 0x38]
call fcn.140002a7c
nop
lea rcx, [rsp + 0x40]
call fcn.140015830
nop
lea rdx, [rsp + 0x38]
lea rcx, [rsp + 0x40]
call fcn.140002b88
mov edx, 0x2c
lea rcx, [rsp + 0x40]
call fcn.14007d450
mov r9, qword [rsp + 0x40]
xor r8d, r8d
mov edx, 0x11721
mov rcx, qword [rsi]
call fcn.14001fdd0
nop
lea rcx, [rsp + 0x38]
call fcn.14004b210
mov byte [rbp - 0x50], 1
lea rcx, [rbp - 0x48]
call fcn.140015830
nop
lea r9, [rbp - 0x50]
xor r8d, r8d
mov edx, 0x11720
mov rcx, rsi
call fcn.140085650
nop
mov rdx, qword [rbp - 0x48]
add rdx, 0xffffffffffffffe8
mov eax, edi
lock xadd dword [rdx + 0x10], eax
sub eax, 1
jg 0x14004f873
mov rcx, qword [rdx]
mov rax, qword [rcx]
mov r8, qword [rax + 8]
cmp rax, r15
jne 0x14004ff80
mov rcx, qword [rcx + 8]
mov rax, qword [rcx]
mov r8, qword [rax + 8]
cmp rax, r12
jne 0x14004ff80
mov r8, rdx
xor edx, edx
mov rcx, qword [rcx + 8]
call qword [sym.imp.KERNEL32.dll_HeapFree]
nop
call fcn.140011f18
mov rcx, rax
test rax, rax
je 0x14004ff88
mov rax, qword [rax]
mov rdx, qword [rax + 0x18]
cmp rax, r15
jne 0x14004ff93
lock inc dword [rcx + 0x20]
lea rax, [rcx + 0x10]
add rax, 0x18
mov qword [rsp + 0x70], rax
cmp r14, 0x10000
jae 0x14004f8be
movzx edx, r14w
lea rcx, [rsp + 0x70]
call fcn.140012700
jmp 0x14004f8dd
mov rax, rdi
inc rax
cmp word [r14 + rax*2], 0
jne 0x14004f8c1
mov r8d, eax
mov rdx, r14
lea rcx, [rsp + 0x70]
call fcn.140002a7c
nop
mov rbx, qword [rsp + 0x70]
mov r9, rbx
mov r8d, dword [0x14036cb90]
mov edx, 0x116b9
mov rcx, qword [rsi]
call fcn.14001fdd0
nop
lea rdx, [rbx - 0x18]
mov eax, edi
lock xadd dword [rdx + 0x10], eax
sub eax, 1
jg 0x14004f940
mov rcx, qword [rdx]
mov rax, qword [rcx]
mov r8, qword [rax + 8]
cmp rax, r15
jne 0x14004ff9a
mov rcx, qword [rcx + 8]
mov rax, qword [rcx]
mov r8, qword [rax + 8]
cmp rax, r12
jne 0x14004ff9a
mov r8, rdx
xor edx, edx
mov rcx, qword [rcx + 8]
call qword [sym.imp.KERNEL32.dll_HeapFree]
lea rax, [rsp + 0x48]
mov qword [rbp - 0x80], rax
call fcn.140011f18
mov rcx, rax
test rax, rax
je 0x14004ffa2
mov rax, qword [rax]
mov rdx, qword [rax + 0x18]
cmp rax, r15
jne 0x14004ffad
lock inc dword [rcx + 0x20]
lea rax, [rcx + 0x10]
add rax, 0x18
mov qword [rsp + 0x48], rax
lea rax, [rbp + 0x40]
cmp rax, 0x10000
jae 0x14004f99a
lea rax, [rbp + 0x40]
movzx edx, ax
lea rcx, [rsp + 0x48]
call fcn.140012700
jmp 0x14004f9bd
lea rcx, [rbp + 0x40]
mov rax, rdi
inc rax
cmp word [rcx + rax*2], 0
jne 0x14004f9a1
mov r8d, eax
lea rdx, [rbp + 0x40]
lea rcx, [rsp + 0x48]
call fcn.140002a7c
nop
lea rcx, [rsp + 0x50]
call fcn.140015830
nop
mov ebx, dword [0x14036cb90]
lea rdx, [rsp + 0x48]
lea rcx, [rsp + 0x50]
call fcn.140002b88
mov edx, 0x2c
lea rcx, [rsp + 0x50]
call fcn.14007d450
mov r9, qword [rsp + 0x50]
mov r8d, ebx
mov edx, 0x116b8
mov rcx, qword [rsi]
call fcn.14001fdd0
nop
lea rcx, [rsp + 0x48]
call fcn.14004b210
mov byte [rbp - 0x40], 0
lea rcx, [rbp - 0x38]
call fcn.140015830
nop
lea r9, [rbp - 0x40]
mov r8d, dword [0x14036cb90]
mov edx, 0x1177b
mov rcx, rsi
call fcn.140085650
nop
mov rdx, qword [rbp - 0x38]
add rdx, 0xffffffffffffffe8
mov eax, edi
lock xadd dword [rdx + 0x10], eax
sub eax, 1
jg 0x14004fa7e
mov rcx, qword [rdx]
mov rax, qword [rcx]
mov r8, qword [rax + 8]
cmp rax, r15
jne 0x14004ffb4
mov rcx, qword [rcx + 8]
mov rax, qword [rcx]
mov r8, qword [rax + 8]
cmp rax, r12
jne 0x14004ffb4
mov r8, rdx
xor edx, edx
mov rcx, qword [rcx + 8]
call qword [sym.imp.KERNEL32.dll_HeapFree]
nop
mov byte [rbp - 0x30], 0
lea rcx, [rbp - 0x28]
call fcn.140015830
nop
lea r9, [rbp - 0x30]
mov r8d, dword [0x14036cb90]
mov edx, 0x1177e
mov rcx, rsi
call fcn.140085650
nop
mov rdx, qword [rbp - 0x28]
add rdx, 0xffffffffffffffe8
mov eax, edi
lock xadd dword [rdx + 0x10], eax
sub eax, 1
jg 0x14004faf0
mov rcx, qword [rdx]
mov rax, qword [rcx]
mov r8, qword [rax + 8]
cmp rax, r15
jne 0x14004ffbc
mov rcx, qword [rcx + 8]
mov rax, qword [rcx]
mov r8, qword [rax + 8]
cmp rax, r12
jne 0x14004ffbc
mov r8, rdx
xor edx, edx
mov rcx, qword [rcx + 8]
call qword [sym.imp.KERNEL32.dll_HeapFree]
nop
mov byte [rbp - 0x20], 0
lea rcx, [rbp - 0x18]
call fcn.140015830
nop
lea r9, [rbp - 0x20]
mov r8d, dword [0x14036cb90]
mov edx, 0x1177c
mov rcx, rsi
call fcn.140085650
nop
mov rdx, qword [rbp - 0x18]
add rdx, 0xffffffffffffffe8
mov eax, edi
lock xadd dword [rdx + 0x10], eax
sub eax, 1
jg 0x14004fb62
mov rcx, qword [rdx]
mov rax, qword [rcx]
mov r8, qword [rax + 8]
cmp rax, r15
jne 0x14004ffc4
mov rcx, qword [rcx + 8]
mov rax, qword [rcx]
mov r8, qword [rax + 8]
cmp rax, r12
jne 0x14004ffc4
mov r8, rdx
xor edx, edx
mov rcx, qword [rcx + 8]
call qword [sym.imp.KERNEL32.dll_HeapFree]
nop
mov byte [rbp - 0x10], 0
lea rcx, [rbp - 8]
call fcn.140015830
nop
lea r9, [rbp - 0x10]
mov r8d, dword [0x14036cb90]
mov edx, 0x11780
mov rcx, rsi
call fcn.140085650
nop
mov rdx, qword [rbp - 8]
add rdx, 0xffffffffffffffe8
mov eax, edi
lock xadd dword [rdx + 0x10], eax
sub eax, 1
jg 0x14004fbd4
mov rcx, qword [rdx]
mov rax, qword [rcx]
mov r8, qword [rax + 8]
cmp rax, r15
jne 0x14004ffcc
mov rcx, qword [rcx + 8]
mov rax, qword [rcx]
mov r8, qword [rax + 8]
cmp rax, r12
jne 0x14004ffcc
mov r8, rdx
xor edx, edx
mov rcx, qword [rcx + 8]
call qword [sym.imp.KERNEL32.dll_HeapFree]
nop
mov byte [rbp], 0
lea rcx, [rbp + 8]
call fcn.140015830
nop
lea r9, [rbp]
mov r8d, dword [0x14036cb90]
mov edx, 0x1177f
mov rcx, rsi
call fcn.140085650
nop
mov rdx, qword [rbp + 8]
add rdx, 0xffffffffffffffe8
mov eax, edi
lock xadd dword [rdx + 0x10], eax
sub eax, 1
jg 0x14004fc46
mov rcx, qword [rdx]
mov rax, qword [rcx]
mov r8, qword [rax + 8]
cmp rax, r15
jne 0x14004ffd4
mov rcx, qword [rcx + 8]
mov rax, qword [rcx]
mov r8, qword [rax + 8]
cmp rax, r12
jne 0x14004ffd4
mov r8, rdx
xor edx, edx
mov rcx, qword [rcx + 8]
call qword [sym.imp.KERNEL32.dll_HeapFree]
nop
mov byte [rbp + 0x10], 1
lea rcx, [rbp + 0x18]
call fcn.140015830
nop
lea r9, [rbp + 0x10]
mov r8d, dword [0x14036cb90]
mov edx, 0x1177d
mov rcx, rsi
call fcn.140085650
nop
mov rdx, qword [rbp + 0x18]
add rdx, 0xffffffffffffffe8
mov eax, edi
lock xadd dword [rdx + 0x10], eax
sub eax, 1
jg 0x14004fcb8
mov rcx, qword [rdx]
mov rax, qword [rcx]
mov r8, qword [rax + 8]
cmp rax, r15
jne 0x14004ffdc
mov rcx, qword [rcx + 8]
mov rax, qword [rcx]
mov r8, qword [rax + 8]
cmp rax, r12
jne 0x14004ffdc
mov r8, rdx
xor edx, edx
mov rcx, qword [rcx + 8]
call qword [sym.imp.KERNEL32.dll_HeapFree]
nop
inc dword [0x14036cb90]
mov rcx, qword [0x14036cdf8]
cmp dword [rcx - 0x10], 0
jl 0x14004ff19
lea rdx, str.safari
call fcn.14022f5d8
test rax, rax
je 0x14004ff19
mov rcx, qword [0x14036cdf8]
sub rax, rcx
sar rax, 1
test eax, eax
js 0x14004ff19
cmp dword [rcx - 0x10], 0
jl 0x14004fd22
lea rdx, str.chrome
call fcn.14022f5d8
test rax, rax
je 0x14004fd22
sub rax, qword [0x14036cdf8]
sar rax, 1
test eax, eax
jns 0x14004ff19
call fcn.140011f18
mov rcx, rax
test rax, rax
je 0x14004ffe4
mov rax, qword [rax]
mov rdx, qword [rax + 0x18]
cmp rax, r15
jne 0x14004ffef
lock inc dword [rcx + 0x20]
lea rax, [rcx + 0x10]
add rax, 0x18
mov qword [rsp + 0x78], rax
cmp r14, 0x10000
jae 0x14004fd6d
movzx edx, r14w
lea rcx, [rsp + 0x78]
call fcn.140012700
jmp 0x14004fd8c
mov rax, rdi
inc rax
cmp word [r14 + rax*2], 0
jne 0x14004fd70
mov r8d, eax
mov rdx, r14
lea rcx, [rsp + 0x78]
call fcn.140002a7c
nop
mov rbx, qword [rsp + 0x78]
mov r9, rbx
xor r8d, r8d
mov edx, 0x11717
mov rcx, qword [rsi]
call fcn.14001fdd0
nop
lea rdx, [rbx - 0x18]
mov eax, edi
lock xadd dword [rdx + 0x10], eax
sub eax, 1
jg 0x14004fdeb
mov rcx, qword [rdx]
mov rax, qword [rcx]
mov r8, qword [rax + 8]
cmp rax, r15
jne 0x14004fff6
mov rcx, qword [rcx + 8]
mov rax, qword [rcx]
mov r8, qword [rax + 8]
cmp rax, r12
jne 0x14004fff6
mov r8, rdx
xor edx, edx
mov rcx, qword [rcx + 8]
call qword [sym.imp.KERNEL32.dll_HeapFree]
lea rax, [rsp + 0x58]
mov qword [rbp - 0x80], rax
call fcn.140011f18
mov rcx, rax
test rax, rax
je 0x14004fffe
mov rax, qword [rax]
mov rdx, qword [rax + 0x18]
cmp rax, r15
jne 0x140050009
lock inc dword [rcx + 0x20]
lea rax, [rcx + 0x10]
add rax, 0x18
mov qword [rsp + 0x58], rax
lea rax, [rbp + 0x40]
cmp rax, 0x10000
jae 0x14004fe45
lea rax, [rbp + 0x40]
movzx edx, ax
lea rcx, [rsp + 0x58]
call fcn.140012700
jmp 0x14004fe6c
lea rcx, [rbp + 0x40]
mov rax, rdi
nop dword [rax]
inc rax
cmp word [rcx + rax*2], 0
jne 0x14004fe50
mov r8d, eax
lea rdx, [rbp + 0x40]
lea rcx, [rsp + 0x58]
call fcn.140002a7c
nop
lea rcx, [rsp + 0x60]
call fcn.140015830
nop
lea rdx, [rsp + 0x58]
lea rcx, [rsp + 0x60]
call fcn.140002b88
mov edx, 0x2c
lea rcx, [rsp + 0x60]
call fcn.14007d450
mov r9, qword [rsp + 0x60]
xor r8d, r8d
mov edx, 0x11724
mov rcx, qword [rsi]
call fcn.14001fdd0
nop
lea rcx, [rsp + 0x58]
call fcn.14004b210
mov byte [rbp + 0x20], 1
lea rcx, [rbp + 0x28]
call fcn.140015830
nop
lea r9, [rbp + 0x20]
xor r8d, r8d
mov edx, 0x1171a
mov rcx, rsi
call fcn.140085650
nop
mov rdx, qword [rbp + 0x28]
add rdx, 0xffffffffffffffe8
lock xadd dword [rdx + 0x10], edi
sub edi, 1
jg 0x14004ff19
mov rcx, qword [rdx]
mov rax, qword [rcx]
mov r8, qword [rax + 8]
cmp rax, r15
jne 0x14004ff60
mov rcx, qword [rcx + 8]
mov rax, qword [rcx]
mov r8, qword [rax + 8]
cmp rax, r12
jne 0x14004ff60
mov r8, rdx
xor edx, edx
mov rcx, qword [rcx + 8]
call qword [sym.imp.KERNEL32.dll_HeapFree]
nop
mov rcx, qword [rbp - 0x78]
test rcx, rcx
je 0x14004ff2c
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov qword [rbp - 0x78], r13
mov dword [rbp - 0x70], r13d
mov rcx, qword [rbp + 0xb0]
xor rcx, rsp
call fcn.14022b1a0
lea r11, [rsp + 0x1c0]
mov rbx, qword [r11 + 0x38]
mov rsi, qword [r11 + 0x40]
mov rdi, qword [r11 + 0x48]
mov rsp, r11
pop r15
pop r14
pop r13
pop r12
pop rbp
ret
call r8
nop
jmp 0x14004ff19
call r8
jmp 0x14004f693
mov ecx, 0x80004005
call fcn.140002d3c
int3
call rdx
jmp 0x14004f770
call r8
jmp 0x14004f873
mov ecx, 0x80004005
call fcn.140002d3c
int3
call rdx
jmp 0x14004f89c
call r8
jmp 0x14004f940
mov ecx, 0x80004005
call fcn.140002d3c
int3
call rdx
jmp 0x14004f972
call r8
jmp 0x14004fa7e
call r8
jmp 0x14004faf0
call r8
jmp 0x14004fb62
call r8
jmp 0x14004fbd4
call r8
jmp 0x14004fc46
call r8
jmp 0x14004fcb8
mov ecx, 0x80004005
call fcn.140002d3c
int3
call rdx
jmp 0x14004fd4b
call r8
jmp 0x14004fdeb
mov ecx, 0x80004005
call fcn.140002d3c
int3
call rdx
jmp 0x14004fe1d