Function at 0x140025030
Capabilities:
Query or enumerate registry value

Disassembly:
push rbp
push rbx
push rsi
push rdi
push r12
push r13
push r14
push r15
lea rbp, [rsp - 0x18]
sub rsp, 0x118
mov qword [rbp - 0x10], 0xfffffffffffffffe
movzx r13d, dl
mov rbx, rcx
lea rax, str.ReadJackInfoFromRegitry__
mov qword [rsp + 0x30], rax
lea rax, [0x1400838d0]
mov qword [rsp + 0x28], rax
xor r15d, r15d
mov qword [rsp + 0x20], r15
lea r9d, [r15 + 2]
lea r8, [0x1400a3128]
mov edx, 0x1e2
lea rcx, str...SharedRealtekJack.cpp
call fcn.140002ed0
mov rcx, rbx
call fcn.140025b10
mov dword [rbx + 0x9c], eax
mov r8d, dword [rbx + 0x50]
lea rdx, [rsp + 0x40]
call fcn.140023dd0
nop
lea r12, [rbx + 0x68]
mov rcx, qword [r12]
sub rcx, 0x18
call fcn.140002920
add rax, 0x18
mov qword [rbp - 0x58], rax
mov dword [rbp + 0x68], r15d
mov qword [rsp + 0x70], r15
lea rax, [rsp + 0x70]
mov qword [rsp + 0x20], rax
mov r9d, 0x20019
xor r8d, r8d
mov rdx, qword [rsp + 0x40]
mov rcx, 0xffffffff80000002
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
mov rcx, qword [rsp + 0x70]
test rcx, rcx
je 0x14002513c
mov dword [rsp + 0x60], 4
lea rax, [rsp + 0x60]
mov qword [rsp + 0x28], rax
lea rax, [rbp + 0x68]
mov qword [rsp + 0x20], rax
lea r9, [rbp - 0x50]
xor r8d, r8d
lea rdx, str.JackStatus
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
mov rcx, qword [rsp + 0x70]
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, dword [rbp + 0x68]
mov dword [rbx + 0x58], eax
mov dword [rbp + 0x60], r15d
mov qword [rsp + 0x78], r15
lea rax, [rsp + 0x78]
mov qword [rsp + 0x20], rax
mov r9d, 0x20019
xor r8d, r8d
mov rdx, qword [rsp + 0x40]
mov rcx, 0xffffffff80000002
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
mov rcx, qword [rsp + 0x78]
test rcx, rcx
je 0x1400251b4
mov dword [rsp + 0x64], 4
lea rax, [rsp + 0x64]
mov qword [rsp + 0x28], rax
lea rax, [rbp + 0x60]
mov qword [rsp + 0x20], rax
lea r9, [rbp - 0x4c]
xor r8d, r8d
lea rdx, str.JackStatusChangedWhenPowerDown
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
mov rcx, qword [rsp + 0x78]
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, dword [rbp + 0x60]
mov dword [rbx + 0x5c], eax
mov dword [rbp + 0x70], r15d
mov qword [rbp - 0x80], r15
lea rax, [rbp - 0x80]
mov qword [rsp + 0x20], rax
mov r9d, 0x20019
xor r8d, r8d
mov rdx, qword [rsp + 0x40]
mov rcx, 0xffffffff80000002
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
mov rcx, qword [rbp - 0x80]
test rcx, rcx
je 0x140025228
mov dword [rsp + 0x68], 4
lea rax, [rsp + 0x68]
mov qword [rsp + 0x28], rax
lea rax, [rbp + 0x70]
mov qword [rsp + 0x20], rax
lea r9, [rbp - 0x48]
xor r8d, r8d
lea rdx, str.JackWidgetId
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
mov rcx, qword [rbp - 0x80]
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, dword [rbp + 0x70]
mov dword [rbx + 0x54], eax
lea r14, [rbx + 0x60]
mov rcx, qword [r14]
sub rcx, 0x18
call fcn.140002920
add rax, 0x18
mov qword [rbp - 0x60], rax
lea rax, [0x140083830]
mov qword [rsp + 0x20], rax
lea r9, str.EndpointId
mov r8, qword [rsp + 0x40]
lea rcx, [rbp - 0x40]
call fcn.14002cf90
nop
mov rdx, rax
mov rcx, r14
call fcn.14000c370
nop
mov rdx, qword [rbp - 0x40]
add rdx, 0xffffffffffffffe8
or edi, 0xffffffff
mov eax, edi
lock xadd dword [rdx + 0x10], eax
sub eax, 1
jg 0x140025294
mov rcx, qword [rdx]
mov rax, qword [rcx]
call qword [rax + 8]
test r13b, r13b
je 0x140025311
cmp dword [rbx + 0x9c], 0
je 0x140025311
mov esi, 0xf
lea r12, [0x140083830]
nop
mov rax, qword [r14]
cmp dword [rax - 0x10], 0
jne 0x14002530d
mov ecx, 0x64
call qword [sym.imp.KERNEL32.dll_Sleep]
mov qword [rsp + 0x20], r12
lea r9, str.EndpointId
mov r8, qword [rsp + 0x40]
lea rcx, [rbp - 0x38]
call fcn.14002cf90
nop
mov rdx, rax
mov rcx, r14
call fcn.14000c370
nop
mov rdx, qword [rbp - 0x38]
add rdx, 0xffffffffffffffe8
mov eax, edi
lock xadd dword [rdx + 0x10], eax
sub eax, 1
jg 0x140025308
mov rcx, qword [rdx]
mov rax, qword [rcx]
call qword [rax + 8]
add esi, 0xffffffff
jne 0x1400252b0
lea r12, [rbx + 0x68]
mov rax, qword [r14]
mov qword [rsp + 0x30], rax
lea rax, str.EndpointId_Realtek_:__s
mov qword [rsp + 0x28], rax
mov qword [rsp + 0x20], r15
mov r9d, 2
lea r8, [0x1400a3128]
mov edx, 0x1ff
lea rcx, str...SharedRealtekJack.cpp
call fcn.140002ed0
mov rcx, rbx
call fcn.140025b10
mov ecx, eax
call fcn.140013c80
mov r11, rax
mov ecx, dword [rbx + 0x9c]
call fcn.140013c80
mov r15, rax
test r11, r11
je 0x1400253d1
test rax, rax
je 0x1400253d1
mov ecx, dword [r11 + 0xc]
cmp dword [rax + 0xc], ecx
je 0x1400253d1
lea rsi, [rbx + 0x70]
cmp ecx, 2
mov rcx, rsi
jne 0x140025391
mov rdx, r12
call fcn.14000c370
jmp 0x140025396
call fcn.14000bfa0
mov rax, qword [rsi]
mov qword [rsp + 0x30], rax
lea rax, str.OldHiddenCaptureEndpointId_:__s_
mov qword [rsp + 0x28], rax
mov qword [rsp + 0x20], 0
mov r9d, 2
lea r8, [0x1400a3128]
mov edx, 0x20f
lea rcx, str...SharedRealtekJack.cpp
call fcn.140002ed0
lea rax, [0x140083830]
mov qword [rsp + 0x20], rax
lea r9, str.JackListTypeSequence
mov r8, qword [rsp + 0x40]
lea rcx, [rbp - 0x70]
call fcn.14002cf90
nop
mov dword [rsp + 0x4c], 0
lea r9, [rsp + 0x4c]
lea r8, [0x140083c0c]
lea rdx, [rsp + 0x58]
lea rcx, [rbp - 0x70]
call fcn.140012240
nop
lea rsi, [rbx + 0xa8]
mov rax, qword [rsi]
mov qword [rsi + 8], rax
mov rax, qword [rsp + 0x58]
cmp dword [rax - 0x10], 0
je 0x1400254ce
nop dword [rax]
nop word [rax + rax]
xor ecx, ecx
mov dword [rsp + 0x48], ecx
mov dword [rbp + 0x78], ecx
lea r9, [rsp + 0x48]
lea r8, [rbp + 0x78]
lea rdx, str._02x_02x
mov rcx, rax
call fcn.140022e10
mov eax, dword [rbp + 0x78]
mov dword [rbp - 0x68], eax
mov eax, dword [rsp + 0x48]
mov dword [rbp - 0x64], eax
lea rdx, [rbp - 0x68]
mov rcx, rsi
call fcn.140029e70
lea r9, [rsp + 0x4c]
lea r8, [0x140083c0c]
lea rdx, [rbp - 0x30]
lea rcx, [rbp - 0x70]
call fcn.140012240
nop
mov rdx, rax
lea rcx, [rsp + 0x58]
call fcn.14000c370
nop
mov rdx, qword [rbp - 0x30]
add rdx, 0xffffffffffffffe8
mov eax, edi
lock xadd dword [rdx + 0x10], eax
sub eax, 1
jg 0x1400254bf
mov rcx, qword [rdx]
mov rax, qword [rcx]
call qword [rax + 8]
mov rax, qword [rsp + 0x58]
cmp dword [rax - 0x10], 0
jne 0x140025440
xor eax, eax
mov dword [rsp + 0x50], eax
mov qword [rbp - 0x78], rax
lea rax, [rbp - 0x78]
mov qword [rsp + 0x20], rax
mov r9d, 0x20019
xor r8d, r8d
mov rdx, qword [rsp + 0x40]
mov rcx, 0xffffffff80000002
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
mov rcx, qword [rbp - 0x78]
test rcx, rcx
je 0x14002553f
mov dword [rsp + 0x6c], 4
lea rax, [rsp + 0x6c]
mov qword [rsp + 0x28], rax
lea rax, [rsp + 0x50]
mov qword [rsp + 0x20], rax
lea r9, [rbp - 0x44]
xor r8d, r8d
lea rdx, str.JackListCurrSelectIndex
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
mov rcx, qword [rbp - 0x78]
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov ecx, dword [rsp + 0x50]
mov dword [rbx + 0xa4], ecx
mov rax, qword [rsi + 8]
sub rax, qword [rsi]
sar rax, 3
mov edx, ecx
cmp rcx, rax
jae 0x140025579
mov rax, qword [rsi]
mov ecx, dword [rax + rcx*8]
mov dword [rbp - 0x28], ecx
mov eax, dword [rax + rdx*8 + 4]
mov dword [rbp - 0x24], eax
mov dword [rbx + 0xc0], ecx
mov dword [rbx + 0xc4], eax
jmp 0x140025582
xor eax, eax
mov qword [rbx + 0xc0], rax
xor r8d, r8d
lea rdx, [rbp - 0x20]
mov rcx, rbx
call fcn.140024f20
nop
mov rdx, rax
mov rcx, r12
call fcn.14000c370
nop
mov rdx, qword [rbp - 0x20]
add rdx, 0xffffffffffffffe8
mov eax, edi
lock xadd dword [rdx + 0x10], eax
sub eax, 1
jg 0x1400255bb
mov rcx, qword [rdx]
mov rax, qword [rcx]
call qword [rax + 8]
test r13b, r13b
je 0x14002565b
test r15, r15
je 0x14002565b
cmp dword [r15 + 0xc], 2
jne 0x14002565b
mov rax, qword [r12]
cmp dword [rax - 0x10], 0
jne 0x14002565b
mov rax, qword [rbx + 0xb0]
mov qword [rbp - 8], rax
mov rcx, qword [rsi]
mov qword [rbp], rcx
cmp rcx, rax
je 0x140025619
mov edx, dword [0x1400a06b0]
mov r8d, dword [0x1400a06ac]
cmp dword [rcx], r8d
jne 0x140025610
cmp dword [rcx + 4], edx
je 0x140025619
add rcx, 8
cmp rcx, rax
jne 0x140025606
mov qword [rbp + 8], rax
cmp rcx, rax
je 0x14002565b
mov r8b, 1
lea rdx, [rbp - 0x18]
mov rcx, rbx
call fcn.140024f20
nop
mov rdx, rax
mov rcx, r12
call fcn.14000c370
nop
mov rdx, qword [rbp - 0x18]
add rdx, 0xffffffffffffffe8
mov eax, edi
lock xadd dword [rdx + 0x10], eax
sub eax, 1
jg 0x14002565b
mov rcx, qword [rdx]
mov rax, qword [rcx]
call qword [rax + 8]
mov rax, qword [r12]
mov qword [rsp + 0x30], rax
lea rax, str.HiddenCaptureEndpointId_:__s_
mov qword [rsp + 0x28], rax
xor esi, esi
mov qword [rsp + 0x20], rsi
lea r9d, [rsi + 2]
lea r8, [0x1400a3128]
mov edx, 0x23a
lea rcx, str...SharedRealtekJack.cpp
call fcn.140002ed0
mov rdx, qword [r14]
test rdx, rdx
jne 0x1400256a6
mov ecx, 0x80004005
call fcn.1400015b0
int3
mov rbx, qword [rbp - 0x60]
mov rcx, rbx
call fcn.14005fa3c
test eax, eax
je 0x1400256f2
mov rax, qword [r14]
mov qword [rsp + 0x38], rax
mov qword [rsp + 0x30], rbx
lea rax, str.Realtek_OldEndpointId_:_s___rEndpointId:_s
mov qword [rsp + 0x28], rax
mov qword [rsp + 0x20], rsi
mov r9d, 2
lea r8, [0x1400a3128]
mov edx, 0x23e
lea rcx, str...SharedRealtekJack.cpp
call fcn.140002ed0
mov rdx, qword [r12]
test rdx, rdx
jne 0x140025706
mov ecx, 0x80004005
call fcn.1400015b0
int3
mov rbx, qword [rbp - 0x58]
mov rcx, rbx
call fcn.14005fa3c
test eax, eax
je 0x140025754
mov rax, qword [r12]
mov qword [rsp + 0x38], rax
mov qword [rsp + 0x30], rbx
lea rax, str.Realtek_OldHiddenCaptureEndpointId_:_s___HiddenCaptureEndpointId:_s
mov qword [rsp + 0x28], rax
mov qword [rsp + 0x20], rsi
mov r9d, 2
lea r8, [0x1400a3128]
mov edx, 0x243
lea rcx, str...SharedRealtekJack.cpp
call fcn.140002ed0
nop
mov rdx, qword [rsp + 0x58]
add rdx, 0xffffffffffffffe8
mov eax, edi
lock xadd dword [rdx + 0x10], eax
sub eax, 1
jg 0x140025773
mov rcx, qword [rdx]
mov rax, qword [rcx]
call qword [rax + 8]
nop
mov rdx, qword [rbp - 0x70]
add rdx, 0xffffffffffffffe8
mov eax, edi
lock xadd dword [rdx + 0x10], eax
sub eax, 1
jg 0x140025791
mov rcx, qword [rdx]
mov rax, qword [rcx]
call qword [rax + 8]
nop
mov rdx, qword [rbp - 0x60]
add rdx, 0xffffffffffffffe8
mov eax, edi
lock xadd dword [rdx + 0x10], eax
sub eax, 1
jg 0x1400257af
mov rcx, qword [rdx]
mov rax, qword [rcx]
call qword [rax + 8]
nop
mov rdx, qword [rbp - 0x58]
add rdx, 0xffffffffffffffe8
mov eax, edi
lock xadd dword [rdx + 0x10], eax
sub eax, 1
jg 0x1400257cd
mov rcx, qword [rdx]
mov rax, qword [rcx]
call qword [rax + 8]
nop
mov rdx, qword [rsp + 0x40]
add rdx, 0xffffffffffffffe8
lock xadd dword [rdx + 0x10], edi
sub edi, 1
jg 0x1400257e9
mov rcx, qword [rdx]
mov rax, qword [rcx]
call qword [rax + 8]
add rsp, 0x118
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbx
pop rbp
ret