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

Disassembly:
push rbx
sub rsp, 0xca0
mov rax, qword [0x140039680]
xor rax, rsp
mov qword [rsp + 0xc80], rax
mov rbx, rcx
lea rcx, [rsp + 0xa72]
xor edx, edx
mov r8d, 0x206
mov word [rsp + 0xa70], 0
call fcn.140011ab0
lea rcx, [rsp + 0x862]
xor edx, edx
mov r8d, 0x206
mov word [rsp + 0x860], 0
call fcn.140011ab0
lea rcx, [rsp + 0x442]
xor edx, edx
mov r8d, 0x206
mov word [rsp + 0x440], 0
call fcn.140011ab0
lea rcx, [rsp + 0x652]
xor edx, edx
mov r8d, 0x206
mov word [rsp + 0x650], 0
call fcn.140011ab0
lea rcx, [rsp + 0x232]
xor edx, edx
mov r8d, 0x206
mov word [rsp + 0x230], 0
call fcn.140011ab0
lea rcx, [rsp + 0x22]
xor edx, edx
mov r8d, 0x206
mov word [rsp + 0x20], 0
call fcn.140011ab0
xor r9d, r9d
lea rdx, [rsp + 0xa70]
lea r8d, [r9 + 0x1a]
xor ecx, ecx
call qword [sym.imp.SHELL32.dll_SHGetSpecialFolderPathW]
xor edx, edx
nop
nop
movzx eax, word [rsp + rdx + 0xa70]
add rdx, 2
test ax, ax
mov word [rsp + rdx + 0x22e], ax
jne 0x14000fed0
lea rcx, [rsp + 0x230]
mov dx, 0x5c
call fcn.140011cb0
test rax, rax
jne 0x14000ff0c
mov rcx, rbx
call fcn.14000f950
jmp 0x140010206
mov qword [rsp + 0xcb8], rbp
mov qword [rsp + 0xcc0], rsi
mov qword [rsp + 0xc98], rdi
mov qword [rsp + 0xc90], r12
mov word [rax], 0
xor ecx, ecx
nop
nop
nop
nop
movzx eax, word [rsp + rcx + 0x230]
add rcx, 2
test ax, ax
mov word [rsp + rcx + 0x85e], ax
jne 0x14000ff40
xor eax, eax
or rcx, 0xffffffffffffffff
lea rdi, [rsp + 0x860]
repne scasw ax, word [rdi]
mov rax, qword [str.Local]
lea rcx, [rsp + 0x860]
mov qword [rdi - 2], rax
mov eax, dword [0x1400306b0]
mov dword [rdi + 6], eax
movzx eax, word [0x1400306b4]
mov word [rdi + 0xa], ax
call qword [sym.imp.SHLWAPI.dll_PathFileExistsW]
xor ebp, ebp
test eax, eax
mov r12d, 1
cmovne ebp, r12d
xor ecx, ecx
nop
nop
nop
movzx eax, word [rsp + rcx + 0x230]
add rcx, 2
test ax, ax
mov word [rsp + rcx + 0x43e], ax
jne 0x14000ffb0
xor eax, eax
or rcx, 0xffffffffffffffff
lea rdi, [rsp + 0x440]
repne scasw ax, word [rdi]
mov rax, qword [str.LocalLow]
lea rcx, [rsp + 0x440]
mov qword [rdi - 2], rax
mov rax, qword [0x140030698]
mov qword [rdi + 6], rax
mov eax, dword [0x1400306a0]
mov dword [rdi + 0xe], eax
call qword [sym.imp.SHLWAPI.dll_PathFileExistsW]
xor esi, esi
test eax, eax
cmovne esi, r12d
xor ecx, ecx
movzx eax, word [rsp + rcx + 0x230]
add rcx, 2
test ax, ax
mov word [rsp + rcx + 0x64e], ax
jne 0x140010011
xor eax, eax
or rcx, 0xffffffffffffffff
lea rdi, [rsp + 0x650]
repne scasw ax, word [rdi]
mov rax, qword [str.Roaming]
lea rcx, [rsp + 0x650]
mov qword [rdi - 2], rax
mov rax, qword [0x140030680]
mov qword [rdi + 6], rax
movzx eax, word [0x140030688]
mov word [rdi + 0xe], ax
call qword [sym.imp.SHLWAPI.dll_PathFileExistsW]
xor ecx, ecx
test eax, eax
cmovne ecx, r12d
test ebp, ebp
mov r12, qword [rsp + 0xc90]
je 0x1400101e6
test esi, esi
je 0x1400101e6
test ecx, ecx
je 0x1400101e6
mov rcx, rbx
call fcn.14000c1a0
test eax, eax
je 0x1400101e6
lea r9, str.DongFangIME
lea r8, [rsp + 0x440]
lea rdx, str._s_s_
lea rcx, [rsp + 0x20]
call fcn.140011ce0
lea rcx, [rsp + 0x20]
call qword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
jne 0x1400100db
lea rcx, [rsp + 0x20]
call fcn.1400109d0
mov rdx, qword [rbx + 0x70]
or rcx, 0xffffffffffffffff
xor eax, eax
add rbx, 0x50
lea rdi, [rsp + 0x20]
repne scasw ax, word [rdi]
cmp rdx, 8
not rcx
lea rsi, [rcx - 1]
jb 0x140010108
mov rax, qword [rbx + 8]
lea rdi, [rbx + 8]
jmp 0x14001010f
lea rdi, [rbx + 8]
mov rax, rdi
lea rcx, [rsp + 0x20]
cmp rcx, rax
jb 0x140010160
cmp rdx, 8
jb 0x140010124
mov rcx, qword [rdi]
jmp 0x140010127
mov rcx, rdi
mov rax, qword [rbx + 0x18]
lea rcx, [rcx + rax*2]
lea rax, [rsp + 0x20]
cmp rcx, rax
jbe 0x140010160
cmp rdx, 8
jb 0x140010142
mov rdi, qword [rdi]
lea r8, [rsp + 0x20]
mov r9, rsi
mov rdx, rbx
sub r8, rdi
mov rcx, rbx
sar r8, 1
call fcn.140001940
jmp 0x1400101ee
movabs rax, 0x7ffffffffffffffe
cmp rsi, rax
jbe 0x140010174
call fcn.1400117b0
mov rax, qword [rbx + 0x20]
cmp rax, rsi
jae 0x1400101a0
mov r8, qword [rbx + 0x18]
mov rdx, rsi
mov rcx, rbx
call fcn.1400013e0
test rsi, rsi
je 0x1400101ee
mov rdx, qword [rbx + 0x20]
cmp rdx, 8
jb 0x1400101b9
mov rcx, qword [rdi]
jmp 0x1400101bc
test rsi, rsi
jne 0x14001018c
cmp rax, 8
mov qword [rbx + 0x18], rsi
jb 0x1400101b2
mov rdi, qword [rdi]
mov word [rdi], 0
jmp 0x1400101ee
mov rcx, rdi
lea rbp, [rsi + rsi]
lea r8, [rsp + 0x20]
add rdx, rdx
mov r9, rbp
call fcn.140011dd0
cmp qword [rbx + 0x20], 8
mov qword [rbx + 0x18], rsi
jb 0x1400101de
mov rdi, qword [rdi]
mov word [rdi + rbp], 0
jmp 0x1400101ee
mov rcx, rbx
call fcn.14000f950
mov rsi, qword [rsp + 0xcc0]
mov rbp, qword [rsp + 0xcb8]
mov rdi, qword [rsp + 0xc98]
mov rcx, qword [rsp + 0xc80]
xor rcx, rsp
call fcn.140011c90
add rsp, 0xca0
pop rbx
ret