Function at 0x140104c44
Capabilities:
Query or enumerate registry value

Disassembly:
mov qword [rsp + 0x18], rbx
push rbp
push rsi
push rdi
push r12
push r13
push r14
push r15
lea rbp, [rsp - 0x310]
sub rsp, 0x410
mov rax, qword [0x14017d140]
xor rax, rsp
mov qword [rbp + 0x300], rax
mov eax, dword [rbp - 0x34]
xor r13d, r13d
mov r14, rcx
and eax, 0xfffffffe
lea rcx, [rbp - 0x30]
mov rdi, rdx
and eax, 0xfffffffb
lea edx, [r13 + 0x18]
mov qword [rbp - 0x40], rcx
or eax, 2
lea rcx, [rbp + 0x20]
or rsi, 0xffffffffffffffff
mov dword [rbp - 0x34], eax
mov eax, dword [rbp + 0x1c]
mov ebx, r13d
and eax, 0xfffffffe
mov qword [rsp + 0x50], r13
mov r15d, r13d
and eax, 0xfffffffb
mov qword [rbp - 0x50], r13
mov dword [rbp - 0x48], edx
or eax, 2
mov dword [rbp - 0x38], r13d
mov word [rbp - 0x30], r13w
mov qword [rbp], r13
mov dword [rbp + 8], edx
mov qword [rbp + 0x10], rcx
mov dword [rbp + 0x1c], eax
mov dword [rbp + 0x18], r13d
mov word [rbp + 0x20], r13w
test rdi, rdi
jne 0x140104d09
lea r8, [0x14000f788]
lea rcx, [0x14000f200]
mov edx, 0x375
call fcn.1400a8be8
mov rax, qword [rbp - 0x40]
mov word [rax], r13w
mov dword [rbp - 0x38], r13d
jmp 0x140104d22
mov r8, rsi
inc r8
cmp word [rdi + r8*2], r13w
jne 0x140104d0c
lea rcx, [rbp - 0x50]
mov rdx, rdi
call fcn.140105ff4
mov edx, 0x5c
mov rcx, rdi
call sub.msvcrt.dll_wcschr
test rax, rax
je 0x140104d61
inc rsi
cmp word [rax + rsi*2], r13w
jne 0x140104d34
lea rcx, [rbp]
mov r8, rsi
mov rdx, rax
call fcn.140105ff4
mov edx, dword [rbp - 0x38]
sub edx, dword [rbp + 0x18]
cmp edx, dword [rbp - 0x38]
jae 0x140104d61
lea rcx, [rbp - 0x50]
call fcn.14010fce8
or esi, reloc.ADVAPI32.dll_TraceEvent
mov r12d, 1
lea rdx, [0x14000f798]
lea rcx, [rbp - 0x50]
mov r9d, esi
mov r8d, r12d
mov dword [rsp + 0x20], r13d
call fcn.140105d5c
test eax, eax
jne 0x140105053
mov rcx, qword [0x14017d3a8]
lea rsi, [0x14017d3a8]
cmp rcx, rsi
je 0x140104dc2
test byte [rcx + 0x1c], r12b
je 0x140104dc2
cmp byte [rcx + 0x19], 4
jb 0x140104dc2
mov rcx, qword [rcx + 0x10]
lea edx, [rax + 0x15]
lea r8, [0x14000fad0]
mov r9, rdi
call fcn.14001ec40
mov ecx, 0x2000
call qword [sym.imp.msvcrt.dll_malloc]
mov r15, rax
test rax, rax
jne 0x140104de9
xor r9d, r9d
xor r8d, r8d
mov edx, r12d
mov ecx, 0x8007000e
call qword [sym.imp.KERNEL32.dll_RaiseException]
test r15, r15
jne 0x140104e07
mov ebx, 0x8007000e
mov dword [rsp + 0x70], reloc.ADVAPI32.dll_TraceEvent
lea r9, [0x14000f568]
jmp 0x140105109
xor edx, edx
mov r8d, 0x2000
mov rcx, r15
call sub.msvcrt.dll_memset
lea r11, [rsp + 0x50]
lea rdx, [0x14000f7c0]
mov r9d, 0x20019
xor r8d, r8d
mov rcx, 0xffffffff80000002
mov qword [rsp + 0x20], r11
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
je 0x140104e8b
mov rcx, qword [0x14017d3a8]
cmp rcx, rsi
je 0x140105142
test byte [rcx + 0x1c], r12b
je 0x140105142
cmp byte [rcx + 0x19], 3
jb 0x140105142
mov rcx, qword [rcx + 0x10]
lea r9, [0x14000f7c0]
lea r8, [0x14000fad0]
mov edx, 0x16
mov dword [rsp + 0x20], eax
call fcn.14001ecbc
jmp 0x140105142
mov r12d, r13d
lea rcx, [rbp + 0xf0]
xor edx, edx
mov r8d, 0x104
mov dword [rsp + 0x40], reloc.ADVAPI32.dll_TraceEvent
mov dword [rsp + 0x48], reloc.ADVAPI32.dll_TraceEvent
call sub.msvcrt.dll_memset
mov rcx, qword [rsp + 0x50]
lea r11, [rsp + 0x48]
lea rax, [rsp + 0x44]
mov qword [rsp + 0x38], r11
mov qword [rsp + 0x30], r15
mov qword [rsp + 0x28], rax
lea r9, [rsp + 0x40]
lea r8, [rbp + 0xf0]
mov edx, r12d
mov qword [rsp + 0x20], r13
call qword [sym.imp.ADVAPI32.dll_RegEnumValueW]
inc r12d
mov edi, eax
test eax, eax
jne 0x140104fa0
cmp dword [rsp + 0x44], 2
jne 0x140104fa7
lea rcx, [rbp + 0xa0]
mov rdx, r15
call fcn.140105b04
mov r11d, dword [rbp + 0x6c]
lea rax, [rbp + 0x70]
and r11d, 0xfffffffe
lea rdx, [rbp + 0xa0]
lea rcx, [rsp + 0x58]
and r11d, 0xfffffffb
mov qword [rbp + 0x50], r13
mov dword [rbp + 0x58], 0x18
or r11d, 2
mov qword [rbp + 0x60], rax
mov dword [rbp + 0x68], r13d
mov dword [rbp + 0x6c], r11d
mov word [rbp + 0x70], r13w
call fcn.140105b68
lea rdx, [rbp + 0x50]
mov rcx, rax
call fcn.14010fe2c
mov r8d, dword [rbp + 0x18]
test r8d, r8d
je 0x140104f74
mov rdx, qword [rbp + 0x10]
lea rcx, [rbp + 0x50]
call fcn.1401061b4
lea rdx, [rbp + 0x50]
mov rcx, r14
call fcn.14010491c
mov ebx, eax
test eax, eax
js 0x140104ff1
lea rcx, [rbp + 0x50]
call fcn.140105bb4
lea rcx, [rbp + 0xa0]
call fcn.140105bb4
jmp 0x140104e8e
cmp eax, 0x103
je 0x140104fe4
mov rcx, qword [0x14017d3a8]
cmp rcx, rsi
je 0x140104fe4
test byte [rcx + 0x1c], 1
je 0x140104fe4
cmp byte [rcx + 0x19], 3
jb 0x140104fe4
mov rcx, qword [rcx + 0x10]
mov dword [rsp + 0x28], eax
lea r9, [0x14000f798]
lea r8, [0x14000fad0]
mov edx, 0x17
mov dword [rsp + 0x20], r12d
call fcn.140028d10
test edi, edi
jne 0x140105142
jmp 0x140104e8e
lea rax, [0x14017f718]
lea r9, [0x14000f838]
lea r8, [0x14000f360]
mov qword [rsp + 0x58], rax
lea rax, [0x14000f280]
lea rdx, [0x14000fa50]
lea rcx, [rsp + 0x58]
mov dword [rsp + 0x60], ebx
mov dword [rsp + 0x70], reloc.ADVAPI32.dll_TraceEvent
mov qword [rsp + 0x68], rax
mov qword [rsp + 0x78], r14
call sym.wbengine.exe_public:_void___cdecl_CTraceFailureHelper::TraceMessage_unsigned_short_int_const____ptr64____ptr64
lea rcx, [rbp + 0x50]
call fcn.140105bb4
lea rcx, [rbp + 0xa0]
call fcn.140105bb4
jmp 0x140105142
lea rdx, [0x14000f858]
lea rcx, [rbp - 0x50]
mov r9d, esi
mov r8d, r12d
mov dword [rsp + 0x20], r13d
call fcn.140105d5c
test eax, eax
jne 0x1401050ce
mov rcx, qword [0x14017d3a8]
lea rsi, [0x14017d3a8]
cmp rcx, rsi
je 0x1401050a7
test byte [rcx + 0x1c], r12b
je 0x1401050a7
cmp byte [rcx + 0x19], 4
jb 0x1401050a7
mov rcx, qword [rcx + 0x10]
lea edx, [rax + 0x18]
lea r8, [0x14000fad0]
mov r9, rdi
call fcn.14001ec40
lea rdx, [rbp]
mov rcx, r14
call fcn.14010491c
mov ebx, eax
test eax, eax
jns 0x140105142
mov dword [rsp + 0x70], reloc.ADVAPI32.dll_TraceEvent
lea r9, [0x14000f878]
jmp 0x140105109
lea rcx, [rbp + 0xa0]
mov rdx, rdi
call fcn.140105b04
mov rcx, r14
mov rdx, rax
call fcn.14010491c
lea rcx, [rbp + 0xa0]
mov ebx, eax
call fcn.140105bb4
test ebx, ebx
jns 0x140105142
mov dword [rsp + 0x70], reloc.ADVAPI32.dll_TraceEvent
lea r9, [0x14000f8a0]
lea rax, [0x14017f718]
lea r8, [0x14000f360]
lea rdx, [0x14000fa50]
mov qword [rsp + 0x58], rax
lea rax, [0x14000f280]
lea rcx, [rsp + 0x58]
mov dword [rsp + 0x60], ebx
mov qword [rsp + 0x78], r14
mov qword [rsp + 0x68], rax
call sym.wbengine.exe_public:_void___cdecl_CTraceFailureHelper::TraceMessage_unsigned_short_int_const____ptr64____ptr64
mov rcx, qword [rsp + 0x50]
test rcx, rcx
je 0x140105152
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov rcx, r15
call qword [sym.imp.msvcrt.dll_free]
lea rcx, [rbp]
call fcn.140105bb4
lea rcx, [rbp - 0x50]
call fcn.140105bb4
mov eax, ebx
mov rcx, qword [rbp + 0x300]
xor rcx, rsp
call fcn.140168920
mov rbx, qword [rsp + 0x460]
add rsp, 0x410
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
ret