Function at 0x140042990
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 [0x14030b918]
xor rax, rsp
mov qword [rbp + 0x90], rax
mov r14, rcx
mov byte [rbp - 0x80], 0
call fcn.140010210
mov rcx, rax
test rax, rax
je 0x14004300e
mov rax, qword [rax]
call qword [rax + 0x18]
add rax, 0x18
mov qword [rbp - 0x78], rax
mov r8d, 2
lea rdx, [0x1402bb100]
lea rcx, [rbp - 0x78]
call fcn.140002aa8
mov rbx, qword [rbp - 0x78]
mov r9, rbx
xor r8d, r8d
mov edx, 0x116ef
mov rcx, qword [r14]
call fcn.14001dde0
nop
lea rdx, [rbx - 0x18]
mov rsi, 0xffffffffffffffff
mov eax, esi
lock xadd dword [rdx + 0x10], eax
sub eax, 1
jg 0x140042a32
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.140010210
mov rcx, rax
test rax, rax
je 0x140042ff8
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 0x140042af0
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 0x140042af0
mov eax, dword [rsp + 0x40]
dec eax
cmp eax, 1
ja 0x140042af0
mov eax, dword [rsp + 0x30]
test eax, eax
je 0x140042b3e
test al, 1
jne 0x140042af0
shr rax, 1
cmp word [rbp + rax*2 + 0x1e], di
je 0x140042b42
lea rdx, [rbx - 0x18]
lock xadd dword [rdx + 0x10], esi
sub esi, 1
jg 0x140042b08
mov rcx, qword [rdx]
mov rax, qword [rcx]
call qword [rax + reloc.OLEAUT32.dll_VariantClear]
nop
mov rcx, qword [rbp]
test rcx, rcx
je 0x140042b17
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov rcx, qword [rbp + 0x90]
xor rcx, rsp
call fcn.140211970
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 rcx, [rbp + 0x20]
mov rax, rsi
nop dword [rax]
inc rax
cmp word [rcx + rax*2], 0
jne 0x140042b50
mov r8d, eax
lea rdx, [rbp + 0x20]
lea rcx, [rsp + 0x38]
call fcn.140002aa8
mov rbx, qword [rsp + 0x38]
cmp dword [rbx - 0x10], 0
jle 0x140042ba9
mov edx, 0x20
mov rcx, rbx
call fcn.140216044
test rax, rax
je 0x140042ba9
sub rax, rbx
sar rax, 1
test eax, eax
js 0x140042ba9
mov r8d, 0x64
mov edx, eax
lea rcx, [rsp + 0x38]
call fcn.140036290
mov rbx, qword [rsp + 0x38]
lea rdi, [rbx - 0x18]
mov rcx, rdi
call fcn.140002c68
add rax, 0x18
mov qword [rsp + 0x50], rax
call fcn.140010210
mov rcx, rax
test rax, rax
je 0x140043003
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.140002bd8
mov edx, 0x2c
lea rcx, [rsp + 0x58]
call fcn.14003f120
mov rbx, qword [rsp + 0x58]
mov r9, rbx
xor r8d, r8d
mov edx, 0x1161b
mov rcx, qword [r14]
call fcn.14001dde0
nop
lea rdx, [rbx - 0x18]
mov eax, esi
lock xadd dword [rdx + 0x10], eax
sub eax, 1
jg 0x140042c2e
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 0x140042c4c
mov rcx, qword [rdx]
mov rax, qword [rcx]
call qword [rax + reloc.OLEAUT32.dll_VariantClear]
mov byte [rbp - 0x70], 1
call fcn.140010210
mov rcx, rax
test rax, rax
je 0x140043003
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.14006e270
nop
mov rdx, qword [rbp - 0x68]
add rdx, 0xffffffffffffffe8
mov eax, esi
lock xadd dword [rdx + 0x10], eax
sub eax, 1
jg 0x140042ca1
mov rcx, qword [rdx]
mov rax, qword [rcx]
call qword [rax + reloc.OLEAUT32.dll_VariantClear]
call fcn.140010210
test rax, rax
je 0x140043003
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 0x140042ce0
movzx edx, dx
lea rcx, [rsp + 0x48]
call fcn.140010ac0
jmp 0x140042cfb
mov rax, rsi
inc rax
cmp word [rdx + rax*2], 0
jne 0x140042ce3
mov r8d, eax
lea rcx, [rsp + 0x48]
call fcn.140002aa8
nop
mov rbx, qword [rsp + 0x48]
mov r9, rbx
mov r8d, dword [0x14031aca0]
mov edx, 0x116b9
mov rcx, qword [r14]
call fcn.14001dde0
nop
lea rdx, [rbx - 0x18]
mov eax, esi
lock xadd dword [rdx + 0x10], eax
sub eax, 1
jg 0x140042d31
mov rcx, qword [rdx]
mov rax, qword [rcx]
call qword [rax + reloc.OLEAUT32.dll_VariantClear]
mov rcx, rdi
call fcn.140002c68
add rax, 0x18
mov qword [rsp + 0x60], rax
call fcn.140010210
mov rcx, rax
test rax, rax
je 0x140043003
mov rax, qword [rax]
call qword [rax + 0x18]
add rax, 0x18
mov qword [rsp + 0x68], rax
mov edi, dword [0x14031aca0]
lea rdx, [rsp + 0x60]
lea rcx, [rsp + 0x68]
call fcn.140002bd8
mov edx, 0x2c
lea rcx, [rsp + 0x68]
call fcn.14003f120
mov rbx, qword [rsp + 0x68]
mov r9, rbx
mov r8d, edi
mov edx, 0x116b8
mov rcx, qword [r14]
call fcn.14001dde0
nop
lea rdx, [rbx - 0x18]
mov eax, esi
lock xadd dword [rdx + 0x10], eax
sub eax, 1
jg 0x140042db8
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 0x140042dd6
mov rcx, qword [rdx]
mov rax, qword [rcx]
call qword [rax + reloc.OLEAUT32.dll_VariantClear]
mov byte [rbp - 0x60], 0
call fcn.140010210
mov rcx, rax
test rax, rax
je 0x140043003
mov rax, qword [rax]
call qword [rax + 0x18]
add rax, 0x18
mov qword [rbp - 0x58], rax
lea r9, [rbp - 0x60]
mov r8d, dword [0x14031aca0]
mov edx, 0x1177b
mov rcx, r14
call fcn.14006e270
nop
mov rdx, qword [rbp - 0x58]
add rdx, 0xffffffffffffffe8
mov eax, esi
lock xadd dword [rdx + 0x10], eax
sub eax, 1
jg 0x140042e2f
mov rcx, qword [rdx]
mov rax, qword [rcx]
call qword [rax + reloc.OLEAUT32.dll_VariantClear]
mov byte [rbp - 0x50], 1
call fcn.140010210
mov rcx, rax
test rax, rax
je 0x140043003
mov rax, qword [rax]
call qword [rax + 0x18]
add rax, 0x18
mov qword [rbp - 0x48], rax
lea r9, [rbp - 0x50]
mov r8d, dword [0x14031aca0]
mov edx, 0x1177e
mov rcx, r14
call fcn.14006e270
nop
mov rdx, qword [rbp - 0x48]
add rdx, 0xffffffffffffffe8
mov eax, esi
lock xadd dword [rdx + 0x10], eax
sub eax, 1
jg 0x140042e88
mov rcx, qword [rdx]
mov rax, qword [rcx]
call qword [rax + reloc.OLEAUT32.dll_VariantClear]
mov byte [rbp - 0x40], 0
call fcn.140010210
mov rcx, rax
test rax, rax
je 0x140043003
mov rax, qword [rax]
call qword [rax + 0x18]
add rax, 0x18
mov qword [rbp - 0x38], rax
lea r9, [rbp - 0x40]
mov r8d, dword [0x14031aca0]
mov edx, 0x1177c
mov rcx, r14
call fcn.14006e270
nop
mov rdx, qword [rbp - 0x38]
add rdx, 0xffffffffffffffe8
mov eax, esi
lock xadd dword [rdx + 0x10], eax
sub eax, 1
jg 0x140042ee1
mov rcx, qword [rdx]
mov rax, qword [rcx]
call qword [rax + reloc.OLEAUT32.dll_VariantClear]
mov byte [rbp - 0x30], 0
call fcn.140010210
mov rcx, rax
test rax, rax
je 0x140043003
mov rax, qword [rax]
call qword [rax + 0x18]
add rax, 0x18
mov qword [rbp - 0x28], rax
lea r9, [rbp - 0x30]
mov r8d, dword [0x14031aca0]
mov edx, 0x11780
mov rcx, r14
call fcn.14006e270
nop
mov rdx, qword [rbp - 0x28]
add rdx, 0xffffffffffffffe8
mov eax, esi
lock xadd dword [rdx + 0x10], eax
sub eax, 1
jg 0x140042f3a
mov rcx, qword [rdx]
mov rax, qword [rcx]
call qword [rax + reloc.OLEAUT32.dll_VariantClear]
mov byte [rbp - 0x20], 0
call fcn.140010210
mov rcx, rax
test rax, rax
je 0x140043003
mov rax, qword [rax]
call qword [rax + 0x18]
add rax, 0x18
mov qword [rbp - 0x18], rax
lea r9, [rbp - 0x20]
mov r8d, dword [0x14031aca0]
mov edx, 0x1177f
mov rcx, r14
call fcn.14006e270
nop
mov rdx, qword [rbp - 0x18]
add rdx, 0xffffffffffffffe8
mov eax, esi
lock xadd dword [rdx + 0x10], eax
sub eax, 1
jg 0x140042f93
mov rcx, qword [rdx]
mov rax, qword [rcx]
call qword [rax + reloc.OLEAUT32.dll_VariantClear]
mov byte [rbp - 0x10], 0
call fcn.140010210
mov rcx, rax
test rax, rax
je 0x140043003
mov rax, qword [rax]
call qword [rax + 0x18]
add rax, 0x18
mov qword [rbp - 8], rax
lea r9, [rbp - 0x10]
mov r8d, dword [0x14031aca0]
mov edx, 0x1177d
mov rcx, r14
call fcn.14006e270
nop
mov rdx, qword [rbp - 8]
add rdx, 0xffffffffffffffe8
mov eax, esi
lock xadd dword [rdx + 0x10], eax
sub eax, 1
jg 0x140042fe8
mov rcx, qword [rdx]
mov rax, qword [rcx]
call qword [rax + reloc.OLEAUT32.dll_VariantClear]
inc dword [0x14031aca0]
mov rbx, qword [rsp + 0x38]
jmp 0x140042af0
mov ecx, 0x80004005
call fcn.140002d2c
nop
mov ecx, 0x80004005
call fcn.140002d2c
nop
mov ecx, 0x80004005
call fcn.140002d2c
int3