Function at 0x140049f20
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 [0x1400922d0]
xor rax, rsp
mov qword [rbp + 0x1b0], rax
mov r12, r9
mov rdi, r8
mov r14, rdx
mov qword [rsp + 0x78], rdx
mov rbx, rcx
mov rax, qword [rbp + 0x230]
mov qword [rbp - 0x80], rax
mov r13, qword [rbp + 0x238]
xor r15d, r15d
mov esi, r15d
mov qword [rbp - 0x78], r15
mov rcx, rax
call qword [sym.imp.ADVAPI32.dll_ImpersonateLoggedOnUser]
test eax, eax
setne byte [rsp + 0x60]
lea rax, [rbp - 0x78]
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 0x140049fc4
movzx esi, cx
or esi, 0x80070000
test eax, eax
cmovle esi, ecx
jmp 0x14004a29f
lea rax, [rbp - 0x70]
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 [rbp - 0x78]
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 0x14004a021
xor ebx, ebx
mov esi, ebx
jmp 0x14004a28f
or r15, 0xffffffffffffffff
test rbx, rbx
jne 0x14004a0c5
mov rdx, r12
lea rcx, [rbp - 0x70]
call qword [sym.imp.KERNEL32.dll_CompareFileTime]
test eax, eax
jle 0x14004a0c7
mov qword [rsp + 0x70], rbx
mov rdx, r14
lea rcx, [rsp + 0x70]
call fcn.140002f00
mov r8, qword [rsp + 0x70]
cmp dword [r8 - 0x10], ebx
jne 0x14004a085
test rdi, rdi
jne 0x14004a069
mov eax, ebx
jmp 0x14004a075
mov rax, r15
inc rax
cmp word [rdi + rax*2], bx
jne 0x14004a06c
mov r8d, eax
mov rdx, rdi
mov rcx, r13
call fcn.140002c00
jmp 0x14004a097
mov r9, rdi
lea rdx, [0x140068638]
mov rcx, r13
call fcn.140006970
mov rax, qword [rbp - 0x70]
mov qword [r12], rax
mov rdx, qword [rsp + 0x70]
add rdx, 0xffffffffffffffe8
mov eax, r15d
lock xadd dword [rdx + 0x10], eax
add eax, r15d
test eax, eax
jg 0x14004a0c7
lfence
mov rcx, qword [rdx]
mov rax, qword [rcx]
call qword [rax + reloc.OLEAUT32.dll_VariantClear]
jmp 0x14004a0c7
xor ebx, ebx
mov r15b, byte [rbp + 0x248]
test r15b, r15b
jne 0x14004a18f
lea rdx, str.CLSID
mov rcx, rdi
call sub.api_ms_win_crt_string_l1_1_0.dll__wcsicmp
test eax, eax
je 0x14004a01a
lea rdx, str.HandleInComingCall
mov rcx, rdi
call sub.api_ms_win_crt_string_l1_1_0.dll__wcsicmp
test eax, eax
je 0x14004a01a
lea rdx, str.Editors
mov rcx, rdi
call sub.api_ms_win_crt_string_l1_1_0.dll__wcsicmp
test eax, eax
je 0x14004a01a
lea rdx, str.ProgId
mov rcx, rdi
call sub.api_ms_win_crt_string_l1_1_0.dll__wcsicmp
test eax, eax
je 0x14004a01a
lea rdx, str.Projects
mov rcx, rdi
call sub.api_ms_win_crt_string_l1_1_0.dll__wcsicmp
test eax, eax
je 0x14004a01a
lea rdx, str.ToolWindows
mov rcx, rdi
call sub.api_ms_win_crt_string_l1_1_0.dll__wcsicmp
test eax, eax
je 0x14004a01a
lea rdx, str.ShellFileAssociations
mov rcx, rdi
call sub.api_ms_win_crt_string_l1_1_0.dll__wcsicmp
test eax, eax
je 0x14004a01a
lea rdx, str.Services
mov rcx, rdi
call sub.api_ms_win_crt_string_l1_1_0.dll__wcsicmp
test eax, eax
je 0x14004a01a
mov r14d, dword [rbp + 0x240]
test r14d, r14d
jle 0x14004a28d
lfence
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 [rbp - 0x78]
call qword [sym.imp.ADVAPI32.dll_RegEnumKeyW]
movsxd rcx, eax
test rcx, rcx
jne 0x14004a28d
xor esi, esi
mov qword [rsp + 0x68], rsi
mov rdx, qword [rsp + 0x78]
lea rcx, [rsp + 0x68]
call fcn.140002f00
nop
mov rax, qword [rsp + 0x68]
cmp dword [rax - 0x10], esi
jne 0x14004a21e
test rdi, rdi
jne 0x14004a1ff
mov eax, esi
jmp 0x14004a20c
or rax, 0xffffffffffffffff
inc rax
cmp word [rdi + rax*2], si
jne 0x14004a203
mov r8d, eax
mov rdx, rdi
lea rcx, [rsp + 0x68]
call fcn.140002c00
jmp 0x14004a232
mov r8, rdi
lea rdx, [0x140078d48]
lea rcx, [rsp + 0x68]
call fcn.14001d9e0
lea eax, [r14 - 1]
mov byte [rsp + 0x38], r15b
mov dword [rsp + 0x30], eax
mov qword [rsp + 0x28], r13
mov rax, qword [rbp - 0x80]
mov qword [rsp + 0x20], rax
mov r9, r12
lea r8, [rbp - 0x60]
mov rdx, qword [rsp + 0x68]
mov rcx, qword [rbp - 0x78]
call fcn.140049f20
mov esi, eax
mov rdx, qword [rsp + 0x68]
add rdx, 0xffffffffffffffe8
or eax, 0xffffffff
lock xadd dword [rdx + 0x10], eax
sub eax, 1
jg 0x14004a286
lfence
mov rcx, qword [rdx]
mov rax, qword [rcx]
call qword [rax + reloc.OLEAUT32.dll_VariantClear]
inc ebx
jmp 0x14004a1a2
xor ebx, ebx
mov rcx, qword [rbp - 0x78]
test rcx, rcx
je 0x14004a29f
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
nop
cmp byte [rsp + 0x60], bl
je 0x14004a2ab
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