Function at 0x140045720
Capabilities:
Query or enumerate registry key

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rsi
mov qword [rsp + 0x20], rdi
push rbp
push r12
push r13
push r14
push r15
lea rbp, [rsp - 0x210]
sub rsp, 0x310
mov rax, qword [0x1402f8c60]
xor rax, rsp
mov qword [rbp + 0x200], rax
lea rax, str.CheckCentennialVersionExist
mov qword [rsp + 0x68], rcx
mov qword [rsp + 0x70], rax
lea r9, [0x1402a214c]
lea rax, str.__CheckCentennialVersionExist_
mov rbx, rcx
mov qword [rsp + 0x28], rax
lea rdx, str.c:users_scddocumentsmyworkproject__dynabooksystemdriverdsd_for_tos6208_v6dsd_branch_dev_6.01.0029.xxcentennial_rs5dynabookecoservice_tospower_tosservicemodule.cpp
mov r8d, 0x43e
mov dword [rsp + 0x20], 3
lea rcx, [rsp + 0x78]
call fcn.140008c40
mov r8, qword [rsp + 0x70]
lea rdx, str.ENTER__s
lea rcx, [rsp + 0x78]
call fcn.140008d50
lea rax, [rsp + 0x60]
xor edi, edi
mov r9d, 0x20019
mov qword [rsp + 0x20], rax
xor r8d, r8d
mov dword [rbx], edi
lea rdx, str.SOFTWAREMicrosoftSecurityManagerCapAuthzApplicationsEx
mov qword [rsp + 0x60], rdi
mov rcx, 0xffffffff80000002
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x140045d89
mov dword [rsp + 0x50], edi
mov r12d, edi
mov dword [rsp + 0x48], edi
call fcn.1400045e0
test rax, rax
je 0x140045dec
mov rdx, qword [rax]
mov rcx, rax
call qword [rdx + reloc.OLEAUT32.dll_SafeArrayGetElement]
lea rdx, str.TOSHIBASettings_
lea r13, [rdi - 1]
lea rsi, [rax + 0x18]
mov qword [rsp + 0x58], rsi
cmp rdx, 0x10000
jae 0x140045935
movzx r14d, dx
lea rcx, [0x1416b2080]
xor edx, edx
call fcn.140071a50
lea edi, [r13 + 2]
mov rbx, rax
test rax, rax
je 0x14004595b
mov r15d, r14d
shr r15, 4
nop dword [rax + rax]
xor r9d, r9d
lea r8, [r15 + 1]
mov rcx, rbx
lea edx, [r9 + 6]
call qword [sym.imp.KERNEL32.dll_FindResourceExW]
test rax, rax
je 0x14004588c
mov r8d, r14d
mov rdx, rax
mov rcx, rbx
call fcn.1400041a0
test rax, rax
jne 0x1400458a9
mov edx, edi
lea rcx, [0x1416b2080]
call fcn.140071a50
inc edi
mov rbx, rax
test rax, rax
jne 0x140045860
jmp 0x14004595b
test rbx, rbx
je 0x14004595b
mov r8d, 6
lea rdx, [r15 + 1]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_FindResourceW]
test rax, rax
je 0x14004595b
mov r8d, r14d
mov rdx, rax
mov rcx, rbx
call fcn.1400041a0
mov rdi, rax
test rax, rax
je 0x14004595b
movzx ebx, word [rax]
mov edx, 1
mov ecx, dword [rsi - 0xc]
movzx eax, bx
sub edx, dword [rsi - 8]
sub ecx, ebx
or edx, ecx
jge 0x14004590f
mov edx, ebx
lea rcx, [rsp + 0x58]
call fcn.140004670
movzx eax, word [rdi]
mov rsi, qword [rsp + 0x58]
movzx r9d, ax
lea r8, [rdi + 2]
mov edx, ebx
mov rcx, rsi
call fcn.1400042a0
cmp ebx, dword [rsi - 0xc]
jg 0x140045de1
xor ecx, ecx
mov dword [rsi - 0x10], ebx
mov word [rsi + rbx*2], cx
jmp 0x14004595b
mov rax, r13
nop dword [rax + rax]
inc rax
cmp word [rdx + rax*2], di
jne 0x140045940
mov r8d, eax
lea rcx, [rsp + 0x58]
call fcn.140004720
mov rsi, qword [rsp + 0x58]
call fcn.1400045e0
test rax, rax
je 0x140045dec
mov rdx, qword [rax]
mov rcx, rax
call qword [rdx + reloc.OLEAUT32.dll_SafeArrayGetElement]
lea rdx, str.7906AAC0.dynabookSettings
lea rdi, [rax + 0x18]
mov qword [rsp + 0x40], rdi
cmp rdx, 0x10000
jae 0x140045cbd
movzx r15d, dx
lea rcx, [0x1416b2080]
xor edx, edx
call fcn.140071a50
mov rbx, rax
mov r14d, 1
test rax, rax
je 0x140045a10
mov r12d, r15d
shr r12, 4
nop word [rax + rax]
xor r9d, r9d
lea r8, [r12 + 1]
mov rcx, rbx
lea edx, [r9 + 6]
call qword [sym.imp.KERNEL32.dll_FindResourceExW]
test rax, rax
je 0x1400459f1
mov r8d, r15d
mov rdx, rax
mov rcx, rbx
call fcn.1400041a0
test rax, rax
jne 0x140045c23
mov edx, r14d
lea rcx, [0x1416b2080]
call fcn.140071a50
inc r14d
mov rbx, rax
test rax, rax
jne 0x1400459c0
mov r12d, dword [rsp + 0x48]
xor r15d, r15d
xor edx, edx
mov dword [rsp + 0x50], 0x208
mov r8d, 0x208
lea rcx, [rbp - 0x10]
call fcn.1401f5d40
mov rcx, qword [rsp + 0x60]
lea r9, [rsp + 0x50]
mov qword [rsp + 0x38], r15
lea r8, [rbp - 0x10]
mov qword [rsp + 0x30], r15
xor edx, edx
mov qword [rsp + 0x28], r15
mov qword [rsp + 0x20], r15
call qword [sym.imp.ADVAPI32.dll_RegEnumKeyExW]
test eax, eax
jne 0x140045d51
nop
lea rdx, [rbp - 0x10]
inc r12d
lea rcx, [rsp + 0x48]
call fcn.1400044b0
lea rax, str.__CheckCentennialVersionExist_
mov r8d, 0x45e
mov qword [rsp + 0x28], rax
lea r9, [0x1402a214c]
lea rdx, str.c:users_scddocumentsmyworkproject__dynabooksystemdriverdsd_for_tos6208_v6dsd_branch_dev_6.01.0029.xxcentennial_rs5dynabookecoservice_tospower_tosservicemodule.cpp
mov dword [rsp + 0x20], 3
lea rcx, [rbp - 0x60]
call fcn.140008c40
mov rbx, qword [rsp + 0x48]
lea rdx, str.szSubKeyName___s
mov r8, rbx
mov rcx, rax
call fcn.140008d50
test rsi, rsi
je 0x140045ae3
cmp dword [rbx - 0x10], 0
jl 0x140045ae3
mov rdx, rsi
mov rcx, rbx
call fcn.1401f4b58
test rax, rax
je 0x140045ae3
sub rax, rbx
sar rax, 1
cmp eax, r13d
jne 0x140045ce1
movsxd r14, dword [rdi - 0x10]
test r14d, r14d
js 0x140045de1
mov eax, dword [rdi - 0xc]
mov ecx, 1
sub ecx, dword [rdi - 8]
sub eax, r14d
or ecx, eax
jge 0x140045b14
mov edx, r14d
lea rcx, [rsp + 0x40]
call fcn.140004670
mov rdi, qword [rsp + 0x40]
lea eax, [r14 + 1]
mov rcx, rdi
movsxd rdx, eax
call fcn.1402027dc
cmp r14d, dword [rdi - 0xc]
jg 0x140045de1
mov dword [rdi - 0x10], r14d
mov word [rdi + r14*2], r15w
movsxd r14, dword [rbx - 0x10]
test r14d, r14d
js 0x140045de1
mov eax, dword [rbx - 0xc]
mov ecx, 1
sub ecx, dword [rbx - 8]
sub eax, r14d
or ecx, eax
jge 0x140045b67
mov edx, r14d
lea rcx, [rsp + 0x48]
call fcn.140004670
mov rbx, qword [rsp + 0x48]
lea eax, [r14 + 1]
mov rcx, rbx
movsxd rdx, eax
call fcn.1402027dc
cmp r14d, dword [rbx - 0xc]
jg 0x140045de1
mov dword [rbx - 0x10], r14d
mov word [rbx + r14*2], r15w
cmp dword [rbx - 0x10], 0
jl 0x140045bae
mov rdx, rdi
mov rcx, rbx
call fcn.1401f4b58
test rax, rax
je 0x140045bae
sub rax, rbx
sar rax, 1
cmp eax, r13d
jne 0x140045ce1
lea rdx, [rbx - 0x18]
mov eax, r13d
lock xadd dword [rdx + 0x10], eax
sub eax, 1
jg 0x140045bc8
mov rcx, qword [rdx]
mov rax, qword [rcx]
call qword [rax + reloc.OLEAUT32.dll_VariantClear]
xor edx, edx
mov dword [rsp + 0x50], 0x208
mov r8d, 0x208
lea rcx, [rbp - 0x10]
call fcn.1401f5d40
mov rcx, qword [rsp + 0x60]
lea r9, [rsp + 0x50]
mov qword [rsp + 0x38], r15
lea r8, [rbp - 0x10]
mov qword [rsp + 0x30], r15
mov edx, r12d
mov qword [rsp + 0x28], r15
mov qword [rsp + 0x20], r15
call qword [sym.imp.ADVAPI32.dll_RegEnumKeyExW]
mov rdi, qword [rsp + 0x40]
test eax, eax
jne 0x140045d51
mov rsi, qword [rsp + 0x58]
jmp 0x140045a60
test rbx, rbx
je 0x140045a0b
mov r8d, 6
lea rdx, [r12 + 1]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_FindResourceW]
test rax, rax
je 0x140045a0b
mov r8d, r15d
mov rdx, rax
mov rcx, rbx
call fcn.1400041a0
mov r14, rax
test rax, rax
je 0x140045a0b
movzx ebx, word [rax]
mov edx, 1
mov ecx, dword [rdi - 0xc]
movzx eax, bx
sub edx, dword [rdi - 8]
sub ecx, ebx
or edx, ecx
jge 0x140045c8f
mov edx, ebx
lea rcx, [rsp + 0x40]
call fcn.140004670
movzx eax, word [r14]
mov rdi, qword [rsp + 0x40]
movzx r9d, ax
lea r8, [r14 + 2]
mov edx, ebx
mov rcx, rdi
call fcn.1400042a0
cmp ebx, dword [rdi - 0xc]
jg 0x140045de1
xor r15d, r15d
mov dword [rdi - 0x10], ebx
mov word [rdi + rbx*2], r15w
mov r12d, r15d
jmp 0x140045a13
mov rax, r13
inc rax
cmp word [rdx + rax*2], r12w
jne 0x140045cc0
mov r8d, eax
lea rcx, [rsp + 0x40]
call fcn.140004720
mov rdi, qword [rsp + 0x40]
jmp 0x140045a10
lea rax, str.__CheckCentennialVersionExist_
mov r8d, 0x465
mov qword [rsp + 0x28], rax
lea r9, [0x1402a214c]
lea rdx, str.c:users_scddocumentsmyworkproject__dynabooksystemdriverdsd_for_tos6208_v6dsd_branch_dev_6.01.0029.xxcentennial_rs5dynabookecoservice_tospower_tosservicemodule.cpp
mov dword [rsp + 0x20], 3
lea rcx, [rbp - 0x38]
call fcn.140008c40
mov rcx, rax
lea rdx, str._s_or__s_is_exit
mov r9, rdi
mov r8, rsi
call fcn.140008d50
mov rax, qword [rsp + 0x68]
lea rdx, [rbx - 0x18]
mov dword [rax], 1
mov eax, r13d
lock xadd dword [rdx + 0x10], eax
sub eax, 1
jg 0x140045d4c
mov rcx, qword [rdx]
mov rax, qword [rcx]
call qword [rax + reloc.OLEAUT32.dll_VariantClear]
mov rdi, qword [rsp + 0x40]
lea rdx, [rdi - 0x18]
mov eax, r13d
lock xadd dword [rdx + 0x10], eax
sub eax, 1
jg 0x140045d6b
mov rcx, qword [rdx]
mov rax, qword [rcx]
call qword [rax + reloc.OLEAUT32.dll_VariantClear]
mov rdx, qword [rsp + 0x58]
add rdx, 0xffffffffffffffe8
lock xadd dword [rdx + 0x10], r13d
sub r13d, 1
jg 0x140045d89
mov rcx, qword [rdx]
mov rax, qword [rcx]
call qword [rax + reloc.OLEAUT32.dll_VariantClear]
mov rcx, qword [rsp + 0x60]
test rcx, rcx
je 0x140045d99
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov r8, qword [rsp + 0x70]
lea rdx, str.LEAVE__s
lea rcx, [rsp + 0x78]
call fcn.140008d50
xor eax, eax
mov rcx, qword [rbp + 0x200]
xor rcx, rsp
call fcn.140072680
lea r11, [rsp + 0x310]
mov rbx, qword [r11 + 0x38]
mov rsi, qword [r11 + 0x40]
mov rdi, qword [r11 + 0x48]
mov rsp, r11
pop r15
pop r14
pop r13
pop r12
pop rbp
ret
mov ecx, 0x80070057
call fcn.140002ad0
int3
mov ecx, 0x80004005
call fcn.140002ad0
int3