Function at 0x140005140
Capabilities:
Get common file path

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rsi
push rdi
sub rsp, 0x470
mov rax, qword [0x14003b7a0]
xor rax, rsp
mov qword [rsp + 0x460], rax
mov rsi, rcx
xor edx, edx
lea rcx, [rsp + 0x40]
mov r8d, 0x208
call fcn.140011c00
xor edx, edx
lea rcx, [rsp + 0x250]
mov r8d, 0x208
call fcn.140011c00
mov rcx, rsi
xor bl, bl
call fcn.140004090
test al, al
je 0x1400051f5
lea rdx, [rsp + 0x30]
mov qword [rsp + 0x30], 0
mov rcx, rsi
call fcn.1400025d0
test al, al
je 0x1400051f5
mov r8, qword [rsp + 0x30]
lea rax, [rsp + 0x40]
mov edi, 1
mov qword [rsp + 0x20], rax
mov r9d, edi
xor ecx, ecx
lea edx, [rdi + 0x2b]
call qword [sym.imp.SHELL32.dll_SHGetFolderPathW]
test eax, eax
movzx ebx, bl
cmove ebx, edi
call qword [sym.imp.ADVAPI32.dll_RevertToSelf]
mov rcx, qword [rsp + 0x30]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
test bl, bl
jne 0x140005209
xor r9d, r9d
lea rdx, [rsp + 0x40]
xor ecx, ecx
lea r8d, [r9 + 0x2c]
call qword [sym.imp.SHELL32.dll_SHGetSpecialFolderPathW]
lea rcx, [rsp + 0x40]
sub rcx, 2
cmp word [rcx + 2], 0
lea rcx, [rcx + 2]
jne 0x140005212
mov eax, dword [0x1400267bc]
mov dword [rcx], eax
lea rcx, [rsp + 0x40]
sub rcx, 2
nop
cmp word [rcx + 2], 0
lea rcx, [rcx + 2]
jne 0x140005230
movups xmm1, xmmword [str.WanNengZip]
mov edx, dword [0x140026780]
movzx r8d, word [0x140026784]
movups xmmword [rcx], xmm1
mov dword [rcx + 0x10], edx
mov word [rcx + 0x14], r8w
lea rcx, [rsp + 0x40]
sub rcx, 2
cmp word [rcx + 2], 0
lea rcx, [rcx + 2]
jne 0x140005264
mov dword [rcx], eax
lea rax, [rsp + 0x40]
sub rax, 2
nop word [rax + rax]
cmp word [rax + 2], 0
lea rax, [rax + 2]
jne 0x140005280
movups xmmword [rax], xmm1
lea rcx, [rsp + 0x40]
mov dword [rax + 0x10], edx
mov word [rax + 0x14], r8w
sub rcx, 2
nop
cmp word [rcx + 2], 0
lea rcx, [rcx + 2]
jne 0x1400052a0
cmp qword [rsi + 0x48], 8
lea rbx, [rsi + 0x30]
movsd xmm0, qword [0x1400267c0]
movzx eax, word [0x1400267c8]
movsd qword [rcx], xmm0
mov word [rcx + 8], ax
jb 0x1400052d2
mov r8, qword [rbx]
jmp 0x1400052d5
mov r8, rbx
lea r9, [rsp + 0x40]
lea rdx, str.CfgRootPath
lea rcx, str.Globals
call qword [sym.imp.KERNEL32.dll_WritePrivateProfileStringW]
cmp qword [rsi + 0x28], 8
lea rdi, [rsi + 0x10]
jb 0x1400052fe
mov r8, qword [rdi]
jmp 0x140005301
mov r8, rdi
lea r9, [rsp + 0x40]
lea rdx, str.CfgUserPath
lea rcx, str.Globals
call qword [sym.imp.KERNEL32.dll_WritePrivateProfileStringW]
lea r8, [rsi + 0x90]
cmp qword [r8 + 0x18], 8
jb 0x14000532b
mov r8, qword [r8]
lea r9, str.WanNengZip.ini
lea rdx, str._s_s
lea rcx, [rsp + 0x250]
call fcn.1400060d0
cmp qword [rbx + 0x18], 8
jb 0x140005352
mov r8, qword [rbx]
jmp 0x140005355
mov r8, rbx
lea r9, [rsp + 0x250]
lea rdx, str.CfgRootPath
lea rcx, str.AppInfo
call qword [sym.imp.KERNEL32.dll_WritePrivateProfileStringW]
cmp qword [rdi + 0x18], 8
jb 0x14000537d
mov r8, qword [rdi]
jmp 0x140005380
mov r8, rdi
lea r9, [rsp + 0x250]
lea rdx, str.CfgUserPath
lea rcx, str.AppInfo
call qword [sym.imp.KERNEL32.dll_WritePrivateProfileStringW]
cmp qword [rbx + 0x18], 8
jb 0x1400053a6
mov rbx, qword [rbx]
mov r9, rbx
lea r8, str.CfgRootPath
lea rdx, str.AppInfo
lea rcx, str.WanNengZip
call fcn.140008160
cmp qword [rdi + 0x18], 8
jb 0x1400053cd
mov rdi, qword [rdi]
mov r9, rdi
lea r8, str.CfgUserPath
lea rdx, str.AppInfo
lea rcx, str.WanNengZip
call fcn.140008160
mov rcx, qword [rsp + 0x460]
xor rcx, rsp
call fcn.14000e8a0
lea r11, [rsp + 0x470]
mov rbx, qword [r11 + 0x18]
mov rsi, qword [r11 + 0x20]
mov rsp, r11
pop rdi
ret