Function at 0x140020010
Capabilities:
Set registry value

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
mov qword [rsp + 0x18], rdi
mov qword [rsp + 0x20], r12
push rbp
push r14
push r15
lea rbp, [rsp - 0x680]
sub rsp, 0x780
mov rax, qword [0x1402f8c60]
xor rax, rsp
mov qword [rbp + 0x670], rax
lea r8, str.TecoPower::CreateEcoPlanBasedOnPowerSaver
mov dword [rbp], VariantTimeToSystemTime
lea r14, str.c:users_scddocumentsmyworkproject__dynabooksystemdriverdsd_for_tos6208_v6dsd_branch_dev_6.01.0029.xxcentennial_rs5dynabookecoservice_tecopower_tecopower.cpp
mov qword [rbp - 0x10], r8
lea r15, str.__TecoPower::CreateEcoPlanBasedOnPowerSaver_
mov qword [rbp - 8], r14
lea r12, [0x1402a214c]
mov qword [rbp + 8], r15
lea rdx, str.ENTER__s
mov qword [rbp + 0x10], r12
lea rcx, [rbp - 8]
mov dword [rbp + 0x18], 3
call fcn.140008d50
call fcn.140026a40
test eax, eax
jne 0x1400200e3
xor ebx, ebx
mov qword [rbp + 0x98], r14
mov dword [rbp + 0xb8], ebx
lea rdx, str.Error_Code:_0x_x
mov ebx, 0x80
mov dword [rbp + 0xa0], UnRegisterTypeLib
mov r8d, ebx
mov qword [rbp + 0xa8], r15
lea rcx, [rbp + 0x98]
mov qword [rbp + 0xb0], r12
call fcn.140008d50
jmp 0x140020956
movups xmm0, xmmword [0x14023e410]
lea rcx, [rbp + 0x1e0]
movaps xmmword [rbp + 0x1e0], xmm0
call fcn.140026d90
mov rdi, 0xffffffffffffffff
test eax, eax
je 0x1400201f1
call fcn.140002c10
test rax, rax
je 0x14002099c
mov rdx, qword [rax]
mov rcx, rax
call qword [rdx + reloc.OLEAUT32.dll_SafeArrayGetElement]
xor r9d, r9d
lea rdx, [rbp + 0x1e0]
add rax, 0x18
lea rcx, vtable.CPowrProfUtil.0
mov qword [rsp + 0x48], rax
xor r8d, r8d
lea rax, [rsp + 0x48]
mov qword [rsp + 0x20], rax
call fcn.1400551c0
test eax, eax
je 0x140020157
xor ebx, ebx
jmp 0x1400201ae
movups xmm0, xmmword [0x14023e410]
lea rcx, [rbp + 0x190]
movaps xmmword [rbp + 0x190], xmm0
call fcn.140026c80
test eax, eax
jne 0x1400201d3
xor ebx, ebx
mov qword [rbp + 0x70], r14
mov dword [rbp + 0x90], ebx
lea rdx, str.Error_Code:_0x_x
mov ebx, 0x80
mov dword [rbp + 0x78], 0xc1
mov r8d, ebx
mov qword [rbp + 0x80], r15
lea rcx, [rbp + 0x70]
mov qword [rbp + 0x88], r12
call fcn.140008d50
mov rdx, qword [rsp + 0x48]
add rdx, 0xffffffffffffffe8
lock xadd dword [rdx + 0x10], edi
sub edi, 1
jg 0x140020956
mov rcx, qword [rdx]
mov rax, qword [rcx]
call qword [rax + reloc.OLEAUT32.dll_VariantClear]
jmp 0x140020956
mov rdx, qword [rsp + 0x48]
mov eax, edi
add rdx, 0xffffffffffffffe8
lock xadd dword [rdx + 0x10], eax
sub eax, 1
jg 0x1400201f1
mov rcx, qword [rdx]
mov rax, qword [rcx]
call qword [rax + reloc.OLEAUT32.dll_VariantClear]
lea rdx, [rbp + 0x1e0]
lea rcx, vtable.CPowrProfUtil.0
call fcn.140054e40
test eax, eax
jne 0x14002023d
xor ebx, ebx
mov qword [rbp + 0x48], r14
mov dword [rbp + 0x68], ebx
lea rdx, str.Error_Code:_0x_x
mov ebx, 0x80
mov dword [rbp + 0x50], 0xc6
mov r8d, ebx
mov qword [rbp + 0x58], r15
lea rcx, [rbp + 0x48]
mov qword [rbp + 0x60], r12
call fcn.140008d50
jmp 0x140020956
mov r9d, 0x208
lea r8, [rbp + 0x460]
mov edx, 0xa5
xor ecx, ecx
call qword [sym.imp.USER32.dll_LoadStringW]
call fcn.140002c10
test rax, rax
je 0x14002099c
mov rdx, qword [rax]
mov rcx, rax
call qword [rdx + reloc.OLEAUT32.dll_SafeArrayGetElement]
add rax, 0x18
mov qword [rsp + 0x30], rax
lea rax, [rbp + 0x460]
cmp rax, 0x10000
jae 0x14002029c
lea rax, [rbp + 0x460]
movzx edx, ax
lea rcx, [rsp + 0x30]
call fcn.140004320
jmp 0x1400202c4
lea rcx, [rbp + 0x460]
mov rax, rdi
inc rax
cmp word [rcx + rax*2], 0
jne 0x1400202a6
mov r8d, eax
lea rdx, [rbp + 0x460]
lea rcx, [rsp + 0x30]
call fcn.140004720
mov rax, qword [0x1416aaf30]
mov rbx, qword [rsp + 0x30]
test rax, rax
je 0x140020916
mov edx, dword [rbx - 0x10]
lea esi, [rdx*2 + 2]
test esi, esi
je 0x140020916
cmp dword [rbx - 8], 1
jle 0x140020307
lea rcx, [rsp + 0x30]
call fcn.140002f00
mov rax, qword [0x1416aaf30]
mov rbx, qword [rsp + 0x30]
mov dword [rsp + 0x28], esi
lea rdx, [rbp + 0x1e0]
xor r9d, r9d
mov qword [rsp + 0x20], rbx
xor r8d, r8d
xor ecx, ecx
call rax
lea rdx, [rbx - 0x18]
test eax, eax
jne 0x14002091a
mov eax, edi
lock xadd dword [rdx + 0x10], eax
sub eax, 1
jg 0x140020342
mov rcx, qword [rdx]
mov rax, qword [rcx]
call qword [rax + reloc.OLEAUT32.dll_VariantClear]
mov r9d, 0x208
lea r8, [rbp + 0x250]
mov edx, 0xa6
xor ecx, ecx
call qword [sym.imp.USER32.dll_LoadStringW]
lea r8, [rbp + 0x250]
mov qword [rbp + 0x20], r14
lea rdx, str.szEcoPlanFullDesc:__s
mov dword [rbp + 0x28], 0xd6
lea rcx, [rbp + 0x20]
mov qword [rbp + 0x30], r15
mov qword [rbp + 0x38], r12
mov dword [rbp + 0x40], 3
call fcn.140008d50
call fcn.140002c10
test rax, rax
je 0x14002099c
mov rdx, qword [rax]
mov rcx, rax
call qword [rdx + reloc.OLEAUT32.dll_SafeArrayGetElement]
add rax, 0x18
mov qword [rsp + 0x38], rax
lea rax, [rbp + 0x250]
cmp rax, 0x10000
jae 0x1400203d2
lea rax, [rbp + 0x250]
movzx edx, ax
lea rcx, [rsp + 0x38]
call fcn.140004320
jmp 0x1400203fe
lea rcx, [rbp + 0x250]
mov rax, rdi
nop dword [rax]
inc rax
cmp word [rcx + rax*2], 0
jne 0x1400203e0
mov r8d, eax
lea rdx, [rbp + 0x250]
lea rcx, [rsp + 0x38]
call fcn.140004720
mov rax, qword [0x1416aaf38]
mov rbx, qword [rsp + 0x38]
test rax, rax
je 0x1400208e7
mov edx, dword [rbx - 0x10]
lea esi, [rdx*2 + 2]
test esi, esi
je 0x1400208e7
cmp dword [rbx - 8], 1
jle 0x140020441
lea rcx, [rsp + 0x38]
call fcn.140002f00
mov rax, qword [0x1416aaf38]
mov rbx, qword [rsp + 0x38]
mov dword [rsp + 0x28], esi
lea rdx, [rbp + 0x1e0]
xor r9d, r9d
mov qword [rsp + 0x20], rbx
xor r8d, r8d
xor ecx, ecx
call rax
lea rdx, [rbx - 0x18]
lock xadd dword [rdx + 0x10], edi
test eax, eax
jne 0x1400208f0
sub edi, 1
jg 0x14002047a
mov rcx, qword [rdx]
mov rax, qword [rcx]
call qword [rax + reloc.OLEAUT32.dll_VariantClear]
xor ebx, ebx
mov qword [rsp + 0x58], 1
mov edi, ebx
nop word [rax + rax]
mov esi, dword [rsp + rdi*4 + 0x58]
lea r8, [rbp + 0x1f0]
xor eax, eax
mov edx, esi
mov qword [rbp + 0x1f0], rax
mov qword [rbp + 0x1f8], rax
mov qword [rbp + 0x200], rax
mov qword [rbp + 0x208], rax
mov dword [rbp + 0x210], eax
call fcn.1400242f0
call fcn.1400269b0
test eax, eax
je 0x1400205a6
movzx edx, byte [rbp + 0x1f0]
lea r8, [rbp + 0x1f0]
xorps xmm0, xmm0
mov qword [rbp - 0x78], rbx
lea rcx, [rsp + 0x70]
movdqa xmmword [rbp - 0x60], xmm0
movdqa xmmword [rbp - 0x30], xmm0
mov qword [rbp - 0x70], rbx
mov qword [rbp - 0x68], rbx
mov dword [rbp - 0x50], 0xa
mov qword [rbp - 0x48], rbx
mov qword [rbp - 0x40], rbx
mov qword [rbp - 0x38], rbx
mov dword [rbp - 0x20], 0xa
mov dword [rsp + 0x74], ebx
mov qword [rbp - 0x80], rbx
mov qword [rsp + 0x78], rbx
mov dword [rbp - 0x18], ebx
call fcn.140028b40
test eax, eax
je 0x1400206a5
movzx edx, byte [rbp + 0x20c]
lea r8, [rbp + 0x20c]
lea rcx, [rsp + 0x70]
call fcn.140028b40
test eax, eax
je 0x14002068d
cmp dword [rsp + 0x74], ebx
je 0x140020594
mov rcx, qword [rsp + 0x78]
test rcx, rcx
je 0x140020571
mov rax, qword [rcx]
call qword [rax + 0x10]
mov qword [rsp + 0x78], rbx
mov rcx, qword [rbp - 0x80]
test rcx, rcx
je 0x140020584
mov rax, qword [rcx]
call qword [rax + 0x10]
mov qword [rbp - 0x80], rbx
cmp dword [rsp + 0x70], ebx
jne 0x140020590
call qword [sym.imp.ole32.dll_CoUninitialize]
mov dword [rsp + 0x74], ebx
lea rcx, [rbp - 0x48]
call fcn.14002a0b0
lea rcx, [rbp - 0x78]
call fcn.14002a0b0
movaps xmm0, xmmword [rbp + 0x1e0]
lea r9, [rbp + 0x1a0]
movups xmm1, xmmword [rbp + 0x1f0]
mov eax, dword [rbp + 0x210]
lea r8, [rbp + 0x1b0]
movdqa xmmword [rbp + 0x1a0], xmm0
mov edx, esi
movups xmm0, xmmword [rbp + 0x200]
mov dword [rbp + 0x1d0], eax
movaps xmmword [rbp + 0x1b0], xmm1
movaps xmmword [rbp + 0x1c0], xmm0
call fcn.140024590
test eax, eax
je 0x1400208cf
inc rdi
cmp rdi, 2
jl 0x140020490
mov rax, qword [0x1416aaf40]
test rax, rax
je 0x1400208b7
lea rdx, [rsp + 0x60]
mov qword [rsp + 0x60], rbx
xor ecx, ecx
call rax
test eax, eax
jne 0x1400208b7
mov rcx, qword [rsp + 0x60]
test rcx, rcx
je 0x1400208b7
movups xmm0, xmmword [rcx]
movups xmmword [rbp + 0x238], xmm0
call qword [sym.imp.KERNEL32.dll_LocalFree]
movups xmm0, xmmword [0x14023e410]
lea rdx, [rbp + 0x228]
mov ecx, 1
movups xmmword [rbp + 0x228], xmm0
call fcn.140026ea0
test eax, eax
jne 0x14002071e
movaps xmm0, xmmword [rbp + 0x1e0]
lea rcx, [rbp + 0xe0]
movdqa xmmword [rbp + 0xe0], xmm0
jmp 0x140020943
movaps xmm0, xmmword [rbp + 0x1e0]
lea rcx, [rbp + 0xc0]
movdqa xmmword [rbp + 0xc0], xmm0
jmp 0x1400206bb
movaps xmm0, xmmword [rbp + 0x1e0]
lea rcx, [rbp + 0xd0]
movdqa xmmword [rbp + 0xd0], xmm0
call fcn.140026c80
test eax, eax
je 0x1400206c9
call fcn.140021630
cmp dword [rsp + 0x74], ebx
je 0x140020707
mov rcx, qword [rsp + 0x78]
test rcx, rcx
je 0x1400206e4
mov rax, qword [rcx]
call qword [rax + 0x10]
mov qword [rsp + 0x78], rbx
mov rcx, qword [rbp - 0x80]
test rcx, rcx
je 0x1400206f7
mov rax, qword [rcx]
call qword [rax + 0x10]
mov qword [rbp - 0x80], rbx
cmp dword [rsp + 0x70], ebx
jne 0x140020703
call qword [sym.imp.ole32.dll_CoUninitialize]
mov dword [rsp + 0x74], ebx
lea rcx, [rbp - 0x48]
call fcn.14002a0b0
lea rcx, [rbp - 0x78]
call fcn.14002a0b0
jmp 0x140020951
mov rsi, qword [rbp + 0x238]
mov rdi, qword [rbp + 0x240]
cmp rsi, qword [rbp + 0x228]
jne 0x140020742
cmp rdi, qword [rbp + 0x230]
je 0x1400207c4
movups xmm0, xmmword [0x14023e410]
lea rdx, [rbp + 0x218]
mov ecx, 2
movups xmmword [rbp + 0x218], xmm0
call fcn.140026ea0
test eax, eax
je 0x1400207fe
cmp rsi, qword [rbp + 0x218]
jne 0x14002077b
cmp rdi, qword [rbp + 0x220]
je 0x1400207c4
movaps xmm0, xmmword [rbp + 0x1e0]
lea rdx, [rbp + 0xf0]
mov ecx, 1
movdqa xmmword [rbp + 0xf0], xmm0
call fcn.140027140
test eax, eax
jne 0x1400207ba
movaps xmm0, xmmword [rbp + 0x1e0]
lea rcx, [rbp + 0x100]
movdqa xmmword [rbp + 0x100], xmm0
jmp 0x140020943
mov ecx, 2
call fcn.1400273e0
movaps xmm0, xmmword [rbp + 0x1e0]
lea rcx, [rbp + 0x130]
movdqa xmmword [rbp + 0x130], xmm0
call fcn.140026c80
test eax, eax
jne 0x14002083d
movaps xmm0, xmmword [rbp + 0x1e0]
lea rcx, [rbp + 0x140]
movdqa xmmword [rbp + 0x140], xmm0
jmp 0x140020943
movaps xmm0, xmmword [rbp + 0x1e0]
lea rdx, [rbp + 0x110]
mov ecx, 1
movdqa xmmword [rbp + 0x110], xmm0
call fcn.140027140
test eax, eax
jne 0x1400207c4
movaps xmm0, xmmword [rbp + 0x1e0]
lea rcx, [rbp + 0x120]
movdqa xmmword [rbp + 0x120], xmm0
jmp 0x140020943
lea rax, [rsp + 0x50]
mov qword [rsp + 0x50], rbx
mov r9d, 0x20006
mov qword [rsp + 0x20], rax
xor r8d, r8d
mov dword [rsp + 0x40], 7
lea rdx, [0x1402a34f0]
mov rcx, 0xffffffff80000002
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
mov rcx, qword [rsp + 0x50]
lea rax, [rsp + 0x40]
mov dword [rsp + 0x28], 4
lea rdx, str.LastEcoLevel
mov r9d, 4
mov qword [rsp + 0x20], rax
xor r8d, r8d
call qword [sym.imp.ADVAPI32.dll_RegSetValueExW]
mov rcx, qword [rsp + 0x50]
test rcx, rcx
je 0x140020956
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
jmp 0x140020956
movaps xmm0, xmmword [rbp + 0x1e0]
lea rcx, [rbp + 0x150]
movdqa xmmword [rbp + 0x150], xmm0
jmp 0x140020943
movaps xmm0, xmmword [rbp + 0x1e0]
lea rcx, [rbp + 0x160]
movdqa xmmword [rbp + 0x160], xmm0
jmp 0x140020943
lea rdx, [rbx - 0x18]
lock xadd dword [rdx + 0x10], edi
sub edi, 1
jg 0x1400208fe
mov rcx, qword [rdx]
mov rax, qword [rcx]
call qword [rax + reloc.OLEAUT32.dll_VariantClear]
movaps xmm0, xmmword [rbp + 0x1e0]
lea rcx, [rbp + 0x170]
movdqa xmmword [rbp + 0x170], xmm0
jmp 0x140020943
lea rdx, [rbx - 0x18]
lock xadd dword [rdx + 0x10], edi
sub edi, 1
jg 0x14002092d
mov rcx, qword [rdx]
mov rax, qword [rcx]
call qword [rax + reloc.OLEAUT32.dll_VariantClear]
movaps xmm0, xmmword [rbp + 0x1e0]
lea rcx, [rbp + 0x180]
movdqa xmmword [rbp + 0x180], xmm0
call fcn.140026c80
test eax, eax
je 0x140020951
call fcn.140021630
mov ebx, 0x80
mov r8, qword [rbp - 0x10]
lea rdx, str.LEAVE__s
lea rcx, [rbp - 8]
call fcn.140008d50
mov eax, ebx
mov rcx, qword [rbp + 0x670]
xor rcx, rsp
call fcn.140072680
lea r11, [rsp + 0x780]
mov rbx, qword [r11 + 0x20]
mov rsi, qword [r11 + 0x28]
mov rdi, qword [r11 + 0x30]
mov r12, qword [r11 + 0x38]
mov rsp, r11
pop r15
pop r14
pop rbp
ret
mov ecx, 0x80004005
call fcn.140002ad0
int3