Function at 0x140045630
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 [0x14031a940]
xor rax, rsp
mov qword [rbp + 0x90], rax
mov r14, rcx
mov byte [rbp - 0x80], 0
call fcn.1400102e4
mov rcx, rax
test rax, rax
je 0x140045caa
mov rax, qword [rax]
call qword [rax + 0x18]
add rax, 0x18
mov qword [rbp - 0x78], rax
mov r8d, 2
lea rdx, [0x1402c8f30]
lea rcx, [rbp - 0x78]
call fcn.140002b2c
mov rbx, qword [rbp - 0x78]
mov r9, rbx
xor r8d, r8d
mov edx, 0x116ef
mov rcx, qword [r14]
call fcn.14001e7c0
nop
lea rdx, [rbx - 0x18]
mov rsi, 0xffffffffffffffff
mov eax, esi
lock xadd dword [rdx + 0x10], eax
sub eax, 1
jg 0x1400456d2
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.1400102e4
mov rcx, rax
test rax, rax
je 0x140045c94
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 0x140045790
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 0x140045790
mov eax, dword [rsp + 0x40]
dec eax
cmp eax, 1
ja 0x140045790
mov eax, dword [rsp + 0x30]
test eax, eax
je 0x1400457de
test al, 1
jne 0x140045790
shr rax, 1
cmp word [rbp + rax*2 + 0x1e], di
je 0x1400457e2
lea rdx, [rbx - 0x18]
lock xadd dword [rdx + 0x10], esi
sub esi, 1
jg 0x1400457a8
mov rcx, qword [rdx]
mov rax, qword [rcx]
call qword [rax + reloc.OLEAUT32.dll_VariantClear]
nop
mov rcx, qword [rbp]
test rcx, rcx
je 0x1400457b7
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov rcx, qword [rbp + 0x90]
xor rcx, rsp
call fcn.140220e50
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 0x1400457f0
lea rdx, [rbp + 0x20]
lea rcx, [rsp + 0x38]
call fcn.140002b2c
mov rbx, qword [rsp + 0x38]
cmp dword [rbx - 0x10], 0
jle 0x140045847
mov edx, 0x20
mov rcx, rbx
call fcn.140225584
test rax, rax
je 0x140045847
sub rax, rbx
sar rax, 1
test eax, eax
js 0x140045847
mov r8d, 0x64
mov edx, eax
lea rcx, [rsp + 0x38]
call fcn.140037f60
mov rbx, qword [rsp + 0x38]
lea rdi, [rbx - 0x18]
mov rcx, rdi
call fcn.140002cec
add rax, 0x18
mov qword [rsp + 0x50], rax
call fcn.1400102e4
mov rcx, rax
test rax, rax
je 0x140045c9f
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.140002c5c
mov edx, 0x2c
lea rcx, [rsp + 0x58]
call fcn.140041c60
mov rbx, qword [rsp + 0x58]
mov r9, rbx
xor r8d, r8d
mov edx, 0x1161b
mov rcx, qword [r14]
call fcn.14001e7c0
nop
lea rdx, [rbx - 0x18]
mov eax, esi
lock xadd dword [rdx + 0x10], eax
sub eax, 1
jg 0x1400458cc
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 0x1400458ea
mov rcx, qword [rdx]
mov rax, qword [rcx]
call qword [rax + reloc.OLEAUT32.dll_VariantClear]
mov byte [rbp - 0x70], 1
call fcn.1400102e4
mov rcx, rax
test rax, rax
je 0x140045c9f
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.14007c4f0
nop
mov rdx, qword [rbp - 0x68]
add rdx, 0xffffffffffffffe8
mov eax, esi
lock xadd dword [rdx + 0x10], eax
sub eax, 1
jg 0x14004593f
mov rcx, qword [rdx]
mov rax, qword [rcx]
call qword [rax + reloc.OLEAUT32.dll_VariantClear]
call fcn.1400102e4
test rax, rax
je 0x140045c9f
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 0x14004597e
movzx edx, dx
lea rcx, [rsp + 0x48]
call fcn.140010b40
jmp 0x140045997
mov r8, rsi
inc r8
cmp word [rdx + r8*2], 0
jne 0x140045981
lea rcx, [rsp + 0x48]
call fcn.140002b2c
nop
mov rbx, qword [rsp + 0x48]
mov r9, rbx
mov r8d, dword [0x140329c80]
mov edx, 0x116b9
mov rcx, qword [r14]
call fcn.14001e7c0
nop
lea rdx, [rbx - 0x18]
mov eax, esi
lock xadd dword [rdx + 0x10], eax
sub eax, 1
jg 0x1400459cd
mov rcx, qword [rdx]
mov rax, qword [rcx]
call qword [rax + reloc.OLEAUT32.dll_VariantClear]
mov rcx, rdi
call fcn.140002cec
add rax, 0x18
mov qword [rsp + 0x60], rax
call fcn.1400102e4
mov rcx, rax
test rax, rax
je 0x140045c9f
mov rax, qword [rax]
call qword [rax + 0x18]
add rax, 0x18
mov qword [rsp + 0x68], rax
mov edi, dword [0x140329c80]
lea rdx, [rsp + 0x60]
lea rcx, [rsp + 0x68]
call fcn.140002c5c
mov edx, 0x2c
lea rcx, [rsp + 0x68]
call fcn.140041c60
mov rbx, qword [rsp + 0x68]
mov r9, rbx
mov r8d, edi
mov edx, 0x116b8
mov rcx, qword [r14]
call fcn.14001e7c0
nop
lea rdx, [rbx - 0x18]
mov eax, esi
lock xadd dword [rdx + 0x10], eax
sub eax, 1
jg 0x140045a54
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 0x140045a72
mov rcx, qword [rdx]
mov rax, qword [rcx]
call qword [rax + reloc.OLEAUT32.dll_VariantClear]
mov byte [rbp - 0x60], 0
call fcn.1400102e4
mov rcx, rax
test rax, rax
je 0x140045c9f
mov rax, qword [rax]
call qword [rax + 0x18]
add rax, 0x18
mov qword [rbp - 0x58], rax
lea r9, [rbp - 0x60]
mov r8d, dword [0x140329c80]
mov edx, 0x1177b
mov rcx, r14
call fcn.14007c4f0
nop
mov rdx, qword [rbp - 0x58]
add rdx, 0xffffffffffffffe8
mov eax, esi
lock xadd dword [rdx + 0x10], eax
sub eax, 1
jg 0x140045acb
mov rcx, qword [rdx]
mov rax, qword [rcx]
call qword [rax + reloc.OLEAUT32.dll_VariantClear]
mov byte [rbp - 0x50], 1
call fcn.1400102e4
mov rcx, rax
test rax, rax
je 0x140045c9f
mov rax, qword [rax]
call qword [rax + 0x18]
add rax, 0x18
mov qword [rbp - 0x48], rax
lea r9, [rbp - 0x50]
mov r8d, dword [0x140329c80]
mov edx, 0x1177e
mov rcx, r14
call fcn.14007c4f0
nop
mov rdx, qword [rbp - 0x48]
add rdx, 0xffffffffffffffe8
mov eax, esi
lock xadd dword [rdx + 0x10], eax
sub eax, 1
jg 0x140045b24
mov rcx, qword [rdx]
mov rax, qword [rcx]
call qword [rax + reloc.OLEAUT32.dll_VariantClear]
mov byte [rbp - 0x40], 0
call fcn.1400102e4
mov rcx, rax
test rax, rax
je 0x140045c9f
mov rax, qword [rax]
call qword [rax + 0x18]
add rax, 0x18
mov qword [rbp - 0x38], rax
lea r9, [rbp - 0x40]
mov r8d, dword [0x140329c80]
mov edx, 0x1177c
mov rcx, r14
call fcn.14007c4f0
nop
mov rdx, qword [rbp - 0x38]
add rdx, 0xffffffffffffffe8
mov eax, esi
lock xadd dword [rdx + 0x10], eax
sub eax, 1
jg 0x140045b7d
mov rcx, qword [rdx]
mov rax, qword [rcx]
call qword [rax + reloc.OLEAUT32.dll_VariantClear]
mov byte [rbp - 0x30], 0
call fcn.1400102e4
mov rcx, rax
test rax, rax
je 0x140045c9f
mov rax, qword [rax]
call qword [rax + 0x18]
add rax, 0x18
mov qword [rbp - 0x28], rax
lea r9, [rbp - 0x30]
mov r8d, dword [0x140329c80]
mov edx, 0x11780
mov rcx, r14
call fcn.14007c4f0
nop
mov rdx, qword [rbp - 0x28]
add rdx, 0xffffffffffffffe8
mov eax, esi
lock xadd dword [rdx + 0x10], eax
sub eax, 1
jg 0x140045bd6
mov rcx, qword [rdx]
mov rax, qword [rcx]
call qword [rax + reloc.OLEAUT32.dll_VariantClear]
mov byte [rbp - 0x20], 0
call fcn.1400102e4
mov rcx, rax
test rax, rax
je 0x140045c9f
mov rax, qword [rax]
call qword [rax + 0x18]
add rax, 0x18
mov qword [rbp - 0x18], rax
lea r9, [rbp - 0x20]
mov r8d, dword [0x140329c80]
mov edx, 0x1177f
mov rcx, r14
call fcn.14007c4f0
nop
mov rdx, qword [rbp - 0x18]
add rdx, 0xffffffffffffffe8
mov eax, esi
lock xadd dword [rdx + 0x10], eax
sub eax, 1
jg 0x140045c2f
mov rcx, qword [rdx]
mov rax, qword [rcx]
call qword [rax + reloc.OLEAUT32.dll_VariantClear]
mov byte [rbp - 0x10], 0
call fcn.1400102e4
mov rcx, rax
test rax, rax
je 0x140045c9f
mov rax, qword [rax]
call qword [rax + 0x18]
add rax, 0x18
mov qword [rbp - 8], rax
lea r9, [rbp - 0x10]
mov r8d, dword [0x140329c80]
mov edx, 0x1177d
mov rcx, r14
call fcn.14007c4f0
nop
mov rdx, qword [rbp - 8]
add rdx, 0xffffffffffffffe8
mov eax, esi
lock xadd dword [rdx + 0x10], eax
sub eax, 1
jg 0x140045c84
mov rcx, qword [rdx]
mov rax, qword [rcx]
call qword [rax + reloc.OLEAUT32.dll_VariantClear]
inc dword [0x140329c80]
mov rbx, qword [rsp + 0x38]
jmp 0x140045790
mov ecx, 0x80004005
call fcn.140002dfc
nop
mov ecx, 0x80004005
call fcn.140002dfc
nop
mov ecx, 0x80004005
call fcn.140002dfc
int3