Function at 0x140125890
Capabilities:
Query or enumerate registry value

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x18], rsi
push rdi
sub rsp, 0x2d0
mov rax, qword [0x1401ea158]
xor rax, rsp
mov qword [rsp + 0x2c0], rax
xor esi, esi
lea r8, [rsp + 0x58]
lea rdx, str.SoftwareAndrea_ElectronicsAEAudioAPO
mov ebp, 1
mov rcx, 0xffffffff80000002
mov dword [0x14020847c], esi
mov qword [0x140208468], rsi
mov dword [0x140208474], esi
mov dword [0x140208470], esi
mov dword [0x140208480], esi
mov qword [0x1402084a8], rsi
mov dword [0x140208484], ebp
mov dword [0x140208478], esi
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyW]
test eax, eax
jne 0x140125963
mov rcx, qword [rsp + 0x58]
lea rax, [rsp + 0x50]
lea r9, [rsp + 0x68]
mov qword [rsp + 0x28], rax
lea rax, [0x140208478]
lea rdx, str.Logging
xor r8d, r8d
mov dword [rsp + 0x50], 4
mov qword [rsp + 0x20], rax
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
mov ecx, dword [0x140208478]
test eax, eax
cmovne ecx, esi
mov dword [0x140208478], ecx
mov rcx, qword [rsp + 0x58]
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
cmp dword [0x140208478], esi
je 0x140125a19
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test rax, rax
je 0x140125a19
lea rdx, [rsp + 0xc0]
mov r8d, pe_nt_image_headers64
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
test eax, eax
je 0x140125a19
lea rcx, [rsp + 0xc0]
call qword [sym.imp.KERNEL32.dll_lstrlenW]
test eax, eax
movsxd rcx, eax
jle 0x1401259c9
cmp word [rsp + rcx*2 + 0xc0], 0x5c
je 0x1401259c9
sub rcx, rbp
sub eax, ebp
test rcx, rcx
jg 0x1401259b4
add eax, ebp
or rcx, 0xffffffffffffffff
mov qword [rsp + 0x38], rsi
cdqe
mov edx, 0x400
lea r8, [rsp + rax*2 + 0xc0]
xor eax, eax
mov rdi, r8
repne scasw ax, word [rdi]
lea rax, [0x14019a300]
mov qword [rsp + 0x30], rax
not rcx
lea rax, [0x140208488]
mov r9d, ecx
xor ecx, ecx
mov dword [rsp + 0x28], 0x14
mov qword [rsp + 0x20], rax
call qword [sym.imp.KERNEL32.dll_WideCharToMultiByte]
xor eax, eax
lea rdx, str.SoftwareRealtekAEAPO
mov r9d, 0x20119
mov qword [0x140208420], rax
mov qword [0x140208428], rax
mov qword [0x140208430], rax
mov qword [0x140208438], rax
mov qword [0x140208440], rax
mov qword [0x140208448], rax
mov qword [0x140208450], rax
mov qword [0x140208458], rax
mov dword [0x140208460], eax
lea rax, [rsp + 0x48]
xor r8d, r8d
mov rcx, 0xffffffff80000002
mov qword [rsp + 0x20], rax
mov ebx, esi
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
lea rdi, [0x140208420]
jne 0x140125b5c
mov rcx, qword [rsp + 0x48]
lea rax, [rsp + 0x40]
lea r9, [rsp + 0x44]
mov qword [rsp + 0x28], rax
lea rax, [rsp + 0x70]
lea rdx, str.CapProperties
xor r8d, r8d
mov dword [rsp + 0x40], 0x44
mov qword [rsp + 0x20], rax
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x140125aea
cmp dword [rsp + 0x40], 0x44
jne 0x140125aea
cmp dword [rsp + 0x70], 0xaeaeaeae
jne 0x140125aea
test dword [rsp + 0x88], 0xfffffee0
cmove ebx, ebp
mov rcx, qword [rsp + 0x48]
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
test ebx, ebx
je 0x140125b5c
lea rcx, [rsp + 0x70]
or r9d, 0xffffffff
lea rdx, str.LoadFiltersInfo_successful
mov rax, qword [rcx]
or r8d, r9d
mov dword [rsp + 0x20], esi
mov qword [rdi], rax
mov rax, qword [rcx + 8]
mov qword [rdi + 8], rax
mov rax, qword [rcx + 0x10]
mov qword [rdi + 0x10], rax
mov rax, qword [rcx + 0x18]
mov qword [rdi + 0x18], rax
mov rax, qword [rcx + 0x20]
mov qword [rdi + 0x20], rax
mov rax, qword [rcx + 0x28]
mov qword [rdi + 0x28], rax
mov rax, qword [rcx + 0x30]
mov qword [rdi + 0x30], rax
mov rax, qword [rcx + 0x38]
mov qword [rdi + 0x38], rax
mov eax, dword [rcx + 0x40]
mov rcx, rdi
mov dword [rdi + 0x40], eax
call fcn.140126a00
mov eax, dword [0x140208438]
test eax, eax
jne 0x140125b7e
mov ecx, dword [0x140208448]
test ecx, ecx
jne 0x140125b8c
mov rcx, rdi
call fcn.140126d60
mov eax, dword [0x140208438]
mov ecx, dword [0x140208448]
test ecx, ecx
je 0x140125c29
test eax, eax
mov ebx, esi
je 0x140125c23
add eax, eax
cmp eax, ecx
jne 0x140125c23
lea rax, [rsp + 0x60]
lea rdx, str.SoftwareAndrea_ElectronicsAEAudioAPOSettings
mov r9d, 0x20119
xor r8d, r8d
mov rcx, 0xffffffff80000002
mov qword [rsp + 0x20], rax
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x140125c23
mov rcx, qword [rsp + 0x60]
lea rax, [rsp + 0x40]
lea r9, [rsp + 0x48]
mov qword [rsp + 0x28], rax
lea rax, [rsp + 0x44]
lea rdx, str.AEOpts
xor r8d, r8d
mov dword [rsp + 0x40], 4
mov qword [rsp + 0x20], rax
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x140125c14
mov ecx, dword [rsp + 0x44]
not ecx
cmp ecx, dword [0x140208448]
cmove ebx, ebp
mov rcx, qword [rsp + 0x60]
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
test ebx, ebx
jne 0x140125c29
mov dword [0x140208438], esi
mov rax, rdi
mov rcx, qword [rsp + 0x2c0]
xor rcx, rsp
call fcn.140144dc0
lea r11, [rsp + 0x2d0]
mov rbx, qword [r11 + 0x10]
mov rbp, qword [r11 + 0x18]
mov rsi, qword [r11 + 0x20]
mov rsp, r11
pop rdi
ret