Function at 0x140051bd0
Capabilities:
Query or enumerate registry value

Disassembly:
mov rax, rsp
push rbp
push r12
push r13
push r14
push r15
lea rbp, [rax - 0xb68]
sub rsp, 0xc40
mov qword [rbp - 0x70], 0xfffffffffffffffe
mov qword [rax + 0x10], rbx
mov qword [rax + 0x18], rsi
mov qword [rax + 0x20], rdi
mov rax, qword [0x1401c3e90]
xor rax, rsp
mov qword [rbp + 0xb30], rax
mov r12, rcx
mov qword [rbp - 0x68], rcx
xor r14d, r14d
mov dword [rsp + 0x30], r14d
mov r15d, r14d
mov qword [rsp + 0x48], r14
mov dword [rsp + 0x50], r14d
mov qword [rsp + 0x58], r14
mov qword [rsp + 0x78], r14
lea rax, [rsp + 0x78]
mov qword [rsp + 0x20], rax
lea r9d, [r14 + 1]
xor r8d, r8d
lea rdx, str.SOFTWAREMicrosoftWindowsCurrentVersionApp_Paths_firefox.exe
mov rcx, 0xffffffff80000002
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
mov edi, eax
test eax, eax
jne 0x140051c72
mov dword [rsp + 0x50], r14d
mov edi, r14d
mov r15, qword [rsp + 0x78]
mov qword [rsp + 0x48], r15
mov ebx, dword [0x1401cbd80]
lea ecx, [rbx + 2]
lea eax, [rbx + 1]
imul ecx, eax
imul ecx, ebx
mov eax, 0x2aaaaaab
imul ecx
sar edx, 1
mov eax, edx
shr eax, 0x1f
add edx, eax
lea eax, [rdx + rdx*2]
shl eax, 2
sub ecx, eax
or rsi, 0xffffffffffffffff
cmp ecx, 0xa
jne 0x140051ced
mov rax, qword [str.4wMIR6l31]
mov qword [rbp - 0x80], rax
movzx eax, word [0x1401594f0]
mov word [rbp - 0x78], ax
lea rax, [rbp - 0x80]
mov rcx, rsi
inc rcx
cmp byte [rax + rcx], 0
jne 0x140051cc2
mov eax, 4
mul rcx
cmovo rax, rsi
mov rcx, rax
call fcn.1400d0cc8
mov rcx, rax
call fcn.1400d272c
mov ebx, dword [0x1401cbd80]
test edi, edi
je 0x140051eaf
lea rcx, [rsp + 0x38]
call fcn.14002bc90
nop
mov rax, qword [rsp + 0x38]
mov edx, dword [rax - 0x10]
test edx, edx
je 0x140051e7c
lea ecx, [rdx - 1]
test ecx, ecx
js 0x140051e71
cmp ecx, edx
jg 0x140051e71
movsxd rcx, ecx
cmp word [rax + rcx*2], 0x5c
je 0x140051d44
mov r8d, 1
lea rdx, [0x140156a68]
lea rcx, [rsp + 0x38]
call fcn.140010fc0
lea r8, str.Mozilla_Firefox_firefox.exe
lea rdx, [rsp + 0x38]
lea rcx, [rsp + 0x60]
call fcn.14001c930
nop
mov r8d, dword [0x1401cbd80]
mov ecx, r8d
imul ecx, r8d
mov eax, 0x2aaaaaab
imul ecx
mov eax, edx
shr eax, 0x1f
add edx, eax
lea eax, [rdx + rdx*2]
add eax, eax
sub ecx, eax
cmp ecx, 2
jne 0x140051dbe
mov eax, 0x51eb851f
imul r8d
sar edx, 5
mov eax, edx
shr eax, 0x1f
add edx, eax
imul edx, edx, 0x64
sub r8d, edx
add r8d, 0x63
movsxd rcx, r8d
mov eax, 4
mul rcx
cmovo rax, rsi
mov rcx, rax
call fcn.1400d0cc8
mov rcx, rax
call fcn.1400d272c
lea rcx, [rsp + 0x60]
call fcn.14002c010
test al, al
je 0x140051e56
call fcn.14004e800
test al, al
jne 0x140051dfb
mov ecx, 4
call fcn.1400d1e38
mov rbx, rax
call fcn.1400d2038
mov dword [rbx], eax
mov dword [0x1401cbd80], eax
mov rcx, rbx
call fcn.1400d1660
mov rcx, qword [rsp + 0x60]
add rcx, 0xffffffffffffffe8
call fcn.140002410
add rax, 0x18
mov qword [r12], rax
mov dword [rsp + 0x30], 1
mov rdx, qword [rsp + 0x60]
add rdx, 0xffffffffffffffe8
lock add dword [rdx + 0x10], 0xffffffff
jg 0x140051e33
mov rcx, qword [rdx]
mov rax, qword [rcx]
call qword [rax + reloc.OLEAUT32.dll_VariantClear]
nop
mov rdx, qword [rsp + 0x38]
add rdx, 0xffffffffffffffe8
lock add dword [rdx + 0x10], 0xffffffff
jg 0x140052105
mov rcx, qword [rdx]
mov r8, qword [rcx]
call qword [rreloc.OLEAUT32.dll_VariantClear + 8]
jmp 0x140052105
mov rdx, qword [rsp + 0x60]
add rdx, 0xffffffffffffffe8
lock add dword [rdx + 0x10], 0xffffffff
jg 0x140051e7c
mov rcx, qword [rdx]
mov rax, qword [rcx]
call qword [rax + reloc.OLEAUT32.dll_VariantClear]
jmp 0x140051e7c
mov ecx, 0x80070057
call fcn.140001920
int3
lea rdx, [0x140154028]
mov rcx, r12
call fcn.140002110
mov dword [rsp + 0x30], 1
mov rdx, qword [rsp + 0x38]
add rdx, 0xffffffffffffffe8
lock add dword [rdx + 0x10], 0xffffffff
jg 0x140052105
mov rcx, qword [rdx]
jmp 0x1400520fe
mov word [rbp + 0x330], r14w
xor edx, edx
mov r8d, 0x7fe
lea rcx, [rbp + 0x332]
call fcn.1400d6ac0
lea ecx, [rbx + 1]
imul ecx, ebx
mov eax, 0x38e38e39
imul ecx
sar edx, 2
mov eax, edx
shr eax, 0x1f
add edx, eax
lea eax, [rdx + rdx*8]
add eax, eax
sub ecx, eax
cmp ecx, 0x11
jne 0x140051f1e
mov ecx, r14d
lea rdx, [rbp - 0x60]
nop word [rax + rax]
mov eax, dword [rdx]
imul eax, eax, 0xe
add ebx, eax
inc ecx
lea rdx, [rdx + 4]
movsxd rax, ecx
cmp rax, 0x38c
jb 0x140051f00
mov dword [0x1401cbd80], ebx
lea rcx, [0x1401c39a8]
mov rax, qword [0x1401c39a8]
call qword [rax + 0x18]
lea rbx, [rax + 0x18]
mov qword [rsp + 0x68], rbx
mov dword [rsp + 0x40], 0x800
lea rax, [rsp + 0x40]
mov qword [rsp + 0x28], rax
lea rax, [rbp + 0x330]
mov qword [rsp + 0x20], rax
lea r9, [rsp + 0x70]
xor r8d, r8d
lea rdx, [0x140154028]
mov rcx, r15
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x1400520be
mov eax, dword [rsp + 0x70]
dec eax
cmp eax, 1
ja 0x1400520be
mov eax, dword [rsp + 0x40]
test eax, eax
je 0x140051fa8
test al, 1
jne 0x1400520be
shr rax, 1
cmp word [rbp + rax*2 + 0x32e], 0
je 0x140051fb0
jmp 0x1400520be
mov word [rbp + 0x330], r14w
lea rax, [rbp + 0x330]
mov rdi, rsi
nop word [rax + rax]
inc rdi
cmp word [rax + rdi*2], 0
jne 0x140051fc0
test edi, edi
jne 0x14005202f
lea rdx, [rbx - 0x18]
mov rdi, qword [rdx]
cmp dword [rdx + 8], 0
je 0x1400520be
cmp dword [rdx + 0x10], 0
jge 0x140052003
cmp dword [rbx - 0xc], 0
jge 0x140051ff6
mov ecx, 0x80070057
call fcn.140001920
int3
mov dword [rbx - 0x10], r14d
mov word [rbx], r14w
jmp 0x1400520be
lock add dword [rdx + 0x10], 0xffffffff
jg 0x140052013
mov rcx, qword [rdx]
mov rax, qword [rcx]
call qword [rax + reloc.OLEAUT32.dll_VariantClear]
mov rax, qword [rdi]
mov rcx, rdi
call qword [rax + 0x18]
lea rbx, [rax + 0x18]
mov qword [rsp + 0x68], rbx
mov r15, qword [rsp + 0x48]
jmp 0x1400520be
mov r13d, dword [rbx - 0x10]
lea r14, [rbp + 0x330]
sub r14, rbx
sar r14, 1
test edi, edi
jns 0x14005204f
mov ecx, 0x80070057
call fcn.140001920
int3
mov ecx, 1
sub ecx, dword [rbx - 8]
mov eax, dword [rbx - 0xc]
sub eax, edi
or eax, ecx
jge 0x140052071
mov edx, edi
lea rcx, [rsp + 0x68]
call fcn.1400023b0
mov rbx, qword [rsp + 0x68]
movsxd rax, edi
movsxd rdx, dword [rbx - 0xc]
mov rcx, rbx
add rdx, rdx
cmp r14, r13
lea r13, [rax + rax]
mov r9, r13
ja 0x140052095
lea r8, [rbx + r14*2]
call fcn.1400d1ea4
jmp 0x1400520a1
lea r8, [rbp + 0x330]
call fcn.1400d2064
cmp edi, dword [rbx - 0xc]
jg 0x1400520b3
mov dword [rbx - 0x10], edi
xor r14d, r14d
mov word [rbx + r13], r14w
jmp 0x1400520be
mov ecx, 0x80070057
call fcn.140001920
int3
test r15, r15
je 0x1400520d1
mov rcx, r15
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov qword [rsp + 0x48], r14
mov dword [rsp + 0x50], r14d
lea rcx, [rbx - 0x18]
call fcn.140002410
add rax, 0x18
mov qword [r12], rax
mov dword [rsp + 0x30], 1
lock add dword [rbx - 8], 0xffffffff
jg 0x140052105
mov rcx, qword [rbx - 0x18]
lea rdx, [rbx - 0x18]
mov rax, qword [rcx]
call qword [rax + reloc.OLEAUT32.dll_VariantClear]
nop
mov rcx, qword [rsp + 0x48]
test rcx, rcx
je 0x14005211a
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov qword [rsp + 0x48], r14
mov dword [rsp + 0x50], r14d
mov rax, r12
mov rcx, qword [rbp + 0xb30]
xor rcx, rsp
call fcn.1400d1680
lea r11, [rsp + 0xc40]
mov rbx, qword [r11 + 0x38]
mov rsi, qword [r11 + 0x40]
mov rdi, qword [r11 + 0x48]
mov rsp, r11
pop r15
pop r14
pop r13
pop r12
pop rbp
ret