Function at 0x140038f1c
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 [0x140090008]
xor rax, rsp
mov qword [rbp + 0x1b0], rax
mov r13, r9
mov rdi, r8
mov r15, rdx
mov qword [rbp - 0x78], rdx
mov rbx, rcx
mov rax, qword [rbp + 0x230]
mov qword [rbp - 0x68], rax
mov r14, qword [rbp + 0x238]
mov qword [rbp - 0x70], r14
xor r12d, r12d
mov esi, r12d
mov qword [rsp + 0x68], r12
mov rcx, rax
call qword [sym.imp.ADVAPI32.dll_ImpersonateLoggedOnUser]
test eax, eax
setne byte [rsp + 0x60]
lea rax, [rsp + 0x68]
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
test eax, eax
je 0x140038fc3
movzx esi, cx
or esi, 0x80070000
test eax, eax
cmovle esi, ecx
jmp 0x140039274
lea rax, [rsp + 0x78]
mov qword [rsp + 0x58], rax
mov qword [rsp + 0x50], r12
mov qword [rsp + 0x48], r12
mov qword [rsp + 0x40], r12
mov qword [rsp + 0x38], r12
mov qword [rsp + 0x30], r12
mov qword [rsp + 0x28], r12
mov qword [rsp + 0x20], r12
xor r9d, r9d
xor r8d, r8d
xor edx, edx
mov rcx, qword [rsp + 0x68]
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 0x140039021
mov esi, r12d
jmp 0x140039263
test rbx, rbx
jne 0x1400390b3
mov rdx, r13
lea rcx, [rsp + 0x78]
call qword [sym.imp.KERNEL32.dll_CompareFileTime]
test eax, eax
jle 0x1400390b3
mov rdx, r15
lea rcx, [rbp - 0x80]
call fcn.140009580
nop
mov rbx, qword [rbp - 0x80]
cmp dword [rbx - 0x10], r12d
jne 0x14003907b
test rdi, rdi
jne 0x14003905d
mov eax, r12d
jmp 0x14003906b
or rax, 0xffffffffffffffff
inc rax
cmp word [rdi + rax*2], r12w
jne 0x140039061
mov r8d, eax
mov rdx, rdi
mov rcx, r14
call fcn.14000a350
jmp 0x140039090
mov r9, rdi
mov r8, rbx
lea rdx, [0x140070f68]
mov rcx, r14
call fcn.14000a5cc
mov rax, qword [rsp + 0x78]
mov qword [r13], rax
lea rdx, [rbx - 0x18]
or eax, 0xffffffff
lock xadd dword [rdx + 0x10], eax
sub eax, 1
jg 0x1400390b3
mov rcx, qword [rdx]
mov rax, qword [rcx]
call qword [rax + reloc.OLEAUT32.dll_VariantClear]
mov r12b, byte [rbp + 0x248]
xor ebx, ebx
test r12b, r12b
jne 0x140039169
lea rdx, str.CLSID
mov rcx, rdi
call sub.api_ms_win_crt_string_l1_1_0.dll__wcsicmp
test eax, eax
je 0x140039161
lea rdx, str.HandleInComingCall
mov rcx, rdi
call sub.api_ms_win_crt_string_l1_1_0.dll__wcsicmp
test eax, eax
je 0x140039161
lea rdx, str.Editors
mov rcx, rdi
call sub.api_ms_win_crt_string_l1_1_0.dll__wcsicmp
test eax, eax
je 0x140039161
lea rdx, str.ProgId
mov rcx, rdi
call sub.api_ms_win_crt_string_l1_1_0.dll__wcsicmp
test eax, eax
je 0x140039161
lea rdx, str.Projects
mov rcx, rdi
call sub.api_ms_win_crt_string_l1_1_0.dll__wcsicmp
test eax, eax
je 0x140039161
lea rdx, str.ToolWindows
mov rcx, rdi
call sub.api_ms_win_crt_string_l1_1_0.dll__wcsicmp
test eax, eax
je 0x140039161
lea rdx, str.ShellFileAssociations
mov rcx, rdi
call sub.api_ms_win_crt_string_l1_1_0.dll__wcsicmp
test eax, eax
je 0x140039161
lea rdx, str.Services
mov rcx, rdi
call sub.api_ms_win_crt_string_l1_1_0.dll__wcsicmp
test eax, eax
jne 0x140039169
xor r12d, r12d
jmp 0x140039019
mov r14d, ebx
mov r15d, dword [rbp + 0x240]
test r15d, r15d
jle 0x140039260
xor edx, edx
mov r8d, 0x208
lea rcx, [rbp - 0x60]
call sub.VCRUNTIME140.dll_memset
mov r9d, 0x104
lea r8, [rbp - 0x60]
mov edx, r14d
mov rcx, qword [rsp + 0x68]
call qword [sym.imp.ADVAPI32.dll_RegEnumKeyW]
test eax, eax
jne 0x140039260
mov rdx, qword [rbp - 0x78]
lea rcx, [rsp + 0x70]
call fcn.140009580
nop
mov rax, qword [rsp + 0x70]
cmp dword [rax - 0x10], ebx
jne 0x1400391ee
test rdi, rdi
jne 0x1400391cf
mov eax, ebx
jmp 0x1400391dc
or rax, 0xffffffffffffffff
inc rax
cmp word [rdi + rax*2], bx
jne 0x1400391d3
mov r8d, eax
mov rdx, rdi
lea rcx, [rsp + 0x70]
call fcn.14000a350
jmp 0x140039202
mov r8, rdi
lea rdx, [0x140075380]
lea rcx, [rsp + 0x70]
call fcn.14000a5f0
lea eax, [r15 - 1]
mov byte [rsp + 0x38], r12b
mov dword [rsp + 0x30], eax
mov rax, qword [rbp - 0x70]
mov qword [rsp + 0x28], rax
mov rax, qword [rbp - 0x68]
mov qword [rsp + 0x20], rax
mov r9, r13
lea r8, [rbp - 0x60]
mov rbx, qword [rsp + 0x70]
mov rdx, rbx
mov rcx, qword [rsp + 0x68]
call fcn.140038f1c
mov esi, eax
lea rdx, [rbx - 0x18]
or eax, 0xffffffff
lock xadd dword [rdx + 0x10], eax
xor ebx, ebx
sub eax, 1
jg 0x140039258
mov rcx, qword [rdx]
mov rax, qword [rcx]
call qword [rax + reloc.OLEAUT32.dll_VariantClear]
inc r14d
jmp 0x14003917c
xor r12d, r12d
mov rcx, qword [rsp + 0x68]
test rcx, rcx
je 0x140039274
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
nop
cmp byte [rsp + 0x60], r12b
je 0x140039281
call qword [sym.imp.ADVAPI32.dll_RevertToSelf]
mov eax, esi
mov rcx, qword [rbp + 0x1b0]
xor rcx, rsp
call fcn.140052570
add rsp, 0x2c8
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbx
pop rbp
ret