Function at 0x140056380
Capabilities:
Query or enumerate registry value

Disassembly:
mov rax, rsp
push rbp
push r12
push r13
push r14
push r15
lea rbp, [rax - 0x7c8]
sub rsp, 0x8a0
mov qword [rbp - 0x78], 0xfffffffffffffffe
mov qword [rax + 0x10], rbx
mov qword [rax + 0x18], rsi
mov qword [rax + 0x20], rdi
mov rax, qword [0x1401d5e90]
xor rax, rsp
mov qword [rbp + 0x790], rax
mov r15, rcx
mov qword [rbp - 0x80], rcx
xor r14d, r14d
mov dword [rsp + 0x30], r14d
call fcn.1400526b0
mov r12d, 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 esi, eax
test eax, eax
jne 0x140056427
mov dword [rsp + 0x50], r14d
mov esi, r14d
mov r12, qword [rsp + 0x78]
mov qword [rsp + 0x48], r12
mov ebx, dword [0x1401ddd80]
lea ecx, [rbx + 1]
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
cmp ecx, 4
jne 0x14005648e
mov ecx, 0x28
call fcn.1400d68e8
mov rdi, rax
mov rbx, r14
call fcn.1400d7b94
add eax, dword [0x1401ddd80]
mov dword [rdi + rbx*4], eax
inc rbx
cmp rbx, 0xa
jl 0x140056460
mov eax, dword [rdi + 0x24]
mov dword [0x1401ddd80], eax
mov rcx, rdi
call fcn.1400d834c
mov ebx, dword [0x1401ddd80]
test esi, esi
je 0x140056601
lea rcx, [rsp + 0x38]
call fcn.14002e9b0
nop
mov rax, qword [rsp + 0x38]
mov edx, dword [rax - 0x10]
test edx, edx
je 0x14005658a
lea ecx, [rdx - 1]
test ecx, ecx
js 0x14005657f
cmp ecx, edx
jg 0x14005657f
movsxd rcx, ecx
cmp word [rax + rcx*2], 0x5c
je 0x1400564e5
mov r8d, 1
lea rdx, [0x14016414c]
lea rcx, [rsp + 0x38]
call fcn.1400114a0
lea r8, str.Mozilla_Firefox_firefox.exe
lea rdx, [rsp + 0x38]
lea rcx, [rsp + 0x60]
call fcn.14001c2d0
nop
lea rcx, [rsp + 0x60]
call fcn.14002ed90
test al, al
je 0x140056564
mov rcx, qword [rsp + 0x60]
add rcx, 0xffffffffffffffe8
call fcn.1400028c0
add rax, 0x18
mov qword [r15], rax
mov dword [rsp + 0x30], 1
mov rdx, qword [rsp + 0x60]
add rdx, 0xffffffffffffffe8
lock add dword [rdx + 0x10], 0xffffffff
jg 0x140056541
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 0x14005681f
mov rcx, qword [rdx]
mov r8, qword [rcx]
call qword [rreloc.OLEAUT32.dll_VariantClear + 8]
jmp 0x14005681f
mov rdx, qword [rsp + 0x60]
add rdx, 0xffffffffffffffe8
lock add dword [rdx + 0x10], 0xffffffff
jg 0x14005658a
mov rcx, qword [rdx]
mov rax, qword [rcx]
call qword [rax + reloc.OLEAUT32.dll_VariantClear]
jmp 0x14005658a
mov ecx, 0x80070057
call fcn.140001920
int3
lea rcx, [0x1401d59a8]
mov rax, qword [0x1401d59a8]
call qword [rax + 0x18]
add rax, 0x18
mov qword [r15], rax
lea rdx, [0x14016412c]
test rdx, 0xffffffffffff0000
jne 0x1400565d1
movzx ebx, dx
mov ecx, ebx
call fcn.1400019e0
test rax, rax
je 0x1400565dd
mov r8d, ebx
mov rdx, rax
mov rcx, r15
call fcn.140002a60
jmp 0x1400565dd
xor r8d, r8d
mov rcx, r15
call fcn.140002770
nop
mov dword [rsp + 0x30], 1
mov rdx, qword [rsp + 0x38]
add rdx, 0xffffffffffffffe8
lock add dword [rdx + 0x10], 0xffffffff
jg 0x14005681f
mov rcx, qword [rdx]
jmp 0x140056818
mov word [rbp - 0x70], r14w
xor edx, edx
mov r8d, 0x7fe
lea rcx, [rbp - 0x6e]
call fcn.1400dc6e0
lea ecx, [rbx + 2]
lea eax, [rbx + 1]
imul ecx, eax
imul ecx, ebx
mov eax, 0x30c30c31
imul ecx
sar edx, 2
mov eax, edx
shr eax, 0x1f
add edx, eax
imul edx, edx, 0x15
sub ecx, edx
cmp ecx, 0xc
jne 0x14005664a
call qword [sym.imp.KERNEL32.dll_GetTickCount]
mov dword [0x1401ddd80], eax
lea rcx, [0x1401d59a8]
mov rax, qword [0x1401d59a8]
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 - 0x70]
mov qword [rsp + 0x20], rax
lea r9, [rsp + 0x70]
xor r8d, r8d
lea rdx, [0x1401641e4]
mov rcx, r12
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
or rsi, 0xffffffffffffffff
test eax, eax
jne 0x1400567d9
mov eax, dword [rsp + 0x70]
dec eax
cmp eax, 1
ja 0x1400567d9
mov eax, dword [rsp + 0x40]
test eax, eax
je 0x1400566d2
test al, 1
jne 0x1400567d9
shr rax, 1
cmp word [rbp + rax*2 - 0x72], 0
je 0x1400566d7
jmp 0x1400567d9
mov word [rbp - 0x70], r14w
lea rax, [rbp - 0x70]
mov rdi, rsi
nop
inc rdi
cmp word [rax + rdi*2], 0
jne 0x1400566e0
test edi, edi
jne 0x14005674f
lea rdx, [rbx - 0x18]
mov rdi, qword [rdx]
cmp dword [rdx + 8], 0
je 0x1400567d9
cmp dword [rdx + 0x10], 0
jge 0x140056723
cmp dword [rbx - 0xc], 0
jge 0x140056716
mov ecx, 0x80070057
call fcn.140001920
int3
mov dword [rbx - 0x10], r14d
mov word [rbx], r14w
jmp 0x1400567d9
lock add dword [rdx + 0x10], 0xffffffff
jg 0x140056733
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 r12, qword [rsp + 0x48]
jmp 0x1400567d9
mov r13d, dword [rbx - 0x10]
lea r14, [rbp - 0x70]
sub r14, rbx
sar r14, 1
test edi, edi
jns 0x14005676c
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 0x14005678e
mov edx, edi
lea rcx, [rsp + 0x68]
call fcn.140002860
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 0x1400567b2
lea r8, [rbx + r14*2]
call fcn.1400d7ac4
jmp 0x1400567bb
lea r8, [rbp - 0x70]
call fcn.1400d7bc0
cmp edi, dword [rbx - 0xc]
jg 0x1400567ce
mov dword [rbx - 0x10], edi
xor r14d, r14d
mov word [r13 + rbx], r14w
jmp 0x1400567d9
mov ecx, 0x80070057
call fcn.140001920
int3
test r12, r12
je 0x1400567ec
mov rcx, r12
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov qword [rsp + 0x48], r14
mov dword [rsp + 0x50], r14d
lea rcx, [rbx - 0x18]
call fcn.1400028c0
add rax, 0x18
mov qword [r15], rax
mov dword [rsp + 0x30], 1
lock add dword [rbx - 8], 0xffffffff
jg 0x14005681f
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 0x140056834
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov qword [rsp + 0x48], r14
mov dword [rsp + 0x50], r14d
mov rax, r15
mov rcx, qword [rbp + 0x790]
xor rcx, rsp
call fcn.1400d72a0
lea r11, [rsp + 0x8a0]
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