Function at 0x422b70
Capabilities:
Set registry value

Disassembly:
mov qword [rsp + 0x20], rbx
push rsi
push rdi
push r14
sub rsp, 0x70
mov rax, qword [0x004fb010]
xor rax, rsp
mov qword [rsp + 0x68], rax
mov r14d, r8d
mov rbx, rcx
test edx, edx
jne 0x422d41
test r8d, r8d
jne 0x422d41
xorps xmm0, xmm0
movups xmmword [rsp + 0x58], xmm0
lea rcx, [rsp + 0x58]
call qword [sym.imp.api_ms_win_core_sysinfo_l1_1_0.dll_GetSystemTime]
lea rdx, [rsp + 0x50]
lea rcx, [rsp + 0x58]
call qword [sym.imp.api_ms_win_core_timezone_l1_1_0.dll_SystemTimeToFileTime]
movabs rax, 0x58028e44000
add qword [rsp + 0x50], rax
lea rdx, [rbx + 0x10]
lea rcx, [rsp + 0x50]
call qword [sym.imp.api_ms_win_core_timezone_l1_1_0.dll_FileTimeToSystemTime]
mov rbx, qword [rsp + 0x50]
mov rax, rbx
shr rax, 0x20
mov dword [rsp + 0x50], eax
xor edi, edi
mov r14d, edi
mov qword [rsp + 0x40], rdi
lea rax, [rsp + 0x58]
mov qword [rsp + 0x38], rax
mov qword [rsp + 0x30], rdi
mov dword [rsp + 0x28], 0x20106
mov dword [rsp + 0x20], edi
xor r9d, r9d
xor r8d, r8d
lea rdx, str.SOFTWAREASUSASUS_System_Control_InterfaceAsusSoftwareManager
mov rcx, 0xffffffff80000002
call qword [sym.imp.api_ms_win_core_registry_l1_1_0.dll_RegCreateKeyExW]
test eax, eax
jne 0x422c7a
mov dword [rsp + 0x28], 4
lea rax, [rsp + 0x50]
mov qword [rsp + 0x20], rax
lea r9d, [rdi + 4]
xor r8d, r8d
lea rdx, str.UEFIBISendExpireTimeHigh
mov rcx, qword [rsp + 0x58]
call qword [sym.imp.api_ms_win_core_registry_l1_1_0.dll_RegSetValueExW]
mov esi, 1
test eax, eax
cmove r14d, esi
mov rcx, qword [rsp + 0x58]
call qword [sym.imp.api_ms_win_core_registry_l1_1_0.dll_RegCloseKey]
jmp 0x422c7f
mov esi, 1
mov dword [rsp + 0x50], ebx
mov qword [rsp + 0x40], rdi
lea rax, [rsp + 0x58]
mov qword [rsp + 0x38], rax
mov qword [rsp + 0x30], rdi
mov dword [rsp + 0x28], 0x20106
mov dword [rsp + 0x20], edi
xor r9d, r9d
xor r8d, r8d
lea rdx, str.SOFTWAREASUSASUS_System_Control_InterfaceAsusSoftwareManager
mov rcx, 0xffffffff80000002
call qword [sym.imp.api_ms_win_core_registry_l1_1_0.dll_RegCreateKeyExW]
test eax, eax
jne 0x422cfe
mov dword [rsp + 0x28], 4
lea rax, [rsp + 0x50]
mov qword [rsp + 0x20], rax
mov r9d, 4
xor r8d, r8d
lea rdx, str.UEFIBISendExpireTimeLow
mov rcx, qword [rsp + 0x58]
call qword [sym.imp.api_ms_win_core_registry_l1_1_0.dll_RegSetValueExW]
test eax, eax
cmove edi, esi
mov rcx, qword [rsp + 0x58]
call qword [sym.imp.api_ms_win_core_registry_l1_1_0.dll_RegCloseKey]
test r14b, r14b
je 0x422d0c
test dil, dil
jne 0x422e88
mov edx, 0x79
lea rcx, str.C:Usersjk_kanDesktopGerritSWMgrAsusSoftwareManagerAsusSoftwareManagerGiftBoxServiceGiftBoxServiceBIOSBIAgent.cpp
call fcn.004036d0
lea rcx, [0x004bc570]
lea rdx, [rcx + rax*2]
lea r9, str.BIOSBIAgent:AddExpireTimeFromRegistry:_write_register_error_
mov r8d, 0x1fb
mov ecx, esi
call fcn.0044a600
jmp 0x422e88
mov dword [rsp + 0x50], edx
xor edi, edi
mov ebx, edi
mov qword [rsp + 0x40], rdi
lea rax, [rsp + 0x58]
mov qword [rsp + 0x38], rax
mov qword [rsp + 0x30], rdi
mov dword [rsp + 0x28], 0x20106
mov dword [rsp + 0x20], edi
xor r9d, r9d
xor r8d, r8d
lea rdx, str.SOFTWAREASUSASUS_System_Control_InterfaceAsusSoftwareManager
mov rcx, 0xffffffff80000002
call qword [sym.imp.api_ms_win_core_registry_l1_1_0.dll_RegCreateKeyExW]
test eax, eax
jne 0x422dc9
mov dword [rsp + 0x28], 4
lea rax, [rsp + 0x50]
mov qword [rsp + 0x20], rax
lea r9d, [rdi + 4]
xor r8d, r8d
lea rdx, str.UEFIBISendExpireTimeHigh
mov rcx, qword [rsp + 0x58]
call qword [sym.imp.api_ms_win_core_registry_l1_1_0.dll_RegSetValueExW]
mov esi, 1
test eax, eax
cmove ebx, esi
mov rcx, qword [rsp + 0x58]
call qword [sym.imp.api_ms_win_core_registry_l1_1_0.dll_RegCloseKey]
jmp 0x422dce
mov esi, 1
mov dword [rsp + 0x50], r14d
mov qword [rsp + 0x40], rdi
lea rax, [rsp + 0x58]
mov qword [rsp + 0x38], rax
mov qword [rsp + 0x30], rdi
mov dword [rsp + 0x28], 0x20106
mov dword [rsp + 0x20], edi
xor r9d, r9d
xor r8d, r8d
lea rdx, str.SOFTWAREASUSASUS_System_Control_InterfaceAsusSoftwareManager
mov rcx, 0xffffffff80000002
call qword [sym.imp.api_ms_win_core_registry_l1_1_0.dll_RegCreateKeyExW]
test eax, eax
jne 0x422e4e
mov dword [rsp + 0x28], 4
lea rax, [rsp + 0x50]
mov qword [rsp + 0x20], rax
mov r9d, 4
xor r8d, r8d
lea rdx, str.UEFIBISendExpireTimeLow
mov rcx, qword [rsp + 0x58]
call qword [sym.imp.api_ms_win_core_registry_l1_1_0.dll_RegSetValueExW]
test eax, eax
cmove edi, esi
mov rcx, qword [rsp + 0x58]
call qword [sym.imp.api_ms_win_core_registry_l1_1_0.dll_RegCloseKey]
test bl, bl
je 0x422e57
test dil, dil
jne 0x422e88
mov edx, 0x79
lea rcx, str.C:Usersjk_kanDesktopGerritSWMgrAsusSoftwareManagerAsusSoftwareManagerGiftBoxServiceGiftBoxServiceBIOSBIAgent.cpp
call fcn.004036d0
lea rcx, [0x004bc570]
lea rdx, [rcx + rax*2]
lea r9, str.BIOSBIAgent:AddExpireTimeFromRegistry:_write_register_error_
mov r8d, 0x204
mov ecx, esi
call fcn.0044a600
nop
mov rcx, qword [rsp + 0x68]
xor rcx, rsp
call fcn.00479310
mov rbx, qword [rsp + 0xa8]
add rsp, 0x70
pop r14
pop rdi
pop rsi
ret