Function at 0x140069a90
Capabilities:
Get common file path

Disassembly:
mov qword [rsp + 0x20], rsi
push rbp
push rdi
push r14
lea rbp, [rsp - 0x4b0]
sub rsp, 0x5b0
mov rax, qword [0x1400d1608]
xor rax, rsp
mov qword [rbp + 0x4a0], rax
mov r14, rdx
mov byte [rsp + 0x40], 0
mov rsi, rcx
mov rdi, 0xffffffffffffffff
nop dword [rax + rax]
inc rdi
cmp byte [rcx + rdi], 0
jne 0x140069ad0
mov qword [rsp + 0x5e0], rbx
cmp rdi, 0x7f
jb 0x140069b05
mov rax, qword [0x140233378]
test rax, rax
je 0x140069eac
lea rcx, [0x1400d0800]
call rax
jmp 0x140069eac
lea rcx, [rsp + 0x30]
call fcn.14006ac30
test eax, eax
js 0x140069eb1
lea rax, [rbp + 0xa0]
xor r9d, r9d
xor r8d, r8d
mov qword [rsp + 0x20], rax
mov edx, 0x801c
xor ecx, ecx
call qword [sym.imp.SHELL32.dll_SHGetFolderPathA]
mov rbx, qword [rsp + 0x30]
test eax, eax
jne 0x140069d29
lea rdx, [0x1400d0810]
lea rcx, [rbp + 0xa0]
call qword [sym.imp.SHLWAPI.dll_PathAppendA]
lea rax, [rsp + 0x40]
mov r9, rbx
lea r8, [rbp + 0xa0]
mov qword [rsp + 0x20], rax
mov edx, edi
mov rcx, rsi
call fcn.14006a5d0
test eax, eax
js 0x140069d5a
test rbx, rbx
je 0x140069ba0
mov rdi, qword [rbx + 0x10]
mov rcx, rbx
call fcn.1400733f0
mov rbx, rdi
test rdi, rdi
jne 0x140069b82
nop word [rax + rax]
movzx eax, byte [rsp + 0x40]
lea rcx, [rbp - 0x80]
mov byte [rbp - 0x80], al
xor edx, edx
movzx eax, byte [rsp + 0x42]
mov byte [rbp - 0x7f], al
movzx eax, byte [rsp + 0x44]
mov byte [rbp - 0x7e], al
lea r8d, [rdx + 0x10]
movzx eax, byte [rsp + 0x46]
mov byte [rbp - 0x7d], al
movzx eax, byte [rsp + 0x48]
mov byte [rbp - 0x7c], al
movzx eax, byte [rsp + 0x4a]
mov byte [rbp - 0x7b], al
movzx eax, byte [rsp + 0x4c]
mov byte [rbp - 0x7a], al
movzx eax, byte [rsp + 0x4e]
mov byte [rbp - 0x79], al
movzx eax, byte [rsp + 0x50]
mov byte [rbp - 0x78], al
movzx eax, byte [rsp + 0x52]
mov byte [rbp - 0x77], al
movzx eax, byte [rsp + 0x54]
mov byte [rbp - 0x76], al
movzx eax, byte [rsp + 0x56]
mov byte [rbp - 0x75], al
movzx eax, byte [rsp + 0x58]
mov byte [rbp - 0x74], al
movzx eax, byte [rsp + 0x5a]
mov byte [rbp - 0x73], al
movzx eax, byte [rsp + 0x5c]
mov byte [rbp - 0x72], al
movzx eax, byte [rsp + 0x5e]
mov byte [rbp - 0x71], al
mov byte [rbp - 0x70], 0
call fcn.140074c54
mov rbx, rax
xor edx, edx
movzx eax, byte [rsp + 0x41]
mov rcx, r14
mov byte [r14], al
movzx eax, byte [rsp + 0x43]
mov byte [r14 + 1], al
lea r8d, [rdx + 0x10]
movzx eax, byte [rsp + 0x45]
mov byte [r14 + 2], al
movzx eax, byte [rsp + 0x47]
mov byte [r14 + 3], al
movzx eax, byte [rsp + 0x49]
mov byte [r14 + 4], al
movzx eax, byte [rsp + 0x4b]
mov byte [r14 + 5], al
movzx eax, byte [rsp + 0x4d]
mov byte [r14 + 6], al
movzx eax, byte [rsp + 0x4f]
mov byte [r14 + 7], al
movzx eax, byte [rsp + 0x51]
mov byte [r14 + 8], al
movzx eax, byte [rsp + 0x53]
mov byte [r14 + 9], al
movzx eax, byte [rsp + 0x55]
mov byte [r14 + 0xa], al
movzx eax, byte [rsp + 0x57]
mov byte [r14 + 0xb], al
movzx eax, byte [rsp + 0x59]
mov byte [r14 + 0xc], al
movzx eax, byte [rsp + 0x5b]
mov byte [r14 + 0xd], al
movzx eax, byte [rsp + 0x5d]
mov byte [r14 + 0xe], al
movzx eax, byte [rsp + 0x5f]
mov byte [r14 + 0xf], al
mov byte [r14 + 0x10], 0
shl rbx, 3
call fcn.140074c54
mov rdi, rax
mov rax, rbx
shl rax, 0x14
xor rdi, rax
shr rbx, 0x10
xor rdi, rbx
lea r8, [0x1400d0880]
mov r9, rdi
mov edx, 0x40
mov rcx, r14
call fcn.140044c10
mov rax, qword [0x140233378]
test rax, rax
je 0x140069d22
mov r8, r14
lea rcx, str.Found_serial__.16I64X___s_
mov rdx, rdi
call rax
xor eax, eax
jmp 0x140069eb1
cmp qword [0x140233378], 0
je 0x140069d5a
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov r8d, 0x100
lea rdx, [rbp - 0x60]
mov ecx, eax
call fcn.140044d90
mov rdx, rax
lea rcx, [0x1400d0820]
call qword [0x140233378]
xor r9d, r9d
lea rax, [rbp + 0xa0]
xor r8d, r8d
mov qword [rsp + 0x20], rax
xor ecx, ecx
lea edx, [r9 + 0x1a]
call qword [sym.imp.SHELL32.dll_SHGetFolderPathA]
test eax, eax
jne 0x140069e7b
lea rdx, str.DEIdei_mtp.dat
lea rcx, [rbp + 0xa0]
call qword [sym.imp.SHLWAPI.dll_PathAppendA]
lea rax, [rsp + 0x40]
mov r9, rbx
lea r8, [rbp + 0xa0]
mov qword [rsp + 0x20], rax
mov edx, edi
mov rcx, rsi
call fcn.14006a5d0
test eax, eax
jns 0x140069b7d
mov r8, qword [str.Softwaredeimtp]
lea rax, [rsp + 0x40]
mov r9, rbx
mov qword [rsp + 0x20], rax
mov rdx, 0xffffffff80000001
mov rcx, rsi
call fcn.14006a7c0
test eax, eax
jns 0x140069b7d
mov r8, qword [str.Softwaredeimtp]
lea rax, [rsp + 0x40]
mov r9, rbx
mov qword [rsp + 0x20], rax
mov rdx, 0xffffffff80000002
mov rcx, rsi
call fcn.14006a7c0
test eax, eax
jns 0x140069b7d
lea rax, [rsp + 0x40]
mov r9, rbx
lea r8, str.deimtp
mov qword [rsp + 0x20], rax
mov rdx, 0xffffffff80000000
mov rcx, rsi
call fcn.14006a7c0
test eax, eax
jns 0x140069b7d
mov rax, qword [0x140233378]
test rax, rax
je 0x140069e50
lea rcx, str.No_readable_Registry_keys_found
call rax
test rbx, rbx
je 0x140069e74
nop word [rax + rax]
mov rdi, qword [rbx + 0x10]
mov rcx, rbx
call fcn.1400733f0
mov rbx, rdi
test rdi, rdi
jne 0x140069e60
mov eax, 0xfffffffe
jmp 0x140069eb1
cmp qword [0x140233378], 0
je 0x140069eac
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov r8d, 0x100
lea rdx, [rbp - 0x60]
mov ecx, eax
call fcn.140044d90
mov rdx, rax
lea rcx, str.SHGetFolderPath:__s
call qword [0x140233378]
mov eax, 0xffffffff
mov rbx, qword [rsp + 0x5e0]
mov rcx, qword [rbp + 0x4a0]
xor rcx, rsp
call fcn.14006f1f0
mov rsi, qword [rsp + 0x5e8]
add rsp, 0x5b0
pop r14
pop rdi
pop rbp
ret