Function at 0x140011e40
Capabilities:
Set registry value

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rbp
mov qword [rsp + 0x20], rsi
push rdi
push r12
push r13
push r14
push r15
sub rsp, 0x70
mov rax, qword [section..data]
xor rax, rsp
mov qword [rsp + 0x68], rax
xor r13d, r13d
mov dword [rsp + 0x48], edx
mov r15, rcx
cmp dword [rcx + 0x48], r13d
mov ebx, r13d
mov qword [rsp + 0x38], rcx
mov dword [rsp + 0x30], ebx
mov dword [rsp + 0x44], r13d
jle 0x140011f76
lea ebp, [r13 + 1]
lea r12d, [r13 + 8]
mov dword [rsp + 0x34], ebp
mov qword [rsp + 0x50], r12
lea rcx, [r15 + 0x58]
call qword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov rdi, qword [r15 + 0x50]
lea rcx, [r15 + 0x58]
call qword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
mov rax, qword [rdi + r12 - 8]
lea r15, [rax + 0x90]
mov qword [rsp + 0x58], rax
mov rsi, qword [r15]
cmp rsi, r13
je 0x140011f4e
cmp qword [rax + 0x88], r13
je 0x140011f4e
lea r14, [rax + 0xac]
lea r8, [0x140000000]
mov rdx, qword [r14]
cmp rdx, qword [r8 + 0x594e8]
jne 0x14001fb8f
mov rdx, qword [r14 + 8]
cmp rdx, qword [r8 + 0x594f0]
jne 0x14001fb8f
mov eax, r13d
jmp 0x140011f0f
cmp eax, r13d
jne 0x14001fb99
lea rdi, [0x14005a998]
mov ecx, 2
repe cmpsw word [rsi], word [rdi]
jne 0x140011f4e
mov rdi, qword [rsp + 0x38]
xor esi, esi
mov eax, 0x30
cmp ebp, dword [rdi + 0x48]
mov word [rsp + 0x60], ax
mov word [rsp + 0x62], si
mov r13d, ebp
jl 0x14001fbca
xor r13d, r13d
mov eax, dword [rsp + 0x44]
mov r15, qword [rsp + 0x38]
inc ebp
inc eax
add r12, 8
mov dword [rsp + 0x34], ebp
cmp eax, dword [r15 + 0x48]
mov dword [rsp + 0x44], eax
mov qword [rsp + 0x50], r12
jl 0x140011ea1
mov eax, ebx
mov rcx, qword [rsp + 0x68]
xor rcx, rsp
call fcn.140001170
lea r11, [rsp + 0x70]
mov rbx, qword [r11 + 0x38]
mov rbp, qword [r11 + 0x40]
mov rsi, qword [r11 + 0x48]
mov rsp, r11
pop r15
pop r14
pop r13
pop r12
pop rdi
ret
sbb eax, eax
sbb eax, 0xffffffff
jmp 0x140011f0f
mov rdx, qword [r14]
cmp rdx, qword [r8 + 0x5a060]
jne 0x14001fbb7
mov rdx, qword [r14 + 8]
cmp rdx, qword [r8 + 0x5a068]
jne 0x14001fbb7
mov eax, r13d
jmp 0x14001fbbc
sbb eax, eax
sbb eax, 0xffffffff
cmp eax, r13d
je 0x140011f18
jmp 0x140011f4e
lea rsi, [rdi + 0x58]
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov rdi, qword [rdi + 0x50]
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
mov rbp, qword [r12 + rdi]
xor esi, esi
cmp qword [rbp + 0x90], rsi
je 0x14001fcca
mov rdi, qword [rbp + 0x88]
cmp rdi, rsi
je 0x14001fcca
mov rdx, qword [rbp + 0xac]
lea r8, [0x140000000]
cmp rdx, qword [r8 + 0x594e8]
jne 0x14001fc32
mov rdx, qword [rbp + 0xb4]
cmp rdx, qword [r8 + 0x594f0]
jne 0x14001fc32
mov eax, esi
jmp 0x14001fc37
sbb eax, eax
sbb eax, 0xffffffff
cmp eax, esi
je 0x14001fc68
mov rdx, qword [rbp + 0xac]
cmp rdx, qword [r8 + 0x5a060]
jne 0x14001fc5f
mov rdx, qword [rbp + 0xb4]
cmp rdx, qword [r8 + 0x5a068]
jne 0x14001fc5f
mov eax, esi
jmp 0x14001fc64
sbb eax, eax
sbb eax, 0xffffffff
cmp eax, esi
jne 0x14001fcca
mov rax, qword [rsp + 0x58]
xor r9d, r9d
mov r8d, 0x400
mov rdx, qword [rax + 0x88]
mov rcx, rdi
call sub.OLEAUT32.dll_VarR8Pow
cmp eax, 1
jne 0x14001fcca
mov rsi, qword [rbp + 0x90]
lea rdi, [0x14005a998]
lea ecx, [rax + 1]
repe cmpsw word [rsi], word [rdi]
jne 0x14001fcca
mov rcx, qword [rbp + 0xac]
cmp rcx, qword [r14]
jne 0x14001fcbf
mov rcx, qword [rbp + 0xb4]
cmp rcx, qword [r14 + 8]
jne 0x14001fcbf
xor esi, esi
mov eax, esi
jmp 0x14001fcc6
sbb eax, eax
sbb eax, 0xffffffff
xor esi, esi
cmp eax, esi
je 0x14001fcf2
mov rdi, qword [rsp + 0x38]
inc r13d
add r12, 8
cmp r13d, dword [rdi + 0x48]
jl 0x14001fbca
mov ebx, dword [rsp + 0x30]
mov ebp, dword [rsp + 0x34]
mov r12, qword [rsp + 0x50]
jmp 0x140011f4b
mov r8, qword [rbp + 0x88]
mov ebp, 1
lea rdx, str.CRecorderMgr::CheckTunerInstanceId_detected_Combo_for_RootDevice__s
mov ecx, ebp
call fcn.140001110
lea r9d, [rbp + 9]
lea r8d, [rbp + 2]
lea rdx, [rsp + 0x60]
mov ecx, ebp
call sub.msvcrt.dll__itow_s
cmp eax, esi
mov rsi, qword [rsp + 0x58]
je 0x14001fd3e
mov r8d, dword [rsi]
lea rdx, str.CRecorderMgr::GetRecorderInfo___d__uitow_failed_hr___x
lea ecx, [rbp + 7]
mov r9d, eax
call fcn.140001110
lea rdx, [rsp + 0x60]
mov rcx, r15
call fcn.140012590
xor r13d, r13d
cmp eax, r13d
mov ebx, eax
mov dword [rsp + 0x30], eax
jge 0x14001fd5e
mov dword [rsi + 4], eax
jmp 0x14001fda3
cmp qword [rsi + 0x30], r13
je 0x14001fda3
mov rdi, qword [r15]
cmp rdi, r13
je 0x1400200bd
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_lstrlenW]
mov rcx, qword [rsi + 0x30]
lea rdx, str.TunerInstanceId
lea eax, [rax + rax + 2]
mov r9d, ebp
xor r8d, r8d
mov dword [rsp + 0x28], eax
mov qword [rsp + 0x20], rdi
call qword [sym.imp.ADVAPI32.dll_RegSetValueExW]
mov ebx, eax
mov dword [rsp + 0x30], eax
mov rdi, qword [rsp + 0x38]
mov rcx, rdi
call fcn.140011aac
cmp eax, r13d
je 0x14001fdc6
cmp dword [rsp + 0x48], ebp
jne 0x14001fdc6
mov rdx, rsi
mov rcx, rdi
call fcn.1400449bc
mov rdx, qword [r14]
lea r8, [0x140000000]
mov dword [rsp + 0x40], ebp
mov r15d, ebp
cmp rdx, qword [r8 + 0x594e8]
jne 0x14001fdf3
mov rdx, qword [r14 + 8]
cmp rdx, qword [r8 + 0x594f0]
jne 0x14001fdf3
xor esi, esi
mov eax, esi
jmp 0x14001fdfa
sbb eax, eax
sbb eax, 0xffffffff
xor esi, esi
cmp eax, esi
jne 0x14001fe08
mov dword [rsp + 0x40], 2
jmp 0x14001fe35
mov rcx, qword [r14]
cmp rcx, qword [r8 + 0x5a060]
jne 0x14001fe25
mov rcx, qword [r14 + 8]
cmp rcx, qword [r8 + 0x5a068]
jne 0x14001fe25
mov eax, esi
jmp 0x14001fe2a
sbb eax, eax
sbb eax, 0xffffffff
cmp eax, esi
mov eax, 2
cmove r15d, eax
mov ebp, dword [rsp + 0x34]
mov rax, rdi
cmp ebp, dword [rax + 0x48]
mov r13d, ebp
jge 0x14001fce8
mov r14, qword [rsp + 0x50]
lea rsi, [rax + 0x58]
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov rdi, qword [rsp + 0x38]
mov rcx, rsi
mov rdi, qword [rdi + 0x50]
call qword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
mov rbp, qword [r14 + rdi]
xor esi, esi
cmp qword [rbp + 0x90], rsi
je 0x1400200a2
mov rdi, qword [rbp + 0x88]
cmp rdi, rsi
je 0x1400200a2
mov rdx, qword [rbp + 0xac]
lea r8, [0x140000000]
cmp rdx, qword [r8 + 0x594e8]
jne 0x14001feba
mov rdx, qword [rbp + 0xb4]
cmp rdx, qword [r8 + 0x594f0]
jne 0x14001feba
mov eax, esi
jmp 0x14001febf
sbb eax, eax
sbb eax, 0xffffffff
cmp eax, esi
je 0x14001fef4
mov rdx, qword [rbp + 0xac]
cmp rdx, qword [r8 + 0x5a060]
jne 0x14001fee7
mov rdx, qword [rbp + 0xb4]
cmp rdx, qword [r8 + 0x5a068]
jne 0x14001fee7
mov eax, esi
jmp 0x14001feec
sbb eax, eax
sbb eax, 0xffffffff
cmp eax, esi
jne 0x14002009e
mov rax, qword [rsp + 0x58]
xor r9d, r9d
mov r8d, 0x400
mov rdx, qword [rax + 0x88]
mov rcx, rdi
call sub.OLEAUT32.dll_VarR8Pow
cmp eax, 1
jne 0x14002009e
mov rsi, qword [rbp + 0x90]
lea rdi, [0x14005a998]
lea ecx, [rax + 1]
repe cmpsw word [rsi], word [rdi]
jne 0x14002009e
mov rdx, qword [rbp + 0xac]
lea rdi, [0x140000000]
cmp rdx, qword [rdi + 0x594e8]
jne 0x14001ff61
mov rdx, qword [rbp + 0xb4]
cmp rdx, qword [rdi + 0x594f0]
jne 0x14001ff61
xor esi, esi
mov eax, esi
jmp 0x14001ff68
sbb eax, eax
sbb eax, 0xffffffff
xor esi, esi
cmp eax, esi
jne 0x14001ff94
mov edi, dword [rsp + 0x40]
mov r9d, 0xa
lea rdx, [rsp + 0x60]
lea r8d, [r9 - 7]
mov ecx, edi
call sub.msvcrt.dll__itow_s
inc edi
mov ebx, eax
mov dword [rsp + 0x30], eax
mov dword [rsp + 0x40], edi
jmp 0x14001ffe7
mov rcx, qword [rbp + 0xac]
cmp rcx, qword [rdi + 0x5a060]
jne 0x14001ffb8
mov rcx, qword [rbp + 0xb4]
cmp rcx, qword [rdi + 0x5a068]
jne 0x14001ffb8
mov eax, esi
jmp 0x14001ffbd
sbb eax, eax
sbb eax, 0xffffffff
cmp eax, esi
jne 0x14001ffe3
mov r9d, 0xa
lea rdx, [rsp + 0x60]
mov ecx, r15d
lea r8d, [r9 - 7]
call sub.msvcrt.dll__itow_s
inc r15d
mov ebx, eax
mov dword [rsp + 0x30], eax
jmp 0x14001ffe7
mov ebx, dword [rsp + 0x30]
cmp ebx, esi
je 0x140020008
mov r8d, dword [rbp]
lea rdx, str.CRecorderMgr::GetRecorderInfo___d__uitow_failed_hr___x
mov r9d, ebx
mov ecx, 8
call fcn.140001110
jmp 0x1400200a2
lea rdx, [rsp + 0x60]
lea rcx, [rbp + 0x90]
call fcn.140012590
cmp eax, esi
mov ebx, eax
mov dword [rsp + 0x30], eax
jge 0x14002002d
mov rax, qword [rsp + 0x58]
mov dword [rax + 4], ebx
jmp 0x140020079
cmp qword [rbp + 0x30], rsi
je 0x140020079
mov rdi, qword [rbp + 0x90]
cmp rdi, rsi
je 0x1400200c8
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_lstrlenW]
mov rcx, qword [rbp + 0x30]
lea rdx, str.TunerInstanceId
lea eax, [rax + rax + 2]
mov r9d, 1
xor r8d, r8d
mov dword [rsp + 0x28], eax
mov qword [rsp + 0x20], rdi
call qword [sym.imp.ADVAPI32.dll_RegSetValueExW]
mov ebx, eax
mov dword [rsp + 0x30], eax
mov rdi, qword [rsp + 0x38]
mov rcx, rdi
call fcn.140011aac
cmp eax, esi
je 0x1400200a2
cmp dword [rsp + 0x48], 1
jne 0x1400200a2
mov rdx, rbp
mov rcx, rdi
call fcn.1400449bc
jmp 0x1400200a2
mov ebx, dword [rsp + 0x30]
mov rax, qword [rsp + 0x38]
inc r13d
add r14, 8
cmp r13d, dword [rax + 0x48]
jl 0x14001fe4d
jmp 0x14001fce4
mov ecx, 0x80004005
call fcn.140029690
int3
mov ecx, 0x80004005
call fcn.140029690
int3