Function at 0x14000a5b0
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 [0x140052010]
xor rax, rsp
mov qword [rbp + 0x3e0], rax
movaps xmm0, xmmword [str.SYSTEMCurrentControlSetEnumUSB]
lea rcx, [rbp + 4]
movaps xmm1, xmmword [0x1400455f0]
xor edx, edx
mov eax, dword [0x140045620]
mov r8d, 0x1c4
movaps xmmword [rbp - 0x40], xmm0
movaps xmm0, xmmword [0x140045600]
movaps xmmword [rbp - 0x30], xmm1
movaps xmm1, xmmword [0x140045610]
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.14001bd50
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.14001bd50
xor eax, eax
mov dword [rsp + 0x64], r14d
xorps xmm0, xmm0
mov qword [rbp - 0x70], rax
mov dword [rbp - 0x68], eax
lea rdx, str.SOFTWAREAtherosVistaAddOn
lea rax, [rbp - 0x80]
mov dword [rsp + 0x78], 4
mov r9d, 0x20019
mov qword [rsp + 0x20], rax
xor r8d, r8d
mov rcx, 0xffffffff80000002
mov esi, r14d
movups xmmword [rbp - 0x60], xmm0
movups xmmword [rbp - 0x50], xmm0
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
je 0x14000a6d5
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 0x14000a73d
cmp byte [rbp - 0x5f], 1
jne 0x14000a73d
lea edi, [rax + 3]
jmp 0x14000a761
mov rcx, qword [rbp - 0x80]
lea rax, [rsp + 0x78]
mov qword [rsp + 0x28], rax
lea rdx, [0x140045378]
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 0x14000a71d
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 0x14000a6a9
mov rcx, qword [rbp - 0x80]
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, dword [rsp + 0x64]
cmp eax, 1
je 0x14000a75c
cmp eax, 3
jne 0x14000a6a9
mov edi, eax
jmp 0x14000a761
lea rcx, [rbp - 0x70]
call qword [sym.imp.KERNEL32.dll_GetSystemPowerStatus]
test eax, eax
je 0x14000a75c
movzx eax, byte [rbp - 0x6f]
cmp al, 0x80
je 0x14000a75c
mov edi, 3
cmp al, 0xff
jne 0x14000a761
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 0x14000a877
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 0x14000a877
mov qword [rsp + 0x500], rbx
mov ebx, r14d
cmp dword [rsp + 0x60], ebx
jbe 0x14000a86f
nop word [rax + rax]
xor edx, edx
lea rcx, [rbp + 0x1d0]
mov r8d, 0x208
call fcn.14001bd50
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 0x14000a867
lea rcx, [rbp + 0x1d0]
call fcn.14000a3a0
test eax, eax
je 0x14000a867
mov rcx, qword [rsp + 0x70]
lea r8, [rbp - 0x78]
mov r9d, edi
lea rdx, [rbp + 0x1d0]
call fcn.14000a0c0
mov esi, eax
inc ebx
cmp ebx, dword [rsp + 0x60]
jb 0x14000a7f0
mov rbx, qword [rsp + 0x500]
mov rcx, qword [rsp + 0x70]
mov r14, qword [rsp + 0x510]
mov rdi, qword [rsp + 0x508]
test rcx, rcx
je 0x14000a897
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, esi
mov rcx, qword [rbp + 0x3e0]
xor rcx, rsp
call fcn.1400198d0
mov rsi, qword [rsp + 0x518]
add rsp, 0x4f0
pop rbp
ret