Function at 0x1400209b0
Capabilities:
Set registry value

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
mov qword [rsp + 0x18], rdi
push rbp
push r12
push r13
push r14
push r15
lea rbp, [rsp - 0x9d0]
sub rsp, 0xad0
mov rax, qword [0x1402f8c60]
xor rax, rsp
mov qword [rbp + 0x9c0], rax
lea r8, str.TecoPower::CreateEcoPlanBasedOnBallanced
mov dword [rbp + 0x40], 0x136
lea r15, str.c:users_scddocumentsmyworkproject__dynabooksystemdriverdsd_for_tos6208_v6dsd_branch_dev_6.01.0029.xxcentennial_rs5dynabookecoservice_tecopower_tecopower.cpp
mov qword [rbp + 0x30], r8
lea r13, str.__TecoPower::CreateEcoPlanBasedOnBallanced_
mov qword [rbp + 0x38], r15
lea r12, [0x1402a214c]
mov qword [rbp + 0x48], r13
lea rdx, str.ENTER__s
mov qword [rbp + 0x50], r12
lea rcx, [rbp + 0x38]
mov dword [rbp + 0x58], 3
call fcn.140008d50
call fcn.140026a40
test eax, eax
jne 0x140020a82
xor edi, edi
mov qword [rbp + 0x188], r15
mov dword [rbp + 0x1a8], edi
lea rdx, str.Error_Code:_0x_x
mov edi, 0x80
mov dword [rbp + 0x190], 0x13a
mov r8d, edi
mov qword [rbp + 0x198], r13
lea rcx, [rbp + 0x188]
mov qword [rbp + 0x1a0], r12
call fcn.140008d50
jmp 0x1400215de
movups xmm0, xmmword [0x14023e410]
lea rcx, [rbp + 0x310]
movaps xmmword [rbp + 0x310], xmm0
call fcn.140026d90
mov r14, 0xffffffffffffffff
test eax, eax
je 0x140020bd8
call fcn.140002c10
test rax, rax
je 0x140021624
mov rdx, qword [rax]
mov rcx, rax
call qword [rdx + reloc.OLEAUT32.dll_SafeArrayGetElement]
xor r9d, r9d
lea rdx, [rbp + 0x310]
add rax, 0x18
lea rcx, vtable.CPowrProfUtil.0
mov qword [rbp - 0x70], rax
xor r8d, r8d
lea rax, [rbp - 0x70]
mov qword [rsp + 0x20], rax
call fcn.1400551c0
mov rbx, qword [rbp - 0x70]
lea rdx, str.bRet___d__strEcoPlanName_s
mov r9, rbx
mov qword [rbp + 0x1b0], r15
mov r8d, eax
mov dword [rbp + 0x1b8], 0x140
lea rcx, [rbp + 0x1b0]
mov qword [rbp + 0x1c0], r13
mov edi, eax
mov qword [rbp + 0x1c8], r12
mov dword [rbp + 0x1d0], 3
call fcn.140008d50
test edi, edi
je 0x140020b3c
xor edi, edi
jmp 0x140020b9c
movups xmm0, xmmword [0x14023e410]
lea rcx, [rbp + 0x1e0]
movaps xmmword [rbp + 0x1e0], xmm0
call fcn.140026c80
test eax, eax
jne 0x140020bbe
xor edi, edi
mov qword [rbp + 0xc0], r15
mov dword [rbp + 0xe0], edi
lea rdx, str.Error_Code:_0x_x
mov edi, 0x80
mov dword [rbp + 0xc8], 0x147
mov r8d, edi
mov qword [rbp + 0xd0], r13
lea rcx, [rbp + 0xc0]
mov qword [rbp + 0xd8], r12
call fcn.140008d50
lea rdx, [rbx - 0x18]
lock xadd dword [rdx + 0x10], r14d
sub r14d, 1
jg 0x1400215de
mov rcx, qword [rdx]
mov rax, qword [rcx]
call qword [rax + reloc.OLEAUT32.dll_VariantClear]
jmp 0x1400215de
lea rdx, [rbx - 0x18]
mov eax, r14d
lock xadd dword [rdx + 0x10], eax
sub eax, 1
jg 0x140020bd8
mov rcx, qword [rdx]
mov rax, qword [rcx]
call qword [rax + reloc.OLEAUT32.dll_VariantClear]
movzx ecx, byte [rbp + 0x31e]
movzx edx, byte [rbp + 0x31d]
movzx r8d, byte [rbp + 0x31c]
movzx r9d, byte [rbp + 0x31b]
movzx eax, byte [rbp + 0x31f]
movzx r10d, byte [rbp + 0x31a]
movzx r11d, byte [rbp + 0x319]
movzx ebx, byte [rbp + 0x318]
movzx edi, word [rbp + 0x316]
movzx esi, word [rbp + 0x314]
mov dword [rsp + 0x68], eax
mov dword [rsp + 0x60], ecx
lea rcx, [rbp + 0x160]
mov dword [rsp + 0x58], edx
lea rdx, str._s___08X__04X__04X__02X_02X__02X_02X_02X_02X_02X_02X
mov dword [rsp + 0x50], r8d
lea r8, str.EcoPlanGuid
mov dword [rsp + 0x48], r9d
mov r9d, dword [rbp + 0x310]
mov dword [rsp + 0x40], r10d
mov dword [rsp + 0x38], r11d
mov dword [rsp + 0x30], ebx
mov dword [rsp + 0x28], edi
mov dword [rsp + 0x20], esi
mov qword [rbp + 0x160], r15
mov dword [rbp + 0x168], 0x14b
mov qword [rbp + 0x170], r13
mov qword [rbp + 0x178], r12
mov dword [rbp + 0x180], 3
call fcn.140008d50
lea rdx, [rbp + 0x310]
lea rcx, vtable.CPowrProfUtil.0
call fcn.140054e40
mov r8d, eax
mov qword [rbp + 0xe8], r15
lea rdx, str.bRet___d
mov dword [rbp + 0xf0], 0x14e
lea rcx, [rbp + 0xe8]
mov qword [rbp + 0xf8], r13
mov ebx, eax
mov qword [rbp + 0x100], r12
mov dword [rbp + 0x108], 3
call fcn.140008d50
test ebx, ebx
jne 0x140020d37
xor edi, edi
mov qword [rbp + 0x110], r15
mov dword [rbp + 0x130], edi
lea rdx, str.Error_Code:_0x_x
mov edi, 0x80
mov dword [rbp + 0x118], 0x150
mov r8d, edi
mov qword [rbp + 0x120], r13
lea rcx, [rbp + 0x110]
mov qword [rbp + 0x128], r12
call fcn.140008d50
jmp 0x1400215de
xor edx, edx
lea rcx, [rbp + 0x390]
mov r8d, 0x208
call fcn.1401f5d40
xor edx, edx
lea rcx, [rbp + 0x5a0]
mov r8d, 0x208
call fcn.1401f5d40
xor edx, edx
lea rcx, [rbp + 0x7b0]
mov r8d, 0x208
call fcn.1401f5d40
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
mov r8d, 0x104
lea rdx, [rbp + 0x7b0]
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
lea rsi, str.TecoPower::TPwrLoadDisplayString
mov qword [rbp + 0x68], r15
lea rax, str.__TecoPower::TPwrLoadDisplayString_
mov qword [rbp + 0x60], rsi
mov r8, rsi
mov qword [rbp + 0x78], rax
lea rdx, str.ENTER__s
mov dword [rbp + 0x70], 0x8d
lea rcx, [rbp + 0x68]
mov qword [rbp + 0x80], r12
mov dword [rbp + 0x88], 3
call fcn.140008d50
mov r9d, 0xa5
lea r8, [rbp + 0x7b0]
lea rdx, str.__s___d
lea rcx, [rbp + 0x390]
call qword [sym.imp.USER32.dll_wsprintfW]
lea rcx, [rbp + 0x390]
call qword [sym.imp.KERNEL32.dll_lstrlenW]
mov r8, qword [rbp + 0x60]
lea rdx, str.LEAVE__s
lea rcx, [rbp + 0x68]
call fcn.140008d50
call fcn.140002c10
test rax, rax
je 0x140021624
mov rdx, qword [rax]
mov rcx, rax
call qword [rdx + reloc.OLEAUT32.dll_SafeArrayGetElement]
add rax, 0x18
mov qword [rsp + 0x70], rax
lea rax, [rbp + 0x390]
cmp rax, 0x10000
jae 0x140020e5d
lea rax, [rbp + 0x390]
movzx edx, ax
lea rcx, [rsp + 0x70]
call fcn.140004320
jmp 0x140020e8e
lea rcx, [rbp + 0x390]
mov rax, r14
nop word [rax + rax]
inc rax
cmp word [rcx + rax*2], 0
jne 0x140020e70
mov r8d, eax
lea rdx, [rbp + 0x390]
lea rcx, [rsp + 0x70]
call fcn.140004720
mov rax, qword [0x1416aaf30]
mov rbx, qword [rsp + 0x70]
test rax, rax
je 0x14002159c
mov edx, dword [rbx - 0x10]
lea edi, [rdx*2 + 2]
test edi, edi
je 0x14002159c
cmp dword [rbx - 8], 1
jle 0x140020ed1
lea rcx, [rsp + 0x70]
call fcn.140002f00
mov rax, qword [0x1416aaf30]
mov rbx, qword [rsp + 0x70]
mov dword [rsp + 0x28], edi
lea rdx, [rbp + 0x310]
xor r9d, r9d
mov qword [rsp + 0x20], rbx
xor r8d, r8d
xor ecx, ecx
call rax
lea rdx, [rbx - 0x18]
test eax, eax
jne 0x1400215a0
mov eax, r14d
lock xadd dword [rdx + 0x10], eax
sub eax, 1
jg 0x140020f0d
mov rcx, qword [rdx]
mov rax, qword [rcx]
call qword [rax + reloc.OLEAUT32.dll_VariantClear]
lea rax, str.__TecoPower::TPwrLoadDisplayString_
mov qword [rbp + 0x90], rsi
mov r8, rsi
mov qword [rbp + 0xa8], rax
lea rdx, str.ENTER__s
mov qword [rbp + 0x98], r15
lea rcx, [rbp + 0x98]
mov dword [rbp + 0xa0], 0x8d
mov qword [rbp + 0xb0], r12
mov dword [rbp + 0xb8], 3
call fcn.140008d50
mov r9d, 0xa6
lea r8, [rbp + 0x7b0]
lea rdx, str.__s___d
lea rcx, [rbp + 0x5a0]
call qword [sym.imp.USER32.dll_wsprintfW]
lea rcx, [rbp + 0x5a0]
call qword [sym.imp.KERNEL32.dll_lstrlenW]
mov r8, qword [rbp + 0x90]
lea rdx, str.LEAVE__s
lea rcx, [rbp + 0x98]
call fcn.140008d50
call fcn.140002c10
test rax, rax
je 0x140021624
mov rdx, qword [rax]
mov rcx, rax
call qword [rdx + reloc.OLEAUT32.dll_SafeArrayGetElement]
add rax, 0x18
mov qword [rsp + 0x78], rax
lea rax, [rbp + 0x5a0]
cmp rax, 0x10000
jae 0x140020fe7
lea rax, [rbp + 0x5a0]
movzx edx, ax
lea rcx, [rsp + 0x78]
call fcn.140004320
jmp 0x14002100f
lea rcx, [rbp + 0x5a0]
mov rax, r14
inc rax
cmp word [rcx + rax*2], 0
jne 0x140020ff1
mov r8d, eax
lea rdx, [rbp + 0x5a0]
lea rcx, [rsp + 0x78]
call fcn.140004720
mov rax, qword [0x1416aaf38]
mov rbx, qword [rsp + 0x78]
test rax, rax
je 0x14002156b
mov edx, dword [rbx - 0x10]
lea edi, [rdx*2 + 2]
test edi, edi
je 0x14002156b
cmp dword [rbx - 8], 1
jle 0x140021052
lea rcx, [rsp + 0x78]
call fcn.140002f00
mov rax, qword [0x1416aaf38]
mov rbx, qword [rsp + 0x78]
mov dword [rsp + 0x28], edi
lea rdx, [rbp + 0x310]
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], r14d
test eax, eax
jne 0x140021575
sub r14d, 1
jg 0x14002108d
mov rcx, qword [rdx]
mov rax, qword [rcx]
call qword [rax + reloc.OLEAUT32.dll_VariantClear]
xor edi, edi
mov qword [rbp - 0x68], 1
mov ebx, edi
nop dword [rax]
mov esi, dword [rbp + rbx*4 - 0x68]
lea r8, [rbp + 0x320]
xor eax, eax
mov edx, esi
mov qword [rbp + 0x320], rax
mov qword [rbp + 0x328], rax
mov qword [rbp + 0x330], rax
mov qword [rbp + 0x338], rax
mov dword [rbp + 0x340], eax
call fcn.1400242f0
call fcn.1400269b0
test eax, eax
je 0x1400211ad
movzx edx, byte [rbp + 0x320]
lea r8, [rbp + 0x320]
xorps xmm0, xmm0
mov qword [rbp - 0x38], rdi
lea rcx, [rbp - 0x50]
movdqa xmmword [rbp - 0x20], xmm0
movdqa xmmword [rbp + 0x10], xmm0
mov qword [rbp - 0x30], rdi
mov qword [rbp - 0x28], rdi
mov dword [rbp - 0x10], 0xa
mov qword [rbp - 8], rdi
mov qword [rbp], rdi
mov qword [rbp + 8], rdi
mov dword [rbp + 0x20], 0xa
mov dword [rbp - 0x4c], edi
mov qword [rbp - 0x40], rdi
mov qword [rbp - 0x48], rdi
mov dword [rbp + 0x28], edi
call fcn.140028b40
test eax, eax
je 0x1400212a6
movzx edx, byte [rbp + 0x33c]
lea r8, [rbp + 0x33c]
lea rcx, [rbp - 0x50]
call fcn.140028b40
test eax, eax
je 0x14002128e
cmp dword [rbp - 0x4c], edi
je 0x14002119b
mov rcx, qword [rbp - 0x48]
test rcx, rcx
je 0x14002117a
mov rax, qword [rcx]
call qword [rax + 0x10]
mov qword [rbp - 0x48], rdi
mov rcx, qword [rbp - 0x40]
test rcx, rcx
je 0x14002118d
mov rax, qword [rcx]
call qword [rax + 0x10]
mov qword [rbp - 0x40], rdi
cmp dword [rbp - 0x50], edi
jne 0x140021198
call qword [sym.imp.ole32.dll_CoUninitialize]
mov dword [rbp - 0x4c], edi
lea rcx, [rbp - 8]
call fcn.14002a0b0
lea rcx, [rbp - 0x38]
call fcn.14002a0b0
movaps xmm0, xmmword [rbp + 0x310]
lea r9, [rbp + 0x1f0]
movups xmm1, xmmword [rbp + 0x320]
mov eax, dword [rbp + 0x340]
lea r8, [rbp + 0x2e0]
movdqa xmmword [rbp + 0x1f0], xmm0
mov edx, esi
movups xmm0, xmmword [rbp + 0x330]
mov dword [rbp + 0x300], eax
movaps xmmword [rbp + 0x2e0], xmm1
movaps xmmword [rbp + 0x2f0], xmm0
call fcn.140024590
test eax, eax
je 0x140021553
inc rbx
cmp rbx, 2
jl 0x1400210a0
mov rax, qword [0x1416aaf40]
test rax, rax
je 0x14002153b
lea rdx, [rbp - 0x60]
mov qword [rbp - 0x60], rdi
xor ecx, ecx
call rax
test eax, eax
jne 0x14002153b
mov rcx, qword [rbp - 0x60]
test rcx, rcx
je 0x14002153b
movups xmm0, xmmword [rcx]
movups xmmword [rbp + 0x378], xmm0
call qword [sym.imp.KERNEL32.dll_LocalFree]
movups xmm0, xmmword [0x14023e410]
lea rdx, [rbp + 0x348]
xor ecx, ecx
movups xmmword [rbp + 0x348], xmm0
call fcn.140026ea0
test eax, eax
jne 0x14002131a
movaps xmm0, xmmword [rbp + 0x310]
lea rcx, [rbp + 0x220]
movdqa xmmword [rbp + 0x220], xmm0
jmp 0x1400215cb
movaps xmm0, xmmword [rbp + 0x310]
lea rcx, [rbp + 0x200]
movdqa xmmword [rbp + 0x200], xmm0
jmp 0x1400212bc
movaps xmm0, xmmword [rbp + 0x310]
lea rcx, [rbp + 0x210]
movdqa xmmword [rbp + 0x210], xmm0
call fcn.140026c80
test eax, eax
je 0x1400212ca
call fcn.140021630
cmp dword [rbp - 0x4c], edi
je 0x140021303
mov rcx, qword [rbp - 0x48]
test rcx, rcx
je 0x1400212e2
mov rax, qword [rcx]
call qword [rax + 0x10]
mov qword [rbp - 0x48], rdi
mov rcx, qword [rbp - 0x40]
test rcx, rcx
je 0x1400212f5
mov rax, qword [rcx]
call qword [rax + 0x10]
mov qword [rbp - 0x40], rdi
cmp dword [rbp - 0x50], edi
jne 0x140021300
call qword [sym.imp.ole32.dll_CoUninitialize]
mov dword [rbp - 0x4c], edi
lea rcx, [rbp - 8]
call fcn.14002a0b0
lea rcx, [rbp - 0x38]
call fcn.14002a0b0
jmp 0x1400215d9
mov rsi, qword [rbp + 0x378]
mov rbx, qword [rbp + 0x380]
cmp rsi, qword [rbp + 0x348]
jne 0x14002133e
cmp rbx, qword [rbp + 0x350]
je 0x14002140d
movups xmm0, xmmword [0x14023e410]
lea rdx, [rbp + 0x358]
mov ecx, 1
movups xmmword [rbp + 0x358], xmm0
call fcn.140026ea0
test eax, eax
jne 0x14002137c
movaps xmm0, xmmword [rbp + 0x310]
lea rcx, [rbp + 0x230]
movdqa xmmword [rbp + 0x230], xmm0
jmp 0x1400215cb
cmp rsi, qword [rbp + 0x358]
jne 0x14002138e
cmp rbx, qword [rbp + 0x360]
je 0x14002140d
movups xmm0, xmmword [0x14023e410]
lea rdx, [rbp + 0x368]
mov ecx, 2
movups xmmword [rbp + 0x368], xmm0
call fcn.140026ea0
test eax, eax
je 0x140021487
cmp rsi, qword [rbp + 0x368]
jne 0x1400213c7
cmp rbx, qword [rbp + 0x370]
je 0x14002140d
movaps xmm0, xmmword [rbp + 0x310]
lea rdx, [rbp + 0x2d0]
xor ecx, ecx
movdqa xmmword [rbp + 0x2d0], xmm0
call fcn.140027140
test eax, eax
jne 0x140021403
movaps xmm0, xmmword [rbp + 0x310]
lea rcx, [rbp + 0x2c0]
movdqa xmmword [rbp + 0x2c0], xmm0
jmp 0x1400215cb
mov ecx, 2
call fcn.1400273e0
movaps xmm0, xmmword [rbp + 0x310]
lea rcx, [rbp + 0x2b0]
movdqa xmmword [rbp + 0x2b0], xmm0
call fcn.140026c80
test eax, eax
jne 0x1400214c7
lea rdx, str.Set_reg_failed.
mov qword [rbp + 0x138], r15
lea rcx, [rbp + 0x138]
mov dword [rbp + 0x140], 0x1cf
mov qword [rbp + 0x148], r13
mov qword [rbp + 0x150], r12
mov dword [rbp + 0x158], 3
call fcn.140008d50
movaps xmm0, xmmword [rbp + 0x310]
lea rcx, [rbp + 0x240]
movdqa xmmword [rbp + 0x240], xmm0
jmp 0x1400215cb
movaps xmm0, xmmword [rbp + 0x310]
lea rdx, [rbp + 0x2a0]
xor ecx, ecx
movdqa xmmword [rbp + 0x2a0], xmm0
call fcn.140027140
test eax, eax
jne 0x14002140d
movaps xmm0, xmmword [rbp + 0x310]
lea rcx, [rbp + 0x270]
movdqa xmmword [rbp + 0x270], xmm0
jmp 0x1400215cb
lea rax, [rbp - 0x78]
mov qword [rbp - 0x78], rdi
mov r9d, 0x20006
mov qword [rsp + 0x20], rax
xor r8d, r8d
mov dword [rbp - 0x80], 7
lea rdx, [0x1402a34f0]
mov rcx, 0xffffffff80000002
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
mov rcx, qword [rbp - 0x78]
lea rax, [rbp - 0x80]
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 [rbp - 0x78]
test rcx, rcx
je 0x1400215de
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
jmp 0x1400215de
movaps xmm0, xmmword [rbp + 0x310]
lea rcx, [rbp + 0x250]
movdqa xmmword [rbp + 0x250], xmm0
jmp 0x1400215cb
movaps xmm0, xmmword [rbp + 0x310]
lea rcx, [rbp + 0x260]
movdqa xmmword [rbp + 0x260], xmm0
jmp 0x1400215cb
lea rdx, [rbx - 0x18]
lock xadd dword [rdx + 0x10], r14d
sub r14d, 1
jg 0x140021584
mov rcx, qword [rdx]
mov rax, qword [rcx]
call qword [rax + reloc.OLEAUT32.dll_VariantClear]
movaps xmm0, xmmword [rbp + 0x310]
lea rcx, [rbp + 0x280]
movdqa xmmword [rbp + 0x280], xmm0
jmp 0x1400215cb
lea rdx, [rbx - 0x18]
lock xadd dword [rdx + 0x10], r14d
sub r14d, 1
jg 0x1400215b5
mov rcx, qword [rdx]
mov rax, qword [rcx]
call qword [rax + reloc.OLEAUT32.dll_VariantClear]
movaps xmm0, xmmword [rbp + 0x310]
lea rcx, [rbp + 0x290]
movdqa xmmword [rbp + 0x290], xmm0
call fcn.140026c80
test eax, eax
je 0x1400215d9
call fcn.140021630
mov edi, 0x80
mov r8, qword [rbp + 0x30]
lea rdx, str.LEAVE__s
lea rcx, [rbp + 0x38]
call fcn.140008d50
mov eax, edi
mov rcx, qword [rbp + 0x9c0]
xor rcx, rsp
call fcn.140072680
lea r11, [rsp + 0xad0]
mov rbx, qword [r11 + 0x30]
mov rsi, qword [r11 + 0x38]
mov rdi, qword [r11 + 0x40]
mov rsp, r11
pop r15
pop r14
pop r13
pop r12
pop rbp
ret
mov ecx, 0x80004005
call fcn.140002ad0
int3