Function at 0x1400810a0
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 [0x1400ff2b8]
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 0x140081435
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 0x14008133f
lea rax, [rbp + 0x620]
mov r8, r13
inc r8
cmp word [rax + r8*2], r15w
jne 0x140081229
lea rdx, [rbp + 0x620]
lea rcx, [rbp - 0x58]
call fcn.14000c844
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, [0x1400b3e24]
mov rcx, r14
call qword [sym.imp.ADVAPI32.dll_RegGetValueW]
nop dword [rax + rax]
test eax, eax
jne 0x1400812ab
lea rcx, [rsi + 0x78]
lea rdx, [rbp - 0x58]
call fcn.140082594
mov rcx, rax
mov eax, dword [rbp - 0x78]
mov dword [rcx], eax
jmp 0x14008133f
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, [0x1400b3e24]
mov rcx, r14
call qword [sym.imp.ADVAPI32.dll_RegGetValueW]
nop dword [rax + rax]
test eax, eax
jne 0x14008133f
lea rax, [rbp + 0x230]
mov r8, r13
inc r8
cmp word [rax + r8*2], r15w
jne 0x140081306
lea rdx, [rbp + 0x230]
lea rcx, [rbp - 8]
call fcn.14000c844
lea rcx, [rsi + 0x60]
lea rdx, [rbp - 0x58]
call fcn.1400827ec
mov r9, r13
xor r8d, r8d
lea rdx, [rbp - 8]
mov rcx, rax
call fcn.14000cd5c
add ebx, edi
cmp ebx, dword [rsp + 0x64]
jb 0x1400811d6
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.14000c844
nop
lea rdx, [rbp - 0x30]
lea rcx, [rsi + 0x78]
call fcn.140082594
mov ecx, dword [rax]
mov dword [rbp - 0x70], ecx
cmp qword [rbp - 0x10], 8
jb 0x140081398
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.14000c844
nop
lea rdx, [rbp - 0x30]
lea rcx, [rsi + 0x78]
call fcn.140082594
mov ecx, dword [rax]
mov dword [rbp - 0x6c], ecx
cmp qword [rbp - 0x10], 8
jb 0x1400813e5
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 0x140081411
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 0x140081435
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.140093810
mov rbx, qword [rsp + 0xf80]
add rsp, 0xf30
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
ret