Function at 0x140053530
Capabilities:
Query or enumerate registry value

Disassembly:
push rbp
push r12
push r13
push r14
push r15
lea rbp, [rsp - 0xcb60]
mov eax, 0xcc60
call fcn.1400d9eb0
sub rsp, rax
mov qword [rbp - 0x60], 0xfffffffffffffffe
mov qword [rsp + 0xcc98], rbx
mov qword [rsp + 0xcca0], rsi
mov qword [rsp + 0xcca8], rdi
mov rax, qword [0x1401cee90]
xor rax, rsp
mov qword [rbp + 0xcb50], rax
mov r13, rcx
mov qword [rbp - 0x68], rcx
xor r15d, r15d
mov dword [rsp + 0x50], r15d
mov esi, r15d
mov qword [rsp + 0x38], r15
mov dword [rsp + 0x40], r15d
mov qword [rsp + 0x48], r15
mov qword [rbp - 0x78], r15
lea rax, [rbp - 0x78]
mov qword [rsp + 0x20], rax
lea r9d, [r15 + 1]
xor r8d, r8d
lea rdx, str.SoftwareMozillaMozilla_Firefox
mov rcx, 0xffffffff80000001
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
mov ebx, eax
test eax, eax
jne 0x1400535e0
mov dword [rsp + 0x40], r15d
mov ebx, r15d
mov rsi, qword [rbp - 0x78]
mov qword [rsp + 0x38], rsi
call fcn.140050090
test al, al
jne 0x140053622
mov r8d, r15d
lea r9, [rbp + 0x60]
mov r11d, dword [0x1401d6d80]
mov r10d, r11d
nop word [rax + rax]
lea ecx, [r11 + r8]
mov eax, r10d
cdq
idiv ecx
mov dword [r9], edx
inc r8d
dec r10d
lea r9, [r9 + 4]
movsxd rax, r8d
cmp rax, 0x91
jb 0x140053600
or r12, 0xffffffffffffffff
test ebx, ebx
je 0x1400539df
mov qword [rbp - 0x80], r15
lea rax, [rbp - 0x80]
mov qword [rsp + 0x20], rax
lea r9d, [r12 + 2]
xor r8d, r8d
lea rdx, [0x14015fe70]
mov rcx, 0xffffffff80000002
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
mov r8d, eax
test eax, eax
jne 0x140053685
mov r8d, r15d
test rsi, rsi
je 0x140053677
mov rcx, rsi
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov r8d, eax
mov qword [rsp + 0x38], r15
mov dword [rsp + 0x40], r15d
mov rsi, qword [rbp - 0x80]
mov qword [rsp + 0x38], rsi
mov r10d, dword [0x1401d6d80]
lea ecx, [r10 + 1]
imul ecx, r10d
mov eax, 0x2e8ba2e9
imul ecx
sar edx, 2
mov eax, edx
shr eax, 0x1f
add edx, eax
imul edx, edx, 0x16
sub ecx, edx
cmp ecx, 5
jne 0x1400536d4
mov edx, 1
mov eax, edx
mov ecx, 0x3c
nop dword [rax + rax]
lea r10d, [rax + rdx]
lea edx, [rax]
mov eax, r10d
dec ecx
jns 0x1400536c0
mov dword [0x1401d6d80], r10d
test r8d, r8d
je 0x1400539a8
lea rcx, str.D_r_
mov rax, qword [str.D_r_]
call qword [rax + 0x18]
add rax, 0x18
mov qword [rsp + 0x68], rax
lea rdx, str.MozillaMozilla_Firefox
test rdx, 0xffffffffffff0000
jne 0x140053728
movzx ebx, dx
mov ecx, ebx
call fcn.1400019e0
test rax, rax
je 0x140053733
mov r8d, ebx
mov rdx, rax
lea rcx, [rsp + 0x68]
call fcn.140002960
jmp 0x140053733
lea rcx, [rsp + 0x68]
call fcn.140003940
nop
lea rcx, str.D_r_
mov rax, qword [str.D_r_]
call qword [rax + 0x18]
lea rbx, [rax + 0x18]
mov qword [rsp + 0x58], rbx
lea r8, [0x14015ff38]
test r8, 0xffffffffffff0000
jne 0x140053783
movzx ebx, r8w
mov ecx, ebx
call fcn.1400019e0
test rax, rax
je 0x1400537f8
mov r8d, ebx
mov rdx, rax
lea rcx, [rsp + 0x58]
call fcn.140002960
jmp 0x1400537f8
mov r14d, 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 0x1400537bd
mov edx, 0x15
lea rcx, [rsp + 0x58]
call fcn.140002760
mov rbx, qword [rsp + 0x58]
lea r8, [0x14015ff38]
movsxd rdx, dword [rbx - 0xc]
mov r9d, 0x2a
mov rcx, rbx
add rdx, rdx
cmp rdi, r14
ja 0x1400537dd
lea r8, [rbx + rdi*2]
call fcn.1400d562c
jmp 0x1400537e2
call fcn.1400d57ec
cmp dword [rbx - 0xc], 0x15
jl 0x14005399d
mov dword [rbx - 0x10], 0x15
mov word [rbx + 0x2a], r15w
lea r8, [rsp + 0x68]
lea rdx, [rsp + 0x58]
lea rcx, [rbp - 0x70]
call fcn.140010150
nop
mov qword [rsp + 0x78], r15
lea rdx, [rsp + 0x78]
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 ebx, eax
test eax, eax
jne 0x140053861
mov ebx, r15d
test rsi, rsi
je 0x140053852
mov rcx, rsi
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov ebx, eax
mov qword [rsp + 0x38], r15
mov dword [rsp + 0x40], r15d
mov rax, qword [rsp + 0x78]
mov qword [rsp + 0x38], rax
mov rdx, qword [rbp - 0x70]
add rdx, 0xffffffffffffffe8
lock add dword [rdx + 0x10], 0xffffffff
jg 0x14005387a
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 0x140053894
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 0x1400538ad
mov rcx, qword [rdx]
mov rax, qword [rcx]
call qword [rax + reloc.OLEAUT32.dll_VariantClear]
mov r10d, dword [0x1401d6d80]
lea ecx, [r10 + 1]
imul ecx, r10d
mov eax, 0xb21642c9
imul ecx
add edx, ecx
sar edx, 4
mov eax, edx
shr eax, 0x1f
add edx, eax
imul edx, edx, 0x17
sub ecx, edx
cmp ecx, 8
jne 0x140053960
mov word [rbp + 0xab0], r15w
xor edx, edx
mov r8d, 0xc090
lea rcx, [rbp + 0xab2]
call fcn.1400da240
mov r10, r15
mov r9, r15
nop
mov r8, r15
test r10, r10
je 0x140053932
test r8, r8
je 0x140053932
lea rax, [r9 + r8]
lea rdx, [rbp + 0xab0]
lea rdx, [rdx + rax*2]
lea rax, [r9 + r8]
movzx ecx, word [rbp + rax*2 + 0x976]
inc cx
add cx, word [rdx - 2]
mov word [rdx], cx
inc r8
cmp r8, 0x9d
jl 0x140053903
inc r10
add r9, 0x9d
cmp r9, 0x6049
jl 0x140053900
movsx r10d, word [rbp + 0xcb40]
mov dword [0x1401d6d80], r10d
test ebx, ebx
je 0x140053996
mov rcx, r13
call fcn.140054350
mov dword [rsp + 0x50], 1
mov rcx, qword [rsp + 0x38]
test rcx, rcx
je 0x140053989
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov qword [rsp + 0x38], r15
mov dword [rsp + 0x40], r15d
mov rax, r13
jmp 0x140053d42
mov rsi, qword [rsp + 0x38]
jmp 0x1400539a8
mov ecx, 0x80070057
call fcn.140001920
nop
lea r9d, [r10 + 1]
lea r8d, [r10 + 2]
imul r8d, r9d
imul r8d, r10d
mov eax, 0x78787879
imul r8d
sar edx, 3
mov eax, edx
shr eax, 0x1f
add edx, eax
imul edx, edx, 0x11
sub r8d, edx
cmp r8d, 3
cmove r10d, r9d
mov dword [0x1401d6d80], r10d
mov word [rbp + 0x2b0], r15w
xor edx, edx
mov r8d, 0x7fe
lea rcx, [rbp + 0x2b2]
call fcn.1400da240
lea rcx, str.D_r_
mov rax, qword [str.D_r_]
call qword [rax + 0x18]
lea rbx, [rax + 0x18]
mov qword [rsp + 0x30], rbx
lea r8, [0x14015ff30]
test r8, 0xffffffffffff0000
jne 0x140053a50
movzx edi, r8w
mov ecx, edi
call fcn.1400019e0
test rax, rax
je 0x140053ac5
mov r8d, edi
mov rdx, rax
lea rcx, [rsp + 0x30]
call fcn.140002960
mov rbx, qword [rsp + 0x30]
jmp 0x140053ac5
mov r14d, 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 0x140053a8a
mov edx, 3
lea rcx, [rsp + 0x30]
call fcn.140002760
mov rbx, qword [rsp + 0x30]
lea r8, [0x14015ff30]
movsxd rdx, dword [rbx - 0xc]
mov r9d, 6
mov rcx, rbx
add rdx, rdx
cmp rdi, r14
ja 0x140053aaa
lea r8, [rbx + rdi*2]
call fcn.1400d562c
jmp 0x140053aaf
call fcn.1400d57ec
cmp dword [rbx - 0xc], 3
jl 0x140053d37
mov dword [rbx - 0x10], 3
mov word [rbx + 6], r15w
mov dword [rsp + 0x60], 0x800
lea rax, [rsp + 0x60]
mov qword [rsp + 0x28], rax
lea rax, [rbp + 0x2b0]
mov qword [rsp + 0x20], rax
lea r9, [rsp + 0x70]
xor r8d, r8d
lea rdx, [0x14015ff10]
mov rcx, rsi
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x140053c50
mov eax, dword [rsp + 0x70]
dec eax
cmp eax, 1
ja 0x140053c50
mov eax, dword [rsp + 0x60]
test eax, eax
je 0x140053b35
test al, 1
jne 0x140053c50
shr rax, 1
cmp word [rbp + rax*2 + 0x2ae], 0
je 0x140053b3d
jmp 0x140053c50
mov word [rbp + 0x2b0], r15w
lea rax, [rbp + 0x2b0]
mov rdi, r12
nop word [rax + rax]
inc rdi
cmp word [rax + rdi*2], 0
jne 0x140053b50
test edi, edi
jne 0x140053bbf
lea rdx, [rbx - 0x18]
mov rdi, qword [rdx]
cmp dword [rdx + 8], 0
je 0x140053c50
cmp dword [rdx + 0x10], 0
jge 0x140053b93
cmp dword [rbx - 0xc], 0
jge 0x140053b86
mov ecx, 0x80070057
call fcn.140001920
int3
mov dword [rbx - 0x10], r15d
mov word [rbx], r15w
jmp 0x140053c50
lock add dword [rdx + 0x10], 0xffffffff
jg 0x140053ba3
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 + 0x30], rbx
mov rsi, qword [rsp + 0x38]
jmp 0x140053c50
mov r15d, dword [rbx - 0x10]
lea r14, [rbp + 0x2b0]
sub r14, rbx
sar r14, 1
test edi, edi
jns 0x140053bdf
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 0x140053c01
mov edx, edi
lea rcx, [rsp + 0x30]
call fcn.140002760
mov rbx, qword [rsp + 0x30]
movsxd rax, edi
movsxd rdx, dword [rbx - 0xc]
mov rcx, rbx
add rdx, rdx
cmp r14, r15
lea r15, [rax + rax]
mov r9, r15
ja 0x140053c25
lea r8, [rbx + r14*2]
call fcn.1400d562c
jmp 0x140053c31
lea r8, [rbp + 0x2b0]
call fcn.1400d57ec
cmp edi, dword [rbx - 0xc]
jg 0x140053c45
mov dword [rbx - 0x10], edi
xor eax, eax
mov word [r15 + rbx], ax
xor r15d, r15d
jmp 0x140053c50
mov ecx, 0x80070057
call fcn.140001920
int3
test rsi, rsi
je 0x140053c63
mov rcx, rsi
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov qword [rsp + 0x38], r15
mov dword [rsp + 0x40], r15d
cmp dword [rbx - 0x10], 0
je 0x140053cd9
mov rcx, r15
lea rdx, [0x14015ff08]
nop dword [rax + rax]
movzx eax, word [rbx + rcx*2]
inc rcx
cmp ax, word [rdx + rcx*2 - 2]
jne 0x140053c99
cmp rcx, 4
jne 0x140053c80
mov eax, r15d
jmp 0x140053c9e
sbb eax, eax
or eax, 1
test eax, eax
je 0x140053cd9
lea rcx, [rbx - 0x18]
call fcn.1400027c0
add rax, 0x18
mov qword [r13], rax
mov dword [rsp + 0x50], 1
lock add dword [rbx - 8], 0xffffffff
jg 0x140053974
mov rcx, qword [rbx - 0x18]
mov rax, qword [rcx]
lea rdx, [rbx - 0x18]
call qword [rax + reloc.OLEAUT32.dll_VariantClear]
jmp 0x140053974
mov ecx, dword [0x1401d6d80]
imul ecx, ecx
mov eax, 0x2aaaaaab
imul ecx
sar edx, 2
mov eax, edx
shr eax, 0x1f
add edx, eax
lea eax, [rdx + rdx*2]
shl eax, 3
sub ecx, eax
cmp ecx, 0x12
jne 0x140053d0a
lea rcx, [rbp - 0x50]
call qword [sym.imp.KERNEL32.dll_GetTimeZoneInformation]
mov rcx, r13
call fcn.140054350
mov dword [rsp + 0x50], 1
lea rdx, [rbx - 0x18]
lock add dword [rdx + 0x10], 0xffffffff
jg 0x140053974
mov rcx, qword [rdx]
mov rax, qword [rcx]
call qword [rax + reloc.OLEAUT32.dll_VariantClear]
jmp 0x140053974
mov ecx, 0x80070057
call fcn.140001920
nop
mov rcx, qword [rbp + 0xcb50]
xor rcx, rsp
call fcn.1400d4e00
lea r11, [rsp + 0xcc60]
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