Function at 0x14000ada0
Capabilities:
Set registry value

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
push rdi
sub rsp, 0x1b0
mov rax, qword [0x140079010]
xor rax, rsp
mov qword [rsp + 0x1a0], rax
xor ecx, ecx
mov rax, qword [0x140079a80]
lea rsi, [0x140079a80]
cmp rax, rsi
je 0x14000adfa
mov rdx, qword [0x140079a88]
mov ecx, 1
cmp rax, rdx
je 0x14000adfa
nop word [rax + rax]
mov rax, qword [rax]
inc ecx
cmp rax, rdx
jne 0x14000adf0
test ecx, ecx
je 0x14000b0a3
lea rdx, [rsp + 0x48]
lea rcx, str.KeyCountDate
call fcn.140032030
test eax, eax
je 0x14000aef7
cmp dword [rsp + 0x4c], 0
jne 0x14000ae2d
cmp dword [rsp + 0x48], 0
je 0x14000aef7
lea rdx, [rsp + 0x78]
lea rcx, [rsp + 0x48]
call qword [sym.imp.api_ms_win_core_timezone_l1_1_0.dll_FileTimeToSystemTime]
test eax, eax
je 0x14000aef7
lea rcx, [rsp + 0x68]
call qword [sym.imp.api_ms_win_core_sysinfo_l1_1_0.dll_GetSystemTime]
mov ebx, dword [0x140079a98]
lea rdx, [rsp + 0x50]
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 + 0x50]
call qword [sym.imp.api_ms_win_core_file_l1_1_0.dll_CompareFileTime]
cmp eax, 0xffffffff
je 0x14000aef7
mov rax, qword [rsp + 0x40]
xorps xmm0, xmm0
cvtsi2sd xmm0, rbx
divsd xmm0, qword [0x14006dee0]
xor edx, edx
movsd xmm1, qword [0x14006def8]
comisd xmm0, xmm1
jb 0x14000aec7
subsd xmm0, xmm1
comisd xmm0, xmm1
jae 0x14000aec7
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 + 0x50]
call qword [sym.imp.api_ms_win_core_file_l1_1_0.dll_CompareFileTime]
cmp eax, 1
je 0x14000aef7
xor ebx, ebx
jmp 0x14000aefc
mov ebx, 1
lea rdi, [0x140079b70]
mov rcx, qword [0x140079b70]
cmp rcx, rdi
je 0x14000af33
test byte [rcx + 0x1c], 4
je 0x14000af33
mov edx, 0xf
mov dword [rsp + 0x28], ebx
lea rax, str.CheckBIEventOverdue_return
mov qword [rsp + 0x20], rax
mov rcx, qword [rcx + 0x10]
call fcn.14003f100
test ebx, ebx
je 0x14000b0a3
xor ebx, ebx
mov dword [rsp + 0x30], ebx
lea rcx, [0x140079aa8]
call qword [sym.imp.api_ms_win_core_synch_l1_1_0.dll_EnterCriticalSection]
nop
xor edx, edx
mov rcx, rsi
call fcn.14000a9a0
test eax, eax
je 0x14000af7c
mov rcx, rsi
call fcn.14000a360
mov qword [0x140079a88], rsi
mov qword [0x140079a80], rsi
mov ebx, 1
mov dword [rsp + 0x30], ebx
lea rcx, [0x140079aa8]
call qword [sym.imp.api_ms_win_core_synch_l1_1_0.dll_LeaveCriticalSection]
jmp 0x14000af96
test ebx, ebx
je 0x14000b030
xor edx, edx
mov r8d, 0x104
lea rcx, [rsp + 0x90]
call fcn.1400423d0
mov r9d, dword [0x140079a98]
lea r8, str.Launch_BIEVENT__period___d
mov edx, 0x104
lea rcx, [rsp + 0x90]
call fcn.140006720
mov rcx, qword [0x140079b70]
cmp rcx, rdi
je 0x14000b000
test byte [rcx + 0x1c], 4
je 0x14000b000
mov edx, 0xb
lea rax, [rsp + 0x90]
mov qword [rsp + 0x20], rax
mov rcx, qword [rcx + 0x10]
call fcn.14003f070
lea rcx, [rsp + 0x90]
call fcn.14003fe60
mov ecx, dword [0x7ffe02d8]
cmp ecx, 0xffffffff
je 0x14000b030
mov dword [rsp + 0x20], 0
xor r9d, r9d
xor r8d, r8d
lea edx, [r9 + 0x1c]
call fcn.14003d1c0
lea rcx, [rsp + 0x58]
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.140031c50
test eax, eax
je 0x14000b0a3
mov ecx, dword [rsp + 0x5c]
shl rcx, 0x20
mov eax, dword [rsp + 0x58]
or rcx, rax
mov qword [rsp + 0x60], rcx
mov dword [rsp + 0x28], 8
lea rax, [rsp + 0x60]
mov qword [rsp + 0x20], rax
mov r9d, 0xb
xor r8d, r8d
lea rdx, str.KeyCountDate
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.1400406e0
lea r11, [rsp + 0x1b0]
mov rbx, qword [r11 + 0x10]
mov rsi, qword [r11 + 0x18]
mov rsp, r11
pop rdi
ret