Function at 0x140140140
Capabilities:
Check if file exists
Copy file
Get common file path
Get file attributes

Disassembly:
mov qword [rsp + 0x10], rbx
push rbp
push rsi
push rdi
push r12
push r13
push r14
push r15
lea rbp, [rsp - 0x440]
sub rsp, 0x540
mov rax, qword [0x140425440]
xor rax, rsp
mov qword [rbp + 0x430], rax
mov qword [rbp - 0x70], r9
mov qword [rsp + 0x60], r8
mov r15, rdx
mov rbx, rcx
mov qword [rsp + 0x68], rcx
xor r9d, r9d
mov r8d, reloc.OLEAUT32.dll_SafeArrayCopy
lea rdx, [rbp + 0x20]
xor ecx, ecx
call qword [sym.imp.SHELL32.dll_SHGetSpecialFolderPathW]
lea rcx, [0x140379908]
mov rsi, 0xffffffffffffffff
test eax, eax
je 0x1401401f0
lea rdx, [rbp + 0x20]
lea rcx, [rsp + 0x30]
call fcn.14001a140
nop
lea rdx, [rsp + 0x30]
lea rcx, [rsp + 0x28]
call fcn.140178d10
nop
mov rcx, qword [rsp + 0x30]
add rcx, 0xfffffffffffffff0
mov eax, dword [rcx]
nop
test eax, 0x30000000
jne 0x1401401f5
mov eax, esi
lock xadd dword [rcx], eax
dec eax
cmp eax, esi
jne 0x1401401f5
call fcn.1400da0f0
jmp 0x1401401f5
mov qword [rsp + 0x28], rcx
lea rdx, [rsp + 0x28]
lea rcx, [rsp + 0x40]
call fcn.14017e080
mov r14, rax
mov qword [rbp - 0x80], rax
xor r9d, r9d
mov edi, 1
lea rcx, str.FxSoundPresets
mov r10d, 0xdc00
mov r11d, 4
movzx eax, word [rcx]
test ax, ax
je 0x14014028c
add rcx, 2
lea edx, [rax - 0xd800]
cmp edx, 0x7ff
ja 0x14014025e
movzx r8d, word [rcx]
cmp r8w, r10w
jb 0x14014025e
mov eax, r8d
sub eax, r10d
shl edx, 0xa
or eax, edx
add eax, 0x10000
add rcx, 2
mov edx, 1
cmp eax, 0x80
jb 0x140140284
mov edx, 2
cmp eax, 0x800
jb 0x140140284
mov edx, 3
cmp eax, 0x10000
cmovae rdx, r11
add r9, rdx
inc rdi
jmp 0x140140226
test r9, r9
je 0x1401402d0
mov rax, qword [r14]
mov rbx, rsi
inc rbx
cmp byte [rax + rbx], 0
jne 0x140140297
lea rdx, [rbx + r9]
mov rcx, r14
call fcn.14016a9f0
movsxd rax, ebx
add rax, qword [r14]
mov qword [rsp + 0x78], rax
mov r8d, edi
lea rdx, str.FxSoundPresets
lea rcx, [rsp + 0x78]
call fcn.14001cb60
mov rbx, qword [rsp + 0x68]
mov rcx, qword [r14]
mov qword [rsp + 0x30], rcx
mov eax, dword [rcx - 0x10]
nop
test eax, 0x30000000
jne 0x1401402e7
lock inc dword [rcx - 0x10]
mov rcx, qword [r14]
add rcx, 0xfffffffffffffff0
mov eax, dword [rcx]
nop
test eax, 0x30000000
jne 0x14014030b
mov eax, esi
lock xadd dword [rcx], eax
dec eax
cmp eax, 0xffffffff
jne 0x14014030b
call fcn.1400da0f0
nop
mov rcx, qword [rsp + 0x28]
add rcx, 0xfffffffffffffff0
mov eax, dword [rcx]
nop
test eax, 0x30000000
jne 0x140140330
mov eax, esi
lock xadd dword [rcx], eax
dec eax
cmp eax, 0xffffffff
jne 0x140140330
call fcn.1400da0f0
lea rdx, [rsp + 0x30]
lea rcx, [rsp + 0x28]
call fcn.140178d10
nop
mov rax, qword [rsp + 0x28]
cmp byte [rax], 0
je 0x140140367
lea rdx, [rsp + 0x28]
lea rcx, [rbp - 0x80]
call fcn.140015780
mov rcx, qword [rax]
call qword [sym.imp.KERNEL32.dll_GetFileAttributesW]
nop
cmp eax, 0xffffffff
jne 0x14014039b
lea rdx, [rsp + 0x40]
lea rcx, [rsp + 0x28]
call fcn.14017c050
mov rcx, qword [rsp + 0x40]
add rcx, 0xfffffffffffffff0
mov eax, dword [rcx]
nop
test eax, 0x30000000
jne 0x14014039b
mov eax, esi
lock xadd dword [rcx], eax
dec eax
cmp eax, 0xffffffff
jne 0x14014039b
call fcn.1400da0f0
call fcn.140004ce0
mov r13, rax
mov r14, qword [r15]
movsxd rcx, dword [r15 + 0xc]
lea r12, [r14 + rcx*8]
cmp r14, r12
je 0x140140738
add rbx, 0x50
mov qword [rbp - 0x80], rbx
mov r15, qword [rsp + 0x30]
mov rcx, qword [r14]
mov qword [rsp + 0x58], rcx
mov eax, dword [rcx - 0x10]
nop
test eax, 0x30000000
jne 0x1401403db
lock inc dword [rcx - 0x10]
lea rdx, [rsp + 0x58]
lea rcx, [rbp - 0x48]
call fcn.140015780
mov rdx, qword [rax]
xorps xmm0, xmm0
movups xmmword [rbp - 0x68], xmm0
xor eax, eax
mov qword [rbp - 0x58], rax
mov qword [rbp - 0x50], rax
mov r8, rsi
inc r8
cmp word [rdx + r8*2], ax
jne 0x140140400
lea rcx, [rbp - 0x68]
call fcn.14000c390
lea r8, [rbp - 0x68]
lea rdx, [rbp - 0x20]
mov rcx, rbx
call fcn.1400bb460
nop
lea rdx, [rbp]
cmp qword [rbp + 0x18], 7
cmova rdx, qword [rbp]
lea rcx, [rbp - 0x78]
call fcn.14001a140
lea rdx, [rbp - 0x78]
mov rcx, r13
call fcn.140143bc0
movzx ebx, al
mov rdx, qword [rbp - 0x78]
mov ecx, dword [rdx - 0x10]
nop
test ecx, 0x30000000
jne 0x140140471
mov ecx, esi
lock xadd dword [rdx - 0x10], ecx
dec ecx
cmp ecx, 0xffffffff
jne 0x140140471
lea rcx, [rdx - 0x10]
call fcn.1400da0f0
test bl, bl
je 0x1401406c8
mov rax, qword [rsp + 0x30]
mov qword [rsp + 0x38], rax
mov eax, dword [r15 - 0x10]
nop
test eax, 0x30000000
jne 0x140140494
lock inc dword [r15 - 0x10]
lea rax, [rsp + 0x38]
mov qword [rsp + 0x20], rax
lea r8, [0x1402d5fbd]
lea rdx, [0x1402d5fbc]
lea rcx, [rsp + 0x38]
call fcn.1401691c0
mov rax, qword [rsp + 0x38]
mov qword [rsp + 0x70], rax
mov ecx, dword [rax - 0x10]
nop
test ecx, 0x30000000
jne 0x1401404d0
lock inc dword [rax - 0x10]
mov rcx, qword [rsp + 0x38]
add rcx, 0xfffffffffffffff0
mov eax, dword [rcx]
nop
test eax, 0x30000000
jne 0x1401404f5
mov eax, esi
lock xadd dword [rcx], eax
dec eax
cmp eax, 0xffffffff
jne 0x1401404f5
call fcn.1400da0f0
lea rax, [rsp + 0x70]
mov qword [rsp + 0x20], rax
lea rdx, [rbp]
cmp qword [rbp + 0x18], 7
cmova rdx, qword [rbp]
lea rcx, [rsp + 0x70]
call fcn.140169090
mov rcx, qword [rax]
mov qword [rsp + 0x48], rcx
mov eax, dword [rcx - 0x10]
nop
test eax, 0x30000000
jne 0x14014052e
lock inc dword [rcx - 0x10]
mov rcx, qword [rsp + 0x70]
add rcx, 0xfffffffffffffff0
mov eax, dword [rcx]
nop
test eax, 0x30000000
jne 0x140140553
mov eax, esi
lock xadd dword [rcx], eax
dec eax
cmp eax, 0xffffffff
jne 0x140140553
call fcn.1400da0f0
lea rax, [rsp + 0x48]
mov qword [rsp + 0x20], rax
lea r8, [0x1402d5fb8]
lea rdx, str..fac
lea rcx, [rsp + 0x48]
call fcn.1401691c0
mov rax, qword [rsp + 0x48]
mov qword [rsp + 0x20], rax
mov ecx, dword [rax - 0x10]
nop
test ecx, 0x30000000
jne 0x14014058f
lock inc dword [rax - 0x10]
mov rcx, qword [rsp + 0x48]
add rcx, 0xfffffffffffffff0
mov eax, dword [rcx]
nop
test eax, 0x30000000
jne 0x1401405b5
mov eax, esi
lock xadd dword [rcx], eax
dec eax
cmp eax, 0xffffffff
jne 0x1401405b5
call fcn.1400da0f0
nop
lea rdx, [rsp + 0x20]
lea rcx, [rsp + 0x50]
call fcn.140178d10
nop
mov rcx, qword [rsp + 0x20]
add rcx, 0xfffffffffffffff0
mov eax, dword [rcx]
nop
test eax, 0x30000000
jne 0x1401405ea
mov eax, esi
lock xadd dword [rcx], eax
dec eax
cmp eax, 0xffffffff
jne 0x1401405ea
call fcn.1400da0f0
mov rdi, qword [rsp + 0x58]
mov rbx, qword [rsp + 0x50]
cmp rdi, rbx
je 0x140140677
mov rdx, rbx
mov rcx, rdi
call fcn.140019450
test eax, eax
je 0x140140677
cmp byte [rdi], 0
je 0x14014069f
lea rdx, [rsp + 0x58]
lea rcx, [rbp - 0x40]
call fcn.140015780
mov rcx, qword [rax]
call qword [sym.imp.KERNEL32.dll_GetFileAttributesW]
nop
cmp eax, 0xffffffff
je 0x14014069f
lea rcx, [rsp + 0x50]
call fcn.14014d7d0
test al, al
je 0x1401406c1
lea rdx, [rsp + 0x50]
lea rcx, [rbp - 0x38]
call fcn.140015780
mov rbx, qword [rax]
lea rdx, [rsp + 0x58]
lea rcx, [rbp - 0x30]
call fcn.140015780
xor r8d, r8d
mov rdx, rbx
mov rcx, qword [rax]
call qword [sym.imp.KERNEL32.dll_CopyFileW]
test eax, eax
je 0x1401406c1
mov rbx, qword [rsp + 0x50]
lea rdx, [rbp]
cmp qword [rbp + 0x18], 7
cmova rdx, qword [rbp]
lea rcx, [rsp + 0x78]
call fcn.14001a140
lea rdx, [rsp + 0x78]
mov rcx, qword [rsp + 0x60]
call fcn.14017d5a0
nop
lea rcx, [rbx - 0x10]
mov eax, dword [rcx]
nop
test eax, 0x30000000
jne 0x1401406ef
mov eax, esi
lock xadd dword [rcx], eax
dec eax
cmp eax, 0xffffffff
jne 0x1401406ef
call fcn.1400da0f0
jmp 0x1401406ef
mov rbx, qword [rsp + 0x50]
jmp 0x14014069f
lea rdx, [rbp]
cmp qword [rbp + 0x18], 7
cmova rdx, qword [rbp]
lea rcx, [rsp + 0x40]
call fcn.14001a140
lea rdx, [rsp + 0x40]
mov rcx, qword [rbp - 0x70]
call fcn.14017d5a0
nop
lea rcx, [rbp]
call fcn.140005670
lea rcx, [rbp - 0x20]
call fcn.140005670
nop
mov rcx, qword [rsp + 0x58]
add rcx, 0xfffffffffffffff0
mov eax, dword [rcx]
nop
test eax, 0x30000000
jne 0x140140727
mov eax, esi
lock xadd dword [rcx], eax
dec eax
cmp eax, 0xffffffff
jne 0x140140727
call fcn.1400da0f0
add r14, 8
cmp r14, r12
mov rbx, qword [rbp - 0x80]
jne 0x1401403c4
mov rax, qword [rsp + 0x60]
cmp dword [rax + 0xc], 0
je 0x1401407e9
mov rbx, qword [rsp + 0x68]
mov rcx, rbx
call fcn.14013c350
lea rax, [0x140379908]
mov qword [rsp + 0x68], rax
lea r9, [rsp + 0x68]
lea r8, str.preset
lea rdx, [rsp + 0x60]
mov rcx, qword [rbx + 0x1b8]
call fcn.14017b810
mov rcx, qword [rsp + 0x68]
add rcx, 0xfffffffffffffff0
mov eax, dword [rcx]
nop
test eax, 0x30000000
jne 0x1401407a3
mov eax, esi
lock xadd dword [rcx], eax
dec eax
cmp eax, 0xffffffff
jne 0x1401407a3
call fcn.1400da0f0
nop
call fcn.140004ce0
mov rcx, rax
lea rdx, [rsp + 0x60]
call fcn.140143d10
mov edx, eax
mov rcx, rbx
call fcn.140141070
nop
mov rcx, qword [rsp + 0x60]
add rcx, 0xfffffffffffffff0
mov eax, dword [rcx]
nop
test eax, 0x30000000
jne 0x1401407e5
mov eax, esi
lock xadd dword [rcx], eax
dec eax
cmp eax, 0xffffffff
jne 0x1401407e5
call fcn.1400da0f0
mov bl, 1
jmp 0x1401407eb
xor bl, bl
mov rcx, qword [rsp + 0x28]
add rcx, 0xfffffffffffffff0
mov eax, dword [rcx]
nop
test eax, 0x30000000
jne 0x140140811
mov eax, esi
lock xadd dword [rcx], eax
dec eax
cmp eax, 0xffffffff
jne 0x140140811
call fcn.1400da0f0
nop
mov rcx, qword [rsp + 0x30]
add rcx, 0xfffffffffffffff0
mov edx, dword [rcx]
nop
test edx, 0x30000000
jne 0x140140835
lock xadd dword [rcx], esi
dec esi
cmp esi, 0xffffffff
jne 0x140140835
call fcn.1400da0f0
movzx eax, bl
mov rcx, qword [rbp + 0x430]
xor rcx, rsp
call fcn.1400d9d70
mov rbx, qword [rsp + 0x588]
add rsp, 0x540
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
ret