Function at 0x140045960
Capabilities:
Query or enumerate registry value

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rsi
push rbp
push rdi
push r14
lea rbp, [rsp - 0xa0]
sub rsp, 0x1a0
mov rax, qword [0x14031b940]
xor rax, rsp
mov qword [rbp + 0x90], rax
mov r14, rcx
mov byte [rbp - 0x80], 0
call fcn.140010070
mov rcx, rax
test rax, rax
je 0x140045fda
mov rax, qword [rax]
call qword [rax + 0x18]
add rax, 0x18
mov qword [rbp - 0x78], rax
mov r8d, 2
lea rdx, [0x1402c9f90]
lea rcx, [rbp - 0x78]
call fcn.140002b6c
mov rbx, qword [rbp - 0x78]
mov r9, rbx
xor r8d, r8d
mov edx, 0x116ef
mov rcx, qword [r14]
call fcn.14001e4c0
nop
lea rdx, [rbx - 0x18]
mov rsi, 0xffffffffffffffff
mov eax, esi
lock xadd dword [rdx + 0x10], eax
sub eax, 1
jg 0x140045a02
mov rcx, qword [rdx]
mov rax, qword [rcx]
call qword [rax + reloc.OLEAUT32.dll_VariantClear]
xor edi, edi
mov qword [rbp], rdi
mov dword [rbp + 8], edi
mov qword [rbp + 0x10], rdi
call fcn.140010070
mov rcx, rax
test rax, rax
je 0x140045fc4
mov rax, qword [rax]
call qword [rax + 0x18]
lea rbx, [rax + 0x18]
mov qword [rsp + 0x38], rbx
mov qword [rsp + 0x70], rdi
lea rax, [rsp + 0x70]
mov qword [rsp + 0x20], rax
mov r9d, 0x20019
xor r8d, r8d
lea rdx, str.SOFTWAREMozillaMozilla_Firefox
mov rcx, 0xffffffff80000002
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x140045ac0
mov rcx, qword [rsp + 0x70]
mov qword [rbp], rcx
mov dword [rbp + 8], edi
mov dword [rsp + 0x30], 0x64
lea rax, [rsp + 0x30]
mov qword [rsp + 0x28], rax
lea rax, [rbp + 0x20]
mov qword [rsp + 0x20], rax
lea r9, [rsp + 0x40]
xor r8d, r8d
lea rdx, str.CurrentVersion
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x140045ac0
mov eax, dword [rsp + 0x40]
dec eax
cmp eax, 1
ja 0x140045ac0
mov eax, dword [rsp + 0x30]
test eax, eax
je 0x140045b0e
test al, 1
jne 0x140045ac0
shr rax, 1
cmp word [rbp + rax*2 + 0x1e], di
je 0x140045b12
lea rdx, [rbx - 0x18]
lock xadd dword [rdx + 0x10], esi
sub esi, 1
jg 0x140045ad8
mov rcx, qword [rdx]
mov rax, qword [rcx]
call qword [rax + reloc.OLEAUT32.dll_VariantClear]
nop
mov rcx, qword [rbp]
test rcx, rcx
je 0x140045ae7
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov rcx, qword [rbp + 0x90]
xor rcx, rsp
call fcn.140220eb0
lea r11, [rsp + 0x1a0]
mov rbx, qword [r11 + 0x28]
mov rsi, qword [r11 + 0x30]
mov rsp, r11
pop r14
pop rdi
pop rbp
ret
mov word [rbp + 0x20], di
lea rax, [rbp + 0x20]
mov r8, rsi
nop dword [rax]
inc r8
cmp word [rax + r8*2], 0
jne 0x140045b20
lea rdx, [rbp + 0x20]
lea rcx, [rsp + 0x38]
call fcn.140002b6c
mov rbx, qword [rsp + 0x38]
cmp dword [rbx - 0x10], 0
jle 0x140045b77
mov edx, 0x20
mov rcx, rbx
call fcn.1402255b0
test rax, rax
je 0x140045b77
sub rax, rbx
sar rax, 1
test eax, eax
js 0x140045b77
mov r8d, 0x64
mov edx, eax
lea rcx, [rsp + 0x38]
call fcn.140037c80
mov rbx, qword [rsp + 0x38]
lea rdi, [rbx - 0x18]
mov rcx, rdi
call fcn.140002d2c
add rax, 0x18
mov qword [rsp + 0x50], rax
call fcn.140010070
mov rcx, rax
test rax, rax
je 0x140045fcf
mov rax, qword [rax]
call qword [rax + 0x18]
add rax, 0x18
mov qword [rsp + 0x58], rax
lea rdx, [rsp + 0x50]
lea rcx, [rsp + 0x58]
call fcn.140002c9c
mov edx, 0x2c
lea rcx, [rsp + 0x58]
call fcn.140041950
mov rbx, qword [rsp + 0x58]
mov r9, rbx
xor r8d, r8d
mov edx, 0x1161b
mov rcx, qword [r14]
call fcn.14001e4c0
nop
lea rdx, [rbx - 0x18]
mov eax, esi
lock xadd dword [rdx + 0x10], eax
sub eax, 1
jg 0x140045bfc
mov rcx, qword [rdx]
mov rax, qword [rcx]
call qword [rax + reloc.OLEAUT32.dll_VariantClear]
mov rdx, qword [rsp + 0x50]
add rdx, 0xffffffffffffffe8
mov eax, esi
lock xadd dword [rdx + 0x10], eax
sub eax, 1
jg 0x140045c1a
mov rcx, qword [rdx]
mov rax, qword [rcx]
call qword [rax + reloc.OLEAUT32.dll_VariantClear]
mov byte [rbp - 0x70], 1
call fcn.140010070
mov rcx, rax
test rax, rax
je 0x140045fcf
mov rax, qword [rax]
call qword [rax + 0x18]
add rax, 0x18
mov qword [rbp - 0x68], rax
lea r9, [rbp - 0x70]
xor r8d, r8d
mov edx, 0x116ef
mov rcx, r14
call fcn.14007c1d0
nop
mov rdx, qword [rbp - 0x68]
add rdx, 0xffffffffffffffe8
mov eax, esi
lock xadd dword [rdx + 0x10], eax
sub eax, 1
jg 0x140045c6f
mov rcx, qword [rdx]
mov rax, qword [rcx]
call qword [rax + reloc.OLEAUT32.dll_VariantClear]
call fcn.140010070
test rax, rax
je 0x140045fcf
mov rdx, qword [rax]
mov rcx, rax
call qword [rdx + 0x18]
add rax, 0x18
mov qword [rsp + 0x48], rax
lea rdx, str.Firefox
cmp rdx, 0x10000
jae 0x140045cae
movzx edx, dx
lea rcx, [rsp + 0x48]
call fcn.1400108d0
jmp 0x140045cc7
mov r8, rsi
inc r8
cmp word [rdx + r8*2], 0
jne 0x140045cb1
lea rcx, [rsp + 0x48]
call fcn.140002b6c
nop
mov rbx, qword [rsp + 0x48]
mov r9, rbx
mov r8d, dword [0x14032acb0]
mov edx, 0x116b9
mov rcx, qword [r14]
call fcn.14001e4c0
nop
lea rdx, [rbx - 0x18]
mov eax, esi
lock xadd dword [rdx + 0x10], eax
sub eax, 1
jg 0x140045cfd
mov rcx, qword [rdx]
mov rax, qword [rcx]
call qword [rax + reloc.OLEAUT32.dll_VariantClear]
mov rcx, rdi
call fcn.140002d2c
add rax, 0x18
mov qword [rsp + 0x60], rax
call fcn.140010070
mov rcx, rax
test rax, rax
je 0x140045fcf
mov rax, qword [rax]
call qword [rax + 0x18]
add rax, 0x18
mov qword [rsp + 0x68], rax
mov edi, dword [0x14032acb0]
lea rdx, [rsp + 0x60]
lea rcx, [rsp + 0x68]
call fcn.140002c9c
mov edx, 0x2c
lea rcx, [rsp + 0x68]
call fcn.140041950
mov rbx, qword [rsp + 0x68]
mov r9, rbx
mov r8d, edi
mov edx, 0x116b8
mov rcx, qword [r14]
call fcn.14001e4c0
nop
lea rdx, [rbx - 0x18]
mov eax, esi
lock xadd dword [rdx + 0x10], eax
sub eax, 1
jg 0x140045d84
mov rcx, qword [rdx]
mov rax, qword [rcx]
call qword [rax + reloc.OLEAUT32.dll_VariantClear]
mov rdx, qword [rsp + 0x60]
add rdx, 0xffffffffffffffe8
mov eax, esi
lock xadd dword [rdx + 0x10], eax
sub eax, 1
jg 0x140045da2
mov rcx, qword [rdx]
mov rax, qword [rcx]
call qword [rax + reloc.OLEAUT32.dll_VariantClear]
mov byte [rbp - 0x60], 0
call fcn.140010070
mov rcx, rax
test rax, rax
je 0x140045fcf
mov rax, qword [rax]
call qword [rax + 0x18]
add rax, 0x18
mov qword [rbp - 0x58], rax
lea r9, [rbp - 0x60]
mov r8d, dword [0x14032acb0]
mov edx, 0x1177b
mov rcx, r14
call fcn.14007c1d0
nop
mov rdx, qword [rbp - 0x58]
add rdx, 0xffffffffffffffe8
mov eax, esi
lock xadd dword [rdx + 0x10], eax
sub eax, 1
jg 0x140045dfb
mov rcx, qword [rdx]
mov rax, qword [rcx]
call qword [rax + reloc.OLEAUT32.dll_VariantClear]
mov byte [rbp - 0x50], 1
call fcn.140010070
mov rcx, rax
test rax, rax
je 0x140045fcf
mov rax, qword [rax]
call qword [rax + 0x18]
add rax, 0x18
mov qword [rbp - 0x48], rax
lea r9, [rbp - 0x50]
mov r8d, dword [0x14032acb0]
mov edx, 0x1177e
mov rcx, r14
call fcn.14007c1d0
nop
mov rdx, qword [rbp - 0x48]
add rdx, 0xffffffffffffffe8
mov eax, esi
lock xadd dword [rdx + 0x10], eax
sub eax, 1
jg 0x140045e54
mov rcx, qword [rdx]
mov rax, qword [rcx]
call qword [rax + reloc.OLEAUT32.dll_VariantClear]
mov byte [rbp - 0x40], 0
call fcn.140010070
mov rcx, rax
test rax, rax
je 0x140045fcf
mov rax, qword [rax]
call qword [rax + 0x18]
add rax, 0x18
mov qword [rbp - 0x38], rax
lea r9, [rbp - 0x40]
mov r8d, dword [0x14032acb0]
mov edx, 0x1177c
mov rcx, r14
call fcn.14007c1d0
nop
mov rdx, qword [rbp - 0x38]
add rdx, 0xffffffffffffffe8
mov eax, esi
lock xadd dword [rdx + 0x10], eax
sub eax, 1
jg 0x140045ead
mov rcx, qword [rdx]
mov rax, qword [rcx]
call qword [rax + reloc.OLEAUT32.dll_VariantClear]
mov byte [rbp - 0x30], 0
call fcn.140010070
mov rcx, rax
test rax, rax
je 0x140045fcf
mov rax, qword [rax]
call qword [rax + 0x18]
add rax, 0x18
mov qword [rbp - 0x28], rax
lea r9, [rbp - 0x30]
mov r8d, dword [0x14032acb0]
mov edx, 0x11780
mov rcx, r14
call fcn.14007c1d0
nop
mov rdx, qword [rbp - 0x28]
add rdx, 0xffffffffffffffe8
mov eax, esi
lock xadd dword [rdx + 0x10], eax
sub eax, 1
jg 0x140045f06
mov rcx, qword [rdx]
mov rax, qword [rcx]
call qword [rax + reloc.OLEAUT32.dll_VariantClear]
mov byte [rbp - 0x20], 0
call fcn.140010070
mov rcx, rax
test rax, rax
je 0x140045fcf
mov rax, qword [rax]
call qword [rax + 0x18]
add rax, 0x18
mov qword [rbp - 0x18], rax
lea r9, [rbp - 0x20]
mov r8d, dword [0x14032acb0]
mov edx, 0x1177f
mov rcx, r14
call fcn.14007c1d0
nop
mov rdx, qword [rbp - 0x18]
add rdx, 0xffffffffffffffe8
mov eax, esi
lock xadd dword [rdx + 0x10], eax
sub eax, 1
jg 0x140045f5f
mov rcx, qword [rdx]
mov rax, qword [rcx]
call qword [rax + reloc.OLEAUT32.dll_VariantClear]
mov byte [rbp - 0x10], 0
call fcn.140010070
mov rcx, rax
test rax, rax
je 0x140045fcf
mov rax, qword [rax]
call qword [rax + 0x18]
add rax, 0x18
mov qword [rbp - 8], rax
lea r9, [rbp - 0x10]
mov r8d, dword [0x14032acb0]
mov edx, 0x1177d
mov rcx, r14
call fcn.14007c1d0
nop
mov rdx, qword [rbp - 8]
add rdx, 0xffffffffffffffe8
mov eax, esi
lock xadd dword [rdx + 0x10], eax
sub eax, 1
jg 0x140045fb4
mov rcx, qword [rdx]
mov rax, qword [rcx]
call qword [rax + reloc.OLEAUT32.dll_VariantClear]
inc dword [0x14032acb0]
mov rbx, qword [rsp + 0x38]
jmp 0x140045ac0
mov ecx, 0x80004005
call fcn.140002e3c
nop
mov ecx, 0x80004005
call fcn.140002e3c
nop
mov ecx, 0x80004005
call fcn.140002e3c
int3