Function at 0x14000aaf0
Capabilities:
Set registry value

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
push rdi
sub rsp, 0x1b0
mov rax, qword [0x140067010]
xor rax, rsp
mov qword [rsp + 0x1a0], rax
xor ecx, ecx
mov rax, qword [0x140067a20]
lea rsi, [0x140067a20]
cmp rax, rsi
je 0x14000ab4a
mov rdx, qword [0x140067a28]
mov ecx, 1
cmp rax, rdx
je 0x14000ab4a
nop word [rax + rax]
mov rax, qword [rax]
inc ecx
cmp rax, rdx
jne 0x14000ab40
test ecx, ecx
je 0x14000ae16
lea r8, [rsp + 0x50]
lea rdx, str.KeyCountLowDate
lea rcx, str.KeyCountHighDate
call fcn.140027b30
test eax, eax
je 0x14000ac4e
cmp dword [rsp + 0x54], 0
jne 0x14000ab84
cmp dword [rsp + 0x50], 0
je 0x14000ac4e
lea rdx, [rsp + 0x78]
lea rcx, [rsp + 0x50]
call qword [sym.imp.api_ms_win_core_timezone_l1_1_0.dll_FileTimeToSystemTime]
test eax, eax
je 0x14000ac4e
lea rcx, [rsp + 0x68]
call qword [sym.imp.api_ms_win_core_sysinfo_l1_1_0.dll_GetSystemTime]
mov ebx, dword [0x140067a38]
lea rdx, [rsp + 0x58]
lea rcx, [rsp + 0x68]
call qword [sym.imp.api_ms_win_core_timezone_l1_1_0.dll_SystemTimeToFileTime]
lea rdx, [rsp + 0x40]
lea rcx, [rsp + 0x78]
call qword [sym.imp.api_ms_win_core_timezone_l1_1_0.dll_SystemTimeToFileTime]
lea rdx, [rsp + 0x40]
lea rcx, [rsp + 0x58]
call qword [sym.imp.api_ms_win_core_file_l1_1_0.dll_CompareFileTime]
cmp eax, 0xffffffff
je 0x14000ac4e
mov rax, qword [rsp + 0x40]
xorps xmm0, xmm0
cvtsi2sd xmm0, rbx
divsd xmm0, qword [0x14005de48]
xor edx, edx
movsd xmm1, qword [0x14005de60]
comisd xmm0, xmm1
jb 0x14000ac1e
subsd xmm0, xmm1
comisd xmm0, xmm1
jae 0x14000ac1e
movabs rcx, 0x8000000000000000
mov rdx, rcx
cvttsd2si rcx, xmm0
add rcx, rdx
add rax, rcx
mov dword [rsp + 0x40], eax
shr rax, 0x20
mov dword [rsp + 0x44], eax
lea rdx, [rsp + 0x40]
lea rcx, [rsp + 0x58]
call qword [sym.imp.api_ms_win_core_file_l1_1_0.dll_CompareFileTime]
cmp eax, 1
je 0x14000ac4e
xor ebx, ebx
jmp 0x14000ac53
mov ebx, 1
lea rdi, [0x140067b00]
mov rcx, qword [0x140067b00]
cmp rcx, rdi
je 0x14000ac85
test byte [rcx + 0x1c], 4
je 0x14000ac85
mov dword [rsp + 0x28], ebx
lea rax, str.CheckBIEventOverdue_return
mov qword [rsp + 0x20], rax
mov rcx, qword [rcx + 0x10]
call fcn.1400321b0
test ebx, ebx
je 0x14000ae16
xor ebx, ebx
mov dword [rsp + 0x30], ebx
lea rcx, [0x140067a48]
call qword [sym.imp.api_ms_win_core_synch_l1_1_0.dll_EnterCriticalSection]
nop
xor edx, edx
mov rcx, rsi
call fcn.14000a6f0
test eax, eax
je 0x14000acce
mov rcx, rsi
call fcn.14000a040
mov qword [0x140067a28], rsi
mov qword [0x140067a20], rsi
mov ebx, 1
mov dword [rsp + 0x30], ebx
lea rcx, [0x140067a48]
call qword [sym.imp.api_ms_win_core_synch_l1_1_0.dll_LeaveCriticalSection]
jmp 0x14000ace8
test ebx, ebx
je 0x14000ad7a
xor edx, edx
mov r8d, 0x104
lea rcx, [rsp + 0x90]
call fcn.140034ac0
mov r9d, dword [0x140067a38]
lea r8, str.Launch_BIEVENT__period___d
mov edx, 0x104
lea rcx, [rsp + 0x90]
call fcn.140006460
mov rcx, qword [0x140067b00]
cmp rcx, rdi
je 0x14000ad52
test byte [rcx + 0x1c], 4
je 0x14000ad52
mov edx, 0xb
lea rax, [rsp + 0x90]
mov qword [rsp + 0x20], rax
mov rcx, qword [rcx + 0x10]
call fcn.140031fc0
lea rcx, [rsp + 0x90]
call fcn.140032cd0
mov ecx, dword [0x7ffe02d8]
cmp ecx, 0xffffffff
je 0x14000ad7a
xor r9d, r9d
xor r8d, r8d
lea edx, [r9 + 0x1c]
call fcn.140030410
lea rcx, [rsp + 0x60]
call qword [sym.imp.api_ms_win_core_sysinfo_l1_1_0.dll_GetSystemTimeAsFileTime]
mov qword [rsp + 0x38], 0
mov edx, 1
lea rcx, [rsp + 0x38]
call fcn.140027750
test eax, eax
je 0x14000ae16
mov eax, dword [rsp + 0x64]
mov dword [rsp + 0x48], eax
mov dword [rsp + 0x28], 4
lea rax, [rsp + 0x48]
mov qword [rsp + 0x20], rax
mov r9d, 4
xor r8d, r8d
lea rdx, str.KeyCountHighDate
mov rcx, qword [rsp + 0x38]
call qword [sym.imp.api_ms_win_core_registry_l1_1_0.dll_RegSetValueExW]
mov eax, dword [rsp + 0x60]
mov dword [rsp + 0x4c], eax
mov dword [rsp + 0x28], 4
lea rax, [rsp + 0x4c]
mov qword [rsp + 0x20], rax
mov r9d, 4
xor r8d, r8d
lea rdx, str.KeyCountLowDate
mov rcx, qword [rsp + 0x38]
call qword [sym.imp.api_ms_win_core_registry_l1_1_0.dll_RegSetValueExW]
mov rcx, qword [rsp + 0x38]
call qword [sym.imp.api_ms_win_core_registry_l1_1_0.dll_RegCloseKey]
mov rcx, qword [rsp + 0x1a0]
xor rcx, rsp
call fcn.140032e60
lea r11, [rsp + 0x1b0]
mov rbx, qword [r11 + 0x10]
mov rsi, qword [r11 + 0x18]
mov rsp, r11
pop rdi
ret