Function at 0x140052860
Capabilities:
Query or enumerate registry value

Disassembly:
mov rax, rsp
push rbp
push r12
push r13
push r14
push r15
lea rbp, [rax - 0xa28]
sub rsp, 0xb00
mov qword [rbp - 0x60], 0xfffffffffffffffe
mov qword [rax + 0x10], rbx
mov qword [rax + 0x18], rsi
mov qword [rax + 0x20], rdi
mov rax, qword [0x1401cde90]
xor rax, rsp
mov qword [rbp + 0x9f0], rax
mov r13, rcx
mov qword [rbp - 0x58], rcx
xor r12d, r12d
mov dword [rsp + 0x50], r12d
mov esi, r12d
mov qword [rsp + 0x30], r12
mov dword [rsp + 0x38], r12d
mov qword [rsp + 0x40], r12
mov qword [rbp - 0x78], r12
lea rax, [rbp - 0x78]
mov qword [rsp + 0x20], rax
lea r9d, [r12 + 1]
xor r8d, r8d
lea rdx, str.SoftwareMozillaMozilla_Firefox
mov rcx, 0xffffffff80000001
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
mov edi, eax
test eax, eax
jne 0x140052900
mov dword [rsp + 0x38], r12d
mov edi, r12d
mov rsi, qword [rbp - 0x78]
mov qword [rsp + 0x30], rsi
mov eax, dword [0x1401d5d60]
imul eax, eax
and eax, 0x8000000f
jge 0x140052917
dec eax
or eax, 0xfffffff0
inc eax
cmp eax, 5
jne 0x14005293c
lea ecx, [rax - 1]
call fcn.1400d3fa0
mov rbx, rax
call fcn.1400d41a0
mov dword [rbx], eax
mov dword [0x1401d5d60], eax
mov rcx, rbx
call fcn.1400d37c0
or r14, 0xffffffffffffffff
test edi, edi
je 0x140052d02
mov qword [rsp + 0x78], r12
lea rax, [rsp + 0x78]
mov qword [rsp + 0x20], rax
lea r9d, [r14 + 2]
xor r8d, r8d
lea rdx, [0x14015eea0]
mov rcx, 0xffffffff80000002
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x1400529ab
mov eax, r12d
test rsi, rsi
je 0x14005298c
mov rcx, rsi
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov qword [rsp + 0x30], r12
mov dword [rsp + 0x38], r12d
mov rsi, qword [rsp + 0x78]
mov qword [rsp + 0x30], rsi
test eax, eax
jne 0x1400529ab
mov r8d, dword [0x1401d5d60]
jmp 0x140052c95
lea rcx, str.__r_
mov rax, qword [str.__r_]
call qword [rax + 0x18]
add rax, 0x18
mov qword [rsp + 0x68], rax
lea rdx, str.MozillaMozilla_Firefox
test rdx, 0xffffffffffff0000
jne 0x1400529f6
movzx ebx, dx
mov ecx, ebx
call fcn.1400019e0
test rax, rax
je 0x140052a01
mov r8d, ebx
mov rdx, rax
lea rcx, [rsp + 0x68]
call fcn.140002760
jmp 0x140052a01
lea rcx, [rsp + 0x68]
call fcn.1400034f0
nop
lea rcx, str.__r_
mov rax, qword [str.__r_]
call qword [rax + 0x18]
lea rbx, [rax + 0x18]
mov qword [rsp + 0x58], rbx
lea r8, [0x14015ee70]
test r8, 0xffffffffffff0000
jne 0x140052a51
movzx ebx, r8w
mov ecx, ebx
call fcn.1400019e0
test rax, rax
je 0x140052ac6
mov r8d, ebx
mov rdx, rax
lea rcx, [rsp + 0x58]
call fcn.140002760
jmp 0x140052ac6
mov r15d, dword [rbx - 0x10]
mov rdi, r8
sub rdi, rbx
sar rdi, 1
mov ecx, 1
sub ecx, dword [rbx - 8]
mov eax, dword [rbx - 0xc]
sub eax, 0x15
or eax, ecx
jge 0x140052a8b
mov edx, 0x15
lea rcx, [rsp + 0x58]
call fcn.140002560
mov rbx, qword [rsp + 0x58]
lea r8, [0x14015ee70]
movsxd rdx, dword [rbx - 0xc]
mov r9d, 0x2a
mov rcx, rbx
add rdx, rdx
cmp rdi, r15
ja 0x140052aab
lea r8, [rbx + rdi*2]
call fcn.1400d400c
jmp 0x140052ab0
call fcn.1400d41cc
cmp dword [rbx - 0xc], 0x15
jl 0x140052cf7
mov dword [rbx - 0x10], 0x15
mov word [rbx + 0x2a], r12w
lea r8, [rsp + 0x68]
lea rdx, [rsp + 0x58]
lea rcx, [rbp - 0x70]
call fcn.14000ff10
nop
mov qword [rbp - 0x80], r12
lea rdx, [rbp - 0x80]
mov qword [rsp + 0x20], rdx
mov r9d, 1
xor r8d, r8d
mov rdx, qword [rax]
mov rcx, 0xffffffff80000002
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
mov r15d, eax
test eax, eax
jne 0x140052b2e
mov r15d, r12d
test rsi, rsi
je 0x140052b20
mov rcx, rsi
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov r15d, eax
mov qword [rsp + 0x30], r12
mov dword [rsp + 0x38], r12d
mov rax, qword [rbp - 0x80]
mov qword [rsp + 0x30], rax
mov rdx, qword [rbp - 0x70]
add rdx, 0xffffffffffffffe8
lock add dword [rdx + 0x10], 0xffffffff
jg 0x140052b47
mov rcx, qword [rdx]
mov rax, qword [rcx]
call qword [rax + reloc.OLEAUT32.dll_VariantClear]
nop
mov rdx, qword [rsp + 0x58]
add rdx, 0xffffffffffffffe8
lock add dword [rdx + 0x10], 0xffffffff
jg 0x140052b61
mov rcx, qword [rdx]
mov rax, qword [rcx]
call qword [rax + reloc.OLEAUT32.dll_VariantClear]
nop
mov rdx, qword [rsp + 0x68]
add rdx, 0xffffffffffffffe8
lock add dword [rdx + 0x10], 0xffffffff
jg 0x140052b7a
mov rcx, qword [rdx]
mov rax, qword [rcx]
call qword [rax + reloc.OLEAUT32.dll_VariantClear]
call fcn.14004f6e0
test al, al
jne 0x140052bec
mov edi, r12d
lea rsi, [rbp - 0x50]
nop word [rax + rax]
mov r9d, r12d
nop word [rax + rax]
lea ebx, [r9 + 1]
lea ecx, [rdi + 1]
mov r8d, dword [0x1401d5d60]
mov eax, r8d
cdq
idiv ecx
mov ecx, edx
mov eax, r8d
sub eax, edi
imul ecx, eax
mov eax, r8d
cdq
idiv ebx
add ecx, eax
sub ecx, r9d
mov dword [rsi], ecx
mov edx, ecx
lea rcx, [0x14015caf4]
call fcn.1400d40f4
mov r9d, ebx
add rsi, 4
cmp ebx, 0xc
jl 0x140052ba0
inc edi
cmp edi, 0xc
jl 0x140052b90
test r15d, r15d
je 0x140052c23
mov rcx, r13
call fcn.140053660
mov dword [rsp + 0x50], 1
mov rcx, qword [rsp + 0x30]
test rcx, rcx
je 0x140052c16
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov qword [rsp + 0x30], r12
mov dword [rsp + 0x38], r12d
mov rax, r13
jmp 0x140053031
mov r8d, dword [0x1401d5d60]
mov ecx, r8d
imul ecx, r8d
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, 5
jne 0x140052c90
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, r14
mov rcx, rax
call fcn.1400d2e28
mov rcx, rax
call fcn.1400d3f08
mov r8d, dword [0x1401d5d60]
mov rsi, qword [rsp + 0x30]
mov eax, r8d
imul eax, r8d
imul eax, r8d
and eax, 0x8000000f
jge 0x140052cae
dec eax
or eax, 0xfffffff0
inc eax
cmp eax, 0xe
jne 0x140052d02
movabs rax, 0x41414d6b426874
mov qword [rbp - 0x68], rax
lea rax, [rbp - 0x68]
mov rcx, r14
nop dword [rax + rax]
inc rcx
cmp byte [rax + rcx], 0
jne 0x140052cd0
mov eax, 4
mul rcx
cmovo rax, r14
mov rcx, rax
call fcn.1400d2e28
mov rcx, rax
call fcn.1400d3f08
jmp 0x140052d02
mov ecx, 0x80070057
call fcn.140001920
nop
mov word [rbp + 0x1f0], r12w
xor edx, edx
mov r8d, 0x7fe
lea rcx, [rbp + 0x1f2]
call fcn.1400d8c20
call fcn.14004f660
lea rcx, str.__r_
mov rax, qword [str.__r_]
call qword [rax + 0x18]
lea rbx, [rax + 0x18]
mov qword [rsp + 0x48], rbx
lea r8, [0x14015ef08]
test r8, 0xffffffffffff0000
jne 0x140052d78
movzx edi, r8w
mov ecx, edi
call fcn.1400019e0
test rax, rax
je 0x140052ded
mov r8d, edi
mov rdx, rax
lea rcx, [rsp + 0x48]
call fcn.140002760
mov rbx, qword [rsp + 0x48]
jmp 0x140052ded
mov r15d, dword [rbx - 0x10]
mov rdi, r8
sub rdi, rbx
sar rdi, 1
mov ecx, 1
sub ecx, dword [rbx - 8]
mov eax, dword [rbx - 0xc]
sub eax, 3
or eax, ecx
jge 0x140052db2
mov edx, 3
lea rcx, [rsp + 0x48]
call fcn.140002560
mov rbx, qword [rsp + 0x48]
lea r8, [0x14015ef08]
movsxd rdx, dword [rbx - 0xc]
mov r9d, 6
mov rcx, rbx
add rdx, rdx
cmp rdi, r15
ja 0x140052dd2
lea r8, [rbx + rdi*2]
call fcn.1400d400c
jmp 0x140052dd7
call fcn.1400d41cc
cmp dword [rbx - 0xc], 3
jl 0x140053026
mov dword [rbx - 0x10], 3
mov word [rbx + 6], r12w
mov dword [rsp + 0x60], 0x800
lea rax, [rsp + 0x60]
mov qword [rsp + 0x28], rax
lea rax, [rbp + 0x1f0]
mov qword [rsp + 0x20], rax
lea r9, [rsp + 0x70]
xor r8d, r8d
lea rdx, [0x14015eee8]
mov rcx, rsi
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x140052f70
mov eax, dword [rsp + 0x70]
dec eax
cmp eax, 1
ja 0x140052f70
mov eax, dword [rsp + 0x60]
test eax, eax
je 0x140052e5d
test al, 1
jne 0x140052f70
shr rax, 1
cmp word [rbp + rax*2 + 0x1ee], 0
je 0x140052e65
jmp 0x140052f70
mov word [rbp + 0x1f0], r12w
lea rax, [rbp + 0x1f0]
mov rdi, r14
nop
inc rdi
cmp word [rax + rdi*2], 0
jne 0x140052e70
test edi, edi
jne 0x140052edf
lea rdx, [rbx - 0x18]
mov rdi, qword [rdx]
cmp dword [rdx + 8], 0
je 0x140052f70
cmp dword [rdx + 0x10], 0
jge 0x140052eb3
cmp dword [rbx - 0xc], 0
jge 0x140052ea6
mov ecx, 0x80070057
call fcn.140001920
int3
mov dword [rbx - 0x10], r12d
mov word [rbx], r12w
jmp 0x140052f70
lock add dword [rdx + 0x10], 0xffffffff
jg 0x140052ec3
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 + 0x48], rbx
mov rsi, qword [rsp + 0x30]
jmp 0x140052f70
mov r12d, dword [rbx - 0x10]
lea r15, [rbp + 0x1f0]
sub r15, rbx
sar r15, 1
test edi, edi
jns 0x140052eff
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 0x140052f21
mov edx, edi
lea rcx, [rsp + 0x48]
call fcn.140002560
mov rbx, qword [rsp + 0x48]
movsxd rax, edi
movsxd rdx, dword [rbx - 0xc]
mov rcx, rbx
add rdx, rdx
cmp r15, r12
lea r12, [rax + rax]
mov r9, r12
ja 0x140052f45
lea r8, [rbx + r15*2]
call fcn.1400d400c
jmp 0x140052f51
lea r8, [rbp + 0x1f0]
call fcn.1400d41cc
cmp edi, dword [rbx - 0xc]
jg 0x140052f65
mov dword [rbx - 0x10], edi
xor eax, eax
mov word [r12 + rbx], ax
xor r12d, r12d
jmp 0x140052f70
mov ecx, 0x80070057
call fcn.140001920
int3
test rsi, rsi
je 0x140052f83
mov rcx, rsi
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov qword [rsp + 0x30], r12
mov dword [rsp + 0x38], r12d
cmp dword [rbx - 0x10], 0
je 0x140052ff9
mov rcx, r12
lea rdx, [0x14015ef98]
nop dword [rax + rax]
movzx eax, word [rbx + rcx*2]
inc rcx
cmp ax, word [rdx + rcx*2 - 2]
jne 0x140052fb9
cmp rcx, 4
jne 0x140052fa0
mov eax, r12d
jmp 0x140052fbe
sbb eax, eax
or eax, 1
test eax, eax
je 0x140052ff9
lea rcx, [rbx - 0x18]
call fcn.1400025c0
add rax, 0x18
mov qword [r13], rax
mov dword [rsp + 0x50], 1
lock add dword [rbx - 8], 0xffffffff
jg 0x140052c01
mov rcx, qword [rbx - 0x18]
mov rax, qword [rcx]
lea rdx, [rbx - 0x18]
call qword [rax + reloc.OLEAUT32.dll_VariantClear]
jmp 0x140052c01
mov rcx, r13
call fcn.140053660
mov dword [rsp + 0x50], 1
lea rdx, [rbx - 0x18]
lock add dword [rdx + 0x10], 0xffffffff
jg 0x140052c01
mov rcx, qword [rdx]
mov rax, qword [rcx]
call qword [rax + reloc.OLEAUT32.dll_VariantClear]
jmp 0x140052c01
mov ecx, 0x80070057
call fcn.140001920
nop
mov rcx, qword [rbp + 0x9f0]
xor rcx, rsp
call fcn.1400d37e0
lea r11, [rsp + 0xb00]
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