Function at 0x14003c2a0
Capabilities:
Link many functions at runtime

Disassembly:
push rbp
push rsi
push rdi
push r12
push r13
push r14
push r15
lea rbp, [rsp - 0x660]
sub rsp, 0x760
mov qword [rbp + 0x18], 0xfffffffffffffffe
mov qword [rsp + 0x7a8], rbx
mov rax, qword [0x1402f8c60]
xor rax, rsp
mov qword [rbp + 0x650], rax
mov r15, r9
mov r14, r8
mov ebx, edx
mov rdi, rcx
mov qword [rbp - 0x20], rcx
lea r8, str.CreateTPSItem
mov qword [rbp - 0x18], r8
lea r13, str.c:users_scddocumentsmyworkproject__dynabooksystemdriverdsd_fordnbk0001_dev_bcmcentennial_rs5dynabookecoservice_tpowersaverstaticlib_tpowersaver.cpp
mov qword [rbp - 0x10], r13
mov dword [rbp - 8], 0x649
lea r12, str.__CreateTPSItem_
mov qword [rbp], r12
lea rsi, [0x1402a214c]
mov qword [rbp + 8], rsi
mov dword [rbp + 0x10], 3
lea rdx, str.ENTER__s
lea rcx, [rbp - 0x10]
call fcn.140008d50
nop
test r14, r14
jne 0x14003c359
mov dword [rsp + 0x48], 0x64c
mov qword [rsp + 0x50], r12
mov qword [rsp + 0x58], rsi
xor edi, edi
mov ebx, 0x80004003
jmp 0x14003d06c
test r15, r15
jne 0x14003c368
mov dword [rsp + 0x48], 0x64d
jmp 0x14003c343
test rdi, rdi
jne 0x14003c377
mov dword [rsp + 0x48], 0x64e
jmp 0x14003c343
xor edx, edx
mov r8d, 0x208
lea rcx, [rbp + 0x440]
call fcn.1401f5d40
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
mov rcx, rax
mov r8d, 0x104
lea rdx, [rbp + 0x440]
call qword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
xor edi, edi
test ebx, ebx
je 0x14003cd95
cmp ebx, 1
jne 0x14003d08b
mov rsi, qword [r15 + 8]
test rsi, rsi
je 0x14003d08b
mov r9, rsi
lea r8, [0x1402ad428]
mov rcx, r14
call fcn.14002b3b0
test eax, eax
je 0x14003c3e8
cmp eax, 6
jne 0x14003d08b
mov r13, qword [r15]
mov qword [rbp - 0x58], r13
test r13, r13
je 0x14003d08b
xor edx, edx
mov r8d, 0x208
lea rcx, [rbp + 0x20]
call fcn.1401f5d40
xor edx, edx
mov r8d, 0x208
lea rcx, [rbp + 0x230]
call fcn.1401f5d40
mov rax, qword [rsi]
sub rax, qword [0x1402ad3b8]
jne 0x14003c434
mov rax, qword [rsi + 8]
sub rax, qword [0x1402ad3c0]
mov ebx, edi
test rax, rax
sete bl
mov r15d, dword [r13 + 4]
lea rax, str.TPwrLoadDisplayString
mov qword [rsp + 0x40], rax
lea rcx, str.c:users_scddocumentsmyworkproject__dynabooksystemdriverdsd_fordnbk0001_dev_bcmcentennial_rs5dynabookecoservice_tpowersaverstaticlib_tpowersaver.cpp
mov qword [rsp + 0x48], rcx
mov dword [rsp + 0x50], 0x721
lea rcx, str.__TPwrLoadDisplayString_
mov qword [rsp + 0x58], rcx
lea rcx, [0x1402a214c]
mov qword [rsp + 0x60], rcx
mov dword [rsp + 0x68], 3
mov r8, rax
lea rdx, str.ENTER__s
lea rcx, [rsp + 0x48]
call fcn.140008d50
nop
lea rcx, [rbp + 0x20]
test ebx, ebx
je 0x14003c4af
mov r8d, r15d
lea rdx, str.___SystemRoot___system32powrprof.dll___d
call qword [sym.imp.USER32.dll_wsprintfW]
jmp 0x14003c4c6
mov r9d, r15d
lea r8, [rbp + 0x440]
lea rdx, str.__s___d
call qword [sym.imp.USER32.dll_wsprintfW]
lea rcx, [rbp + 0x20]
call qword [sym.imp.KERNEL32.dll_lstrlenW]
lea r12d, [rax*2 + 2]
mov r8, qword [rsp + 0x40]
lea rdx, str.LEAVE__s
lea rcx, [rsp + 0x48]
call fcn.140008d50
mov r15d, dword [r13 + 8]
lea r8, str.TPwrLoadDisplayString
mov qword [rsp + 0x70], r8
lea rax, str.c:users_scddocumentsmyworkproject__dynabooksystemdriverdsd_fordnbk0001_dev_bcmcentennial_rs5dynabookecoservice_tpowersaverstaticlib_tpowersaver.cpp
mov qword [rsp + 0x78], rax
mov dword [rbp - 0x80], 0x721
lea rax, str.__TPwrLoadDisplayString_
mov qword [rbp - 0x78], rax
lea rax, [0x1402a214c]
mov qword [rbp - 0x70], rax
mov dword [rbp - 0x68], 3
lea rdx, str.ENTER__s
lea rcx, [rsp + 0x78]
call fcn.140008d50
nop
lea rcx, [rbp + 0x230]
test ebx, ebx
je 0x14003c55d
mov r8d, r15d
lea rdx, str.___SystemRoot___system32powrprof.dll___d
call qword [sym.imp.USER32.dll_wsprintfW]
jmp 0x14003c574
mov r9d, r15d
lea r8, [rbp + 0x440]
lea rdx, str.__s___d
call qword [sym.imp.USER32.dll_wsprintfW]
lea rcx, [rbp + 0x230]
call qword [sym.imp.KERNEL32.dll_lstrlenW]
lea ebx, [rax*2 + 2]
mov r8, qword [rsp + 0x70]
lea rdx, str.LEAVE__s
lea rcx, [rsp + 0x78]
call fcn.140008d50
mov dword [rsp + 0x30], r12d
lea rax, [rbp + 0x20]
mov qword [rsp + 0x28], rax
mov qword [rsp + 0x20], rsi
lea r15, [0x1402ad428]
mov r9, r15
mov rcx, r14
call fcn.14002b9a0
test eax, eax
je 0x14003c5fd
mov dword [rsp + 0x48], 0x6ac
lea rax, str.c:users_scddocumentsmyworkproject__dynabooksystemdriverdsd_fordnbk0001_dev_bcmcentennial_rs5dynabookecoservice_tpowersaverstaticlib_tpowersaver.cpp
mov qword [rsp + 0x40], rax
lea rax, str.__CreateTPSItem_
mov qword [rsp + 0x50], rax
lea rax, [0x1402a214c]
mov qword [rsp + 0x58], rax
mov ebx, 0x80004005
jmp 0x14003d071
mov dword [rsp + 0x30], ebx
lea rax, [rbp + 0x230]
mov qword [rsp + 0x28], rax
mov qword [rsp + 0x20], rsi
mov r9, r15
mov rcx, r14
call fcn.14002b8b0
test eax, eax
je 0x14003c62b
mov dword [rsp + 0x48], 0x6af
jmp 0x14003c5cf
mov r9d, dword [rsi + 0x218]
mov r8, rsi
mov rcx, r14
call fcn.14002bbd0
test eax, eax
je 0x14003c64b
mov dword [rsp + 0x48], 0x6b2
jmp 0x14003c5cf
mov r12d, edi
cmp dword [r13 + 0x24], edi
jbe 0x14003caf5
nop dword [rax + rax]
lea rdx, str.PowerCreatePossibleSetting
mov rcx, r14
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
test rax, rax
je 0x14003cae8
mov r9d, r12d
mov r8, rsi
mov rdx, r15
xor ecx, ecx
call rax
test eax, eax
je 0x14003c69e
sub eax, 5
je 0x14003cae8
sub eax, 0xb2
jne 0x14003cae8
xor edx, edx
mov r8d, 0x208
lea rcx, [rbp + 0x20]
call fcn.1401f5d40
xor edx, edx
mov r8d, 0x208
lea rcx, [rbp + 0x230]
call fcn.1401f5d40
mov r13d, r12d
shl r13, 5
mov rax, qword [rbp - 0x58]
add r13, qword [rax + 0x28]
lea rbx, str.c:users_scddocumentsmyworkproject__dynabooksystemdriverdsd_fordnbk0001_dev_bcmcentennial_rs5dynabookecoservice_tpowersaverstaticlib_tpowersaver.cpp
mov qword [rsp + 0x40], rbx
mov dword [rsp + 0x48], 0x6c1
lea rax, str.__CreateTPSItem_
mov qword [rsp + 0x50], rax
lea r15, [0x1402a214c]
mov qword [rsp + 0x58], r15
mov dword [rsp + 0x60], 3
mov eax, dword [r13 + 0x1c]
mov dword [rsp + 0x30], eax
mov dword [rsp + 0x28], 0x208
lea rax, [rbp + 0x20]
mov qword [rsp + 0x20], rax
mov r9d, dword [r13]
lea r8, [rbp + 0x440]
lea rdx, str.szFullPathName:__s__pListItem__nFriendlyNameID:__d__szFriendlyName:__s__dwFriendlyNameSize___d__pListItem__bFriendlyNameIDFromSys:__d
lea rcx, [rsp + 0x40]
call fcn.140008d50
mov qword [rsp + 0x40], rbx
mov dword [rsp + 0x48], 0x6c5
lea rax, str.__CreateTPSItem_
mov qword [rsp + 0x50], rax
mov qword [rsp + 0x58], r15
mov dword [rsp + 0x60], 3
mov dword [rsp + 0x20], 0x208
lea r9, [rbp + 0x230]
mov r8d, dword [r13 + 4]
lea rdx, str.pListItem__nDescriptionID___d__szDescription:__s__dwDescriptionSize___d
lea rcx, [rsp + 0x40]
call fcn.140008d50
mov ebx, dword [r13 + 0x1c]
mov r15d, dword [r13]
lea rax, str.TPwrLoadDisplayString
mov qword [rsp + 0x70], rax
lea rcx, str.c:users_scddocumentsmyworkproject__dynabooksystemdriverdsd_fordnbk0001_dev_bcmcentennial_rs5dynabookecoservice_tpowersaverstaticlib_tpowersaver.cpp
mov qword [rsp + 0x78], rcx
mov dword [rbp - 0x80], 0x721
lea rcx, str.__TPwrLoadDisplayString_
mov qword [rbp - 0x78], rcx
lea rcx, [0x1402a214c]
mov qword [rbp - 0x70], rcx
mov dword [rbp - 0x68], 3
mov r8, rax
lea rdx, str.ENTER__s
lea rcx, [rsp + 0x78]
call fcn.140008d50
nop
lea rcx, [rbp + 0x20]
test ebx, ebx
je 0x14003c7f8
mov r8d, r15d
lea rdx, str.___SystemRoot___system32powrprof.dll___d
call qword [sym.imp.USER32.dll_wsprintfW]
jmp 0x14003c80f
mov r9d, r15d
lea r8, [rbp + 0x440]
lea rdx, str.__s___d
call qword [sym.imp.USER32.dll_wsprintfW]
lea rcx, [rbp + 0x20]
call qword [sym.imp.KERNEL32.dll_lstrlenW]
lea r15d, [rax*2 + 2]
mov r8, qword [rsp + 0x70]
lea rdx, str.LEAVE__s
lea rcx, [rsp + 0x78]
call fcn.140008d50
mov ebx, dword [r13 + 4]
lea rax, str.TPwrLoadDisplayString
mov qword [rbp - 0x50], rax
lea rcx, str.c:users_scddocumentsmyworkproject__dynabooksystemdriverdsd_fordnbk0001_dev_bcmcentennial_rs5dynabookecoservice_tpowersaverstaticlib_tpowersaver.cpp
mov qword [rbp - 0x48], rcx
mov dword [rbp - 0x40], 0x721
lea rcx, str.__TPwrLoadDisplayString_
mov qword [rbp - 0x38], rcx
lea rcx, [0x1402a214c]
mov qword [rbp - 0x30], rcx
mov dword [rbp - 0x28], 3
mov r8, rax
lea rdx, str.ENTER__s
lea rcx, [rbp - 0x48]
call fcn.140008d50
nop
mov r9d, ebx
lea r8, [rbp + 0x440]
lea rdx, str.__s___d
lea rcx, [rbp + 0x230]
call qword [sym.imp.USER32.dll_wsprintfW]
lea rcx, [rbp + 0x230]
call qword [sym.imp.KERNEL32.dll_lstrlenW]
lea eax, [rax*2 + 2]
mov dword [rbp - 0x60], eax
mov r8, qword [rbp - 0x50]
lea rdx, str.LEAVE__s
lea rcx, [rbp - 0x48]
call fcn.140008d50
lea rdx, str.PowerWritePossibleFriendlyName
mov rcx, r14
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
test rax, rax
jne 0x14003c8f3
lea ebx, [rax + 3]
lea r15, [0x1402ad428]
jmp 0x14003c954
mov dword [rsp + 0x28], r15d
lea rcx, [rbp + 0x20]
mov qword [rsp + 0x20], rcx
mov r9d, r12d
mov r8, rsi
lea r15, [0x1402ad428]
mov rdx, r15
xor ecx, ecx
call rax
test eax, eax
je 0x14003c952
sub eax, 5
je 0x14003c94b
sub eax, 0xb2
je 0x14003c944
sub eax, 0x33
je 0x14003c93d
cmp eax, 0x19
je 0x14003c936
mov ebx, 0xffffffff
jmp 0x14003c954
mov ebx, 8
jmp 0x14003c954
mov ebx, 7
jmp 0x14003c954
mov ebx, 6
jmp 0x14003c954
mov ebx, 5
jmp 0x14003c954
mov ebx, edi
lea rax, str.c:users_scddocumentsmyworkproject__dynabooksystemdriverdsd_fordnbk0001_dev_bcmcentennial_rs5dynabookecoservice_tpowersaverstaticlib_tpowersaver.cpp
mov qword [rsp + 0x40], rax
mov dword [rsp + 0x48], 0x6cf
lea rax, str.__CreateTPSItem_
mov qword [rsp + 0x50], rax
lea rax, [0x1402a214c]
mov qword [rsp + 0x58], rax
mov dword [rsp + 0x60], 3
mov r8d, ebx
lea rdx, str.PowrProf_PowerWritePossibleFriendlyName_returned:__d
lea rcx, [rsp + 0x40]
call fcn.140008d50
test ebx, ebx
jne 0x14003cb95
lea rdx, str.PowerWritePossibleDescription
mov rcx, r14
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
test rax, rax
jne 0x14003c9be
lea ebx, [rax + 3]
jmp 0x14003ca1d
mov ecx, dword [rbp - 0x60]
mov dword [rsp + 0x28], ecx
lea rcx, [rbp + 0x230]
mov qword [rsp + 0x20], rcx
mov r9d, r12d
mov r8, rsi
mov rdx, r15
xor ecx, ecx
call rax
test eax, eax
je 0x14003ca1b
sub eax, 5
je 0x14003ca14
sub eax, 0xb2
je 0x14003ca0d
sub eax, 0x33
je 0x14003ca06
cmp eax, 0x19
je 0x14003c9ff
mov ebx, 0xffffffff
jmp 0x14003ca1d
mov ebx, 8
jmp 0x14003ca1d
mov ebx, 7
jmp 0x14003ca1d
mov ebx, 6
jmp 0x14003ca1d
mov ebx, 5
jmp 0x14003ca1d
mov ebx, edi
lea rax, str.c:users_scddocumentsmyworkproject__dynabooksystemdriverdsd_fordnbk0001_dev_bcmcentennial_rs5dynabookecoservice_tpowersaverstaticlib_tpowersaver.cpp
mov qword [rsp + 0x40], rax
mov dword [rsp + 0x48], 0x6d3
lea rax, str.__CreateTPSItem_
mov qword [rsp + 0x50], rax
lea rax, [0x1402a214c]
mov qword [rsp + 0x58], rax
mov dword [rsp + 0x60], 3
mov r8d, ebx
lea rdx, str.PowrProf_PowerWritePossibleDescription_returned:__d
lea rcx, [rsp + 0x40]
call fcn.140008d50
test ebx, ebx
jne 0x14003cb88
mov eax, dword [r13 + 0x18]
mov dword [rsp + 0x38], eax
mov rax, qword [r13 + 0x10]
mov qword [rsp + 0x30], rax
mov dword [rsp + 0x28], r12d
mov eax, dword [r13 + 8]
mov dword [rsp + 0x20], eax
mov r9, rsi
mov rcx, r14
call fcn.14002ba90
mov ebx, eax
lea r13, str.c:users_scddocumentsmyworkproject__dynabooksystemdriverdsd_fordnbk0001_dev_bcmcentennial_rs5dynabookecoservice_tpowersaverstaticlib_tpowersaver.cpp
mov qword [rsp + 0x40], r13
mov dword [rsp + 0x48], 0x6d7
lea rax, str.__CreateTPSItem_
mov qword [rsp + 0x50], rax
lea rax, [0x1402a214c]
mov qword [rsp + 0x58], rax
mov dword [rsp + 0x60], 3
mov r8d, ebx
lea rdx, str.PowrProf_PowerWritePossibleValue_returned:__d
lea rcx, [rsp + 0x40]
call fcn.140008d50
test ebx, ebx
jne 0x14003cb63
mov r13, qword [rbp - 0x58]
inc r12d
cmp r12d, dword [r13 + 0x24]
jb 0x14003c660
lea rbx, [r13 + 0xc]
mov rax, qword [rsi]
cmp rax, qword [0x1402ad408]
jne 0x14003cb2f
mov rax, qword [rsi + 8]
cmp rax, qword [0x1402ad410]
jne 0x14003cb2f
mov rax, qword [rsi]
cmp rax, qword [0x1402ad3f8]
jne 0x14003cb2f
mov rax, qword [rsi + 8]
cmp rax, qword [0x1402ad400]
je 0x14003d08b
test rbx, rbx
je 0x14003d08b
mov eax, dword [rbx]
mov dword [rsp + 0x28], eax
mov qword [rsp + 0x20], rsi
lea r8, [0x14023e520]
mov rcx, r14
call fcn.14002b630
test eax, eax
je 0x14003cba2
mov dword [rsp + 0x48], 0x6e4
jmp 0x14003c5cf
mov dword [rsp + 0x48], 0x6d8
lea rax, str.__CreateTPSItem_
mov qword [rsp + 0x50], rax
lea rax, [0x1402a214c]
mov qword [rsp + 0x58], rax
jmp 0x14003d067
mov dword [rsp + 0x48], 0x6d4
jmp 0x14003c5cf
mov dword [rsp + 0x48], 0x6d0
jmp 0x14003c5cf
mov eax, dword [rbx + 4]
mov dword [rsp + 0x28], eax
mov qword [rsp + 0x20], rsi
lea r8, [0x14023e520]
mov rcx, r14
call fcn.14002b770
test eax, eax
je 0x14003cbce
mov dword [rsp + 0x48], 0x6e7
jmp 0x14003c5cf
mov eax, dword [rbx + 8]
mov dword [rsp + 0x28], eax
mov qword [rsp + 0x20], rsi
lea r8, [0x14023e4c0]
mov rcx, r14
call fcn.14002b630
test eax, eax
je 0x14003cbfa
mov dword [rsp + 0x48], 0x6eb
jmp 0x14003c5cf
mov eax, dword [rbx + 0xc]
mov dword [rsp + 0x28], eax
mov qword [rsp + 0x20], rsi
lea r8, [0x14023e4c0]
mov rcx, r14
call fcn.14002b770
test eax, eax
je 0x14003cc26
mov dword [rsp + 0x48], 0x6ee
jmp 0x14003c5cf
mov eax, dword [rbx + 0x10]
mov dword [rsp + 0x28], eax
mov qword [rsp + 0x20], rsi
lea r8, [0x14023e450]
mov rcx, r14
call fcn.14002b630
test eax, eax
je 0x14003cc52
mov dword [rsp + 0x48], 0x6f2
jmp 0x14003c5cf
mov eax, dword [rbx + 0x14]
mov dword [rsp + 0x28], eax
mov qword [rsp + 0x20], rsi
lea r8, [0x14023e450]
mov rcx, r14
call fcn.14002b770
test eax, eax
je 0x14003cc7e
mov dword [rsp + 0x48], 0x6f5
jmp 0x14003c5cf
mov r8, qword [rbp - 0x20]
mov rcx, r14
call fcn.14002b5a0
mov eax, dword [rbx]
mov dword [rsp + 0x28], eax
mov qword [rsp + 0x20], rsi
lea r8, [0x14023e520]
mov rcx, r14
call fcn.14002b6d0
test eax, eax
je 0x14003ccb5
mov dword [rsp + 0x48], 0x6fb
jmp 0x14003c5cf
mov eax, dword [rbx + 4]
mov dword [rsp + 0x28], eax
mov qword [rsp + 0x20], rsi
lea r8, [0x14023e520]
mov rcx, r14
call fcn.14002b810
test eax, eax
je 0x14003cce1
mov dword [rsp + 0x48], 0x6fe
jmp 0x14003c5cf
mov eax, dword [rbx + 8]
mov dword [rsp + 0x28], eax
mov qword [rsp + 0x20], rsi
lea r8, [0x14023e4c0]
mov rcx, r14
call fcn.14002b6d0
test eax, eax
je 0x14003cd0d
mov dword [rsp + 0x48], 0x702
jmp 0x14003c5cf
mov eax, dword [rbx + 0xc]
mov dword [rsp + 0x28], eax
mov qword [rsp + 0x20], rsi
lea r8, [0x14023e4c0]
mov rcx, r14
call fcn.14002b810
test eax, eax
je 0x14003cd39
mov dword [rsp + 0x48], 0x705
jmp 0x14003c5cf
mov eax, dword [rbx + 0x10]
mov dword [rsp + 0x28], eax
mov qword [rsp + 0x20], rsi
lea r8, [0x14023e450]
mov rcx, r14
call fcn.14002b6d0
test eax, eax
je 0x14003cd65
mov dword [rsp + 0x48], 0x709
jmp 0x14003c5cf
mov eax, dword [rbx + 0x14]
mov dword [rsp + 0x28], eax
mov qword [rsp + 0x20], rsi
lea r8, [0x14023e450]
mov rcx, r14
call fcn.14002b810
test eax, eax
je 0x14003d08b
mov dword [rsp + 0x48], 0x70c
jmp 0x14003c5cf
lea r12, [0x1402ad428]
mov r9, r12
lea r8, [0x14023e530]
mov rcx, r14
call fcn.14002b3b0
test eax, eax
je 0x14003cdbb
cmp eax, 6
jne 0x14003d08b
xor edx, edx
mov r8d, 0x208
lea rcx, [rbp + 0x20]
call fcn.1401f5d40
xor edx, edx
mov r8d, 0x208
lea rcx, [rbp + 0x230]
call fcn.1401f5d40
lea rdi, str.TPwrLoadDisplayString
mov qword [rbp - 0x50], rdi
mov qword [rbp - 0x48], r13
mov dword [rbp - 0x40], 0x721
lea rsi, str.__TPwrLoadDisplayString_
mov qword [rbp - 0x38], rsi
lea r15, [0x1402a214c]
mov qword [rbp - 0x30], r15
mov dword [rbp - 0x28], 3
mov r8, rdi
lea rdx, str.ENTER__s
lea rcx, [rbp - 0x48]
call fcn.140008d50
nop
mov r9d, LoadRegTypeLib
lea r8, [rbp + 0x440]
lea rdx, str.__s___d
lea rcx, [rbp + 0x20]
call qword [sym.imp.USER32.dll_wsprintfW]
lea rcx, [rbp + 0x20]
call qword [sym.imp.KERNEL32.dll_lstrlenW]
lea ebx, [rax*2 + 2]
mov r8, qword [rbp - 0x50]
lea rdx, str.LEAVE__s
lea rcx, [rbp - 0x48]
call fcn.140008d50
mov qword [rsp + 0x70], rdi
mov qword [rsp + 0x78], r13
mov dword [rbp - 0x80], 0x721
mov qword [rbp - 0x78], rsi
mov qword [rbp - 0x70], r15
mov dword [rbp - 0x68], 3
mov r8, rdi
lea rdx, str.ENTER__s
lea rcx, [rsp + 0x78]
call fcn.140008d50
nop
mov r9d, reloc.OLEAUT32.dll_LoadRegTypeLib
lea r8, [rbp + 0x440]
lea rdx, str.__s___d
lea rcx, [rbp + 0x230]
call qword [sym.imp.USER32.dll_wsprintfW]
lea rcx, [rbp + 0x230]
call qword [sym.imp.KERNEL32.dll_lstrlenW]
lea esi, [rax*2 + 2]
mov r8, qword [rsp + 0x70]
lea rdx, str.LEAVE__s
lea rcx, [rsp + 0x78]
call fcn.140008d50
lea rdx, str.PowerWriteFriendlyName
mov rcx, r14
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
xor edi, edi
test rax, rax
je 0x14003d04e
mov rcx, qword [0x1402ad428]
sub rcx, qword [0x14023e410]
jne 0x14003cf23
mov rcx, qword [0x1402ad430]
sub rcx, qword [0x14023e418]
mov r9, r12
test rcx, rcx
cmove r9, rdi
mov dword [rsp + 0x28], ebx
lea rcx, [rbp + 0x20]
mov qword [rsp + 0x20], rcx
lea r8, [0x14023e530]
xor edx, edx
xor ecx, ecx
call rax
mov ebx, 0xffffffff
test eax, eax
je 0x14003cf86
sub eax, 5
je 0x14003cf7f
sub eax, 0xb2
je 0x14003cf78
sub eax, 0x33
je 0x14003cf71
cmp eax, 0x19
je 0x14003cf6a
mov eax, ebx
jmp 0x14003cf88
mov eax, 8
jmp 0x14003cf88
mov eax, 7
jmp 0x14003cf88
mov eax, 6
jmp 0x14003cf88
mov eax, 5
jmp 0x14003cf88
mov eax, edi
test eax, eax
jne 0x14003d04e
lea rdx, str.PowerWriteDescription
mov rcx, r14
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
test rax, rax
je 0x14003d044
mov rcx, qword [0x1402ad428]
sub rcx, qword [0x14023e410]
jne 0x14003cfc7
mov rcx, qword [0x1402ad430]
sub rcx, qword [0x14023e418]
test rcx, rcx
cmove r12, rdi
mov dword [rsp + 0x28], esi
lea rcx, [rbp + 0x230]
mov qword [rsp + 0x20], rcx
mov r9, r12
lea r8, [0x14023e530]
xor edx, edx
xor ecx, ecx
call rax
test eax, eax
je 0x14003d022
sub eax, 5
je 0x14003d01b
sub eax, 0xb2
je 0x14003d014
sub eax, 0x33
je 0x14003d00d
cmp eax, 0x19
jne 0x14003d024
lea ebx, [rax - 0x11]
jmp 0x14003d024
mov ebx, 7
jmp 0x14003d024
mov ebx, 6
jmp 0x14003d024
mov ebx, 5
jmp 0x14003d024
mov ebx, edi
test ebx, ebx
jne 0x14003d044
xor r9d, r9d
xor r8d, r8d
mov rcx, r14
call fcn.14002bbd0
test eax, eax
je 0x14003d08b
mov dword [rsp + 0x48], 0x692
jmp 0x14003d056
mov dword [rsp + 0x48], 0x68f
jmp 0x14003d056
mov dword [rsp + 0x48], 0x68a
lea rax, str.__CreateTPSItem_
mov qword [rsp + 0x50], rax
mov qword [rsp + 0x58], r15
mov ebx, 0x80004005
mov qword [rsp + 0x40], r13
mov dword [rsp + 0x60], edi
mov r8d, ebx
lea rdx, str.Error_Code:_0x_x
lea rcx, [rsp + 0x40]
call fcn.140008d50
mov edi, ebx
mov r8, qword [rbp - 0x18]
lea rdx, str.LEAVE__s
lea rcx, [rbp - 0x10]
call fcn.140008d50
mov eax, edi
mov rcx, qword [rbp + 0x650]
xor rcx, rsp
call fcn.140072680
mov rbx, qword [rsp + 0x7a8]
add rsp, 0x760
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
ret