Function at 0x1400802a0
Capabilities:
Query or enumerate registry value

Disassembly:
mov rax, rsp
push rbp
push rsi
push rdi
push r12
push r13
push r14
push r15
lea rbp, [rax - 0xe68]
sub rsp, 0xf30
mov qword [rbp - 0x68], 0xfffffffffffffffe
mov qword [rax + 0x18], rbx
mov rax, qword [0x1400fd258]
xor rax, rsp
mov qword [rbp + 0xe20], rax
mov r14, rdx
mov rsi, rcx
xor edx, edx
mov r8d, CSocketFile::CSocketFile
lea rcx, [rbp + 0x20]
call sub.msvcrt.dll_memset
mov dword [rbp - 0x7c], 0x104
xor r15d, r15d
mov dword [rbp - 0x80], r15d
mov dword [rsp + 0x7c], r15d
mov dword [rsp + 0x78], r15d
mov dword [rsp + 0x64], r15d
mov dword [rsp + 0x74], r15d
mov dword [rsp + 0x70], r15d
mov dword [rsp + 0x6c], r15d
mov edi, r15d
mov dword [rsp + 0x68], COleControlSite::XEventSink::AddRef
lea rax, [rbp - 0x60]
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 + 0x20]
mov rcx, r14
call qword [sym.imp.ADVAPI32.dll_RegQueryInfoKeyW]
nop dword [rax + rax]
mov ecx, dword [rsp + 0x64]
test eax, eax
cmovne ecx, r15d
mov dword [rsp + 0x64], ecx
test ecx, ecx
je 0x140080635
mov dword [rsp + 0x60], 4
lea r12d, [r15 + 7]
mov qword [rbp + 0x18], r12
mov qword [rbp + 0x10], r15
mov word [rbp], r15w
mov qword [rbp - 0x38], r12
mov qword [rbp - 0x40], r15
mov word [rbp - 0x50], r15w
mov ebx, r15d
lea edi, [r15 + 1]
or r13, 0xffffffffffffffff
mov dword [rsp + 0x68], COleControlSite::XEventSink::AddRef
mov word [rbp + 0x620], r15w
mov qword [rsp + 0x38], r15
mov qword [rsp + 0x30], r15
mov qword [rsp + 0x28], r15
mov qword [rsp + 0x20], r15
lea r9, [rsp + 0x68]
lea r8, [rbp + 0x620]
mov edx, ebx
mov rcx, r14
call qword [sym.imp.ADVAPI32.dll_RegEnumValueW]
nop dword [rax + rax]
test eax, eax
jne 0x14008053f
lea rax, [rbp + 0x620]
mov r8, r13
inc r8
cmp word [rax + r8*2], r15w
jne 0x140080429
lea rdx, [rbp + 0x620]
lea rcx, [rbp - 0x58]
call fcn.14000c5ac
mov dword [rsp + 0x60], 4
lea r8, [rbp - 0x50]
cmp qword [rbp - 0x38], 8
cmovae r8, qword [rbp - 0x50]
lea rax, [rsp + 0x60]
mov qword [rsp + 0x30], rax
lea rax, [rbp - 0x78]
mov qword [rsp + 0x28], rax
mov qword [rsp + 0x20], r15
mov r9d, reloc.OLEAUT32.dll_SafeArrayGetDim
lea rdx, [0x1400b2e04]
mov rcx, r14
call qword [sym.imp.ADVAPI32.dll_RegGetValueW]
nop dword [rax + rax]
test eax, eax
jne 0x1400804ab
lea rcx, [rsi + 0x78]
lea rdx, [rbp - 0x58]
call fcn.140081774
mov rcx, rax
mov eax, dword [rbp - 0x78]
mov dword [rcx], eax
jmp 0x14008053f
mov dword [rsp + 0x60], 0x3e8
lea r8, [rbp - 0x50]
cmp qword [rbp - 0x38], 8
cmovae r8, qword [rbp - 0x50]
lea rax, [rsp + 0x60]
mov qword [rsp + 0x30], rax
lea rax, [rbp + 0x230]
mov qword [rsp + 0x28], rax
mov qword [rsp + 0x20], r15
mov r9d, 0xffff
lea rdx, [0x1400b2e04]
mov rcx, r14
call qword [sym.imp.ADVAPI32.dll_RegGetValueW]
nop dword [rax + rax]
test eax, eax
jne 0x14008053f
lea rax, [rbp + 0x230]
mov r8, r13
inc r8
cmp word [rax + r8*2], r15w
jne 0x140080506
lea rdx, [rbp + 0x230]
lea rcx, [rbp - 8]
call fcn.14000c5ac
lea rcx, [rsi + 0x60]
lea rdx, [rbp - 0x58]
call fcn.1400819cc
mov r9, r13
xor r8d, r8d
lea rdx, [rbp - 8]
mov rcx, rax
call fcn.14000cac4
add ebx, edi
cmp ebx, dword [rsp + 0x64]
jb 0x1400803d6
mov qword [rbp - 0x10], r12
mov qword [rbp - 0x18], r15
mov word [rbp - 0x28], r15w
mov r8d, SafeArrayGetDim
lea rdx, str.SaveSystimeLow
lea rcx, [rbp - 0x30]
call fcn.14000c5ac
nop
lea rdx, [rbp - 0x30]
lea rcx, [rsi + 0x78]
call fcn.140081774
mov ecx, dword [rax]
mov dword [rbp - 0x70], ecx
cmp qword [rbp - 0x10], 8
jb 0x140080598
mov rcx, qword [rbp - 0x28]
call qword [sym.imp.MFC42u.dll_CMonthCalCtrl::SetFirstDayOfWeek]
nop dword [rax + rax]
mov qword [rbp - 0x10], r12
mov qword [rbp - 0x18], r15
mov word [rbp - 0x28], r15w
mov r8d, SafeArrayGetDim
lea rdx, str.SaveSystimeHigh
lea rcx, [rbp - 0x30]
call fcn.14000c5ac
nop
lea rdx, [rbp - 0x30]
lea rcx, [rsi + 0x78]
call fcn.140081774
mov ecx, dword [rax]
mov dword [rbp - 0x6c], ecx
cmp qword [rbp - 0x10], 8
jb 0x1400805e5
mov rcx, qword [rbp - 0x28]
call qword [sym.imp.MFC42u.dll_CMonthCalCtrl::SetFirstDayOfWeek]
nop dword [rax + rax]
lea rdx, [rsi + 0x50]
lea rcx, [rbp - 0x70]
call qword [sym.imp.KERNEL32.dll_FileTimeToSystemTime]
nop dword [rax + rax]
nop
cmp qword [rbp - 0x38], 8
jb 0x140080611
mov rcx, qword [rbp - 0x50]
call qword [sym.imp.MFC42u.dll_CMonthCalCtrl::SetFirstDayOfWeek]
nop dword [rax + rax]
mov qword [rbp - 0x38], r12
mov qword [rbp - 0x40], r15
mov word [rbp - 0x50], r15w
cmp qword [rbp + 0x18], 8
jb 0x140080635
mov rcx, qword [rbp]
call qword [sym.imp.MFC42u.dll_CMonthCalCtrl::SetFirstDayOfWeek]
nop dword [rax + rax]
mov eax, edi
mov rcx, qword [rbp + 0xe20]
xor rcx, rsp
call fcn.1400929d0
mov rbx, qword [rsp + 0xf80]
add rsp, 0xf30
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
ret