Function at 0x140054270
Capabilities:
Query or enumerate registry key

Disassembly:
mov byte [rsp + 0x20], r9b
mov byte [rsp + 0x18], r8b
mov qword [rsp + 0x10], rdx
mov qword [rsp + 8], rcx
push rbp
push rbx
push rsi
push rdi
push r12
push r13
push r14
push r15
lea rbp, [rsp - 0x1f]
sub rsp, 0xe8
movzx esi, r9b
movzx r14d, r8b
mov rdi, rcx
mov dword [rsp + 0x48], 0
call fcn.140008400
mov r10, qword [rax]
mov rcx, rax
call qword [r10 + 0x30]
mov qword [rbp - 0x69], rax
lea rbx, [rax - 0x18]
mov rcx, qword [rbx]
mov eax, dword [rbx + 0x10]
cmp eax, 1
jle 0x14005433c
mov rax, qword [rcx]
mov byte [rsp + 0x30], 1
mov byte [rsp + 0x28], 1
mov byte [rsp + 0x20], 1
mov r9d, 0x820
mov r8d, dword [rbx + 8]
mov rdx, qword [rbp - 0x69]
call qword [rax + 0x28]
mov qword [rbp - 0x69], rax
mov r15d, 0xffffffff
mov ecx, r15d
xchg dword [rax - 8], ecx
mov eax, dword [rbx + 0x10]
cmp eax, 0x7ffffc17
je 0x1400543c6
mov eax, dword [rbx + 0x10]
cmp eax, r15d
je 0x14005432b
mov eax, r15d
lock xadd dword [rbx + 0x10], eax
sub eax, 1
jg 0x1400543c6
mov rcx, qword [rbx]
mov rax, qword [rcx]
mov rdx, rbx
call qword [rax + reloc.OLEAUT32.dll_VariantClear]
jmp 0x1400543c6
cmp dword [rbx + 0xc], 0x820
jg 0x1400543ba
mov eax, 0x820
mov r9d, 1
add r9d, r9d
shr eax, 1
jne 0x140054350
mov eax, dword [rbx + 0x10]
mov r10, qword [rcx]
cmp eax, 0xffffffff
setne al
mov byte [rsp + 0x30], 1
mov byte [rsp + 0x28], al
mov byte [rsp + 0x20], 0
mov r8d, dword [rbx + 8]
mov rdx, qword [rbp - 0x69]
call qword [r10 + 0x28]
mov qword [rbp - 0x69], rax
mov r15d, 0xffffffff
mov ecx, r15d
xchg dword [rax - 8], ecx
mov eax, dword [rbx + 0x10]
cmp eax, 0x7ffffc17
je 0x1400543c6
mov eax, dword [rbx + 0x10]
cmp eax, r15d
je 0x1400543ac
mov eax, r15d
lock xadd dword [rbx + 0x10], eax
sub eax, 1
jg 0x1400543c6
mov rcx, qword [rbx]
mov rax, qword [rcx]
mov rdx, rbx
call qword [rax + reloc.OLEAUT32.dll_VariantClear]
jmp 0x1400543c6
mov r15d, 0xffffffff
mov eax, r15d
xchg dword [rbx + 0x10], eax
mov rax, qword [0x140199908]
test rax, rax
je 0x1400543d8
mov rcx, qword [rax + 8]
jmp 0x1400543da
xor ecx, ecx
mov r8d, 0x820
mov rbx, qword [rbp - 0x69]
mov rdx, rbx
call qword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
lea r13, [rbx - 0x18]
test rbx, rbx
jne 0x1400543fa
xor ecx, ecx
jmp 0x140054414
mov rcx, rbx
nop dword [rax]
movzx eax, word [rcx]
add rcx, 2
test ax, ax
jne 0x140054400
sub rcx, rbx
sar rcx, 1
dec ecx
mov dword [r13 + 8], ecx
mov eax, dword [r13 + 0x10]
cmp eax, 0xffffffff
jne 0x14005442a
mov eax, 1
xchg dword [r13 + 0x10], eax
call fcn.140008400
mov rdx, qword [rax]
mov rcx, rax
call qword [rdx + 0x30]
mov qword [rbp - 0x79], rax
lea rdx, [rbp - 0x61]
mov rcx, rdi
call fcn.140054110
nop
mov rdx, qword [rbp - 0x69]
lea rcx, [rbp - 0x29]
call fcn.14004a510
nop
lea r8, str.Portable.dat
lea rdx, [rbp - 0x61]
lea rcx, [rbp - 1]
call fcn.14003ac90
nop
xor edx, edx
mov rcx, qword [rax]
call fcn.140042920
movzx ebx, al
mov rdx, qword [rbp - 1]
add rdx, 0xffffffffffffffe8
mov ecx, dword [rdx + 0x10]
cmp ecx, 0x7ffffc17
je 0x1400544ab
mov eax, dword [rdx + 0x10]
cmp eax, 0xffffffff
je 0x1400544a1
mov eax, r15d
lock xadd dword [rdx + 0x10], eax
sub eax, 1
jg 0x1400544ab
mov rcx, qword [rdx]
mov rax, qword [rcx]
call qword [rax + reloc.OLEAUT32.dll_VariantClear]
nop
test bl, bl
je 0x1400544d8
lea rdx, [rbp - 0x61]
lea rcx, [rbp - 0x79]
call fcn.1400333a0
mov rax, qword [rdi]
mov rcx, qword [rax + 0x18]
test rcx, rcx
je 0x140054b91
mov byte [rcx + 0xa48], 1
jmp 0x140054b91
call fcn.140008400
mov r10, qword [rax]
mov byte [rsp + 0x30], 1
mov byte [rsp + 0x28], 0
mov byte [rsp + 0x20], 0
mov r9d, r15d
mov r8d, r15d
lea rdx, str.SoftwareJ._RiverMedia_CoreInstallations
mov rcx, rax
call qword [r10 + 0x28]
mov rbx, rax
mov qword [rbp - 0x31], rax
lea rsi, str.x64_
mov rcx, rsi
movzx eax, word [rcx]
add rcx, 2
test ax, ax
jne 0x140054514
sub rcx, rsi
sar rcx, 1
dec ecx
mov rax, qword [rbp - 0x29]
mov edx, dword [rax - 0x10]
sub edx, ecx
js 0x140054568
movsxd rcx, edx
lea rdi, [rax + rcx*2]
call fcn.140008400
mov rcx, rax
mov r8, rsi
mov rdx, rdi
call fcn.140008570
test eax, eax
jne 0x140054568
xor r9d, r9d
lea rdx, str.SoftwareWOW6432NodeJ._RiverMedia_CoreInstallations
lea rcx, [rbp - 0x31]
call fcn.140038290
mov rbx, qword [rbp - 0x31]
xor esi, esi
mov qword [rbp - 0x41], rsi
mov dword [rbp - 0x39], esi
mov qword [rbp - 0x11], rsi
lea rax, [rbp - 0x11]
mov qword [rsp + 0x20], rax
mov r9d, 0x20019
xor r8d, r8d
mov rdx, rbx
mov rcx, 0xffffffff80000002
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x1400545b5
mov rcx, qword [rbp - 0x41]
test rcx, rcx
je 0x1400545aa
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov rax, qword [rbp - 0x11]
mov qword [rbp - 0x41], rax
mov dword [rbp - 0x39], esi
lea r8, [0x140129d58]
lea rdx, [rbp - 0x19]
lea rcx, [rbp - 0x41]
call fcn.14003f970
nop
mov r12d, esi
call fcn.140008400
mov rdx, qword [rax]
mov rcx, rax
call qword [rdx + 0x30]
mov qword [rbp - 0x71], rax
nop
xor bl, bl
lea rcx, [rbp - 0x71]
call fcn.1400336e0
cmp qword [rbp - 0x41], 0
je 0x140054658
mov r9b, 1
xor r8d, r8d
mov edx, 0x100
lea rcx, [rbp - 0x71]
call fcn.140033580
mov r9d, 0xff
mov r8, rax
mov edx, r12d
mov rcx, qword [rbp - 0x41]
call qword [sym.imp.ADVAPI32.dll_RegEnumKeyW]
test eax, eax
sete bl
mov rax, qword [rbp - 0x71]
test rax, rax
jne 0x14005462e
mov edx, esi
jmp 0x140054645
mov rdx, rax
movzx ecx, word [rdx]
add rdx, 2
test cx, cx
jne 0x140054631
sub rdx, rax
sar rdx, 1
dec edx
mov dword [rax - 0x10], edx
mov ecx, dword [rax - 8]
cmp ecx, 0xffffffff
jne 0x140054658
mov ecx, 1
xchg dword [rax - 8], ecx
inc r12d
test bl, bl
je 0x140054adb
mov qword [rbp - 0x51], rsi
mov dword [rbp - 0x49], esi
lea r8, [0x14013320c]
lea rdx, [rbp - 0x31]
lea rcx, [rbp + 7]
call fcn.14003ac90
mov rsi, rax
call fcn.140008400
mov rdx, qword [rax]
mov rcx, rax
call qword [rdx + 0x30]
mov qword [rbp - 0x21], rax
or dword [rsp + 0x48], 1
mov rbx, qword [rbp - 0x71]
mov rcx, qword [rsi]
mov r14d, dword [rcx - 0x10]
add r14d, dword [rbx - 0x10]
mov r9b, 1
xor r8d, r8d
mov edx, r14d
lea rcx, [rbp - 0x21]
call fcn.140033580
mov rdi, rax
mov rdx, qword [rsi]
movsxd r8, dword [rdx - 0x10]
add r8, r8
mov rcx, rax
call fcn.1400e1d70
movsxd r8, dword [rbx - 0x10]
add r8, r8
mov rcx, qword [rsi]
movsxd rdx, dword [rcx - 0x10]
lea rcx, [rdi + rdx*2]
mov rdx, rbx
call fcn.1400e1d70
mov rax, qword [rbp - 0x21]
cmp r14d, 0xffffffff
jne 0x140054718
test rax, rax
jne 0x1400546fd
xor esi, esi
mov ecx, esi
jmp 0x140054724
mov rcx, rax
movzx edx, word [rcx]
add rcx, 2
test dx, dx
jne 0x140054700
sub rcx, rax
sar rcx, 1
dec ecx
xor esi, esi
jmp 0x140054724
movsxd rcx, r14d
xor esi, esi
mov word [rax + rcx*2], si
mov ecx, r14d
mov dword [rax - 0x10], ecx
mov ecx, dword [rax - 8]
cmp ecx, 0xffffffff
jne 0x140054737
mov ecx, 1
xchg dword [rax - 8], ecx
mov qword [rbp - 9], rsi
lea rax, [rbp - 9]
mov qword [rsp + 0x20], rax
mov r9d, 0x20019
xor r8d, r8d
mov rbx, qword [rbp - 0x21]
mov rdx, rbx
mov rcx, 0xffffffff80000002
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x14005477f
mov rcx, qword [rbp - 0x51]
test rcx, rcx
je 0x140054774
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov rax, qword [rbp - 9]
mov qword [rbp - 0x51], rax
mov dword [rbp - 0x49], esi
and dword [rsp + 0x48], 0xfffffffe
lea rdx, [rbx - 0x18]
mov eax, dword [rdx + 0x10]
cmp eax, 0x7ffffc17
je 0x1400547b1
mov eax, dword [rdx + 0x10]
cmp eax, 0xffffffff
je 0x1400547a7
mov eax, r15d
lock xadd dword [rdx + 0x10], eax
sub eax, 1
jg 0x1400547b1
mov rcx, qword [rdx]
mov rax, qword [rcx]
call qword [rax + reloc.OLEAUT32.dll_VariantClear]
nop
mov rdx, qword [rbp + 7]
add rdx, 0xffffffffffffffe8
mov eax, dword [rdx + 0x10]
cmp eax, 0x7ffffc17
je 0x1400547e2
mov eax, dword [rdx + 0x10]
cmp eax, 0xffffffff
je 0x1400547d8
mov eax, r15d
lock xadd dword [rdx + 0x10], eax
sub eax, 1
jg 0x1400547e2
mov rcx, qword [rdx]
mov rax, qword [rcx]
call qword [rax + reloc.OLEAUT32.dll_VariantClear]
nop
lea r8, str.Path
lea rdx, [rsp + 0x40]
lea rcx, [rbp - 0x51]
call fcn.14003f970
nop
mov rdi, qword [rsp + 0x40]
cmp dword [rdi - 0x10], 0
jle 0x1400549ff
mov rax, qword [rbp + 0x6f]
mov r9, qword [rax]
cmp dword [r9 - 0x10], 0
jle 0x1400548d1
mov rax, qword [rbp - 0x71]
test rax, rax
jne 0x140054877
test r9, r9
je 0x140054831
cmp word [r9], ax
jne 0x1400549ff
lea rdx, [rsp + 0x40]
lea rcx, [rbp - 0x79]
call fcn.1400333a0
nop
mov rdx, qword [rsp + 0x40]
add rdx, 0xffffffffffffffe8
mov eax, dword [rdx + 0x10]
cmp eax, 0x7ffffc17
je 0x140054872
mov eax, dword [rdx + 0x10]
cmp eax, 0xffffffff
je 0x140054868
mov eax, r15d
lock xadd dword [rdx + 0x10], eax
sub eax, 1
jg 0x140054872
mov rcx, qword [rdx]
mov rax, qword [rcx]
call qword [rax + reloc.OLEAUT32.dll_VariantClear]
nop
jmp 0x140054acb
test r9, r9
jne 0x140054882
cmp word [rax], r9w
jmp 0x1400548c1
movzx ecx, word [rax]
cmp cx, word [r9]
jne 0x1400549ff
mov rdx, rsi
cmp cx, 0
je 0x1400548b8
mov r8, rsi
nop dword [rax + rax]
cmp cx, word [r8 + r9]
jne 0x1400548b8
inc rdx
lea r8, [rdx + rdx]
movzx ecx, word [r8 + rax]
test cx, cx
jne 0x1400548a0
movzx ecx, word [r9 + rdx*2]
cmp word [rax + rdx*2], cx
sete al
test al, al
jne 0x140054831
jmp 0x1400549ff
mov rax, qword [rbp - 0x61]
cmp dword [rax - 0x10], 0
jle 0x140054927
cmp word [rdi], 0
je 0x140054a47
mov rbx, rdi
nop dword [rax + rax]
movzx eax, word [rbx]
add rbx, 2
test ax, ax
jne 0x1400548f0
sub rbx, rdi
sar rbx, 1
call fcn.140008400
mov rcx, rax
lea r9d, [rbx - 1]
mov r8, rdi
mov rdx, qword [rbp - 0x61]
call fcn.14003bac0
test eax, eax
je 0x140054a47
mov rdi, qword [rsp + 0x40]
mov rax, qword [rbp - 0x29]
cmp dword [rax - 0x10], 0
jle 0x140054987
test rdi, rdi
je 0x140054a8a
cmp word [rdi], 0
je 0x140054a8a
mov rbx, rdi
nop word [rax + rax]
movzx eax, word [rbx]
add rbx, 2
test ax, ax
jne 0x140054950
sub rbx, rdi
sar rbx, 1
call fcn.140008400
mov rcx, rax
lea r9d, [rbx - 1]
mov r8, rdi
mov rdx, qword [rbp - 0x29]
call fcn.14003bac0
test eax, eax
je 0x140054a8a
mov rdi, qword [rsp + 0x40]
mov rax, qword [rbp - 0x71]
test rax, rax
jne 0x1400549a1
mov rax, qword [rbp - 0x19]
test rax, rax
je 0x1400549ec
cmp word [rax], 0
je 0x1400549ec
jmp 0x1400549ff
mov rcx, qword [rbp - 0x19]
test rcx, rcx
jne 0x1400549af
cmp word [rax], cx
jmp 0x1400549e5
movzx edx, word [rax]
cmp dx, word [rcx]
jne 0x1400549ff
mov r8, rsi
cmp dx, 0
je 0x1400549db
mov r9, rsi
cmp dx, word [r9 + rcx]
jne 0x1400549db
inc r8
lea r9, [r8 + r8]
movzx edx, word [r9 + rax]
test dx, dx
jne 0x1400549c3
movzx edx, word [rcx + r8*2]
cmp word [rax + r8*2], dx
sete al
test al, al
je 0x1400549ff
lea rdx, [rsp + 0x40]
lea rcx, [rbp - 0x79]
call fcn.1400333a0
mov rdi, qword [rsp + 0x40]
lea rdx, [rdi - 0x18]
mov eax, dword [rdx + 0x10]
cmp eax, 0x7ffffc17
je 0x140054a2c
mov eax, dword [rdx + 0x10]
cmp eax, 0xffffffff
je 0x140054a22
mov eax, r15d
lock xadd dword [rdx + 0x10], eax
sub eax, 1
jg 0x140054a2c
mov rcx, qword [rdx]
mov rax, qword [rcx]
call qword [rax + reloc.OLEAUT32.dll_VariantClear]
nop
mov rcx, qword [rbp - 0x51]
test rcx, rcx
je 0x140054a3f
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov qword [rbp - 0x51], rsi
mov dword [rbp - 0x49], esi
jmp 0x1400545e0
lea rdx, [rsp + 0x40]
lea rcx, [rbp - 0x79]
call fcn.1400333a0
nop
mov rdx, qword [rsp + 0x40]
add rdx, 0xffffffffffffffe8
mov eax, dword [rdx + 0x10]
cmp eax, 0x7ffffc17
je 0x140054a88
mov eax, dword [rdx + 0x10]
cmp eax, 0xffffffff
je 0x140054a7e
mov eax, r15d
lock xadd dword [rdx + 0x10], eax
sub eax, 1
jg 0x140054a88
mov rcx, qword [rdx]
mov rax, qword [rcx]
call qword [rax + reloc.OLEAUT32.dll_VariantClear]
nop
jmp 0x140054acb
lea rdx, [rsp + 0x40]
lea rcx, [rbp - 0x79]
call fcn.1400333a0
nop
mov rdx, qword [rsp + 0x40]
add rdx, 0xffffffffffffffe8
mov eax, dword [rdx + 0x10]
cmp eax, 0x7ffffc17
je 0x140054acb
mov eax, dword [rdx + 0x10]
cmp eax, 0xffffffff
je 0x140054ac1
mov eax, r15d
lock xadd dword [rdx + 0x10], eax
sub eax, 1
jg 0x140054acb
mov rcx, qword [rdx]
mov rax, qword [rcx]
call qword [rax + reloc.OLEAUT32.dll_VariantClear]
nop
mov rcx, qword [rbp - 0x51]
test rcx, rcx
je 0x140054adb
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
nop
mov rdx, qword [rbp - 0x71]
add rdx, 0xffffffffffffffe8
mov eax, dword [rdx + 0x10]
cmp eax, 0x7ffffc17
je 0x140054b0c
mov eax, dword [rdx + 0x10]
cmp eax, 0xffffffff
je 0x140054b02
mov eax, r15d
lock xadd dword [rdx + 0x10], eax
sub eax, 1
jg 0x140054b0c
mov rcx, qword [rdx]
mov rax, qword [rcx]
call qword [rax + reloc.OLEAUT32.dll_VariantClear]
nop
mov rdx, qword [rbp - 0x19]
add rdx, 0xffffffffffffffe8
mov eax, dword [rdx + 0x10]
cmp eax, 0x7ffffc17
je 0x140054b3d
mov eax, dword [rdx + 0x10]
cmp eax, 0xffffffff
je 0x140054b33
mov eax, r15d
lock xadd dword [rdx + 0x10], eax
sub eax, 1
jg 0x140054b3d
mov rcx, qword [rdx]
mov rax, qword [rcx]
call qword [rax + reloc.OLEAUT32.dll_VariantClear]
nop
mov rcx, qword [rbp - 0x41]
test rcx, rcx
je 0x140054b50
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov qword [rbp - 0x41], rsi
mov dword [rbp - 0x39], esi
mov rdx, qword [rbp - 0x31]
add rdx, 0xffffffffffffffe8
mov eax, dword [rdx + 0x10]
cmp eax, 0x7ffffc17
je 0x140054b84
mov eax, dword [rdx + 0x10]
cmp eax, 0xffffffff
je 0x140054b7a
mov eax, r15d
lock xadd dword [rdx + 0x10], eax
sub eax, 1
jg 0x140054b84
mov rcx, qword [rdx]
mov rax, qword [rcx]
call qword [rax + reloc.OLEAUT32.dll_VariantClear]
nop
mov rdi, qword [rbp + 0x67]
movzx esi, byte [rbp + 0x7f]
movzx r14d, byte [rbp + 0x77]
mov rdx, qword [rbp - 0x29]
add rdx, 0xffffffffffffffe8
mov eax, dword [rdx + 0x10]
cmp eax, 0x7ffffc17
je 0x140054bc2
mov eax, dword [rdx + 0x10]
cmp eax, 0xffffffff
je 0x140054bb8
mov eax, r15d
lock xadd dword [rdx + 0x10], eax
sub eax, 1
jg 0x140054bc2
mov rcx, qword [rdx]
mov rax, qword [rcx]
call qword [rax + reloc.OLEAUT32.dll_VariantClear]
nop
mov rdx, qword [rbp - 0x61]
add rdx, 0xffffffffffffffe8
mov eax, dword [rdx + 0x10]
cmp eax, 0x7ffffc17
je 0x140054bf3
mov eax, dword [rdx + 0x10]
cmp eax, 0xffffffff
je 0x140054be9
mov eax, r15d
lock xadd dword [rdx + 0x10], eax
sub eax, 1
jg 0x140054bf3
mov rcx, qword [rdx]
mov rax, qword [rcx]
call qword [rax + reloc.OLEAUT32.dll_VariantClear]
nop
call fcn.140008400
mov rcx, rax
mov rbx, qword [rbp - 0x79]
cmp dword [rbx - 0x10], 0
jg 0x140054c11
mov rdx, qword [rax]
call qword [rdx + 0x30]
mov qword [rbp - 0x59], rax
jmp 0x140054c54
mov eax, dword [rbx - 8]
mov rbx, qword [rbp - 0x79]
cmp eax, 0xffffffff
je 0x140054c23
cmp rcx, qword [rbx - 0x18]
je 0x140054c48
mov rax, qword [rcx]
mov byte [rsp + 0x30], 1
mov byte [rsp + 0x28], 0
mov byte [rsp + 0x20], 0
mov r9d, r15d
mov r8d, dword [rbx - 0x10]
mov rdx, rbx
call qword [rax + 0x28]
mov qword [rbp - 0x59], rax
jmp 0x140054c54
lock inc dword [rbx - 8]
mov rbx, qword [rbp - 0x79]
mov qword [rbp - 0x59], rbx
movzx r9d, sil
movzx r8d, r14b
lea rdx, [rbp - 0x59]
mov rcx, rdi
call fcn.140054ce0
nop
lea rdx, [rbx - 0x18]
mov eax, dword [rdx + 0x10]
cmp eax, 0x7ffffc17
je 0x140054c96
mov eax, dword [rdx + 0x10]
cmp eax, 0xffffffff
je 0x140054c8c
mov eax, r15d
lock xadd dword [rdx + 0x10], eax
sub eax, 1
jg 0x140054c96
mov rcx, qword [rdx]
mov rax, qword [rcx]
call qword [rax + reloc.OLEAUT32.dll_VariantClear]
nop
mov eax, dword [r13 + 0x10]
cmp eax, 0x7ffffc17
je 0x140054cc4
mov eax, dword [r13 + 0x10]
cmp eax, 0xffffffff
je 0x140054cb6
lock xadd dword [r13 + 0x10], r15d
sub r15d, 1
jg 0x140054cc4
mov rcx, qword [r13]
mov rax, qword [rcx]
mov rdx, r13
call qword [rax + reloc.OLEAUT32.dll_VariantClear]
nop
add rsp, 0xe8
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbx
pop rbp
ret