Function at 0x14000a7e0
Capabilities:
Print debug messages
Query or enumerate registry key
Query or enumerate registry value

Disassembly:
mov r11, rsp
mov qword [r11 + 0x20], rsi
push rbp
lea rbp, [r11 - 0x3f8]
sub rsp, 0x4f0
mov rax, qword [0x14004e010]
xor rax, rsp
mov qword [rbp + 0x3e0], rax
movaps xmm0, xmmword [str.SYSTEMCurrentControlSetEnumUSB]
lea rcx, [rbp + 4]
movaps xmm1, xmmword [0x1400410c0]
xor edx, edx
mov eax, dword [0x1400410f0]
mov r8d, 0x1c4
movaps xmmword [rbp - 0x40], xmm0
movaps xmm0, xmmword [0x1400410d0]
movaps xmmword [rbp - 0x30], xmm1
movaps xmm1, xmmword [0x1400410e0]
mov qword [r11 + 0x10], rdi
movaps xmmword [rbp - 0x20], xmm0
movaps xmmword [rbp - 0x10], xmm1
mov qword [r11 + 0x18], r14
mov dword [rbp], eax
call fcn.14001c4c0
xor r14d, r14d
mov dword [rsp + 0x68], 8
xor edx, edx
mov qword [rsp + 0x70], r14
mov r8d, 0x208
mov dword [rsp + 0x60], r14d
lea rcx, [rbp + 0x1d0]
call fcn.14001c4c0
xor eax, eax
mov dword [rsp + 0x64], r14d
mov qword [rbp - 0x60], rax
lea rdx, str.SOFTWAREAtherosVistaAddOn
mov qword [rbp - 0x58], rax
mov r9d, 0x20019
mov qword [rbp - 0x50], rax
xor r8d, r8d
mov qword [rbp - 0x48], rax
mov rcx, 0xffffffff80000002
mov qword [rbp - 0x70], rax
mov esi, r14d
mov dword [rbp - 0x68], eax
lea rax, [rbp - 0x80]
mov qword [rsp + 0x20], rax
mov dword [rsp + 0x78], 4
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
je 0x14000a90a
lea rcx, str.GetCustomerDefineCod_Failed_open_SOFTWAREAtherosVistaAddOn_registry.__r_n
call qword [sym.imp.KERNEL32.dll_OutputDebugStringW]
xor edx, edx
mov dword [rsp + 0x20], 0x20
lea r9, [rbp - 0x60]
xor r8d, r8d
lea ecx, [rdx + 5]
call qword [sym.imp.POWRPROF.dll_CallNtPowerInformation]
test eax, eax
jne 0x14000a972
cmp byte [rbp - 0x5f], 1
jne 0x14000a972
lea edi, [rax + 3]
jmp 0x14000a996
mov rcx, qword [rbp - 0x80]
lea rax, [rsp + 0x78]
mov qword [rsp + 0x28], rax
lea rdx, [0x140040e48]
lea rax, [rsp + 0x64]
xor r9d, r9d
xor r8d, r8d
mov qword [rsp + 0x20], rax
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
je 0x14000a952
lea rcx, str.GetCustomerDefineCod_Failed_query_Cod.__r_n
call qword [sym.imp.KERNEL32.dll_OutputDebugStringW]
mov rcx, qword [rbp - 0x80]
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
jmp 0x14000a8de
mov rcx, qword [rbp - 0x80]
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, dword [rsp + 0x64]
cmp eax, 1
je 0x14000a991
cmp eax, 3
jne 0x14000a8de
mov edi, eax
jmp 0x14000a996
lea rcx, [rbp - 0x70]
call qword [sym.imp.KERNEL32.dll_GetSystemPowerStatus]
test eax, eax
je 0x14000a991
movzx eax, byte [rbp - 0x6f]
cmp al, 0x80
je 0x14000a991
mov edi, 3
cmp al, 0xff
jne 0x14000a996
mov edi, 1
lea rax, [rsp + 0x70]
mov r9d, 0x20019
xor r8d, r8d
mov qword [rsp + 0x20], rax
lea rdx, [rbp - 0x40]
mov rcx, 0xffffffff80000002
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x14000aaa7
mov rcx, qword [rsp + 0x70]
lea rax, [rsp + 0x60]
mov qword [rsp + 0x58], r14
xor r9d, r9d
mov qword [rsp + 0x50], r14
xor r8d, r8d
mov qword [rsp + 0x48], r14
xor edx, edx
mov qword [rsp + 0x40], r14
mov qword [rsp + 0x38], r14
mov qword [rsp + 0x30], r14
mov qword [rsp + 0x28], r14
mov qword [rsp + 0x20], rax
call qword [sym.imp.ADVAPI32.dll_RegQueryInfoKeyW]
test eax, eax
jne 0x14000aaa7
mov qword [rsp + 0x500], rbx
mov ebx, r14d
cmp dword [rsp + 0x60], ebx
jbe 0x14000aa9f
nop
xor edx, edx
lea rcx, [rbp + 0x1d0]
mov r8d, 0x208
call fcn.14001c4c0
mov rcx, qword [rsp + 0x70]
lea r9, [rsp + 0x68]
mov qword [rsp + 0x38], r14
lea r8, [rbp + 0x1d0]
mov qword [rsp + 0x30], r14
mov edx, ebx
mov qword [rsp + 0x28], r14
mov qword [rsp + 0x20], r14
mov dword [rsp + 0x68], 0x104
call qword [sym.imp.ADVAPI32.dll_RegEnumKeyExW]
test eax, eax
jne 0x14000aa97
lea rcx, [rbp + 0x1d0]
call fcn.14000a5d0
test eax, eax
je 0x14000aa97
mov rcx, qword [rsp + 0x70]
lea r8, [rbp - 0x78]
mov r9d, edi
lea rdx, [rbp + 0x1d0]
call fcn.14000a2f0
mov esi, eax
inc ebx
cmp ebx, dword [rsp + 0x60]
jb 0x14000aa20
mov rbx, qword [rsp + 0x500]
mov rcx, qword [rsp + 0x70]
mov r14, qword [rsp + 0x510]
mov rdi, qword [rsp + 0x508]
test rcx, rcx
je 0x14000aac7
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, esi
mov rcx, qword [rbp + 0x3e0]
xor rcx, rsp
call fcn.14001a550
mov rsi, qword [rsp + 0x518]
add rsp, 0x4f0
pop rbp
ret