Function at 0x180006ba0
Capabilities:
Check if file exists
Get common file path

Disassembly:
mov qword [rsp + 0x18], rbx
push rbp
push rdi
push r12
push r14
push r15
lea rbp, [rsp - 0xbb0]
sub rsp, 0xcb0
mov rax, qword [0x18005d3f0]
xor rax, rsp
mov qword [rbp + 0xba0], rax
mov r15, rdx
mov r14, rcx
xor edx, edx
lea rcx, [rbp + 0x570]
mov r8d, 0x208
xor ebx, ebx
call fcn.18001f6b0
xor edx, edx
lea rcx, [rbp + 0x780]
mov r8d, 0x208
call fcn.18001f6b0
xor edx, edx
lea rcx, [rbp + 0x360]
mov r8d, 0x208
call fcn.18001f6b0
xor edx, edx
lea rcx, [rbp + 0x990]
mov r8d, 0x208
call fcn.18001f6b0
xor edx, edx
lea rcx, [rbp + 0x150]
mov r8d, 0x208
call fcn.18001f6b0
xor edx, edx
lea rcx, [rsp + 0x40]
mov r8d, 0x208
call fcn.18001f6b0
mov rcx, r14
xor dil, dil
call fcn.1800083d0
lea r12d, [rbx + 1]
test al, al
je 0x180006cb3
lea rdx, [rsp + 0x30]
mov qword [rsp + 0x30], rbx
mov rcx, r14
call fcn.1800068d0
test al, al
je 0x180006cb3
mov r8, qword [rsp + 0x30]
lea rax, [rbp + 0x570]
mov r9d, r12d
mov qword [rsp + 0x20], rax
lea edx, [rbx + 0x1a]
xor ecx, ecx
call qword [sym.imp.SHELL32.dll_SHGetFolderPathW]
test eax, eax
movzx edi, dil
cmove edi, r12d
call qword [sym.imp.ADVAPI32.dll_RevertToSelf]
mov rcx, qword [rsp + 0x30]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
test dil, dil
jne 0x180006cc9
xor r9d, r9d
lea rdx, [rbp + 0x570]
xor ecx, ecx
lea r8d, [r9 + 0x1a]
call qword [sym.imp.SHELL32.dll_SHGetSpecialFolderPathW]
mov rcx, rbx
nop dword [rax]
movzx eax, word [rbp + rcx + 0x570]
mov word [rbp + rcx + 0x150], ax
lea rcx, [rcx + 2]
test ax, ax
jne 0x180006cd0
mov edx, 0x5c
lea rcx, [rbp + 0x150]
call fcn.180020efc
test rax, rax
je 0x180006ec0
mov qword [rsp + 0xce0], rsi
mov rcx, rbx
mov word [rax], bx
nop dword [rax]
nop word [rax + rax]
movzx eax, word [rbp + rcx + 0x150]
mov word [rbp + rcx + 0x780], ax
lea rcx, [rcx + 2]
test ax, ax
jne 0x180006d20
lea rcx, [rbp + 0x780]
sub rcx, 2
cmp word [rcx + 2], bx
lea rcx, [rcx + 2]
jne 0x180006d44
mov eax, dword [0x18003fea0]
movsd xmm0, qword [str.Local]
movsd qword [rcx], xmm0
mov dword [rcx + 8], eax
movzx eax, word [0x18003fea4]
mov word [rcx + 0xc], ax
lea rcx, [rbp + 0x780]
call qword [sym.imp.SHLWAPI.dll_PathFileExistsW]
mov esi, ebx
mov rcx, rbx
test eax, eax
cmovne esi, r12d
nop word [rax + rax]
movzx eax, word [rbp + rcx + 0x150]
mov word [rbp + rcx + 0x360], ax
lea rcx, [rcx + 2]
test ax, ax
jne 0x180006d90
lea rcx, [rbp + 0x360]
sub rcx, 2
cmp word [rcx + 2], bx
lea rcx, [rcx + 2]
jne 0x180006db4
movups xmm0, xmmword [str.LocalLow]
mov eax, dword [0x18003feb8]
movups xmmword [rcx], xmm0
mov dword [rcx + 0x10], eax
lea rcx, [rbp + 0x360]
call qword [sym.imp.SHLWAPI.dll_PathFileExistsW]
mov edi, ebx
mov rcx, rbx
test eax, eax
cmovne edi, r12d
nop dword [rax]
movzx eax, word [rbp + rcx + 0x150]
mov word [rbp + rcx + 0x990], ax
lea rcx, [rcx + 2]
test ax, ax
jne 0x180006df0
lea rcx, [rbp + 0x990]
sub rcx, 2
cmp word [rcx + 2], bx
lea rcx, [rcx + 2]
jne 0x180006e14
movups xmm0, xmmword [str.Roaming]
movzx eax, word [0x18003fed0]
movups xmmword [rcx], xmm0
mov word [rcx + 0x10], ax
lea rcx, [rbp + 0x990]
call qword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
mov ecx, ebx
cmovne ecx, r12d
test esi, esi
mov rsi, qword [rsp + 0xce0]
je 0x180006ec0
test edi, edi
je 0x180006ec0
test ecx, ecx
je 0x180006ec0
lea r9, str.PuddingZip
lea r8, [rbp + 0x360]
lea rdx, [0x18003fef0]
lea rcx, [rsp + 0x40]
call fcn.180009f60
lea rcx, [rsp + 0x40]
call qword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
jne 0x180006e94
lea rcx, [rsp + 0x40]
call fcn.18000a4b0
cmp word [rsp + 0x40], bx
je 0x180006eae
lea rax, [rsp + 0x40]
or rbx, 0xffffffffffffffff
inc rbx
cmp word [rax + rbx*2], 0
jne 0x180006ea4
mov r8, rbx
lea rdx, [rsp + 0x40]
mov rcx, r15
call fcn.180002310
jmp 0x180006ecb
mov rdx, r15
mov rcx, r14
call fcn.180006090
mov rcx, qword [rbp + 0xba0]
xor rcx, rsp
call fcn.18001d7b0
mov rbx, qword [rsp + 0xcf0]
add rsp, 0xcb0
pop r15
pop r14
pop r12
pop rdi
pop rbp
ret