Function at 0x140058c20
Capabilities:
Query or enumerate registry value

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x18], rsi
mov qword [rsp + 0x20], rdi
push rbp
push r12
push r13
push r14
push r15
mov rbp, rsp
sub rsp, 0x70
mov rax, qword [0x140313918]
xor rax, rsp
mov qword [rbp - 8], rax
mov r13, rdx
xor edi, edi
mov qword [rbp - 0x28], rdi
mov ebx, 7
mov qword [rbp - 0x10], rbx
mov qword [rbp - 0x18], rdi
mov word [rbp - 0x28], di
lea rax, [rbp - 0x38]
mov qword [rsp + 0x20], rax
mov r9d, 0x20019
xor r8d, r8d
lea rdx, str.HARDWAREDESCRIPTIONSystemBIOS
mov rcx, 0xffffffff80000002
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x140058eaa
mov dword [rbp - 0x40], edi
lea rax, [rbp - 0x40]
mov qword [rsp + 0x28], rax
mov qword [rsp + 0x20], rdi
xor r9d, r9d
xor r8d, r8d
lea rdx, str.BaseBoardVersion
mov rcx, qword [rbp - 0x38]
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x140058e9f
mov ecx, dword [rbp - 0x40]
inc ecx
mov eax, 2
mul rcx
mov r14, 0xffffffffffffffff
cmovo rax, r14
mov rcx, rax
call fcn.140003e48
mov r12, rax
lea rax, [rbp - 0x40]
mov qword [rsp + 0x28], rax
mov qword [rsp + 0x20], r12
lea r9, [rbp - 0x30]
xor r8d, r8d
lea rdx, str.BaseBoardVersion
mov rcx, qword [rbp - 0x38]
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
cmp dword [rbp - 0x30], 3
jne 0x140058d60
mov r8d, dword [rbp - 0x40]
nop dword [rax + rax]
mov r9b, 1
mov edx, edi
lea eax, [r8 - 1]
test eax, eax
jle 0x140058d60
mov rax, r12
cmp word [rax], 0
jne 0x140058d4d
movzx ecx, word [rax + 2]
test cx, cx
je 0x140058d4d
mov word [rax], cx
mov word [rax + 2], di
xor r9b, r9b
mov r8d, dword [rbp - 0x40]
inc edx
add rax, 2
lea ecx, [r8 - 1]
cmp edx, ecx
jl 0x140058d30
test r9b, r9b
je 0x140058d20
mov rbx, r14
inc rbx
cmp word [r12 + rbx*2], 0
jne 0x140058d63
cmp rbx, 7
ja 0x140058d9c
mov qword [rbp - 0x18], rbx
add rbx, rbx
mov r8, rbx
mov rdx, r12
lea rcx, [rbp - 0x28]
call fcn.14021a590
mov word [rbp + rbx - 0x28], di
mov r15, qword [rbp - 0x10]
mov rsi, qword [rbp - 0x28]
jmp 0x140058e5c
movabs r15, 0x7ffffffffffffffe
cmp rbx, r15
ja 0x140058f14
mov rax, rbx
or rax, 7
cmp rax, r15
jbe 0x140058dcb
movabs rax, 0x7fffffffffffffff
lea rcx, [rax + rax]
jmp 0x140058dfd
mov r15, rax
mov ecx, 0xa
cmp rax, rcx
cmovb r15, rcx
lea rcx, [r15 + 1]
movabs rax, 0x7fffffffffffffff
cmp rcx, rax
ja 0x140058f20
add rcx, rcx
cmp rcx, 0x1000
jb 0x140058e29
lea rax, [rcx + 0x27]
cmp rax, rcx
jbe 0x140058f20
mov rcx, rax
call fcn.140078dac
test rax, rax
je 0x140058f1a
lea rsi, [rax + 0x27]
and rsi, 0xffffffffffffffe0
mov qword [rsi - 8], rax
jmp 0x140058e3b
test rcx, rcx
je 0x140058e38
call fcn.140078dac
mov rsi, rax
jmp 0x140058e3b
mov rsi, rdi
mov qword [rbp - 0x18], rbx
mov qword [rbp - 0x10], r15
add rbx, rbx
mov r8, rbx
mov rdx, r12
mov rcx, rsi
call fcn.14021a590
mov word [rbx + rsi], di
mov qword [rbp - 0x28], rsi
mov rcx, r12
call fcn.140078df4
mov rcx, qword [rbp - 0x38]
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
lea rdx, [rbp - 0x28]
cmp r15, 8
cmovae rdx, rsi
lea rcx, [r13 + 0x10]
test rdx, rdx
je 0x140058e91
inc r14
cmp word [rdx + r14*2], 0
jne 0x140058e83
mov edi, r14d
mov r8d, edi
call fcn.140002aa8
mov rbx, qword [rbp - 0x10]
jmp 0x140058eaa
mov rcx, qword [rbp - 0x38]
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
nop
cmp rbx, 8
jb 0x140058ee2
lea rdx, [rbx*2 + 2]
mov rcx, qword [rbp - 0x28]
mov rax, rcx
cmp rdx, 0x1000
jb 0x140058edd
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x140058f0e
call fcn.14000410c
mov al, 1
mov rcx, qword [rbp - 8]
xor rcx, rsp
call fcn.140215e10
lea r11, [rsp + 0x70]
mov rbx, qword [r11 + 0x30]
mov rsi, qword [r11 + 0x40]
mov rdi, qword [r11 + 0x48]
mov rsp, r11
pop r15
pop r14
pop r13
pop r12
pop rbp
ret
call fcn.14021f028
nop
call fcn.1400069a0
nop
call fcn.14021f028
int3
call fcn.140006194
int3