Function at 0x140001cc0
Capabilities:
Query or enumerate registry value

Disassembly:
mov rax, rsp
push rdi
sub rsp, 0x280
mov qword [rsp + 0x48], 0xfffffffffffffffe
mov qword [rax + 0x10], rbx
mov qword [rax + 0x18], rsi
mov rax, qword [0x14002a010]
xor rax, rsp
mov qword [rsp + 0x270], rax
mov rbx, rcx
mov qword [rsp + 0x50], rcx
lea rax, str.ETDService
mov qword [rcx + 8], rax
xor esi, esi
mov qword [rcx + 0x30], rsi
mov dword [rcx + 0x10], 0x10
mov dword [rcx + 0x14], 2
mov qword [rcx + 0x18], 0x85
mov qword [rcx + 0x20], rsi
mov dword [rcx + 0x28], esi
lea rax, vtable.CServiceMain.0
mov qword [rcx], rax
xor r9d, r9d
xor r8d, r8d
lea edx, [rsi + 1]
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_CreateEventW]
mov qword [rbx + 0x38], rax
test rax, rax
je 0x140001fa4
lea r9, [0x140024c58]
xor r8d, r8d
lea edx, [rsi + 1]
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_CreateEventW]
mov qword [rbx + 0x50], rax
lea rcx, [0x140024c58]
call fcn.140002da0
mov rcx, qword [rbx + 0x50]
call qword [sym.imp.KERNEL32.dll_ResetEvent]
lea r9, str.GlobalWMITpStatusOn
xor r8d, r8d
lea edx, [rsi + 1]
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_CreateEventW]
mov qword [rbx + 0x58], rax
lea rcx, str.GlobalWMITpStatusOn
call fcn.140002da0
mov rcx, qword [rbx + 0x58]
call qword [sym.imp.KERNEL32.dll_ResetEvent]
lea r9, str.GlobalWMITpStatusOff
xor r8d, r8d
lea edx, [rsi + 1]
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_CreateEventW]
mov qword [rbx + 0x60], rax
lea rcx, str.GlobalWMITpStatusOff
call fcn.140002da0
mov rcx, qword [rbx + 0x60]
call qword [sym.imp.KERNEL32.dll_ResetEvent]
call fcn.1400011e0
test eax, eax
je 0x140001e4b
lea rdx, [0x14002c870]
lea rcx, str.Get_HKR_Path_Success__Path_ws_r_n
call fcn.140005cd0
lea r8, [0x14002c870]
mov edx, 0x400
lea rcx, [0x14002c060]
call fcn.14000cb2c
lea rdx, [0x14002c060]
lea rcx, str.HKR_OtherSetting_Path_ws_r_n
call fcn.140005cd0
lea r8, str.OtherSetting
mov edx, 0x400
lea rcx, [0x14002c060]
call fcn.14000cb94
lea rdx, [0x14002c060]
lea rcx, str.HKR_OtherSetting_Path_ws_r_n
call fcn.140005cd0
mov qword [rsp + 0x40], rsi
lea rax, [rsp + 0x40]
mov qword [rsp + 0x20], rax
mov r9d, 0x20019
xor r8d, r8d
lea rdx, [0x14002c060]
mov rcx, 0xffffffff80000002
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x140001ed3
mov dword [rsp + 0x30], esi
mov edi, 0xffffffff
mov dword [rsp + 0x38], 4
mov dword [rsp + 0x34], 4
lea rax, [rsp + 0x34]
mov qword [rsp + 0x28], rax
lea rax, [rsp + 0x30]
mov qword [rsp + 0x20], rax
lea r9, [rsp + 0x38]
xor r8d, r8d
lea rdx, str.CustomerDefinition
mov rcx, qword [rsp + 0x40]
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x140001ed0
cmp dword [rsp + 0x38], 4
cmove edi, dword [rsp + 0x30]
mov dword [rbx + 0x48], edi
mov rcx, qword [rsp + 0x40]
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
cmp dword [rbx + 0x48], 0xffffffff
jne 0x140001f0b
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [rsp + 0x20], eax
lea r9, str.Get_CustomerDefinition_fail_
lea r8, str._s_failed_w_err_0x_08lx
mov edx, 0x104
lea rcx, [rsp + 0x60]
call fcn.140005530
xor r9d, r9d
xor r8d, r8d
lea edx, [r9 + 1]
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_CreateEventW]
mov qword [rbx + 0x40], rax
test rax, rax
je 0x140001f87
lea r9, str.GlobalETDMessage_Recover_ETDCtrl
xor r8d, r8d
xor edx, edx
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_CreateEventW]
mov qword [rbx + 0x70], rax
lea r9, str.GlobalETDMessage_DriverHasUninstalled
xor r8d, r8d
xor edx, edx
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_CreateEventW]
mov qword [rbx + 0x78], rax
call fcn.140004c90
mov qword [rbx + 0x68], rsi
mov rax, rbx
mov rcx, qword [rsp + 0x270]
xor rcx, rsp
call fcn.140006180
lea r11, [rsp + 0x280]
mov rbx, qword [r11 + 0x18]
mov rsi, qword [r11 + 0x20]
mov rsp, r11
pop rdi
ret
call qword [sym.imp.KERNEL32.dll_GetLastError]
nop
mov dword [rsp + 0x34], eax
lea rdx, [0x140028e48]
lea rcx, [rsp + 0x34]
call fcn.140008238
int3
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [rsp + 0x30], eax
lea rdx, [0x140028e48]
lea rcx, [rsp + 0x30]
call fcn.140008238
int3