Function at 0x14010d0f0
Capabilities:
Get common file path

Disassembly:
mov r11, rsp
mov qword [r11 + 0x20], r9
push rbp
push rsi
push rdi
sub rsp, 0x280
mov rax, qword [0x1403486d0]
xor rax, rsp
mov qword [rsp + 0x260], rax
mov rax, r9
mov rdi, r8
mov esi, edx
mov rbp, rcx
test edx, edx
je 0x14010d3e0
cmp edx, 0x65
je 0x14010d3e0
mov qword [r11 - 0x20], rbx
test r8, r8
je 0x14010d16e
mov rcx, qword [sym.imp.CoreFoundation.dll_kCFAllocatorDefault]
lea r9, [r11 + 0x28]
mov r8, rax
xor edx, edx
mov rcx, qword [rcx]
call qword [sym.imp.CoreFoundation.dll_CFStringCreateWithFormatAndArguments]
mov rdx, qword [rbp + 0x30]
mov r8, rdi
mov r9, rax
mov ecx, esi
mov rbx, rax
call fcn.14010dd50
mov rcx, rbx
call qword [sym.imp.CoreFoundation.dll_CFRelease]
cmp byte [rbp + 0x20], 0
je 0x14010d309
mov rax, qword [rbp + 0x10]
lea rcx, str.SQL_DB____is_corrupted_already._Not_trying_to_recover__corrution_error_was:__d__previously__d_
mov edi, dword [rbp + 0x24]
mov rbx, qword [rax + 0x10]
call qword [sym.imp.CoreFoundation.dll___CFStringMakeConstantString]
mov rcx, qword [sym.imp.CoreFoundation.dll_kCFAllocatorDefault]
mov r9, rbx
mov dword [rsp + 0x28], edi
mov r8, rax
xor edx, edx
mov dword [rsp + 0x20], esi
mov rcx, qword [rcx]
call qword [sym.imp.CoreFoundation.dll_CFStringCreateWithFormat]
lea rcx, [0x14029d10c]
mov rsi, rax
call qword [sym.imp.CoreFoundation.dll___CFStringMakeConstantString]
lea rcx, [0x14029d280]
mov rbx, rax
call qword [sym.imp.CoreFoundation.dll___CFStringMakeConstantString]
mov qword [rsp + 0x30], rsi
lea r9, [0x14029d210]
mov rdx, rax
mov qword [rsp + 0x28], rbx
lea r8, [0x14029d260]
mov dword [rsp + 0x20], 0x201
mov ecx, 3
call fcn.140109c60
xor ebx, ebx
lea r9, [rsp + 0x40]
xor r8d, r8d
mov qword [rsp + 0x40], rbx
xor edx, edx
lea rcx, [0x14028cbc8]
call sub.SHELL32.dll_SHGetKnownFolderPath
test eax, eax
js 0x14010d2c3
mov rdx, qword [rsp + 0x40]
lea r8, [0x14029d158]
lea rcx, [rsp + 0x50]
call qword [sym.imp.SHLWAPI.dll_PathCombineW]
lea rdx, [0x14029d190]
lea rcx, [rsp + 0x50]
call qword [sym.imp.SHLWAPI.dll_PathAppendW]
lea rax, [rsp + 0x50]
mov r8, 0xffffffffffffffff
nop word [rax + rax]
inc r8
cmp word [rax + r8*2], bx
jne 0x14010d260
mov rcx, qword [sym.imp.CoreFoundation.dll_kCFAllocatorNull]
lea rdx, [rsp + 0x50]
mov rcx, qword [rcx]
call qword [sym.imp.CoreFoundation.dll_CFStringCreateWithCharacters]
mov rcx, qword [rbp + 0x10]
mov rdi, rax
mov rax, qword [rcx + 0x10]
test rax, rax
je 0x14010d2a4
test rdi, rdi
je 0x14010d2a4
mov rdx, rdi
mov rcx, rax
call qword [sym.imp.CoreFoundation.dll_CFEqual]
cmp al, 1
jmp 0x14010d2a7
cmp rax, rdi
sete bl
test rdi, rdi
je 0x14010d2b8
mov rcx, rdi
call qword [sym.imp.CoreFoundation.dll_CFRelease]
mov rcx, qword [rsp + 0x40]
call qword [sym.imp.ole32.dll_CoTaskMemFree]
shl ebx, 8
mov rcx, rsi
or ebx, 0x53c00005
mov edx, ebx
call fcn.140109c90
test rsi, rsi
je 0x14010d2e4
mov rcx, rsi
call qword [sym.imp.CoreFoundation.dll_CFRelease]
mov rbx, qword [rsp + 0x278]
xor al, al
mov rcx, qword [rsp + 0x260]
xor rcx, rsp
call fcn.1400e6b50
add rsp, 0x280
pop rdi
pop rsi
pop rbp
ret
cmp esi, 0x1a
ja 0x14010d31c
mov eax, 0x4004c00
bt eax, esi
jae 0x14010d31c
mov al, 1
jmp 0x14010d31e
xor al, al
mov byte [rbp + 0x20], al
test al, al
je 0x14010d2e4
mov rcx, rbp
mov dword [rbp + 0x24], esi
call fcn.14010ce50
mov byte [rbp + 0x20], al
test al, al
je 0x14010d392
lea rcx, str.operation_returned_code:__d_integrity_checkfail
call qword [sym.imp.CoreFoundation.dll___CFStringMakeConstantString]
lea rcx, [0x14029d2c8]
mov rbx, rax
call qword [sym.imp.CoreFoundation.dll___CFStringMakeConstantString]
mov dword [rsp + 0x30], esi
lea r9, [0x14029d310]
mov rdx, rax
mov qword [rsp + 0x28], rbx
lea r8, [0x14029d360]
mov dword [rsp + 0x20], 0x20e
mov ecx, 3
call fcn.140109c60
mov r8, rdi
mov edx, esi
mov rcx, rbp
call fcn.14010e310
jmp 0x14010d2e4
lea rcx, str.operation_returned_code:__d:_integrity_checkpass
call qword [sym.imp.CoreFoundation.dll___CFStringMakeConstantString]
lea rcx, [0x14029d400]
mov rbx, rax
call qword [sym.imp.CoreFoundation.dll___CFStringMakeConstantString]
mov dword [rsp + 0x30], esi
lea r9, [0x14029d380]
mov rdx, rax
mov qword [rsp + 0x28], rbx
lea r8, str.SecDbConnectionCheckCode
mov dword [rsp + 0x20], 0x211
mov ecx, 3
call fcn.140109c60
jmp 0x14010d2e4
mov al, 1
jmp 0x14010d2ee