Function at 0x140053070
Capabilities:
Get disk size
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 [rsp + 0x78], 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 + 0x790], rax
mov r15, rcx
mov qword [rbp - 0x80], rcx
xor r14d, r14d
mov dword [rsp + 0x30], r14d
mov ecx, dword [0x1401d5d60]
lea r8d, [rcx + 2]
lea eax, [rcx + 1]
imul r8d, eax
imul r8d, ecx
mov eax, 0x2aaaaaab
imul r8d
sar edx, 2
mov eax, edx
shr eax, 0x1f
add edx, eax
lea eax, [rdx + rdx*2]
shl eax, 3
sub r8d, eax
cmp r8d, 0x15
jne 0x1400530fd
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetFileType]
mov qword [rsp + 0x58], r14
mov dword [rsp + 0x60], r14d
mov qword [rsp + 0x68], r14
mov r8d, dword [0x1401d5d60]
lea ecx, [r8 + 1]
imul ecx, r8d
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, 0xb
jne 0x1400531a0
mov ecx, r14d
mov eax, 0x84210843
imul r8d
add edx, r8d
sar edx, 6
mov eax, edx
shr eax, 0x1f
add edx, eax
imul edx, edx, 0x7c
mov eax, r8d
sub eax, edx
cmp eax, 0xdb
je 0x14005319a
nop dword [rax]
mov eax, r8d
or eax, 0xffffff94
add r8d, eax
inc ecx
mov eax, r8d
imul eax, r8d
cmp ecx, eax
jg 0x14005319a
mov eax, 0x84210843
imul r8d
add edx, r8d
sar edx, 6
mov eax, edx
shr eax, 0x1f
add edx, eax
imul edx, edx, 0x7c
mov eax, r8d
sub eax, edx
cmp eax, 0xdb
jne 0x140053160
mov dword [0x1401d5d60], ecx
mov qword [rsp + 0x48], r14
lea rax, [rsp + 0x48]
mov qword [rsp + 0x20], rax
mov r9d, 1
xor r8d, r8d
lea rdx, str.SOFTWAREMicrosoftWindowsCurrentVersionApp_Paths_firefox.exe
mov rcx, 0xffffffff80000002
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x14005343d
mov dword [rsp + 0x60], r14d
mov r13, qword [rsp + 0x48]
mov qword [rsp + 0x58], r13
mov word [rbp - 0x70], r14w
xor edx, edx
mov r8d, 0x7fe
lea rcx, [rbp - 0x6e]
call fcn.1400d8c20
lea rcx, str.__r_
mov rax, qword [str.__r_]
call qword [rax + 0x18]
lea rbx, [rax + 0x18]
mov qword [rsp + 0x50], rbx
mov r8d, dword [0x1401d5d60]
lea ecx, [r8 + 2]
lea eax, [r8 + 1]
imul ecx, eax
imul ecx, r8d
mov eax, 0x78787879
imul ecx
sar edx, 3
mov eax, edx
shr eax, 0x1f
add edx, eax
imul edx, edx, 0x11
sub ecx, edx
cmp ecx, 2
jne 0x140053265
mov ecx, 1
cmp r8d, ecx
jle 0x14005325f
nop
mov eax, r8d
cdq
idiv ecx
inc ecx
add ecx, edx
cmp ecx, r8d
jl 0x140053250
mov dword [0x1401d5d60], ecx
mov dword [rsp + 0x34], 0x800
lea rax, [rsp + 0x34]
mov qword [rsp + 0x28], rax
lea rax, [rbp - 0x70]
mov qword [rsp + 0x20], rax
lea r9, [rsp + 0x70]
xor r8d, r8d
lea rdx, [0x14015cb14]
mov rcx, r13
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
or rsi, 0xffffffffffffffff
test eax, eax
jne 0x1400533d8
mov eax, dword [rsp + 0x70]
dec eax
cmp eax, 1
ja 0x1400533d8
mov eax, dword [rsp + 0x34]
test eax, eax
je 0x1400532d3
test al, 1
jne 0x1400533d8
shr rax, 1
cmp word [rbp + rax*2 - 0x72], 0
je 0x1400532d8
jmp 0x1400533d8
mov word [rbp - 0x70], r14w
lea rax, [rbp - 0x70]
mov rdi, rsi
nop
inc rdi
cmp word [rax + rdi*2], 0
jne 0x1400532e0
test edi, edi
jne 0x14005334f
lea rdx, [rbx - 0x18]
mov rdi, qword [rdx]
cmp dword [rdx + 8], 0
je 0x1400533d8
cmp dword [rdx + 0x10], 0
jge 0x140053323
cmp dword [rbx - 0xc], 0
jge 0x140053316
mov ecx, 0x80070057
call fcn.140001920
int3
mov dword [rbx - 0x10], r14d
mov word [rbx], r14w
jmp 0x1400533d8
lock add dword [rdx + 0x10], 0xffffffff
jg 0x140053333
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 + 0x50], rbx
mov r13, qword [rsp + 0x48]
jmp 0x1400533d8
mov r12d, dword [rbx - 0x10]
lea r14, [rbp - 0x70]
sub r14, rbx
sar r14, 1
test edi, edi
jns 0x14005336c
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 0x14005338e
mov edx, edi
lea rcx, [rsp + 0x50]
call fcn.140002560
mov rbx, qword [rsp + 0x50]
movsxd rax, edi
movsxd rdx, dword [rbx - 0xc]
mov rcx, rbx
add rdx, rdx
cmp r14, r12
lea r12, [rax + rax]
mov r9, r12
ja 0x1400533b2
lea r8, [rbx + r14*2]
call fcn.1400d400c
jmp 0x1400533bb
lea r8, [rbp - 0x70]
call fcn.1400d41cc
cmp edi, dword [rbx - 0xc]
jg 0x1400533cd
mov dword [rbx - 0x10], edi
xor r14d, r14d
mov word [r12 + rbx], r14w
jmp 0x1400533d8
mov ecx, 0x80070057
call fcn.140001920
int3
test r13, r13
je 0x1400533eb
mov rcx, r13
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov qword [rsp + 0x58], r14
mov dword [rsp + 0x60], r14d
lea rcx, [rbx - 0x18]
call fcn.1400025c0
add rax, 0x18
mov qword [r15], rax
mov dword [rsp + 0x30], 1
lock add dword [rbx - 8], 0xffffffff
jg 0x14005341f
mov rcx, qword [rbx - 0x18]
mov r8, qword [rcx]
lea rdx, [rbx - 0x18]
call qword [rreloc.OLEAUT32.dll_VariantClear + 8]
nop
mov rcx, qword [rsp + 0x58]
test rcx, rcx
je 0x14005361b
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov qword [rsp + 0x58], r14
jmp 0x14005361b
lea rcx, [rsp + 0x38]
call fcn.14002d3a0
nop
mov ecx, dword [0x1401d5d60]
lea r8d, [rcx + 2]
lea eax, [rcx + 1]
imul r8d, eax
imul r8d, ecx
mov eax, 0x88888889
imul r8d
add edx, r8d
sar edx, 3
mov eax, edx
shr eax, 0x1f
add edx, eax
imul edx, edx, 0xf
sub r8d, edx
cmp r8d, 8
jne 0x140053493
mov qword [rsp + 0x20], r14
xor r9d, r9d
xor r8d, r8d
xor edx, edx
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetDiskFreeSpaceW]
mov rax, qword [rsp + 0x38]
mov ecx, dword [rax - 0x10]
test ecx, ecx
je 0x1400535a6
lea edx, [rcx - 1]
test edx, edx
js 0x14005359b
cmp edx, ecx
jg 0x14005359b
movsxd rcx, edx
cmp word [rax + rcx*2], 0x5c
je 0x1400534d7
mov r8d, 1
lea rdx, [0x14015cb04]
lea rcx, [rsp + 0x38]
call fcn.1400109d0
lea r8, str.Mozilla_Firefox_firefox.exe
lea rdx, [rsp + 0x38]
lea rcx, [rsp + 0x40]
call fcn.14001b320
nop
mov r8d, dword [0x1401d5d60]
mov ecx, r8d
imul ecx, r8d
mov eax, 0x78787879
imul ecx
sar edx, 3
mov eax, edx
shr eax, 0x1f
add edx, eax
imul edx, edx, 0x11
sub ecx, edx
cmp ecx, 0xc
jne 0x140053536
mov ecx, 1
cmp r8d, ecx
jle 0x140053530
mov eax, r8d
cdq
idiv ecx
inc ecx
add ecx, edx
cmp ecx, r8d
jl 0x140053521
mov dword [0x1401d5d60], ecx
lea rcx, [rsp + 0x40]
call fcn.14002d760
test al, al
je 0x140053580
mov rcx, qword [rsp + 0x40]
add rcx, 0xffffffffffffffe8
call fcn.1400025c0
add rax, 0x18
mov qword [r15], rax
mov dword [rsp + 0x30], 1
mov rdx, qword [rsp + 0x40]
add rdx, 0xffffffffffffffe8
lock add dword [rdx + 0x10], 0xffffffff
jg 0x14005357b
mov rcx, qword [rdx]
mov rax, qword [rcx]
call qword [rax + reloc.OLEAUT32.dll_VariantClear]
nop
jmp 0x140053601
mov rdx, qword [rsp + 0x40]
add rdx, 0xffffffffffffffe8
lock add dword [rdx + 0x10], 0xffffffff
jg 0x1400535a6
mov rcx, qword [rdx]
mov rax, qword [rcx]
call qword [rax + reloc.OLEAUT32.dll_VariantClear]
jmp 0x1400535a6
mov ecx, 0x80070057
call fcn.140001920
int3
lea rcx, str.__r_
mov rax, qword [str.__r_]
call qword [rax + 0x18]
add rax, 0x18
mov qword [r15], rax
lea rdx, [0x14015cb24]
test rdx, 0xffffffffffff0000
jne 0x1400535ed
movzx ebx, dx
mov ecx, ebx
call fcn.1400019e0
test rax, rax
je 0x1400535f9
mov r8d, ebx
mov rdx, rax
mov rcx, r15
call fcn.140002760
jmp 0x1400535f9
xor r8d, r8d
mov rcx, r15
call fcn.140002470
nop
mov dword [rsp + 0x30], 1
mov rdx, qword [rsp + 0x38]
add rdx, 0xffffffffffffffe8
lock add dword [rdx + 0x10], 0xffffffff
jg 0x14005361b
mov rcx, qword [rdx]
mov rax, qword [rcx]
call qword [rax + reloc.OLEAUT32.dll_VariantClear]
nop
mov dword [rsp + 0x60], r14d
mov rax, r15
mov rcx, qword [rbp + 0x790]
xor rcx, rsp
call fcn.1400d37e0
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