Function at 0x180182140
Capabilities:
Get common file path

Disassembly:
mov rax, rsp
push rbp
push r12
push r13
push r14
push r15
lea rbp, [rax - 0x8d8]
sub rsp, 0x9b0
mov qword [rbp - 0x40], 0xfffffffffffffffe
mov qword [rax + 0x10], rbx
mov qword [rax + 0x18], rsi
mov qword [rax + 0x20], rdi
mov rax, qword [0x180332088]
xor rax, rsp
mov qword [rbp + 0x8a0], rax
mov r14, rcx
xor esi, esi
mov dword [rsp + 0x40], esi
lea r8d, [rsi + 0x15]
lea rdx, str.PinYinCloudLocalTable
add rcx, 0x10b8
call fcn.18005a720
mov byte [rbp + 0x28], sil
xor eax, eax
mov qword [rbp + 0x29], rax
mov byte [rbp + 0x31], al
lea r8d, [rsi + 1]
lea rdx, [0x1802b64f0]
lea rcx, [rbp + 0x28]
call fcn.18005b5f0
cmp byte [rbp + 0x28], sil
jne 0x1801821cb
mov r8d, esi
jmp 0x1801821dc
lea rax, [rbp + 0x28]
or r8, 0xffffffffffffffff
inc r8
cmp byte [rax + r8], sil
jne 0x1801821d3
lea rdx, [rbp + 0x28]
lea rcx, [r14 + 0x10b8]
call fcn.180059f80
mov qword [rbp + 0x20], 0xf
mov qword [rbp + 0x18], rsi
mov byte [rbp + 8], sil
xor eax, eax
mov qword [rbp + 0x38], rax
mov qword [rbp + 0x40], rax
mov qword [rbp + 0x48], rax
mov qword [rbp + 0x50], rax
mov qword [rbp + 0x58], rax
lea r9, [0x1802b0f48]
lea r8, [0x1802ace18]
lea rdx, str._s_V_s
lea rcx, [rbp + 0x38]
call fcn.18005c530
mov r15b, 0x61
nop dword [rax]
nop word [rax + rax]
xor eax, eax
mov qword [rbp + 0x28], rax
mov word [rbp + 0x30], ax
movsx r8d, r15b
lea rdx, [0x1802b690c]
lea rcx, [rbp + 0x28]
call fcn.18005b5f0
lea r8, [rbp + 0x28]
lea rdx, [r14 + 0x10b8]
lea rcx, [rbp - 0x18]
call fcn.18009e1b0
mov rdx, rax
lea rcx, [r14 + 0xfd8]
call fcn.180061430
mov rax, qword [rbp]
cmp rax, 0x10
jb 0x1801822cf
inc rax
mov rcx, qword [rbp - 0x18]
cmp rax, 0x1000
jb 0x1801822ca
test cl, 0x1f
jne 0x180182379
mov rax, qword [rcx - 8]
cmp rax, rcx
jae 0x180182373
sub rcx, rax
cmp rcx, 8
jb 0x18018236d
cmp rcx, 0x27
ja 0x180182367
mov rcx, rax
call fcn.180203788
mov qword [rbp], 0xf
mov qword [rbp - 8], rsi
mov byte [rbp - 0x18], 0
mov rax, qword [0x180345100]
test rax, rax
jne 0x180182316
lea ecx, [rax + 0x30]
call fcn.1802037c4
mov qword [rsp + 0x50], rax
mov qword [rax], rsi
mov qword [rax + 8], rsi
mov qword [rax + 0x10], rsi
mov qword [rax + 0x18], rsi
mov qword [rax + 0x20], rsi
mov qword [rax + 0x28], rsi
mov qword [0x180345100], rax
mov rdi, qword [rax + 0x10]
mov rbx, qword [rax + 8]
mov dword [r14 + 0xff8], 0x13
mov r8d, 0x15
lea rdx, str.PinYinCloudLocalTable
mov rcx, r14
call fcn.18005a720
mov qword [r14 + 0xfc8], rbx
mov qword [r14 + 0xfd0], rdi
lea rdx, [rsp + 0x40]
mov rcx, r14
call fcn.1801a3c20
inc r15b
cmp r15b, 0x7a
jg 0x18018237f
jmp 0x180182240
call fcn.180234c4c
int3
call fcn.180234c4c
int3
call fcn.180234c4c
int3
call fcn.180234c4c
int3
mov qword [rbp - 0x20], 7
mov qword [rbp - 0x28], rsi
mov word [rbp - 0x38], si
mov r8d, 2
lea rdx, [0x1802b38b0]
lea rcx, [rbp - 0x38]
call fcn.18005c660
nop
mov r8d, 2
lea rdx, [0x1802b38b8]
lea rcx, [rbp - 0x38]
call fcn.18005ffc0
mov r8d, 7
lea rdx, [0x1802b6910]
lea rcx, [rbp - 0x38]
call fcn.18005ffc0
xor edx, edx
lea r15d, [rdx + 1]
mov r8d, 0x208
lea rcx, [rbp + 0x270]
call fcn.180233580
lea rcx, [rbp - 0x38]
cmp qword [rbp - 0x20], 8
cmovae rcx, qword [rbp - 0x38]
lea rdx, [rbp + 0x270]
nop
movzx eax, word [rcx]
mov word [rdx], ax
lea rcx, [rcx + 2]
lea rdx, [rdx + 2]
test ax, ax
jne 0x180182400
lea rcx, [rbp + 0x270]
sub rcx, 2
nop
lea rcx, [rcx + 2]
cmp word [rcx], 0
jne 0x180182420
lea r8, [rbp + 0x38]
xor edx, edx
movzx eax, word [r8 + rdx*2]
mov word [rcx + rdx*2], ax
lea rdx, [rdx + 1]
test ax, ax
jne 0x180182430
lea r8, [rbp + 0x270]
mov edx, r15d
mov ecx, 0xf001f
call qword [sym.imp.KERNEL32.dll_OpenFileMappingW]
mov qword [r14 + 0x1038], rax
test rax, rax
jne 0x1801827cc
xorps xmm0, xmm0
movdqa xmmword [rbp - 0x60], xmm0
mov qword [rbp - 0x50], rsi
mov dword [rbp - 0x78], 0x18
lea rax, [rsp + 0x60]
mov qword [rbp - 0x70], rax
mov dword [rbp - 0x68], esi
mov edx, r15d
lea rcx, [rsp + 0x60]
call qword [sym.imp.ADVAPI32.dll_InitializeSecurityDescriptor]
test eax, eax
jne 0x1801824ad
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov edx, eax
lea rcx, str.InitializeSecurityDescriptor___failed.Error__d_n
call fcn.18006efe0
nop
lea rdx, str.Everyone
lea rcx, [rsp + 0x60]
call fcn.18006e4a0
lea rdx, str.ALL_APPLICATION_PACKAGES
lea rcx, [rsp + 0x60]
call fcn.18006e4a0
mov r15d, esi
lea rax, [rbp + 0x270]
mov qword [rsp + 0x28], rax
mov dword [rsp + 0x20], 0x1aa5
xor r9d, r9d
lea r8d, [r9 + 4]
lea rdx, [rbp - 0x78]
or rcx, 0xffffffffffffffff
call qword [sym.imp.KERNEL32.dll_CreateFileMappingW]
mov qword [r14 + 0x1038], rax
mov qword [rsp + 0x48], rsi
mov qword [rsp + 0x50], rsi
mov dword [rsp + 0x44], esi
mov dword [rsp + 0x40], esi
xor r9d, r9d
lea r8, [rsp + 0x48]
lea edx, [r9 + 1]
lea rcx, str.S:_ML__NW___LW_
call qword [sym.imp.ADVAPI32.dll_ConvertStringSecurityDescriptorToSecurityDescriptorW]
test eax, eax
je 0x180182586
lea r9, [rsp + 0x40]
lea r8, [rsp + 0x50]
lea rdx, [rsp + 0x44]
mov rcx, qword [rsp + 0x48]
call qword [sym.imp.ADVAPI32.dll_GetSecurityDescriptorSacl]
test eax, eax
je 0x18018257b
mov rax, qword [rsp + 0x50]
mov qword [rsp + 0x30], rax
mov qword [rsp + 0x28], rsi
mov qword [rsp + 0x20], rsi
xor r9d, r9d
lea edx, [r9 + 6]
lea r8d, [r9 + 0x10]
lea rcx, [rbp + 0x270]
call qword [sym.imp.ADVAPI32.dll_SetNamedSecurityInfoW]
mov rcx, qword [rsp + 0x48]
call qword [sym.imp.KERNEL32.dll_LocalFree]
cmp qword [r14 + 0x1038], r15
jne 0x180182776
xor edx, edx
mov r8d, 0x208
lea rcx, [rbp + 0x480]
call fcn.180233580
xor edx, edx
mov r8d, 0x208
lea rcx, [rbp + 0x690]
call fcn.180233580
xor edx, edx
mov r8d, 0x208
lea rcx, [rbp + 0x60]
call fcn.180233580
lea rdx, [rbp + 0x480]
mov ecx, 0x104
call qword [sym.imp.KERNEL32.dll_GetTempPathW]
lea rax, [rbp + 0x38]
mov qword [rsp + 0x28], rax
lea rax, str.Cloud
mov qword [rsp + 0x20], rax
lea r9, str.WanNengWBInput
lea r8, [rbp + 0x480]
lea rdx, str._s_s_s_s
lea rcx, [rbp + 0x690]
call fcn.18005c530
lea rcx, [rbp - 0x38]
cmp qword [rbp - 0x20], 8
cmovae rcx, qword [rbp - 0x38]
lea rdx, [rbp + 0x60]
nop word [rax + rax]
movzx eax, word [rcx]
mov word [rdx], ax
lea rcx, [rcx + 2]
lea rdx, [rdx + 2]
test ax, ax
jne 0x180182630
lea rcx, [rbp + 0x60]
sub rcx, 2
nop dword [rax + rax]
lea rcx, [rcx + 2]
cmp word [rcx], r15w
jne 0x180182650
movsd xmm0, qword [str.TEMP__]
movsd qword [rcx], xmm0
mov eax, dword [0x1802b38e0]
mov dword [rcx + 8], eax
movzx eax, word [0x1802b38e4]
mov word [rcx + 0xc], ax
lea rcx, [rbp + 0x60]
sub rcx, 2
lea rcx, [rcx + 2]
cmp word [rcx], r15w
jne 0x180182682
lea r8, [rbp + 0x38]
xor edx, edx
nop dword [rax]
nop word [rax + rax]
movzx eax, word [r8 + rdx*2]
mov word [rcx + rdx*2], ax
lea rdx, [rdx + 1]
test ax, ax
jne 0x1801826a0
mov byte [r14 + 0x1021], 1
lea r8, [rbp + 0x60]
mov edx, 1
mov ecx, 0xf001f
call qword [sym.imp.KERNEL32.dll_OpenFileMappingW]
mov qword [r14 + 0x1038], rax
test rax, rax
jne 0x180182776
lea r8, [rbp + 0x60]
lea edx, [rax + 1]
lea ecx, [rax + 6]
call qword [sym.imp.KERNEL32.dll_OpenFileMappingW]
mov qword [r14 + 0x1038], rax
test rax, rax
jne 0x180182776
mov qword [rsp + 0x30], rsi
mov dword [rsp + 0x28], 0x80
mov dword [rsp + 0x20], 4
xor r9d, r9d
mov edx, 0x10000000
lea r8d, [rax + 3]
lea rcx, [rbp + 0x690]
call qword [sym.imp.KERNEL32.dll_CreateFileW]
mov rbx, rax
cmp rax, 0xffffffffffffffff
jne 0x180182740
lea rcx, [rsp + 0x60]
call fcn.18006e410
jmp 0x180182850
lea rax, [rbp + 0x60]
mov qword [rsp + 0x28], rax
mov dword [rsp + 0x20], 0x1aa5
xor r9d, r9d
lea r8d, [r9 + 4]
lea rdx, [rbp - 0x78]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_CreateFileMappingW]
mov qword [r14 + 0x1038], rax
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_CloseHandle]
nop
mov rbx, qword [rbp - 0x60]
mov rax, qword [rbp - 0x58]
cmp rbx, rax
je 0x1801827b0
mov rdi, qword [rbx]
test rdi, rdi
je 0x1801827a3
call qword [sym.imp.KERNEL32.dll_GetProcessHeap]
mov rcx, rax
mov r8, rdi
xor edx, edx
call qword [sym.imp.KERNEL32.dll_HeapFree]
mov rax, qword [rbp - 0x58]
add rbx, 8
cmp rbx, rax
jne 0x180182783
mov rbx, qword [rbp - 0x60]
mov qword [rbp - 0x58], rbx
test rbx, rbx
je 0x1801827cc
mov r8, qword [rbp - 0x50]
sub r8, rbx
sar r8, 3
mov rdx, rbx
call fcn.18006ee90
mov rcx, qword [r14 + 0x1038]
test rcx, rcx
je 0x180182850
mov qword [rsp + 0x20], rsi
xor r9d, r9d
xor r8d, r8d
mov edx, 0xf001f
call qword [sym.imp.KERNEL32.dll_MapViewOfFile]
mov qword [r14 + 0x1040], rax
test rax, rax
je 0x180182837
mov qword [r14 + 0x1090], rax
lea rcx, [rax + 0x5b6]
mov qword [r14 + 0x1098], rcx
test r15d, r15d
jne 0x18018284b
mov qword [rax + 4], rsi
lea rcx, [rax + 0xc]
xor edx, edx
mov r8d, 0x5aa
call fcn.180233580
mov rcx, qword [r14 + 0x1098]
call fcn.180184a80
jmp 0x18018284b
mov rcx, qword [r14 + 0x1038]
call qword [sym.imp.KERNEL32.dll_UnmapViewOfFile]
mov qword [r14 + 0x1038], rsi
mov esi, 1
mov r8, qword [rbp - 0x20]
cmp r8, 8
jb 0x18018286b
inc r8
mov rdx, qword [rbp - 0x38]
lea rcx, [rbp - 0x38]
call fcn.18005cac0
nop
mov eax, esi
mov rcx, qword [rbp + 0x8a0]
xor rcx, rsp
call fcn.1802037a0
lea r11, [rsp + 0x9b0]
mov rbx, qword [r11 + 0x38]
mov rsi, qword [r11 + 0x40]
mov rdi, qword [r11 + 0x48]
mov rsp, r11
pop r15
pop r14
pop r13
pop r12
pop rbp
ret