Function at 0x1400807a0
Capabilities:
Set registry value

Disassembly:
mov rax, rsp
push rbp
push rdi
push r12
push r14
push r15
lea rbp, [rax - 0x5f]
sub rsp, 0x100
mov qword [rbp - 0x69], 0xfffffffffffffffe
mov qword [rax + 0x10], rbx
mov qword [rax + 0x18], rsi
mov rax, qword [0x1400fd258]
xor rax, rsp
mov qword [rbp + 0x27], rax
mov rsi, rcx
lea rdx, [rbp - 0x29]
call fcn.1400811c4
nop
lea rdx, [0x1400b2e04]
mov rcx, rax
call fcn.14000c524
xor edi, edi
test eax, eax
sete bl
cmp qword [rbp - 9], 8
jb 0x14008080e
mov rcx, qword [rbp - 0x21]
call qword [sym.imp.MFC42u.dll_CMonthCalCtrl::SetFirstDayOfWeek]
nop dword [rax + rax]
mov r15d, 7
test bl, bl
je 0x140080892
mov qword [rbp - 0x41], r15
mov qword [rbp - 0x49], rdi
mov word [rbp - 0x59], di
lea rcx, [rbp - 0x39]
call qword [sym.imp.RPCRT4.dll_UuidCreate]
nop dword [rax + rax]
test eax, eax
jne 0x140080b62
lea rdx, [rbp - 0x79]
lea rcx, [rbp - 0x39]
call qword [sym.imp.RPCRT4.dll_UuidToStringW]
nop dword [rax + rax]
test eax, eax
jne 0x140080b62
mov r8d, 0xff
mov rdx, qword [rbp - 0x79]
mov rcx, rsi
call fcn.14000c5ac
lea rcx, [rbp - 0x79]
call qword [sym.imp.RPCRT4.dll_RpcStringFreeW]
nop dword [rax + rax]
nop
cmp qword [rbp - 0x41], 8
jb 0x140080892
mov rcx, qword [rbp - 0x59]
call qword [sym.imp.MFC42u.dll_CMonthCalCtrl::SetFirstDayOfWeek]
nop dword [rax + rax]
lea r8, [rsi + 0x28]
lea rdx, str.SoftwareMicrosoftWindowsCurrentVersionApplets_
lea rcx, [rbp - 0x29]
call fcn.14007f998
nop
mov rdx, rax
lea rcx, [rbp - 1]
call fcn.1400826f4
nop
cmp qword [rbp - 9], 8
jb 0x1400808cb
mov rcx, qword [rbp - 0x21]
call qword [sym.imp.MFC42u.dll_CMonthCalCtrl::SetFirstDayOfWeek]
nop dword [rax + rax]
mov qword [rbp - 9], r15
mov qword [rbp - 0x11], rdi
mov word [rbp - 0x21], di
or r9, 0xffffffffffffffff
xor r8d, r8d
mov rdx, rsi
lea rcx, [rbp - 1]
call fcn.14007f624
lea rdx, [rbp + 7]
cmp qword [rbp + 0x1f], 8
cmovae rdx, qword [rbp + 7]
mov qword [rsp + 0x40], rdi
lea rax, [rbp - 0x71]
mov qword [rsp + 0x38], rax
mov qword [rsp + 0x30], rdi
mov dword [rsp + 0x28], 0x20006
mov dword [rsp + 0x20], edi
xor r9d, r9d
xor r8d, r8d
mov rcx, 0xffffffff80000001
call qword [sym.imp.ADVAPI32.dll_RegCreateKeyExW]
nop dword [rax + rax]
test eax, eax
jne 0x140080b21
lea rcx, [rsi + 0x50]
call qword [sym.imp.KERNEL32.dll_GetSystemTime]
nop dword [rax + rax]
lea rdx, [rbp - 0x79]
lea rcx, [rsi + 0x50]
call qword [sym.imp.KERNEL32.dll_SystemTimeToFileTime]
nop dword [rax + rax]
mov qword [rbp - 0x41], r15
mov qword [rbp - 0x49], rdi
mov word [rbp - 0x59], di
mov r8d, SafeArrayGetDim
lea rdx, str.SaveSystimeLow
lea rcx, [rbp - 0x61]
call fcn.14000c5ac
nop
lea r14, [rsi + 0x78]
lea rdx, [rbp - 0x61]
mov rcx, r14
call fcn.140081774
mov ecx, dword [rbp - 0x79]
mov dword [rax], ecx
cmp qword [rbp - 0x41], 8
jb 0x1400809ab
mov rcx, qword [rbp - 0x59]
call qword [sym.imp.MFC42u.dll_CMonthCalCtrl::SetFirstDayOfWeek]
nop dword [rax + rax]
mov qword [rbp - 0x41], r15
mov qword [rbp - 0x49], rdi
mov word [rbp - 0x59], di
mov r8d, SafeArrayGetDim
lea rdx, str.SaveSystimeHigh
lea rcx, [rbp - 0x61]
call fcn.14000c5ac
nop
lea rdx, [rbp - 0x61]
mov rcx, r14
call fcn.140081774
mov ecx, dword [rbp - 0x75]
mov dword [rax], ecx
cmp qword [rbp - 0x41], 8
jb 0x1400809f6
mov rcx, qword [rbp - 0x59]
call qword [sym.imp.MFC42u.dll_CMonthCalCtrl::SetFirstDayOfWeek]
nop dword [rax + rax]
mov rcx, qword [rsi + 0x80]
mov rax, qword [rcx]
mov qword [rbp - 0x39], rax
cmp rax, rcx
je 0x140080a60
mov edi, 4
lea rdx, [rax + 0x18]
lea rbx, [rdx + 8]
cmp qword [rdx + 0x20], 8
jb 0x140080a20
mov rbx, qword [rbx]
mov rcx, r14
call fcn.140081774
mov dword [rsp + 0x28], edi
mov qword [rsp + 0x20], rax
mov r9d, edi
xor r8d, r8d
mov rdx, rbx
mov rcx, qword [rbp - 0x71]
call qword [sym.imp.ADVAPI32.dll_RegSetValueExW]
nop dword [rax + rax]
lea rcx, [rbp - 0x39]
call fcn.140021394
mov rax, qword [rbp - 0x39]
cmp rax, qword [rsi + 0x80]
jne 0x140080a0e
mov rcx, qword [rsi + 0x68]
mov rax, qword [rcx]
mov qword [rbp - 0x39], rax
cmp rax, rcx
je 0x140080b0c
lea rbx, [rax + 0x18]
mov rdx, rbx
lea rcx, [rsi + 0x60]
call fcn.1400819cc
lea r15, [rax + 8]
cmp qword [rax + 0x20], 8
jb 0x140080a92
mov r15, qword [r15]
mov rdx, rbx
lea rcx, [rsi + 0x60]
call fcn.1400819cc
lea r14, [rax + 8]
cmp qword [rax + 0x20], 8
jb 0x140080aac
mov r14, qword [r14]
lea rdi, [rbx + 8]
cmp qword [rbx + 0x20], 8
jb 0x140080aba
mov rdi, qword [rdi]
mov rcx, r15
call qword [sym.imp.KERNEL32.dll_lstrlenW]
nop dword [rax + rax]
lea eax, [rax*2 + 2]
mov dword [rsp + 0x28], eax
mov qword [rsp + 0x20], r14
mov r9d, 1
xor r8d, r8d
mov rdx, rdi
mov rcx, qword [rbp - 0x71]
call qword [sym.imp.ADVAPI32.dll_RegSetValueExW]
nop dword [rax + rax]
lea rcx, [rbp - 0x39]
call fcn.14001659c
mov rax, qword [rbp - 0x39]
cmp rax, qword [rsi + 0x68]
jne 0x140080a74
mov rcx, qword [rbp - 0x71]
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
nop dword [rax + rax]
mov edi, 1
cmp qword [rbp + 0x1f], 8
jb 0x140080b38
mov rcx, qword [rbp + 7]
call qword [sym.imp.MFC42u.dll_CMonthCalCtrl::SetFirstDayOfWeek]
nop dword [rax + rax]
mov eax, edi
mov rcx, qword [rbp + 0x27]
xor rcx, rsp
call fcn.1400929d0
lea r11, [rsp + 0x100]
mov rbx, qword [r11 + 0x38]
mov rsi, qword [r11 + 0x40]
mov rsp, r11
pop r15
pop r14
pop r12
pop rdi
pop rbp
ret
cmp qword [rbp - 0x41], 8
jb 0x140080b79
mov rcx, qword [rbp - 0x59]
call qword [sym.imp.MFC42u.dll_CMonthCalCtrl::SetFirstDayOfWeek]
nop dword [rax + rax]
xor eax, eax
jmp 0x140080b3a