Function at 0x140097540
Capabilities:
Query or enumerate registry value

Disassembly:
push rbx
push r13
sub rsp, 0x178
mov rax, qword [0x1403749c0]
xor rax, rsp
mov qword [rsp + 0x140], rax
mov r13, rdx
mov qword [rsp + 0xb8], rdx
mov rbx, rcx
mov qword [rsp + 0xb0], rcx
xor eax, eax
lea rdx, [0x1402405f8]
mov rcx, r13
mov dword [rsp + 0xa0], eax
call fcn.140097510
test eax, eax
je 0x1400975ba
mov rcx, rbx
call fcn.140053eb0
mov r8, rbx
lea rdx, str.UTF_16LE
lea rcx, [0x1402212c4]
lea r9, [rax*2 + 2]
call fcn.140085230
jmp 0x140097892
movzx eax, byte [r13 + 0xf]
movzx ecx, byte [r13 + 0xe]
movzx edx, byte [r13 + 0xd]
movzx r8d, byte [r13 + 0xc]
movzx r10d, byte [r13 + 0xb]
movzx r11d, byte [r13 + 0xa]
movzx ebx, byte [r13 + 9]
mov r9, qword [rsp + 0xb8]
mov dword [rsp + 0x90], eax
mov dword [rsp + 0x88], ecx
mov rcx, qword [rsp + 0xb8]
movzx r9d, byte [r9 + 3]
mov dword [rsp + 0x80], edx
mov edx, 0x80
mov dword [rsp + 0x78], r8d
lea r8, str.SystemCurrentControlSetControlMediaCategories_02X_02X_02X_02X__02X_02X__02X_02X__02X_02X__02X_02X_02X_02X_02X_02X
movzx eax, byte [rcx + 2]
lea rcx, [rsp + 0xc0]
mov dword [rsp + 0x70], r10d
mov dword [rsp + 0x68], r11d
mov dword [rsp + 0x60], ebx
mov qword [rsp + 0x1a0], rbp
movzx ebp, byte [r13 + 7]
mov qword [rsp + 0x170], rsi
movzx esi, byte [r13 + 6]
mov qword [rsp + 0x168], rdi
movzx edi, byte [r13 + 8]
mov dword [rsp + 0x58], edi
mov dword [rsp + 0x50], esi
mov dword [rsp + 0x48], ebp
mov qword [rsp + 0x160], r12
movzx r12d, byte [r13]
mov qword [rsp + 0x158], r14
movzx r14d, byte [r13 + 4]
mov dword [rsp + 0x40], r14d
mov qword [rsp + 0x150], r15
movzx r15d, byte [r13 + 5]
movzx r13d, byte [r13 + 1]
mov dword [rsp + 0x38], r15d
mov dword [rsp + 0x30], r12d
mov dword [rsp + 0x28], r13d
mov dword [rsp + 0x20], eax
call fcn.140053330
lea rcx, [rsp + 0xc0]
call fcn.140053500
lea r8, [rsp + 0xc0]
lea rdx, [0x1402212c4]
lea rcx, str.UTF_16LE
lea r9, [rax + 1]
call fcn.140085230
mov rdi, rax
mov r9d, 1
lea rax, [rsp + 0xa8]
mov rdx, rdi
xor r8d, r8d
mov qword [rsp + 0x20], rax
mov rcx, 0xffffffff80000002
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
mov rcx, rdi
mov ebx, eax
call fcn.140084140
mov r15, qword [rsp + 0x150]
mov r14, qword [rsp + 0x158]
mov r12, qword [rsp + 0x160]
mov rbp, qword [rsp + 0x1a0]
test ebx, ebx
jne 0x1400977d9
mov rcx, qword [rsp + 0xa8]
lea rax, [rsp + 0xa0]
mov qword [rsp + 0x28], rax
lea rdx, str.Name
xor esi, esi
xor r9d, r9d
xor r8d, r8d
mov qword [rsp + 0x20], rsi
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
je 0x140097778
mov rcx, qword [rsp + 0xa8]
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
jmp 0x1400977d9
mov ecx, dword [rsp + 0xa0]
add rcx, 2
call fcn.140084170
mov rcx, qword [rsp + 0xa8]
mov rdi, rax
test rax, rax
je 0x140097770
lea rax, [rsp + 0xa0]
xor r9d, r9d
mov qword [rsp + 0x28], rax
lea rdx, str.Name
xor r8d, r8d
mov qword [rsp + 0x20], rdi
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
mov rcx, qword [rsp + 0xa8]
mov ebx, eax
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov rcx, rdi
test ebx, ebx
je 0x14009780b
call fcn.140084140
mov rcx, qword [rsp + 0xb0]
call fcn.140053eb0
mov r8, qword [rsp + 0xb0]
lea rdx, str.UTF_16LE
lea rcx, [0x1402212c4]
lea r9, [rax*2 + 2]
call fcn.140085230
jmp 0x140097882
mov eax, dword [rsp + 0xa0]
shr rax, 1
mov word [rdi + rax*2], si
call fcn.140053eb0
mov r8, rdi
lea rdx, str.UTF_16LE
lea rcx, [0x1402212c4]
lea r9, [rax*2 + 2]
call fcn.140085230
mov rcx, rdi
mov rbx, rax
call fcn.140084140
test rbx, rbx
jne 0x14009787f
mov rcx, qword [rsp + 0xb0]
call fcn.140053eb0
mov r8, qword [rsp + 0xb0]
lea rdx, str.UTF_16LE
lea rcx, [0x1402212c4]
lea r9, [rax*2 + 2]
call fcn.140085230
mov rbx, rax
mov rax, rbx
mov rsi, qword [rsp + 0x170]
mov rdi, qword [rsp + 0x168]
mov rcx, qword [rsp + 0x140]
xor rcx, rsp
call fcn.140158fa0
add rsp, 0x178
pop r13
pop rbx
ret