Function at 0x140025050
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, [0x1400848d0]
mov qword [rsp + 0x28], rax
xor r15d, r15d
mov qword [rsp + 0x20], r15
lea r9d, [r15 + 2]
lea r8, [0x1400a4128]
mov edx, 0x1e2
lea rcx, str...SharedRealtekJack.cpp
call fcn.140002ed0
mov rcx, rbx
call fcn.140025b30
mov dword [rbx + 0x9c], eax
mov r8d, dword [rbx + 0x50]
lea rdx, [rsp + 0x40]
call fcn.140023df0
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 0x14002515c
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 0x1400251d4
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 0x140025248
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, [0x140084830]
mov qword [rsp + 0x20], rax
lea r9, str.EndpointId
mov r8, qword [rsp + 0x40]
lea rcx, [rbp - 0x40]
call fcn.14002d130
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 0x1400252b4
mov rcx, qword [rdx]
mov rax, qword [rcx]
call qword [rax + 8]
test r13b, r13b
je 0x140025331
cmp dword [rbx + 0x9c], 0
je 0x140025331
mov esi, 0xf
lea r12, [0x140084830]
nop
mov rax, qword [r14]
cmp dword [rax - 0x10], 0
jne 0x14002532d
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.14002d130
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 0x140025328
mov rcx, qword [rdx]
mov rax, qword [rcx]
call qword [rax + 8]
add esi, 0xffffffff
jne 0x1400252d0
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, [0x1400a4128]
mov edx, 0x1ff
lea rcx, str...SharedRealtekJack.cpp
call fcn.140002ed0
mov rcx, rbx
call fcn.140025b30
mov ecx, eax
call fcn.140013c50
mov r11, rax
mov ecx, dword [rbx + 0x9c]
call fcn.140013c50
mov r15, rax
test r11, r11
je 0x1400253f1
test rax, rax
je 0x1400253f1
mov ecx, dword [r11 + 0xc]
cmp dword [rax + 0xc], ecx
je 0x1400253f1
lea rsi, [rbx + 0x70]
cmp ecx, 2
mov rcx, rsi
jne 0x1400253b1
mov rdx, r12
call fcn.14000c370
jmp 0x1400253b6
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, [0x1400a4128]
mov edx, 0x20f
lea rcx, str...SharedRealtekJack.cpp
call fcn.140002ed0
lea rax, [0x140084830]
mov qword [rsp + 0x20], rax
lea r9, str.JackListTypeSequence
mov r8, qword [rsp + 0x40]
lea rcx, [rbp - 0x70]
call fcn.14002d130
nop
mov dword [rsp + 0x4c], 0
lea r9, [rsp + 0x4c]
lea r8, [0x140084c0c]
lea rdx, [rsp + 0x58]
lea rcx, [rbp - 0x70]
call fcn.140012210
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 0x1400254ee
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.140022e30
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.14002a010
lea r9, [rsp + 0x4c]
lea r8, [0x140084c0c]
lea rdx, [rbp - 0x30]
lea rcx, [rbp - 0x70]
call fcn.140012210
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 0x1400254df
mov rcx, qword [rdx]
mov rax, qword [rcx]
call qword [rax + 8]
mov rax, qword [rsp + 0x58]
cmp dword [rax - 0x10], 0
jne 0x140025460
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 0x14002555f
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 0x140025599
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 0x1400255a2
xor eax, eax
mov qword [rbx + 0xc0], rax
xor r8d, r8d
lea rdx, [rbp - 0x20]
mov rcx, rbx
call fcn.140024f40
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 0x1400255db
mov rcx, qword [rdx]
mov rax, qword [rcx]
call qword [rax + 8]
test r13b, r13b
je 0x14002567b
test r15, r15
je 0x14002567b
cmp dword [r15 + 0xc], 2
jne 0x14002567b
mov rax, qword [r12]
cmp dword [rax - 0x10], 0
jne 0x14002567b
mov rax, qword [rbx + 0xb0]
mov qword [rbp - 8], rax
mov rcx, qword [rsi]
mov qword [rbp], rcx
cmp rcx, rax
je 0x140025639
mov edx, dword [0x1400a16b0]
mov r8d, dword [0x1400a16ac]
cmp dword [rcx], r8d
jne 0x140025630
cmp dword [rcx + 4], edx
je 0x140025639
add rcx, 8
cmp rcx, rax
jne 0x140025626
mov qword [rbp + 8], rax
cmp rcx, rax
je 0x14002567b
mov r8b, 1
lea rdx, [rbp - 0x18]
mov rcx, rbx
call fcn.140024f40
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 0x14002567b
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, [0x1400a4128]
mov edx, 0x23a
lea rcx, str...SharedRealtekJack.cpp
call fcn.140002ed0
mov rdx, qword [r14]
test rdx, rdx
jne 0x1400256c6
mov ecx, 0x80004005
call fcn.1400015b0
int3
mov rbx, qword [rbp - 0x60]
mov rcx, rbx
call fcn.14005fbcc
test eax, eax
je 0x140025712
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, [0x1400a4128]
mov edx, 0x23e
lea rcx, str...SharedRealtekJack.cpp
call fcn.140002ed0
mov rdx, qword [r12]
test rdx, rdx
jne 0x140025726
mov ecx, 0x80004005
call fcn.1400015b0
int3
mov rbx, qword [rbp - 0x58]
mov rcx, rbx
call fcn.14005fbcc
test eax, eax
je 0x140025774
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, [0x1400a4128]
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 0x140025793
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 0x1400257b1
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 0x1400257cf
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 0x1400257ed
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 0x140025809
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