Function at 0x140027410
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, [0x1400868d0]
mov qword [rsp + 0x28], rax
xor r15d, r15d
mov qword [rsp + 0x20], r15
lea r9d, [r15 + 2]
lea r8, [0x1400a73c8]
mov edx, 0x1e3
lea rcx, str...SharedRealtekJack.cpp
call fcn.140002f50
mov rcx, rbx
call fcn.140027ef0
mov dword [rbx + 0x9c], eax
mov r8d, dword [rbx + 0x50]
lea rdx, [rsp + 0x40]
call fcn.1400261b0
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 0x14002751c
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 0x140027594
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 0x140027608
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, [0x140086830]
mov qword [rsp + 0x20], rax
lea r9, str.EndpointId
mov r8, qword [rsp + 0x40]
lea rcx, [rbp - 0x40]
call fcn.14002f3b0
nop
mov rdx, rax
mov rcx, r14
call fcn.14000c470
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 0x140027674
mov rcx, qword [rdx]
mov rax, qword [rcx]
call qword [rax + 8]
test r13b, r13b
je 0x1400276f1
cmp dword [rbx + 0x9c], 0
je 0x1400276f1
mov esi, 0xf
lea r12, [0x140086830]
nop
mov rax, qword [r14]
cmp dword [rax - 0x10], 0
jne 0x1400276ed
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.14002f3b0
nop
mov rdx, rax
mov rcx, r14
call fcn.14000c470
nop
mov rdx, qword [rbp - 0x38]
add rdx, 0xffffffffffffffe8
mov eax, edi
lock xadd dword [rdx + 0x10], eax
sub eax, 1
jg 0x1400276e8
mov rcx, qword [rdx]
mov rax, qword [rcx]
call qword [rax + 8]
add esi, 0xffffffff
jne 0x140027690
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, [0x1400a73c8]
mov edx, 0x200
lea rcx, str...SharedRealtekJack.cpp
call fcn.140002f50
mov rcx, rbx
call fcn.140027ef0
mov ecx, eax
call fcn.140016220
mov r11, rax
mov ecx, dword [rbx + 0x9c]
call fcn.140016220
mov r15, rax
test r11, r11
je 0x1400277b1
test rax, rax
je 0x1400277b1
mov ecx, dword [r11 + 0xc]
cmp dword [rax + 0xc], ecx
je 0x1400277b1
lea rsi, [rbx + 0x70]
cmp ecx, 2
mov rcx, rsi
jne 0x140027771
mov rdx, r12
call fcn.14000c470
jmp 0x140027776
call fcn.14000c0a0
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, [0x1400a73c8]
mov edx, 0x210
lea rcx, str...SharedRealtekJack.cpp
call fcn.140002f50
lea rax, [0x140086830]
mov qword [rsp + 0x20], rax
lea r9, str.JackListTypeSequence
mov r8, qword [rsp + 0x40]
lea rcx, [rbp - 0x70]
call fcn.14002f3b0
nop
mov dword [rsp + 0x4c], 0
lea r9, [rsp + 0x4c]
lea r8, [0x140086c0c]
lea rdx, [rsp + 0x58]
lea rcx, [rbp - 0x70]
call fcn.1400149c0
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 0x1400278ae
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.1400251d0
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.14002c290
lea r9, [rsp + 0x4c]
lea r8, [0x140086c0c]
lea rdx, [rbp - 0x30]
lea rcx, [rbp - 0x70]
call fcn.1400149c0
nop
mov rdx, rax
lea rcx, [rsp + 0x58]
call fcn.14000c470
nop
mov rdx, qword [rbp - 0x30]
add rdx, 0xffffffffffffffe8
mov eax, edi
lock xadd dword [rdx + 0x10], eax
sub eax, 1
jg 0x14002789f
mov rcx, qword [rdx]
mov rax, qword [rcx]
call qword [rax + 8]
mov rax, qword [rsp + 0x58]
cmp dword [rax - 0x10], 0
jne 0x140027820
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 0x14002791f
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 0x140027959
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 0x140027962
xor eax, eax
mov qword [rbx + 0xc0], rax
xor r8d, r8d
lea rdx, [rbp - 0x20]
mov rcx, rbx
call fcn.140027300
nop
mov rdx, rax
mov rcx, r12
call fcn.14000c470
nop
mov rdx, qword [rbp - 0x20]
add rdx, 0xffffffffffffffe8
mov eax, edi
lock xadd dword [rdx + 0x10], eax
sub eax, 1
jg 0x14002799b
mov rcx, qword [rdx]
mov rax, qword [rcx]
call qword [rax + 8]
test r13b, r13b
je 0x140027a3b
test r15, r15
je 0x140027a3b
cmp dword [r15 + 0xc], 2
jne 0x140027a3b
mov rax, qword [r12]
cmp dword [rax - 0x10], 0
jne 0x140027a3b
mov rax, qword [rbx + 0xb0]
mov qword [rbp - 8], rax
mov rcx, qword [rsi]
mov qword [rbp], rcx
cmp rcx, rax
je 0x1400279f9
mov edx, dword [0x1400a46b0]
mov r8d, dword [0x1400a46ac]
cmp dword [rcx], r8d
jne 0x1400279f0
cmp dword [rcx + 4], edx
je 0x1400279f9
add rcx, 8
cmp rcx, rax
jne 0x1400279e6
mov qword [rbp + 8], rax
cmp rcx, rax
je 0x140027a3b
mov r8b, 1
lea rdx, [rbp - 0x18]
mov rcx, rbx
call fcn.140027300
nop
mov rdx, rax
mov rcx, r12
call fcn.14000c470
nop
mov rdx, qword [rbp - 0x18]
add rdx, 0xffffffffffffffe8
mov eax, edi
lock xadd dword [rdx + 0x10], eax
sub eax, 1
jg 0x140027a3b
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, [0x1400a73c8]
mov edx, 0x23b
lea rcx, str...SharedRealtekJack.cpp
call fcn.140002f50
mov rdx, qword [r14]
test rdx, rdx
jne 0x140027a86
mov ecx, 0x80004005
call fcn.1400015b0
int3
mov rbx, qword [rbp - 0x60]
mov rcx, rbx
call fcn.140061b80
test eax, eax
je 0x140027ad2
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, [0x1400a73c8]
mov edx, 0x23f
lea rcx, str...SharedRealtekJack.cpp
call fcn.140002f50
mov rdx, qword [r12]
test rdx, rdx
jne 0x140027ae6
mov ecx, 0x80004005
call fcn.1400015b0
int3
mov rbx, qword [rbp - 0x58]
mov rcx, rbx
call fcn.140061b80
test eax, eax
je 0x140027b34
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, [0x1400a73c8]
mov edx, 0x244
lea rcx, str...SharedRealtekJack.cpp
call fcn.140002f50
nop
mov rdx, qword [rsp + 0x58]
add rdx, 0xffffffffffffffe8
mov eax, edi
lock xadd dword [rdx + 0x10], eax
sub eax, 1
jg 0x140027b53
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 0x140027b71
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 0x140027b8f
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 0x140027bad
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 0x140027bc9
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