Function at 0x1400815a0
Capabilities:
Set registry value

Disassembly:
mov rax, rsp
push rbp
push r14
push r15
lea rbp, [rax - 0x5f]
sub rsp, 0x100
mov qword [rbp - 0x59], 0xfffffffffffffffe
mov qword [rax + 0x10], rbx
mov qword [rax + 0x18], rsi
mov qword [rax + 0x20], rdi
mov rax, qword [0x1400ff2b8]
xor rax, rsp
mov qword [rbp + 0x37], rax
mov rsi, rcx
lea rdx, [rbp - 0x19]
call fcn.140081fdc
nop
lea rdx, [0x1400b3e24]
mov rcx, rax
call fcn.14000c7bc
xor edi, edi
test eax, eax
sete bl
cmp qword [rbp + 7], 8
jb 0x14008160f
mov rcx, qword [rbp - 0x11]
call qword [sym.imp.MFC42u.dll_CMonthCalCtrl::SetFirstDayOfWeek]
nop dword [rax + rax]
mov r15d, 7
test bl, bl
je 0x140081693
mov qword [rbp - 0x31], r15
mov qword [rbp - 0x39], rdi
mov word [rbp - 0x49], di
lea rcx, [rbp - 0x29]
call qword [sym.imp.RPCRT4.dll_UuidCreate]
nop dword [rax + rax]
test eax, eax
jne 0x140081820
lea rdx, [rbp - 0x69]
lea rcx, [rbp - 0x29]
call qword [sym.imp.RPCRT4.dll_UuidToStringW]
nop dword [rax + rax]
test eax, eax
jne 0x140081820
mov r8d, 0xff
mov rdx, qword [rbp - 0x69]
mov rcx, rsi
call fcn.14000c844
lea rcx, [rbp - 0x69]
call qword [sym.imp.RPCRT4.dll_RpcStringFreeW]
nop dword [rax + rax]
nop
cmp qword [rbp - 0x31], 8
jb 0x140081693
mov rcx, qword [rbp - 0x49]
call qword [sym.imp.MFC42u.dll_CMonthCalCtrl::SetFirstDayOfWeek]
nop dword [rax + rax]
lea r8, [rsi + 0x28]
lea rdx, str.SoftwareMicrosoftWindowsCurrentVersionApplets_
lea rcx, [rbp - 0x19]
call fcn.140080794
nop
mov rdx, rax
lea rcx, [rbp + 0xf]
call fcn.140083514
nop
cmp qword [rbp + 7], 8
jb 0x1400816cc
mov rcx, qword [rbp - 0x11]
call qword [sym.imp.MFC42u.dll_CMonthCalCtrl::SetFirstDayOfWeek]
nop dword [rax + rax]
mov qword [rbp + 7], r15
mov qword [rbp - 1], rdi
mov word [rbp - 0x11], di
or r9, 0xffffffffffffffff
xor r8d, r8d
mov rdx, rsi
lea rcx, [rbp + 0xf]
call fcn.140080420
lea rdx, [rbp + 0x17]
cmp qword [rbp + 0x2f], 8
cmovae rdx, qword [rbp + 0x17]
mov qword [rsp + 0x40], rdi
lea rax, [rbp - 0x61]
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 0x14008194c
lea rcx, [rsi + 0x50]
call qword [sym.imp.KERNEL32.dll_GetSystemTime]
nop dword [rax + rax]
lea rdx, [rbp - 0x69]
lea rcx, [rsi + 0x50]
call qword [sym.imp.KERNEL32.dll_SystemTimeToFileTime]
nop dword [rax + rax]
mov qword [rbp - 0x31], r15
mov qword [rbp - 0x39], rdi
mov word [rbp - 0x49], di
mov r8d, SafeArrayGetDim
lea rdx, str.SaveSystimeLow
lea rcx, [rbp - 0x51]
call fcn.14000c844
nop
lea r14, [rsi + 0x78]
lea rdx, [rbp - 0x51]
mov rcx, r14
call fcn.140082594
mov ecx, dword [rbp - 0x69]
mov dword [rax], ecx
cmp qword [rbp - 0x31], 8
jb 0x1400817ac
mov rcx, qword [rbp - 0x49]
call qword [sym.imp.MFC42u.dll_CMonthCalCtrl::SetFirstDayOfWeek]
nop dword [rax + rax]
mov qword [rbp - 0x31], r15
mov qword [rbp - 0x39], rdi
mov word [rbp - 0x49], di
mov r8d, SafeArrayGetDim
lea rdx, str.SaveSystimeHigh
lea rcx, [rbp - 0x51]
call fcn.14000c844
nop
lea rdx, [rbp - 0x51]
mov rcx, r14
call fcn.140082594
mov ecx, dword [rbp - 0x65]
mov dword [rax], ecx
cmp qword [rbp - 0x31], 8
jb 0x1400817f7
mov rcx, qword [rbp - 0x49]
call qword [sym.imp.MFC42u.dll_CMonthCalCtrl::SetFirstDayOfWeek]
nop dword [rax + rax]
mov rcx, qword [rsi + 0x80]
mov rax, qword [rcx]
mov qword [rbp - 0x29], rax
cmp rax, rcx
je 0x140081882
mov edi, 4
lea rdx, [rax + 0x18]
cmp qword [rdx + 0x20], 8
jb 0x14008183e
mov rbx, qword [rdx + 8]
jmp 0x140081842
cmp qword [rbp - 0x31], 8
jb 0x140081837
mov rcx, qword [rbp - 0x49]
call qword [sym.imp.MFC42u.dll_CMonthCalCtrl::SetFirstDayOfWeek]
nop dword [rax + rax]
xor eax, eax
jmp 0x140081965
lea rbx, [rdx + 8]
mov rcx, r14
call fcn.140082594
mov dword [rsp + 0x28], edi
mov qword [rsp + 0x20], rax
mov r9d, edi
xor r8d, r8d
mov rdx, rbx
mov rcx, qword [rbp - 0x61]
call qword [sym.imp.ADVAPI32.dll_RegSetValueExW]
nop dword [rax + rax]
lea rcx, [rbp - 0x29]
call fcn.140021be4
mov rax, qword [rbp - 0x29]
cmp rax, qword [rsi + 0x80]
jne 0x14008180f
mov rcx, qword [rsi + 0x68]
mov rax, qword [rcx]
mov qword [rbp - 0x29], rax
cmp rax, rcx
je 0x140081937
lea rbx, [rax + 0x18]
mov rdx, rbx
lea rcx, [rsi + 0x60]
call fcn.1400827ec
cmp qword [rax + 0x20], 8
jb 0x1400818b3
mov r15, qword [rax + 8]
jmp 0x1400818b7
lea r15, [rax + 8]
mov rdx, rbx
lea rcx, [rsi + 0x60]
call fcn.1400827ec
cmp qword [rax + 0x20], 8
jb 0x1400818d0
mov rdi, qword [rax + 8]
jmp 0x1400818d4
lea rdi, [rax + 8]
cmp qword [rbx + 0x20], 8
jb 0x1400818e1
mov rbx, qword [rbx + 8]
jmp 0x1400818e5
add rbx, 8
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], rdi
mov r9d, 1
xor r8d, r8d
mov rdx, rbx
mov rcx, qword [rbp - 0x61]
call qword [sym.imp.ADVAPI32.dll_RegSetValueExW]
nop dword [rax + rax]
lea rcx, [rbp - 0x29]
call fcn.140016de0
mov rax, qword [rbp - 0x29]
cmp rax, qword [rsi + 0x68]
jne 0x140081896
mov rcx, qword [rbp - 0x61]
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
nop dword [rax + rax]
mov edi, 1
cmp qword [rbp + 0x2f], 8
jb 0x140081963
mov rcx, qword [rbp + 0x17]
call qword [sym.imp.MFC42u.dll_CMonthCalCtrl::SetFirstDayOfWeek]
nop dword [rax + rax]
mov eax, edi
mov rcx, qword [rbp + 0x37]
xor rcx, rsp
call fcn.140093810
lea r11, [rsp + 0x100]
mov rbx, qword [r11 + 0x28]
mov rsi, qword [r11 + 0x30]
mov rdi, qword [r11 + 0x38]
mov rsp, r11
pop r15
pop r14
pop rbp
ret