Function at 0x1401c19e0
Capabilities:
Query or enumerate registry value

Disassembly:
push rbp
push rbx
push rsi
push rdi
lea rbp, [rsp - 0x7e8]
sub rsp, 0x8e8
mov qword [rbp - 0x38], 0xfffffffffffffffe
mov rax, qword [0x1403eaa10]
xor rax, rsp
mov qword [rbp + 0x7d0], rax
mov qword [rbp - 0x40], r9
mov rsi, r8
mov rdi, rdx
mov qword [rsp + 0x30], rdx
mov qword [rbp - 0x58], rcx
mov rax, qword [rbp + 0x830]
mov qword [rbp - 0x60], rax
mov r8, qword [r9]
lea rdx, str.CLSID_s_
lea rcx, [rbp - 0x78]
call fcn.1401e94c0
nop
xor eax, eax
mov qword [rsp + 0x60], rax
lea rax, [0x140323de0]
mov edx, dword [rbp - 0x6c]
test edx, edx
jne 0x1401c1a5b
mov qword [rsp + 0x58], rax
jmp 0x1401c1a83
lea rcx, [rsp + 0x58]
call fcn.1401e9030
movsxd r9, dword [rbp - 0x6c]
mov eax, dword [rsp + 0x60]
inc eax
movsxd rdx, eax
mov r8, qword [rbp - 0x78]
mov rcx, qword [rsp + 0x58]
call fcn.14029b4d8
mov edx, dword [rbp - 0x6c]
lea rcx, [rsp + 0x58]
call fcn.1401ea290
nop
lea rdx, str.InprocServer32
lea rcx, [rsp + 0x58]
call fcn.1401e7680
lea rax, [rbp - 0x68]
mov qword [rsp + 0x20], rax
mov r9d, 0x20019
xor r8d, r8d
mov rdx, qword [rsp + 0x58]
mov rcx, rdi
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
je 0x1401c1c1e
cmp byte [rbp + 0x838], 0
jne 0x1401c1c17
lea rdx, str.TreatAs
lea rcx, [rbp - 0x78]
call fcn.1401e7680
mov rbx, rax
mov edx, dword [rax + 0xc]
lea rcx, [rsp + 0x58]
call fcn.1401e9030
movsxd r9, dword [rbx + 0xc]
mov ecx, dword [rsp + 0x60]
inc ecx
movsxd rdx, ecx
mov r8, qword [rbx]
mov rcx, qword [rsp + 0x58]
call fcn.14029b4d8
mov edx, dword [rbx + 0xc]
lea rcx, [rsp + 0x58]
call fcn.1401ea290
lea rax, [rbp - 0x68]
mov qword [rsp + 0x20], rax
mov r9d, 0x20019
xor r8d, r8d
mov rdx, qword [rsp + 0x58]
mov rcx, rdi
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x1401c1c17
mov dword [rsp + 0x40], 0x800
lea r9, [rsp + 0x40]
lea r8, [rbp - 0x30]
xor edx, edx
mov rcx, qword [rbp - 0x68]
call qword [sym.imp.ADVAPI32.dll_RegQueryValueW]
mov ebx, eax
mov rcx, qword [rbp - 0x68]
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
test ebx, ebx
jne 0x1401c1c17
lea rax, [rbp - 0x30]
or rbx, 0xffffffffffffffff
nop dword [rax]
inc rbx
cmp word [rax + rbx*2], 0
jne 0x1401c1b80
xor eax, eax
mov qword [rsp + 0x70], rax
test ebx, ebx
jne 0x1401c1ba3
lea rax, [0x140323de0]
mov qword [rsp + 0x68], rax
jmp 0x1401c1bc9
mov edx, ebx
lea rcx, [rsp + 0x68]
call fcn.1401e9030
movsxd r9, ebx
mov eax, dword [rsp + 0x70]
inc eax
movsxd rdx, eax
lea r8, [rbp - 0x30]
mov rcx, qword [rsp + 0x68]
call fcn.14029b4d8
mov edx, ebx
lea rcx, [rsp + 0x68]
call fcn.1401ea290
nop
mov byte [rsp + 0x28], 1
mov rdx, qword [rbp - 0x60]
mov qword [rsp + 0x20], rdx
lea r9, [rsp + 0x68]
mov r8, rsi
mov rdx, rdi
mov rcx, qword [rbp - 0x58]
call fcn.1401c19e0
mov byte [rsp + 0x44], al
cmp dword [rsp + 0x70], 0
jle 0x1401c1c0d
mov rcx, qword [rsp + 0x68]
call fcn.140298600
movzx ebx, byte [rsp + 0x44]
jmp 0x1401c2234
xor bl, bl
jmp 0x1401c2234
mov dword [rsp + 0x40], 0x800
lea rax, [rsp + 0x40]
mov qword [rsp + 0x28], rax
lea rax, [rbp - 0x30]
mov qword [rsp + 0x20], rax
xor r9d, r9d
xor r8d, r8d
xor edx, edx
mov rcx, qword [rbp - 0x68]
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x1401c2227
lea rax, [rbp - 0x30]
or rbx, 0xffffffffffffffff
mov rdi, rbx
nop
inc rdi
cmp word [rax + rdi*2], 0
jne 0x1401c1c60
xor eax, eax
mov qword [rsp + 0x50], rax
test edi, edi
jne 0x1401c1c83
lea rax, [0x140323de0]
mov qword [rsp + 0x48], rax
jmp 0x1401c1ca9
mov edx, edi
lea rcx, [rsp + 0x48]
call fcn.1401e9030
movsxd r9, edi
mov eax, dword [rsp + 0x50]
inc eax
movsxd rdx, eax
lea r8, [rbp - 0x30]
mov rcx, qword [rsp + 0x48]
call fcn.14029b4d8
mov edx, edi
lea rcx, [rsp + 0x48]
call fcn.1401ea290
nop
lea rdx, [rsp + 0x48]
call fcn.1401c36c0
mov r8b, 1
lea rdx, [rsp + 0x48]
mov rcx, qword [rbp - 0x58]
mov rcx, qword [rcx + 8]
call fcn.1400f9eb0
mov qword [rbp - 0x48], rax
test rax, rax
je 0x1401c2212
or qword [rax + 0x40], 0x1000
mov rdx, qword [rbp - 0x60]
mov rcx, rax
call fcn.1400ed120
xor eax, eax
mov qword [rsp + 0x70], rax
mov edx, dword [rsi + 0xc]
test edx, edx
jne 0x1401c1d12
lea rax, [0x140323de0]
mov qword [rsp + 0x68], rax
jmp 0x1401c1d36
lea rcx, [rsp + 0x68]
call fcn.1401e9030
movsxd r9, dword [rsi + 0xc]
mov eax, dword [rsp + 0x70]
inc eax
movsxd rdx, eax
mov r8, qword [rsi]
mov rcx, qword [rsp + 0x68]
call fcn.14029b4d8
mov edx, dword [rsi + 0xc]
lea rcx, [rsp + 0x68]
call fcn.1401ea290
nop
mov edi, dword [rsp + 0x74]
add edi, dword [rbp - 0x6c]
mov edx, edi
lea rcx, [rsp + 0x68]
call fcn.1401e9030
movsxd r9, dword [rbp - 0x6c]
mov ecx, dword [rsp + 0x70]
movsxd rax, dword [rsp + 0x74]
sub ecx, eax
inc ecx
movsxd rdx, ecx
mov rcx, rax
mov rax, qword [rsp + 0x68]
lea rcx, [rax + rcx*2]
mov r8, qword [rbp - 0x78]
call fcn.14029b4d8
mov edx, edi
lea rcx, [rsp + 0x68]
call fcn.1401ea290
lea rdx, [rsp + 0x68]
mov rdi, qword [rbp - 0x48]
mov rcx, rdi
call fcn.1400e0da0
mov edx, dword [rbp - 0x6c]
lea rcx, [rsp + 0x58]
call fcn.1401e9030
movsxd r9, dword [rbp - 0x6c]
mov eax, dword [rsp + 0x60]
inc eax
movsxd rdx, eax
mov r8, qword [rbp - 0x78]
mov rcx, qword [rsp + 0x58]
call fcn.14029b4d8
mov edx, dword [rbp - 0x6c]
lea rcx, [rsp + 0x58]
call fcn.1401ea290
lea rdx, str.ProgID
lea rcx, [rsp + 0x58]
call fcn.1401e7680
lea rax, [rbp - 0x60]
mov qword [rsp + 0x20], rax
mov r9d, 0x20019
xor r8d, r8d
mov rdx, qword [rsp + 0x58]
mov rcx, qword [rsp + 0x30]
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x1401c1fc7
mov dword [rsp + 0x40], 0x800
lea rax, [rsp + 0x40]
mov qword [rsp + 0x28], rax
lea rax, [rbp - 0x30]
mov qword [rsp + 0x20], rax
xor r9d, r9d
xor r8d, r8d
xor edx, edx
mov rcx, qword [rbp - 0x60]
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x1401c1fbd
lea rax, [rbp - 0x30]
mov rdi, rbx
nop dword [rax]
inc rdi
cmp word [rax + rdi*2], 0
jne 0x1401c1e50
test edi, edi
jle 0x1401c1e86
mov edx, edi
lea rcx, [rsp + 0x48]
call fcn.1401e9030
movsxd r9, edi
mov eax, dword [rsp + 0x50]
inc eax
movsxd rdx, eax
lea r8, [rbp - 0x30]
mov rcx, qword [rsp + 0x48]
call fcn.14029b4d8
jmp 0x1401c1e8d
cmp dword [rsp + 0x54], 0
jle 0x1401c1e99
mov edx, edi
lea rcx, [rsp + 0x48]
call fcn.1401ea290
xor eax, eax
mov qword [rbp - 0x80], rax
mov edx, dword [rsi + 0xc]
test edx, edx
jne 0x1401c1eb4
lea rax, [0x140323de0]
mov qword [rsp + 0x78], rax
jmp 0x1401c1ed7
lea rcx, [rsp + 0x78]
call fcn.1401e9030
movsxd r9, dword [rsi + 0xc]
mov eax, dword [rbp - 0x80]
inc eax
movsxd rdx, eax
mov r8, qword [rsi]
mov rcx, qword [rsp + 0x78]
call fcn.14029b4d8
mov edx, dword [rsi + 0xc]
lea rcx, [rsp + 0x78]
call fcn.1401ea290
nop
mov edi, dword [rbp - 0x7c]
add edi, dword [rsp + 0x54]
mov edx, edi
lea rcx, [rsp + 0x78]
call fcn.1401e9030
movsxd r9, dword [rsp + 0x54]
mov ecx, dword [rbp - 0x80]
movsxd rax, dword [rbp - 0x7c]
sub ecx, eax
inc ecx
movsxd rdx, ecx
mov rcx, rax
mov rax, qword [rsp + 0x78]
lea rcx, [rax + rcx*2]
mov r8, qword [rsp + 0x48]
call fcn.14029b4d8
mov edx, edi
lea rcx, [rsp + 0x78]
call fcn.1401ea290
mov edx, dword [rbp - 0x7c]
inc edx
lea rcx, [rsp + 0x78]
call fcn.1401e9030
movsxd rcx, dword [rbp - 0x7c]
mov rax, qword [rsp + 0x78]
mov edx, 0x5c
mov word [rax + rcx*2], dx
mov edx, dword [rbp - 0x7c]
inc edx
lea rcx, [rsp + 0x78]
call fcn.1401ea290
lea rdx, [rsp + 0x78]
mov rdi, qword [rbp - 0x48]
mov rcx, rdi
call fcn.1400e0da0
mov r8d, 1
lea rdx, [0x14033ec90]
lea rcx, [rsp + 0x48]
call fcn.1401e8ee0
test al, al
je 0x1401c1fad
mov edx, dword [rbp - 0x7c]
add edx, 0xfffffffd
mov r8d, 2
lea rcx, [rsp + 0x78]
call fcn.1401ea390
lea rdx, [rsp + 0x78]
mov rcx, rdi
call fcn.1400e0da0
nop
cmp dword [rbp - 0x80], 0
jle 0x1401c1fbd
mov rcx, qword [rsp + 0x78]
call fcn.140298600
mov rcx, qword [rbp - 0x60]
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov edx, dword [rbp - 0x6c]
lea rcx, [rsp + 0x58]
call fcn.1401e9030
movsxd r9, dword [rbp - 0x6c]
mov eax, dword [rsp + 0x60]
inc eax
movsxd rdx, eax
mov r8, qword [rbp - 0x78]
mov rcx, qword [rsp + 0x58]
call fcn.14029b4d8
mov edx, dword [rbp - 0x6c]
lea rcx, [rsp + 0x58]
call fcn.1401ea290
lea rdx, [0x1403347e8]
lea rcx, [rsp + 0x58]
call fcn.1401e7680
lea rax, [rbp - 0x50]
mov qword [rsp + 0x20], rax
mov r9d, 0x20019
xor r8d, r8d
mov rdx, qword [rsp + 0x58]
mov rcx, qword [rsp + 0x30]
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x1401c21ed
mov dword [rsp + 0x40], 0x800
lea rax, [rsp + 0x40]
mov qword [rsp + 0x28], rax
lea rax, [rbp - 0x30]
mov qword [rsp + 0x20], rax
xor r9d, r9d
xor r8d, r8d
xor edx, edx
mov rcx, qword [rbp - 0x50]
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x1401c21e3
lea rax, [rbp - 0x30]
inc rbx
cmp word [rax + rbx*2], 0
jne 0x1401c2070
test ebx, ebx
jle 0x1401c20a6
mov edx, ebx
lea rcx, [rsp + 0x48]
call fcn.1401e9030
movsxd r9, ebx
mov eax, dword [rsp + 0x50]
inc eax
movsxd rdx, eax
lea r8, [rbp - 0x30]
mov rcx, qword [rsp + 0x48]
call fcn.14029b4d8
jmp 0x1401c20ad
cmp dword [rsp + 0x54], 0
jle 0x1401c20b9
mov edx, ebx
lea rcx, [rsp + 0x48]
call fcn.1401ea290
xor eax, eax
mov qword [rsp + 0x38], rax
mov edx, dword [rsi + 0xc]
test edx, edx
jne 0x1401c20d5
lea rax, [0x140323de0]
mov qword [rsp + 0x30], rax
jmp 0x1401c20f9
lea rcx, [rsp + 0x30]
call fcn.1401e9030
movsxd r9, dword [rsi + 0xc]
mov eax, dword [rsp + 0x38]
inc eax
movsxd rdx, eax
mov r8, qword [rsi]
mov rcx, qword [rsp + 0x30]
call fcn.14029b4d8
mov edx, dword [rsi + 0xc]
lea rcx, [rsp + 0x30]
call fcn.1401ea290
nop
lea rdx, [0x1403347e8]
lea rcx, [rsp + 0x30]
call fcn.1401e7680
mov edx, dword [rsp + 0x3c]
inc edx
lea rcx, [rsp + 0x30]
call fcn.1401e9030
movsxd rcx, dword [rsp + 0x3c]
mov rax, qword [rsp + 0x30]
mov esi, 0x5c
mov word [rax + rcx*2], si
mov edx, dword [rsp + 0x3c]
inc edx
lea rcx, [rsp + 0x30]
call fcn.1401ea290
mov ebx, dword [rsp + 0x3c]
add ebx, dword [rsp + 0x54]
mov edx, ebx
lea rcx, [rsp + 0x30]
call fcn.1401e9030
movsxd r9, dword [rsp + 0x54]
mov ecx, dword [rsp + 0x38]
movsxd rax, dword [rsp + 0x3c]
sub ecx, eax
inc ecx
movsxd rdx, ecx
mov rcx, rax
mov rax, qword [rsp + 0x30]
lea rcx, [rax + rcx*2]
mov r8, qword [rsp + 0x48]
call fcn.14029b4d8
mov edx, ebx
lea rcx, [rsp + 0x30]
call fcn.1401ea290
mov edx, dword [rsp + 0x3c]
inc edx
lea rcx, [rsp + 0x30]
call fcn.1401e9030
movsxd rcx, dword [rsp + 0x3c]
mov rax, qword [rsp + 0x30]
mov word [rax + rcx*2], si
mov edx, dword [rsp + 0x3c]
inc edx
lea rcx, [rsp + 0x30]
call fcn.1401ea290
lea rdx, [rsp + 0x30]
mov rcx, rdi
call fcn.1400e0da0
nop
cmp dword [rsp + 0x38], 0
jle 0x1401c21e3
mov rcx, qword [rsp + 0x30]
call fcn.140298600
mov rcx, qword [rbp - 0x50]
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov r8, rdi
mov rdx, qword [rbp - 0x40]
mov rcx, qword [rbp - 0x58]
call fcn.1401c1440
mov bl, 1
cmp dword [rsp + 0x70], 0
jle 0x1401c2214
mov rcx, qword [rsp + 0x68]
call fcn.140298600
jmp 0x1401c2214
xor bl, bl
cmp dword [rsp + 0x50], 0
jle 0x1401c2229
mov rcx, qword [rsp + 0x48]
call fcn.140298600
jmp 0x1401c2229
xor bl, bl
mov rcx, qword [rbp - 0x68]
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
nop
cmp dword [rsp + 0x60], 0
jle 0x1401c2246
mov rcx, qword [rsp + 0x58]
call fcn.140298600
nop
cmp dword [rbp - 0x70], 0
jle 0x1401c2255
mov rcx, qword [rbp - 0x78]
call fcn.140298600
movzx eax, bl
mov rcx, qword [rbp + 0x7d0]
xor rcx, rsp
call fcn.140297ff0
add rsp, 0x8e8
pop rdi
pop rsi
pop rbx
pop rbp
ret