Function at 0x140054860
Capabilities:
Query or enumerate registry value

Disassembly:
mov rax, rsp
push rbp
mov rbp, rsp
sub rsp, 0x80
mov qword [rbp - 0x50], 0xfffffffffffffffe
mov qword [rax + 8], rbx
mov qword [rax + 0x18], rsi
mov qword [rax + 0x20], rdi
mov rax, qword [0x140325af8]
xor rax, rsp
mov qword [rbp - 0x10], rax
mov rbx, rdx
mov dword [rbp - 0x38], 7
xor esi, esi
mov dword [rbp - 0x48], esi
mov qword [rdx + 0x10], rsi
mov rax, rdx
cmp qword [rdx + 0x18], 8
jb 0x1400548b0
mov rax, qword [rdx]
mov word [rax], si
lea rax, [rbp - 0x40]
mov qword [rsp + 0x20], rax
mov r9d, 0x101
xor r8d, r8d
lea rdx, str.HardwareDescriptionSystem
mov rcx, 0xffffffff80000002
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x140054aac
lea rax, [rbp - 0x48]
mov qword [rsp + 0x28], rax
mov qword [rsp + 0x20], rsi
lea r9, [rbp - 0x38]
xor r8d, r8d
lea rdx, str.SystemBiosVersion
mov rcx, qword [rbp - 0x40]
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x140054965
mov eax, dword [rbp - 0x48]
test eax, eax
je 0x140054965
mov ecx, eax
call fcn.1401da1a0
mov rdi, rax
test rax, rax
je 0x140054965
lea rax, [rbp - 0x48]
mov qword [rsp + 0x28], rax
mov qword [rsp + 0x20], rdi
lea r9, [rbp - 0x38]
xor r8d, r8d
lea rdx, str.SystemBiosVersion
mov rcx, qword [rbp - 0x40]
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x14005495d
mov r8d, dword [rbp - 0x48]
shr r8, 1
mov rdx, rdi
mov rcx, rbx
call fcn.14000c510
mov rcx, rdi
call fcn.1401d94a8
mov rcx, rbx
cmp qword [rbx + 0x18], 8
jb 0x140054972
mov rcx, qword [rbx]
mov rax, qword [rbx + 0x10]
lea rax, [rcx + rax*2]
mov rcx, rbx
jb 0x140054982
mov rcx, qword [rbx]
mov rdx, rsi
mov r8, rax
sub r8, rcx
inc r8
shr r8, 1
cmp rcx, rax
cmova r8, rsi
test r8, r8
je 0x1400549b6
mov eax, 0x3a
cmp word [rcx], si
jne 0x1400549aa
mov word [rcx], ax
add rcx, 2
inc rdx
cmp rdx, r8
jne 0x1400549a2
lea rax, [rbp - 0x48]
mov qword [rsp + 0x28], rax
mov qword [rsp + 0x20], rsi
lea r9, [rbp - 0x38]
xor r8d, r8d
lea rdx, str.SystemBiosDate
mov rcx, qword [rbp - 0x40]
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x140054aa2
mov eax, dword [rbp - 0x48]
test eax, eax
je 0x140054aa2
mov ecx, eax
call fcn.1401da1a0
mov rdi, rax
test rax, rax
je 0x140054aa2
lea rax, [rbp - 0x48]
mov qword [rsp + 0x28], rax
mov qword [rsp + 0x20], rdi
lea r9, [rbp - 0x38]
xor r8d, r8d
lea rdx, str.SystemBiosDate
mov rcx, qword [rbp - 0x40]
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x140054a9a
mov r8d, dword [rbp - 0x48]
shr r8, 1
dec r8
mov rdx, rdi
lea rcx, [rbp - 0x30]
call fcn.140014070
nop
lea rdx, [rbp - 0x30]
cmp qword [rbp - 0x18], 8
cmovae rdx, qword [rbp - 0x30]
mov r8, qword [rbp - 0x20]
mov rcx, rbx
call fcn.14000a750
nop
mov rdx, qword [rbp - 0x18]
cmp rdx, 8
jb 0x140054a9a
lea rdx, [rdx*2 + 2]
mov rcx, qword [rbp - 0x30]
mov rax, rcx
cmp rdx, 0x1000
jb 0x140054a95
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x140054ad1
call fcn.1401d94a8
mov rcx, rdi
call fcn.1401d94a8
mov rcx, qword [rbp - 0x40]
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov rcx, qword [rbp - 0x10]
xor rcx, rsp
call fcn.1401d9c30
lea r11, [rsp + 0x80]
mov rbx, qword [r11 + 0x10]
mov rsi, qword [r11 + 0x20]
mov rdi, qword [r11 + 0x28]
mov rsp, r11
pop rbp
ret
call fcn.1401e4d9c
int3