Function at 0x140010220
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 0x140010310
lea rcx, [rsp + 0x230]
mov dx, 0x5c
call fcn.140011cb0
test rax, rax
jne 0x14001034c
mov rcx, rbx
call fcn.14000fb90
jmp 0x140010646
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 0x140010380
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 0x1400103f0
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 0x140010451
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 0x140010626
test esi, esi
je 0x140010626
test ecx, ecx
je 0x140010626
mov rcx, rbx
call fcn.14000c1a0
test eax, eax
je 0x140010626
lea r9, str.DongFangIME.users
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 0x14001051b
lea rcx, [rsp + 0x20]
call fcn.1400109d0
mov rdx, qword [rbx + 0x48]
or rcx, 0xffffffffffffffff
xor eax, eax
add rbx, 0x28
lea rdi, [rsp + 0x20]
repne scasw ax, word [rdi]
cmp rdx, 8
not rcx
lea rsi, [rcx - 1]
jb 0x140010548
mov rax, qword [rbx + 8]
lea rdi, [rbx + 8]
jmp 0x14001054f
lea rdi, [rbx + 8]
mov rax, rdi
lea rcx, [rsp + 0x20]
cmp rcx, rax
jb 0x1400105a0
cmp rdx, 8
jb 0x140010564
mov rcx, qword [rdi]
jmp 0x140010567
mov rcx, rdi
mov rax, qword [rbx + 0x18]
lea rcx, [rcx + rax*2]
lea rax, [rsp + 0x20]
cmp rcx, rax
jbe 0x1400105a0
cmp rdx, 8
jb 0x140010582
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 0x14001062e
movabs rax, 0x7ffffffffffffffe
cmp rsi, rax
jbe 0x1400105b4
call fcn.1400117b0
mov rax, qword [rbx + 0x20]
cmp rax, rsi
jae 0x1400105e0
mov r8, qword [rbx + 0x18]
mov rdx, rsi
mov rcx, rbx
call fcn.1400013e0
test rsi, rsi
je 0x14001062e
mov rdx, qword [rbx + 0x20]
cmp rdx, 8
jb 0x1400105f9
mov rcx, qword [rdi]
jmp 0x1400105fc
test rsi, rsi
jne 0x1400105cc
cmp rax, 8
mov qword [rbx + 0x18], rsi
jb 0x1400105f2
mov rdi, qword [rdi]
mov word [rdi], 0
jmp 0x14001062e
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 0x14001061e
mov rdi, qword [rdi]
mov word [rdi + rbp], 0
jmp 0x14001062e
mov rcx, rbx
call fcn.14000fb90
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