Function at 0x14000a5b0
Capabilities:
Get common file path
Query or enumerate registry value

Disassembly:
push rbp
push r12
push r13
lea rbp, [rsp - 0xf40]
mov eax, 0x1040
call fcn.1401539b0
sub rsp, rax
mov qword [rbp - 0x48], 0xfffffffffffffffe
mov qword [rsp + 0x1068], rbx
mov qword [rsp + 0x1070], rsi
mov qword [rsp + 0x1078], rdi
mov rax, qword [0x140214eb8]
xor rax, rsp
mov qword [rbp + 0xf30], rax
mov rsi, rcx
mov ebx, 1
mov r8d, ebx
lea rdx, str.Log
lea rcx, [rsp + 0x78]
call fcn.140001060
nop
xor r13d, r13d
cmp dword [rbp - 0x80], ebx
jne 0x14000a84e
mov dword [rsp + 0x40], 4
lea rax, [rsp + 0x40]
mov qword [rsp + 0x28], rax
lea rax, [rsp + 0x44]
mov qword [rsp + 0x20], rax
xor r9d, r9d
xor r8d, r8d
lea rdx, [0x1401d8bd0]
mov rcx, qword [rsp + 0x78]
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x14000a84e
cmp dword [rsp + 0x44], ebx
jne 0x14000a84e
mov word [rbp + 0x520], r13w
xor edx, edx
mov r8d, 0x206
lea rcx, [rbp + 0x522]
call fcn.140152380
lea rdx, [rbp + 0x520]
mov qword [rsp + 0x20], rdx
xor r9d, r9d
xor r8d, r8d
lea edx, [rbx + 0x22]
xor ecx, ecx
call qword [sym.imp.SHELL32.dll_SHGetFolderPathW]
test eax, eax
js 0x14000a84e
mov word [rbp + 0x200], r13w
xor edx, edx
mov r8d, 0x206
lea rcx, [rbp + 0x202]
call fcn.140152380
mov word [rbp - 0x10], r13w
xor edx, edx
mov r8d, 0x206
lea rcx, [rbp - 0xe]
call fcn.140152380
lea r9, str.OEMPower_ManagementLog
lea r8, [rbp + 0x520]
lea rdx, str._s_s_
lea rcx, [rbp + 0x200]
call fcn.140008830
mov qword [rsp + 0x38], r13
mov qword [rsp + 0x30], r13
mov dword [rsp + 0x28], 0x104
lea rax, [rbp + 0x410]
mov qword [rsp + 0x20], rax
or r9d, 0xffffffff
lea r8, [rbp + 0x200]
xor edx, edx
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_WideCharToMultiByte]
lea rcx, [rbp + 0x410]
call qword [sym.imp.dbghelp.dll_MakeSureDirectoryPathExists]
lea r9, [rbp + 0x200]
lea r8, str._sePowerSvc.txt
mov edx, 0x104
lea rcx, [rbp - 0x10]
call fcn.14014e4f0
lea ecx, [rbx + 0x47]
call fcn.140014a14
mov rdi, rax
mov qword [rsp + 0x70], rax
test rax, rax
je 0x14000a7a8
mov qword [rsp + 0x60], 7
mov qword [rsp + 0x58], r13
mov word [rsp + 0x48], r13w
lea r8d, [rbx + 8]
lea rdx, [0x1401d8bd0]
lea rcx, [rsp + 0x48]
call fcn.140008390
lea rdx, [rsp + 0x48]
mov rcx, rdi
call fcn.140012af0
jmp 0x14000a7ab
mov rax, r13
mov qword [rsi], rax
mov ecx, 0x98
call fcn.140014a14
mov r12, rax
mov qword [rsp + 0x70], rax
test rax, rax
je 0x14000a840
lea rax, [rsp + 0x48]
mov qword [rbp - 0x50], rax
mov qword [rsp + 0x60], 7
mov qword [rsp + 0x58], r13
mov word [rsp + 0x48], r13w
mov r8d, 0x14
lea rdx, str._d__t___s___e___m
lea rcx, [rsp + 0x48]
call fcn.140008390
nop
mov qword [rbp - 0x28], 7
mov qword [rbp - 0x30], r13
mov word [rbp - 0x40], r13w
xor eax, eax
or rcx, 0xffffffffffffffff
lea rdi, [rbp - 0x10]
repne scasw ax, word [rdi]
not rcx
lea r8, [rcx - 1]
lea rdx, [rbp - 0x10]
lea rcx, [rbp - 0x40]
call fcn.140008390
nop
lea r8, [rsp + 0x48]
lea rdx, [rbp - 0x40]
mov rcx, r12
call fcn.140010240
jmp 0x14000a843
mov rax, r13
mov rdx, rax
mov rcx, qword [rsi]
call fcn.140012be0
cmp qword [rsi], 0
je 0x14000a8c7
mov word [rbp + 0x730], r13w
xor edx, edx
mov r8d, 0x7fe
lea rcx, [rbp + 0x732]
call fcn.140152380
lea rdx, str.ePowerService::InitLog___:_SUCCEEDED
lea rcx, [rbp + 0x730]
call fcn.140008860
mov qword [rbp - 0x60], 7
mov qword [rbp - 0x68], r13
mov word [rbp - 0x78], r13w
xor eax, eax
or rcx, 0xffffffffffffffff
lea rdi, [rbp + 0x730]
repne scasw ax, word [rdi]
not rcx
lea r8, [rcx - 1]
lea rdx, [rbp + 0x730]
lea rcx, [rbp - 0x78]
call fcn.140008390
lea rdx, [rbp - 0x78]
mov rcx, qword [rsi]
call fcn.140012c90
cmp dword [0x140222940], 0
jne 0x14000a927
mov qword [0x140223e04], 2
mov dword [0x140223e0c], r13d
mov dword [0x140223e18], 0xbb8
mov eax, dword [0x140217164]
mov dword [0x140223e14], eax
inc eax
mov dword [0x140217164], eax
lea rdx, [0x140223e00]
mov rcx, qword [0x140223de0]
call qword [sym.imp.ADVAPI32.dll_SetServiceStatus]
mov ebx, eax
test eax, eax
jne 0x14000a927
lea rcx, [0x1401da678]
call fcn.140014380
nop
mov rcx, qword [rsp + 0x78]
test rcx, rcx
je 0x14000a937
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, ebx
mov rcx, qword [rbp + 0xf30]
xor rcx, rsp
call fcn.14014e4d0
lea r11, [rsp + 0x1040]
mov rbx, qword [r11 + 0x28]
mov rsi, qword [r11 + 0x30]
mov rdi, qword [r11 + 0x38]
mov rsp, r11
pop r13
pop r12
pop rbp
ret