Function at 0x14007111c
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 [0x1400ebe98]
xor rax, rsp
mov qword [rbp + 0x27], rax
mov rsi, rcx
lea rdx, [rbp - 0x29]
call fcn.140071b44
nop
lea rdx, [0x1400a3ca8]
mov rcx, rax
call fcn.14000c888
xor edi, edi
test eax, eax
sete bl
cmp qword [rbp - 9], 8
jb 0x14007118a
mov rcx, qword [rbp - 0x21]
call qword [sym.imp.MFC42u.dll_CMonthCalCtrl::SetFirstDayOfWeek]
nop dword [rax + rax]
mov r15d, 7
test bl, bl
je 0x14007120e
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 0x1400714df
lea rdx, [rbp - 0x79]
lea rcx, [rbp - 0x39]
call qword [sym.imp.RPCRT4.dll_UuidToStringW]
nop dword [rax + rax]
test eax, eax
jne 0x1400714df
mov r8d, 0xff
mov rdx, qword [rbp - 0x79]
mov rcx, rsi
call fcn.14000c90c
lea rcx, [rbp - 0x79]
call qword [sym.imp.RPCRT4.dll_RpcStringFreeW]
nop dword [rax + rax]
nop
cmp qword [rbp - 0x41], 8
jb 0x14007120e
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.140070310
nop
mov rdx, rax
lea rcx, [rbp - 1]
call fcn.140073054
nop
cmp qword [rbp - 9], 8
jb 0x140071247
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.14006ff94
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 0x14007149d
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.14000c90c
nop
lea r14, [rsi + 0x78]
lea rdx, [rbp - 0x61]
mov rcx, r14
call fcn.1400720f0
mov ecx, dword [rbp - 0x79]
mov dword [rax], ecx
cmp qword [rbp - 0x41], 8
jb 0x140071327
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.14000c90c
nop
lea rdx, [rbp - 0x61]
mov rcx, r14
call fcn.1400720f0
mov ecx, dword [rbp - 0x75]
mov dword [rax], ecx
cmp qword [rbp - 0x41], 8
jb 0x140071372
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 0x1400713dc
mov edi, 4
lea rdx, [rax + 0x18]
lea rbx, [rdx + 8]
cmp qword [rdx + 0x20], 8
jb 0x14007139c
mov rbx, qword [rbx]
mov rcx, r14
call fcn.1400720f0
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.140021138
mov rax, qword [rbp - 0x39]
cmp rax, qword [rsi + 0x80]
jne 0x14007138a
mov rcx, qword [rsi + 0x68]
mov rax, qword [rcx]
mov qword [rbp - 0x39], rax
cmp rax, rcx
je 0x140071488
lea rbx, [rax + 0x18]
mov rdx, rbx
lea rcx, [rsi + 0x60]
call fcn.140072334
lea r15, [rax + 8]
cmp qword [rax + 0x20], 8
jb 0x14007140e
mov r15, qword [r15]
mov rdx, rbx
lea rcx, [rsi + 0x60]
call fcn.140072334
lea r14, [rax + 8]
cmp qword [rax + 0x20], 8
jb 0x140071428
mov r14, qword [r14]
lea rdi, [rbx + 8]
cmp qword [rbx + 0x20], 8
jb 0x140071436
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.1400163a0
mov rax, qword [rbp - 0x39]
cmp rax, qword [rsi + 0x68]
jne 0x1400713f0
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 0x1400714b4
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.140083280
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 0x1400714f6
mov rcx, qword [rbp - 0x59]
call qword [sym.imp.MFC42u.dll_CMonthCalCtrl::SetFirstDayOfWeek]
nop dword [rax + rax]
xor eax, eax
jmp 0x1400714b6