Function at 0x140042ae0
Capabilities:
Query or enumerate registry value

Disassembly:
push rbp
push rbx
push rsi
push rdi
push r12
push r14
push r15
mov rbp, rsp
sub rsp, 0x70
mov r15, rcx
xor r12d, r12d
call fcn.1400102e4
mov rcx, rax
test rax, rax
je 0x140042d38
mov rax, qword [rax]
call qword [rax + 0x18]
add rax, 0x18
mov qword [rbp - 0x40], rax
lea rdx, str.SYSTEMCurrentControlSetControlSecureBootStateUEFISecureBootEnabled
lea rdi, [r12 - 1]
cmp rdx, 0x10000
jae 0x140042b3a
movzx edx, dx
lea rcx, [rbp - 0x40]
call fcn.140010b40
jmp 0x140042b55
mov r8, rdi
nop dword [rax]
inc r8
cmp word [rdx + r8*2], 0
jne 0x140042b40
lea rcx, [rbp - 0x40]
call fcn.140002b2c
nop
mov dword [rbp + 0x48], r12d
call fcn.1400102e4
test rax, rax
je 0x140042d43
mov rdx, qword [rax]
mov rcx, rax
call qword [rdx + 0x18]
add rax, 0x18
mov qword [rbp - 0x38], rax
lea rdx, [0x1402cf410]
lea rcx, [rbp - 0x38]
cmp rdx, 0x10000
jae 0x140042b96
movzx edx, dx
call fcn.140010b40
jmp 0x140042b9c
call fcn.140013440
nop
xor sil, sil
mov qword [rbp - 0x30], r12
lea rax, [rbp - 0x30]
mov qword [rsp + 0x20], rax
mov r9d, 0x20019
xor r8d, r8d
mov rdx, qword [rbp - 0x40]
mov rcx, 0xffffffff80000002
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
mov rbx, qword [rbp - 0x38]
test eax, eax
jne 0x140042c2f
mov r14, qword [rbp - 0x30]
mov dword [rbp + 0x50], 4
lea rax, [rbp + 0x50]
mov qword [rsp + 0x28], rax
lea rax, [rbp + 0x48]
mov qword [rsp + 0x20], rax
lea r9, [rbp + 0x58]
xor r8d, r8d
mov rdx, rbx
mov rcx, r14
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x140042c0d
cmp dword [rbp + 0x58], 4
jne 0x140042c0d
mov sil, 1
jmp 0x140042c11
mov dword [rbp + 0x48], r12d
test r14, r14
je 0x140042c1f
mov rcx, r14
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
test sil, sil
je 0x140042c2f
cmp dword [rbp + 0x48], 1
jne 0x140042c2f
mov sil, 1
jmp 0x140042c32
xor sil, sil
lea rdx, [rbx - 0x18]
mov eax, edi
lock xadd dword [rdx + 0x10], eax
sub eax, 1
jg 0x140042c4b
mov rcx, qword [rdx]
mov rax, qword [rcx]
call qword [rax + reloc.OLEAUT32.dll_VariantClear]
test sil, sil
je 0x140042ca3
mov byte [rbp - 0x28], 1
call fcn.1400102e4
mov rcx, rax
test rax, rax
je 0x140042d43
mov rax, qword [rax]
call qword [rax + 0x18]
add rax, 0x18
mov qword [rbp - 0x20], rax
mov r8d, 3
lea rdx, [0x1402d32d8]
lea rcx, [rbp - 0x20]
call fcn.140002b2c
mov rbx, qword [rbp - 0x20]
mov r9, rbx
xor r8d, r8d
mov edx, 0x1175b
mov rcx, qword [r15]
call fcn.14001e7c0
nop
jmp 0x140042cf4
mov byte [rbp - 0x18], 0
call fcn.1400102e4
mov rcx, rax
test rax, rax
je 0x140042d43
mov rax, qword [rax]
call qword [rax + 0x18]
add rax, 0x18
mov qword [rbp - 0x10], rax
mov r8d, 2
lea rdx, [0x1402c8f30]
lea rcx, [rbp - 0x10]
call fcn.140002b2c
mov rbx, qword [rbp - 0x10]
mov r9, rbx
xor r8d, r8d
mov edx, 0x1175b
mov rcx, qword [r15]
call fcn.14001e7c0
nop
lea rdx, [rbx - 0x18]
mov eax, edi
lock xadd dword [rdx + 0x10], eax
sub eax, 1
jg 0x140042d0e
mov rcx, qword [rdx]
mov rax, qword [rcx]
call qword [rax + reloc.OLEAUT32.dll_VariantClear]
nop
mov rdx, qword [rbp - 0x40]
add rdx, 0xffffffffffffffe8
lock xadd dword [rdx + 0x10], edi
sub edi, 1
jg 0x140042d29
mov rcx, qword [rdx]
mov rax, qword [rcx]
call qword [rax + reloc.OLEAUT32.dll_VariantClear]
add rsp, 0x70
pop r15
pop r14
pop r12
pop rdi
pop rsi
pop rbx
pop rbp
ret
mov ecx, 0x80004005
call fcn.140002dfc
nop
mov ecx, 0x80004005
call fcn.140002dfc
int3