Function at 0x14008a668
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 - 0xe10]
sub rsp, 0xf10
mov rax, qword [0x1400fc1e8]
xor rax, rsp
mov qword [rbp + 0xe00], rax
mov r15, rdx
mov rsi, rcx
xor edx, edx
mov r8d, CSocketFile::CSocketFile
lea rcx, [rbp + 0x3f0]
call sub.msvcrt.dll_memset
mov dword [rbp - 0x7c], 0x104
xor r12d, r12d
mov dword [rbp - 0x80], r12d
mov dword [rsp + 0x7c], r12d
mov dword [rsp + 0x78], r12d
mov dword [rsp + 0x64], r12d
mov dword [rsp + 0x74], r12d
mov dword [rsp + 0x70], r12d
mov dword [rsp + 0x6c], r12d
mov r14d, r12d
mov dword [rsp + 0x68], COleControlSite::XEventSink::AddRef
lea rax, [rbp - 0x68]
mov qword [rsp + 0x58], rax
lea rax, [rsp + 0x6c]
mov qword [rsp + 0x50], rax
lea rax, [rsp + 0x70]
mov qword [rsp + 0x48], rax
lea rax, [rsp + 0x74]
mov qword [rsp + 0x40], rax
lea rax, [rsp + 0x64]
mov qword [rsp + 0x38], rax
lea rax, [rsp + 0x78]
mov qword [rsp + 0x30], rax
lea rax, [rsp + 0x7c]
mov qword [rsp + 0x28], rax
lea rax, [rbp - 0x80]
mov qword [rsp + 0x20], rax
xor r9d, r9d
lea r8, [rbp - 0x7c]
lea rdx, [rbp + 0x3f0]
mov rcx, r15
call qword [sym.imp.ADVAPI32.dll_RegQueryInfoKeyW]
nop dword [rax + rax]
mov ecx, dword [rsp + 0x64]
test eax, eax
cmovne ecx, r12d
mov dword [rsp + 0x64], ecx
test ecx, ecx
je 0x14008aa19
mov dword [rsp + 0x60], 4
lea r13d, [r12 + 7]
mov qword [rbp - 8], r13
mov qword [rbp - 0x10], r12
mov word [rbp - 0x20], r12w
mov qword [rbp - 0x48], r13
mov qword [rbp - 0x50], r12
mov word [rbp - 0x60], r12w
mov edi, r12d
lea r14d, [r12 + 1]
or rbx, 0xffffffffffffffff
mov dword [rsp + 0x68], COleControlSite::XEventSink::AddRef
mov word [rbp + reloc.MFC42u.dll_Ordinal_1536], r12w
mov qword [rsp + 0x38], r12
mov qword [rsp + 0x30], r12
mov qword [rsp + 0x28], r12
mov qword [rsp + 0x20], r12
lea r9, [rsp + 0x68]
lea r8, [rbp + reloc.MFC42u.dll_Ordinal_1536]
mov edx, edi
mov rcx, r15
call qword [sym.imp.ADVAPI32.dll_RegEnumValueW]
nop dword [rax + rax]
test eax, eax
jne 0x14008a922
cmp word [rbp + reloc.MFC42u.dll_Ordinal_1536], r12w
jne 0x14008a7f5
mov r8, r12
jmp 0x14008a809
lea rax, [rbp + reloc.MFC42u.dll_Ordinal_1536]
mov r8, rbx
inc r8
cmp word [rax + r8*2], r12w
jne 0x14008a7ff
lea rdx, [rbp + reloc.MFC42u.dll_Ordinal_1536]
lea rcx, [rbp - 0x60]
call fcn.140010c5c
mov dword [rsp + 0x60], 4
lea r8, [rbp - 0x60]
cmp qword [rbp - 0x48], 8
cmovae r8, qword [rbp - 0x60]
lea rax, [rsp + 0x60]
mov qword [rsp + 0x30], rax
lea rax, [rbp - 0x78]
mov qword [rsp + 0x28], rax
mov qword [rsp + 0x20], r12
mov r9d, reloc.OLEAUT32.dll_SafeArrayGetDim
lea rdx, [0x1400ba6e0]
mov rcx, r15
call qword [sym.imp.ADVAPI32.dll_RegGetValueW]
nop dword [rax + rax]
test eax, eax
jne 0x14008a882
mov ebx, dword [rbp - 0x78]
lea rcx, [rsi + 0x60]
lea rdx, [rbp - 0x60]
call fcn.140089b64
mov dword [rax], ebx
or rbx, 0xffffffffffffffff
jmp 0x14008a922
mov dword [rsp + 0x60], 0x3e8
lea r8, [rbp - 0x60]
cmp qword [rbp - 0x48], 8
cmovae r8, qword [rbp - 0x60]
lea rax, [rsp + 0x60]
mov qword [rsp + 0x30], rax
lea rax, [rbp]
mov qword [rsp + 0x28], rax
mov qword [rsp + 0x20], r12
mov r9d, 0xffff
lea rdx, [0x1400ba6e0]
mov rcx, r15
call qword [sym.imp.ADVAPI32.dll_RegGetValueW]
nop dword [rax + rax]
test eax, eax
jne 0x14008a922
cmp word [rbp], r12w
jne 0x14008a8dc
mov r8, r12
jmp 0x14008a8ed
lea rax, [rbp]
mov r8, rbx
inc r8
cmp word [rax + r8*2], r12w
jne 0x14008a8e3
lea rdx, [rbp]
lea rcx, [rbp - 0x20]
call fcn.140010c5c
lea rcx, [rsi + 0x50]
lea rdx, [rbp - 0x60]
call fcn.140089d94
lea rcx, [rbp - 0x20]
cmp rax, rcx
je 0x14008a922
mov r9, rbx
xor r8d, r8d
lea rdx, [rbp - 0x20]
mov rcx, rax
call fcn.140010b30
add edi, r14d
cmp edi, dword [rsp + 0x64]
jb 0x14008a79d
mov qword [rbp - 0x28], r13
mov qword [rbp - 0x30], r12
mov word [rbp - 0x40], r12w
mov r8d, SafeArrayGetDim
lea rdx, str.SaveSystimeLow
lea rcx, [rbp - 0x40]
call fcn.140010c5c
nop
lea rdx, [rbp - 0x40]
lea rcx, [rsi + 0x60]
call fcn.140089a78
mov ecx, dword [rax]
mov dword [rbp - 0x70], ecx
cmp qword [rbp - 0x28], 8
jb 0x14008a97c
mov rcx, qword [rbp - 0x40]
call qword [sym.imp.MFC42u.dll_CMonthCalCtrl::SetFirstDayOfWeek]
nop dword [rax + rax]
mov qword [rbp - 0x28], r13
mov qword [rbp - 0x30], r12
mov word [rbp - 0x40], r12w
mov r8d, SafeArrayGetDim
lea rdx, str.SaveSystimeHigh
lea rcx, [rbp - 0x40]
call fcn.140010c5c
nop
lea rdx, [rbp - 0x40]
lea rcx, [rsi + 0x60]
call fcn.140089a78
mov ecx, dword [rax]
mov dword [rbp - 0x6c], ecx
cmp qword [rbp - 0x28], 8
jb 0x14008a9c9
mov rcx, qword [rbp - 0x40]
call qword [sym.imp.MFC42u.dll_CMonthCalCtrl::SetFirstDayOfWeek]
nop dword [rax + rax]
lea rdx, [rsi + 0x40]
lea rcx, [rbp - 0x70]
call qword [sym.imp.KERNEL32.dll_FileTimeToSystemTime]
nop dword [rax + rax]
nop
cmp qword [rbp - 0x48], 8
jb 0x14008a9f5
mov rcx, qword [rbp - 0x60]
call qword [sym.imp.MFC42u.dll_CMonthCalCtrl::SetFirstDayOfWeek]
nop dword [rax + rax]
mov qword [rbp - 0x48], r13
mov qword [rbp - 0x50], r12
mov word [rbp - 0x60], r12w
cmp qword [rbp - 8], 8
jb 0x14008aa19
mov rcx, qword [rbp - 0x20]
call qword [sym.imp.MFC42u.dll_CMonthCalCtrl::SetFirstDayOfWeek]
nop dword [rax + rax]
mov eax, r14d
mov rcx, qword [rbp + 0xe00]
xor rcx, rsp
call fcn.14000bdb0
mov rbx, qword [rsp + reloc.MFC42u.dll_CMapWordToPtr::InitHashTable]
add rsp, 0xf10
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
ret