Function at 0x140047c00
Capabilities:
Query or enumerate registry key

Disassembly:
push rbp
push rbx
push rsi
push rdi
push r12
push r13
push r14
push r15
lea rbp, [rsp - 0x1c8]
sub rsp, 0x2c8
mov rax, qword [0x14008d310]
xor rax, rsp
mov qword [rbp + 0x1b0], rax
mov r12, r9
mov rdi, r8
mov r14, rdx
mov qword [rbp - 0x78], rdx
mov rbx, rcx
mov rax, qword [rbp + 0x230]
mov qword [rbp - 0x70], rax
mov r13, qword [rbp + 0x238]
xor r15d, r15d
mov esi, r15d
mov qword [rsp + 0x70], r15
mov rcx, rax
call qword [sym.imp.ADVAPI32.dll_ImpersonateLoggedOnUser]
test eax, eax
setne byte [rsp + 0x60]
lea rax, [rsp + 0x70]
mov qword [rsp + 0x20], rax
mov r9d, 0x20019
xor r8d, r8d
mov rdx, rdi
mov rcx, rbx
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
movsxd rcx, eax
xor ebx, ebx
test eax, eax
je 0x140047ca5
movzx esi, cx
or esi, 0x80070000
test eax, eax
cmovle esi, ecx
jmp 0x140047f6c
lea rax, [rsp + 0x78]
mov qword [rsp + 0x58], rax
mov qword [rsp + 0x50], rbx
mov qword [rsp + 0x48], rbx
mov qword [rsp + 0x40], rbx
mov qword [rsp + 0x38], rbx
mov qword [rsp + 0x30], rbx
mov qword [rsp + 0x28], rbx
mov qword [rsp + 0x20], rbx
xor r9d, r9d
xor r8d, r8d
xor edx, edx
mov rcx, qword [rsp + 0x70]
call qword [sym.imp.ADVAPI32.dll_RegQueryInfoKeyW]
movsxd rbx, eax
lea rdx, str.Initialization
mov rcx, rdi
call sub.api_ms_win_crt_string_l1_1_0.dll__wcsicmp
test eax, eax
jne 0x140047d04
xor ebx, ebx
mov esi, ebx
jmp 0x140047f5b
or r15, 0xffffffffffffffff
test rbx, rbx
jne 0x140047d9b
mov rdx, r12
lea rcx, [rsp + 0x78]
call qword [sym.imp.KERNEL32.dll_CompareFileTime]
test eax, eax
jle 0x140047d9d
mov rdx, r14
lea rcx, [rbp - 0x80]
call fcn.140002cec
mov r8, qword [rbp - 0x80]
cmp dword [r8 - 0x10], ebx
jne 0x140047d5e
test rdi, rdi
jne 0x140047d42
mov eax, ebx
jmp 0x140047d4e
mov rax, r15
inc rax
cmp word [rdi + rax*2], bx
jne 0x140047d45
mov r8d, eax
mov rdx, rdi
mov rcx, r13
call fcn.140002a20
jmp 0x140047d70
mov r9, rdi
lea rdx, [0x140064270]
mov rcx, r13
call fcn.1400069fc
mov rax, qword [rsp + 0x78]
mov qword [r12], rax
mov rdx, qword [rbp - 0x80]
add rdx, 0xffffffffffffffe8
mov eax, r15d
lock xadd dword [rdx + 0x10], eax
add eax, r15d
test eax, eax
jg 0x140047d9d
mov rcx, qword [rdx]
mov rax, qword [rcx]
call qword [rax + reloc.OLEAUT32.dll_VariantClear]
jmp 0x140047d9d
xor ebx, ebx
mov r15b, byte [rbp + 0x248]
test r15b, r15b
jne 0x140047e65
lea rdx, str.CLSID
mov rcx, rdi
call sub.api_ms_win_crt_string_l1_1_0.dll__wcsicmp
test eax, eax
je 0x140047cfd
lea rdx, str.HandleInComingCall
mov rcx, rdi
call sub.api_ms_win_crt_string_l1_1_0.dll__wcsicmp
test eax, eax
je 0x140047cfd
lea rdx, str.Editors
mov rcx, rdi
call sub.api_ms_win_crt_string_l1_1_0.dll__wcsicmp
test eax, eax
je 0x140047cfd
lea rdx, str.ProgId
mov rcx, rdi
call sub.api_ms_win_crt_string_l1_1_0.dll__wcsicmp
test eax, eax
je 0x140047cfd
lea rdx, str.Projects
mov rcx, rdi
call sub.api_ms_win_crt_string_l1_1_0.dll__wcsicmp
test eax, eax
je 0x140047cfd
lea rdx, str.ToolWindows
mov rcx, rdi
call sub.api_ms_win_crt_string_l1_1_0.dll__wcsicmp
test eax, eax
je 0x140047cfd
lea rdx, str.ShellFileAssociations
mov rcx, rdi
call sub.api_ms_win_crt_string_l1_1_0.dll__wcsicmp
test eax, eax
je 0x140047cfd
lea rdx, str.Services
mov rcx, rdi
call sub.api_ms_win_crt_string_l1_1_0.dll__wcsicmp
test eax, eax
je 0x140047cfd
mov r14d, dword [rbp + 0x240]
test r14d, r14d
jle 0x140047f59
xor edx, edx
mov r8d, 0x208
lea rcx, [rbp - 0x60]
call sub.VCRUNTIME140.dll_memset
mov r9d, 0x104
lea r8, [rbp - 0x60]
mov edx, ebx
mov rcx, qword [rsp + 0x70]
call qword [sym.imp.ADVAPI32.dll_RegEnumKeyW]
movsxd rcx, eax
test rcx, rcx
jne 0x140047f59
mov rdx, qword [rbp - 0x78]
lea rcx, [rsp + 0x68]
call fcn.140002cec
nop
mov rax, qword [rsp + 0x68]
xor ecx, ecx
cmp dword [rax - 0x10], ecx
jne 0x140047eec
test rdi, rdi
jne 0x140047ecd
mov eax, ecx
jmp 0x140047eda
or rax, 0xffffffffffffffff
inc rax
cmp word [rdi + rax*2], cx
jne 0x140047ed1
mov r8d, eax
mov rdx, rdi
lea rcx, [rsp + 0x68]
call fcn.140002a20
jmp 0x140047f00
mov r8, rdi
lea rdx, [0x140075db8]
lea rcx, [rsp + 0x68]
call fcn.14001d078
lea eax, [r14 - 1]
mov byte [rsp + 0x38], r15b
mov dword [rsp + 0x30], eax
mov qword [rsp + 0x28], r13
mov rax, qword [rbp - 0x70]
mov qword [rsp + 0x20], rax
mov r9, r12
lea r8, [rbp - 0x60]
mov rdx, qword [rsp + 0x68]
mov rcx, qword [rsp + 0x70]
call fcn.140047c00
mov esi, eax
mov rdx, qword [rsp + 0x68]
add rdx, 0xffffffffffffffe8
or eax, 0xffffffff
lock xadd dword [rdx + 0x10], eax
sub eax, 1
jg 0x140047f52
mov rcx, qword [rdx]
mov rax, qword [rcx]
call qword [rax + reloc.OLEAUT32.dll_VariantClear]
inc ebx
jmp 0x140047e75
xor ebx, ebx
mov rcx, qword [rsp + 0x70]
test rcx, rcx
je 0x140047f6c
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
nop
cmp byte [rsp + 0x60], bl
je 0x140047f78
call qword [sym.imp.ADVAPI32.dll_RevertToSelf]
mov eax, esi
mov rcx, qword [rbp + 0x1b0]
xor rcx, rsp
call fcn.140001020
add rsp, 0x2c8
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbx
pop rbp
ret