Function at 0x1400311c0
Capabilities:
Query or enumerate registry value

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x20], r9
mov qword [rsp + 8], rcx
push rbp
push rsi
push rdi
push r12
push r13
push r14
push r15
mov rbp, rsp
sub rsp, 0x80
cmp qword [rcx + 8], 0
lea rsi, str.c:users_scddocumentsmyworkproject__dynabooksystemdriverdsd_for_tos6208_v6dsd_branch_dev_6.01.0029.xxcentennial_rs5_toscommonlib_rs5include_regconfig.h
lea r14, str.__RegConfigAccess::GetValue_
mov qword [rbp - 0x30], rsi
lea r15, [0x1402a214c]
mov qword [rbp - 0x20], r14
mov r12, rcx
mov qword [rbp - 0x18], r15
mov rbx, r8
lea rcx, [rbp - 0x30]
mov r13, rdx
jne 0x140031241
xor edi, edi
mov dword [rbp - 0x28], 0x138
mov r8d, 0x80070006
mov dword [rbp - 0x10], edi
lea rdx, str.Error_Code:_0x_x
call fcn.140008d50
mov eax, 0x80070006
jmp 0x14003141f
test r13, r13
jne 0x14003126e
xor edi, edi
mov dword [rbp - 0x28], 0x139
mov r8d, 0x80004003
mov dword [rbp - 0x10], edi
lea rdx, str.Error_Code:_0x_x
call fcn.140008d50
mov eax, 0x80004003
jmp 0x14003141f
mov r9, r13
mov dword [rbp - 0x28], 0x13a
lea r8, str.pszName
mov dword [rbp - 0x10], 3
lea rdx, str._s___s
call fcn.140008d50
mov rcx, qword [r12 + 8]
lea rax, [rbp - 0x50]
xor edi, edi
mov qword [rsp + 0x28], rax
xor r9d, r9d
mov qword [rsp + 0x20], rdi
xor r8d, r8d
mov dword [rbp - 0x50], edi
mov rdx, r13
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
mov r12d, eax
test eax, eax
je 0x140031306
movzx ebx, r12w
mov r8d, eax
or ebx, 0x80070000
test eax, eax
jle 0x1400312d4
mov r8d, ebx
lea rdx, str.Error_Code:_0x_x
mov qword [rbp - 0x30], rsi
lea rcx, [rbp - 0x30]
mov dword [rbp - 0x28], 0x141
mov qword [rbp - 0x20], r14
mov qword [rbp - 0x18], r15
mov dword [rbp - 0x10], edi
call fcn.140008d50
test r12d, r12d
cmovle ebx, r12d
jmp 0x14003141d
mov edx, dword [rbp - 0x50]
lea r8, [rbp - 0x48]
shr rdx, 2
lea rcx, [rbp - 0x48]
xorps xmm0, xmm0
mov qword [rbp - 0x38], rdi
inc rdx
movdqu xmmword [rbp - 0x48], xmm0
call fcn.140031640
mov rcx, qword [rbp - 0x48]
xor r8d, r8d
mov rax, qword [rbp - 0x40]
mov rdx, r13
mov r9, qword [rbp + 0x58]
sub rax, rcx
and eax, 0xfffffffc
mov dword [rbp - 0x4c], eax
lea rax, [rbp - 0x4c]
mov qword [rsp + 0x28], rax
mov qword [rsp + 0x20], rcx
mov rcx, qword [rbp + 0x40]
mov rcx, qword [rcx + 8]
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
mov r12d, eax
test eax, eax
je 0x1400313b6
movzx ebx, r12w
test eax, eax
jg 0x14003137a
mov r8d, eax
or ebx, 0x80070000
jmp 0x140031387
mov r8d, ebx
or r8d, 0x80070000
mov ebx, r8d
lea rdx, str.Error_Code:_0x_x
mov qword [rbp - 0x30], rsi
lea rcx, [rbp - 0x30]
mov dword [rbp - 0x28], 0x14b
mov qword [rbp - 0x20], r14
mov qword [rbp - 0x18], r15
mov dword [rbp - 0x10], edi
call fcn.140008d50
test r12d, r12d
cmovle ebx, r12d
jmp 0x1400313e3
lea rax, [rbp - 0x48]
cmp rbx, rax
je 0x1400313cf
mov r8, qword [rbp - 0x40]
mov rcx, rbx
mov rdx, qword [rbp - 0x48]
call fcn.1400317c0
mov edx, dword [rbp - 0x4c]
mov r8, rbx
shr rdx, 2
mov rcx, rbx
call fcn.140031640
mov ebx, edi
mov rcx, qword [rbp - 0x48]
test rcx, rcx
je 0x14003141d
mov rdx, qword [rbp - 0x38]
mov rax, rcx
sub rdx, rcx
and rdx, 0xfffffffffffffffc
cmp rdx, 0x1000
jb 0x140031418
mov rcx, qword [rcx - 8]
add rdx, 0x27
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x14003143a
call fcn.14001dee0
mov eax, ebx
mov rbx, qword [rsp + 0xc8]
add rsp, 0x80
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
ret
call fcn.1401f802c
int3