Function at 0x140053bb0
Capabilities:
Query or enumerate registry key

Disassembly:
mov r11, rsp
push rbp
push rsi
push rdi
push r12
push r13
push r14
push r15
sub rsp, 0x170
mov qword [rsp + 0xe0], 0xfffffffffffffffe
mov qword [r11 + 0x18], rbx
mov rax, qword [0x1400d2478]
xor rax, rsp
mov qword [rsp + 0x160], rax
mov rdi, rdx
mov qword [rsp + 0xb0], rdx
mov rbp, rcx
mov qword [r11 - 0xa0], 7
xor esi, esi
mov qword [r11 - 0xa8], rsi
mov word [rsp + 0xf0], si
lea r8d, [rsi + 0x19]
lea rdx, str.Service_DeleteDifxAppInfo
lea rcx, [r11 - 0xc0]
call fcn.140001870
nop
lea r9, [rsp + 0xf0]
cmp qword [rsp + 0x108], 8
cmovae r9, qword [rsp + 0xf0]
lea rax, str.Function_start
mov qword [rsp + 0x20], rax
lea edx, [rsi + 0x32]
lea r8d, [rsi + 1]
mov rcx, rbp
call fcn.1400144a0
test rdi, rdi
je 0x140054325
cmp si, word [rdi]
je 0x140054325
mov qword [rsp + 0x68], rsi
cmp byte [0x1400d5081], sil
jne 0x140053c8c
call fcn.14001dc80
test al, al
jne 0x140053c8c
xor r12b, r12b
jmp 0x140053c94
movzx r12d, byte [0x1400d3748]
mov eax, 0x20b
mov r9d, 0xb
test r12b, r12b
cmovne r9d, eax
lea rax, [rsp + 0x68]
mov qword [rsp + 0x20], rax
xor r8d, r8d
lea rdx, str.SOFTWAREMicrosoftWindowsCurrentVersionDIFxDriverStore
mov rcx, 0xffffffff80000002
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x1400542ca
mov r13d, esi
mov qword [rsp + 0x58], rsi
mov qword [rsp + 0x50], rsi
mov qword [rsp + 0x48], rsi
lea rax, [rsp + 0xb8]
mov qword [rsp + 0x40], rax
lea rax, [rsp + 0x74]
mov qword [rsp + 0x38], rax
mov qword [rsp + 0x30], rsi
lea rax, [rsp + 0x60]
mov qword [rsp + 0x28], rax
lea rax, [rsp + 0x70]
mov qword [rsp + 0x20], rax
xor r9d, r9d
xor r8d, r8d
xor edx, edx
mov rcx, qword [rsp + 0x68]
call qword [sym.imp.ADVAPI32.dll_RegQueryInfoKeyW]
test eax, eax
jne 0x14005426e
mov eax, dword [rsp + 0x60]
inc eax
mov dword [rsp + 0x60], eax
mov ecx, eax
mov eax, 2
mul rcx
mov rcx, 0xffffffffffffffff
cmovo rax, rcx
mov rcx, rax
call fcn.140067ea4
mov r14, rax
test rax, rax
je 0x140054230
lea r9, [rsp + 0xf0]
cmp qword [rsp + 0x108], 8
cmovae r9, qword [rsp + 0xf0]
mov ecx, dword [rsp + 0x74]
mov dword [rsp + 0x30], ecx
mov dword [rsp + 0x28], 1
lea rax, str.Parameter___i_:__i
mov qword [rsp + 0x20], rax
mov edx, 0x1e
lea r8d, [rdx - 0x1d]
mov rcx, rbp
call fcn.1400144a0
mov r15d, dword [rsp + 0x70]
dec r15d
js 0x140054223
lea rbx, str.Error___i__return_by_function___s_
nop dword [rax + rax]
mov eax, dword [rsp + 0x60]
mov dword [rsp + 0x78], eax
mov qword [rsp + 0x38], rsi
mov qword [rsp + 0x30], rsi
mov qword [rsp + 0x28], rsi
mov qword [rsp + 0x20], rsi
lea r9, [rsp + 0x78]
mov r8, r14
mov edx, r15d
mov rcx, qword [rsp + 0x68]
call qword [sym.imp.ADVAPI32.dll_RegEnumKeyExW]
test eax, eax
jne 0x1400541c3
mov qword [rsp + 0x158], 7
mov qword [rsp + 0x150], rsi
mov word [rsp + 0x140], si
mov qword [rsp + 0x130], 7
mov qword [rsp + 0x128], rsi
mov word [rsp + 0x118], si
mov byte [rsp + 0x20], r12b
lea r9, [rsp + 0x138]
lea r8, str.Services
mov rdx, r14
mov rcx, qword [rsp + 0x68]
call fcn.140033fa0
test al, al
je 0x140054175
lea rcx, [rsp + 0x140]
cmp qword [rsp + 0x158], 8
cmovae rcx, qword [rsp + 0x140]
mov rdx, rdi
call fcn.1400668a8
test eax, eax
jne 0x140054175
lea ecx, [rax + 8]
call fcn.140065e94
test rax, rax
je 0x140053e9f
lea rcx, [rsp + 0x80]
mov qword [rax], rcx
jmp 0x140053ea2
mov rax, rsi
mov qword [rsp + 0x80], rax
mov qword [rsp + 0x98], rsi
mov qword [rsp + 0xa0], rsi
mov qword [rsp + 0xa8], rsi
mov byte [rsp + 0x20], r12b
lea r9, [rsp + 0x80]
lea r8, str.DependentInstaller
mov rdx, r14
mov rcx, qword [rsp + 0x68]
call fcn.140033370
test eax, eax
jne 0x140054061
mov rdi, qword [rsp + 0x98]
cmp rdi, qword [rsp + 0xa0]
jbe 0x140053f02
call fcn.1400679f0
mov rax, qword [rsp + 0x80]
mov qword [rsp + 0xc0], rax
mov qword [rsp + 0xc8], rdi
movaps xmm0, xmmword [rsp + 0xc0]
movdqa xmmword [rsp + 0xd0], xmm0
mov rbx, qword [rsp + 0xd0]
mov rsi, qword [rsp + 0xd8]
nop dword [rax + rax]
mov rdi, qword [rsp + 0xa0]
cmp qword [rsp + 0x98], rdi
jbe 0x140053f57
call fcn.1400679f0
test rbx, rbx
je 0x140053f66
cmp rbx, qword [rsp + 0x80]
je 0x140053f6b
call fcn.1400679f0
cmp rsi, rdi
je 0x14005405f
test rbx, rbx
jne 0x140053f82
call fcn.1400679f0
xor edx, edx
jmp 0x140053f85
mov rdx, qword [rbx]
cmp rsi, qword [rdx + 0x20]
jb 0x140053f90
call fcn.1400679f0
cmp qword [rsi + 0x18], 0
je 0x14005403a
xor eax, eax
or rcx, 0xffffffffffffffff
lea rdi, str.SOFTWAREMicrosoftWindowsCurrentVersionDIFxAppComponents
repne scasw ax, word [rdi]
not rcx
lea r8, [rcx - 1]
lea rdx, str.SOFTWAREMicrosoftWindowsCurrentVersionDIFxAppComponents
lea rcx, [rsp + 0x110]
call fcn.140001870
lea rdx, [0x1400ad338]
lea rcx, [rsp + 0x110]
call fcn.140011dd0
test rbx, rbx
jne 0x140053fe8
call fcn.1400679f0
xor edx, edx
jmp 0x140053feb
mov rdx, qword [rbx]
cmp rsi, qword [rdx + 0x20]
jb 0x140053ff6
call fcn.1400679f0
or r9, 0xffffffffffffffff
xor r8d, r8d
mov rdx, rsi
lea rcx, [rsp + 0x110]
call fcn.140001720
lea r8, [rsp + 0x118]
cmp qword [rsp + 0x130], 8
cmovae r8, qword [rsp + 0x118]
movzx r9d, r12b
mov rdx, 0xffffffff80000002
mov rcx, rbp
call fcn.140034db0
test rbx, rbx
jne 0x140054048
call fcn.1400679f0
xor edx, edx
jmp 0x14005404b
mov rdx, qword [rbx]
cmp rsi, qword [rdx + 0x20]
jb 0x140054056
call fcn.1400679f0
add rsi, 0x28
jmp 0x140053f40
xor esi, esi
xor eax, eax
or rbx, 0xffffffffffffffff
mov rcx, rbx
lea rdi, str.SOFTWAREMicrosoftWindowsCurrentVersionDIFxDriverStore
repne scasw ax, word [rdi]
not rcx
lea r8, [rcx - 1]
lea rdx, str.SOFTWAREMicrosoftWindowsCurrentVersionDIFxDriverStore
lea rcx, [rsp + 0x110]
call fcn.140001870
lea rdx, [0x1400ad338]
lea rcx, [rsp + 0x110]
call fcn.140011dd0
xor eax, eax
mov rcx, rbx
mov rdi, r14
repne scasw ax, word [rdi]
not rcx
lea r8, [rcx - 1]
mov rdx, r14
lea rcx, [rsp + 0x110]
call fcn.14000a130
lea r8, [rsp + 0x118]
cmp qword [rsp + 0x130], 8
cmovae r8, qword [rsp + 0x118]
movzx r9d, r12b
mov rdx, 0xffffffff80000002
mov rcx, rbp
call fcn.140034db0
nop
mov rcx, qword [rsp + 0x98]
test rcx, rcx
je 0x140054149
mov rbx, qword [rsp + 0xa0]
cmp rcx, rbx
je 0x140054144
lea rdi, [rcx + 0x20]
cmp qword [rdi], 8
jb 0x140054120
mov rcx, qword [rdi - 0x18]
call fcn.140065920
mov qword [rdi], 7
mov qword [rdi - 8], rsi
mov word [rdi - 0x18], si
add rdi, 0x28
lea rax, [rdi - 0x20]
cmp rax, rbx
jne 0x140054111
mov rcx, qword [rsp + 0x98]
call fcn.140065920
mov qword [rsp + 0x98], rsi
mov qword [rsp + 0xa0], rsi
mov qword [rsp + 0xa8], rsi
mov rcx, qword [rsp + 0x80]
call fcn.140065920
lea rbx, str.Error___i__return_by_function___s_
cmp qword [rsp + 0x130], 8
jb 0x14005418d
mov rcx, qword [rsp + 0x118]
call fcn.140065920
mov qword [rsp + 0x130], 7
mov qword [rsp + 0x128], rsi
mov word [rsp + 0x118], si
cmp qword [rsp + 0x158], 8
jb 0x140054211
mov rcx, qword [rsp + 0x140]
call fcn.140065920
jmp 0x140054211
mov r13d, 4
lea rdi, [rsp + 0xf0]
cmp qword [rsp + 0x108], 8
cmovae rdi, qword [rsp + 0xf0]
call qword [sym.imp.KERNEL32.dll_GetLastError]
lea rcx, str.RegEnumValue
mov qword [rsp + 0x30], rcx
mov dword [rsp + 0x28], eax
mov qword [rsp + 0x20], rbx
mov r9, rdi
lea edx, [r13 + 0x10]
lea r8d, [r13 - 3]
mov rcx, rbp
call fcn.1400144a0
sub r15d, 1
mov rdi, qword [rsp + 0xb0]
jns 0x140053dc0
mov rcx, r14
call fcn.140067eac
jmp 0x1400542ba
mov r13d, 9
lea r9, [rsp + 0xf0]
cmp qword [rsp + 0x108], 8
cmovae r9, qword [rsp + 0xf0]
lea rax, str.Insufficient_memory
mov qword [rsp + 0x20], rax
lea edx, [r13 + 0xb]
lea r8d, [r13 - 8]
mov rcx, rbp
call fcn.1400144a0
jmp 0x1400542ba
mov r13d, 4
lea r9, [rsp + 0xf0]
cmp qword [rsp + 0x108], 8
cmovae r9, qword [rsp + 0xf0]
lea rcx, str.RegQueryInfoKey
mov qword [rsp + 0x30], rcx
mov dword [rsp + 0x28], eax
lea rax, str.Error___i__return_by_function___s_
mov qword [rsp + 0x20], rax
lea edx, [r13 + 0x10]
lea r8d, [r13 - 3]
mov rcx, rbp
call fcn.1400144a0
mov rcx, qword [rsp + 0x68]
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
jmp 0x140054360
cmp eax, 2
jne 0x1400542d7
mov r13d, esi
jmp 0x140054360
mov r13d, 4
lea r9, [rsp + 0xf0]
cmp qword [rsp + 0x108], 8
cmovae r9, qword [rsp + 0xf0]
lea rcx, str.RegOpenKeyEx
mov qword [rsp + 0x30], rcx
mov dword [rsp + 0x28], eax
lea rax, str.Error___i__return_by_function___s_
mov qword [rsp + 0x20], rax
lea edx, [r13 + 0x10]
lea r8d, [r13 - 3]
mov rcx, rbp
call fcn.1400144a0
jmp 0x140054360
mov r13d, 8
lea r9, [rsp + 0xf0]
cmp qword [rsp + 0x108], r13
cmovae r9, qword [rsp + 0xf0]
lea rax, str.Wrong_parameter
mov qword [rsp + 0x20], rax
lea edx, [r13 + 0xc]
lea r8d, [r13 - 7]
mov rcx, rbp
call fcn.1400144a0
lea r9, [rsp + 0xf0]
cmp qword [rsp + 0x108], 8
cmovae r9, qword [rsp + 0xf0]
mov dword [rsp + 0x28], r13d
lea rax, str.Return_code__0x_x_
mov qword [rsp + 0x20], rax
mov edx, 0x28
lea r8d, [rdx - 0x27]
mov rcx, rbp
call fcn.1400144a0
lea r9, [rsp + 0xf0]
cmp qword [rsp + 0x108], 8
cmovae r9, qword [rsp + 0xf0]
lea rax, str.Function_end
mov qword [rsp + 0x20], rax
mov edx, 0x32
lea r8d, [rdx - 0x31]
mov rcx, rbp
call fcn.1400144a0
nop
cmp qword [rsp + 0x108], 8
jb 0x1400543f1
mov rcx, qword [rsp + 0xf0]
call fcn.140065920
mov eax, r13d
jmp 0x1400543f4
mov eax, r13d
mov rcx, qword [rsp + 0x160]
xor rcx, rsp
call fcn.140064b70
mov rbx, qword [rsp + 0x1c0]
add rsp, 0x170
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
ret