Function at 0x140058a58
Capabilities:
Get common file path

Disassembly:
push rbp
push rbx
push rsi
push r12
push r13
push r14
push r15
lea rbp, [rsp - 0x630]
sub rsp, 0x730
mov rax, qword [0x1400d1548]
xor rax, rsp
mov qword [rbp + 0x620], rax
mov r14, r9
mov r12, r8
mov r15, rdx
mov rbx, rcx
call fcn.14002d69c
xor r13d, r13d
test al, al
jne 0x140058aa3
xor eax, eax
jmp 0x14005967c
mov r8, r12
mov rdx, r15
mov rcx, rbx
call fcn.14005b3ac
mov esi, eax
mov rcx, qword [rbp + 0x668]
test eax, eax
jns 0x140058ac8
mov edx, 0x3fd
jmp 0x140058b48
mov r9, r12
mov rdx, r15
mov rcx, rbx
call fcn.14005bee8
mov esi, eax
mov rcx, qword [rbp + 0x668]
test eax, eax
jns 0x140058aea
mov edx, 0x403
jmp 0x140058b48
lea rcx, [rsp + 0x38]
call fcn.14005c4f8
mov esi, eax
mov rcx, qword [rbp + 0x668]
test eax, eax
jns 0x140058b08
mov edx, 0x40a
jmp 0x140058b48
mov dword [rsp + 0x30], r13d
lea r8, [rsp + 0x30]
mov rdx, r15
mov rcx, rbx
call fcn.14006565c
test eax, eax
jns 0x140058b57
cmp dword [rsp + 0x30], r13d
jbe 0x140058b57
mov r8, r12
mov rdx, r15
mov rcx, rbx
call fcn.14005b3ac
mov esi, eax
mov rcx, qword [rbp + 0x668]
test eax, eax
jns 0x140058b57
mov edx, 0x41a
mov r9d, eax
lea r8, [0x1400ab980]
call fcn.140028aec
lea rdx, str.LocalHost
lea rcx, [rsp + 0x40]
call fcn.14001bf00
nop
test esi, esi
js 0x140058bd4
mov rax, qword [rsp + 0x40]
neg rax
sbb esi, esi
not esi
and esi, 0x8007000e
mov rcx, qword [rbp + 0x668]
jge 0x140058ba1
mov r9d, esi
lea r15, [0x1400ab980]
mov edx, 0x424
mov r8, r15
call fcn.140028aec
jmp 0x140058bdb
mov qword [rsp + 0x20], r12
mov r8, qword [rsp + 0x40]
mov rdx, r15
mov rcx, rbx
call fcn.14005883c
mov esi, eax
mov rcx, qword [rbp + 0x668]
lea r15, [0x1400ab980]
test eax, eax
jns 0x140058bdb
mov r9d, eax
mov edx, 0x429
jmp 0x140058b97
lea r15, [0x1400ab980]
xor edx, edx
mov r8d, 0x208
lea rcx, [rbp - 0x10]
call sub.api_ms_win_crt_string_l1_1_0.dll_memset
mov ebx, 0x80004005
test esi, esi
js 0x140058c7f
lea rax, [rbp - 0x10]
mov qword [rsp + 0x20], rax
mov r9d, 1
xor r8d, r8d
lea edx, [r9 + 0x23]
xor ecx, ecx
call qword [sym.imp.ext_ms_win_shell32_shellfolders_l1_1_0.dll_SHGetFolderPathW]
nop dword [rax + rax]
mov esi, eax
mov rcx, qword [rbp + 0x668]
test eax, eax
jns 0x140058c3c
mov r9d, eax
mov r8, r15
mov edx, 0x437
call fcn.140028aec
jmp 0x140058c7f
lea rcx, [rbp - 0x10]
call qword [sym.imp.api_ms_win_core_shlwapi_legacy_l1_1_0.dll_PathAddBackslashW]
nop dword [rax + rax]
test rax, rax
jne 0x140058c7f
mov esi, ebx
mov rcx, qword [rbp + 0x668]
lea rax, [rbp - 0x10]
mov qword [rsp + 0x28], rax
lea rax, str.WinDir:__ls
mov qword [rsp + 0x20], rax
mov r9d, ebx
mov r8, r15
mov edx, 0x43d
call fcn.14005b00c
xor edx, edx
mov r8d, 0x208
lea rcx, [rbp + 0x200]
call sub.api_ms_win_crt_string_l1_1_0.dll_memset
test esi, esi
js 0x140058d3c
mov dword [rsp + 0x30], 0x104
lea rdx, [rsp + 0x30]
lea rcx, [rbp + 0x200]
call qword [sym.imp.USERENV.dll_GetProfilesDirectoryW]
nop dword [rax + rax]
test eax, eax
je 0x140058d0a
lea rcx, [rbp + 0x200]
call qword [sym.imp.api_ms_win_core_shlwapi_legacy_l1_1_0.dll_PathAddBackslashW]
nop dword [rax + rax]
test rax, rax
jne 0x140058d3c
mov esi, ebx
mov rcx, qword [rbp + 0x668]
lea rax, [rbp + 0x200]
mov qword [rsp + 0x28], rax
lea rax, str.ProfileDir:__ls
mov qword [rsp + 0x20], rax
mov r9d, ebx
mov r8, r15
mov edx, 0x44c
call fcn.14005b00c
jmp 0x140058d3c
call qword [sym.imp.api_ms_win_core_errorhandling_l1_1_0.dll_GetLastError]
nop dword [rax + rax]
mov esi, eax
test eax, eax
jle 0x140058d25
movzx esi, ax
or esi, 0x80070000
mov rcx, qword [rbp + 0x668]
mov r9d, esi
mov r8, r15
mov edx, 0x452
call fcn.14005afd8
movabs rax, 0x5c003a0020
mov qword [rbp + 0x410], rax
xor edx, edx
mov r8d, 0x200
lea rcx, [rbp + 0x418]
call sub.api_ms_win_crt_string_l1_1_0.dll_memset
test esi, esi
js 0x140059669
movzx eax, word [rbp - 0x10]
mov word [rbp + 0x410], ax
lea rdx, str.file:___
lea rcx, [rsp + 0x50]
call fcn.140011230
nop
mov rax, qword [rsp + 0x50]
movabs r10, 0x8cc4973714525370
or ebx, 0xffffffff
mov r9d, ebx
mov r8d, dword [rsp + 0x64]
lea rdx, [rbp + 0x410]
lea rcx, [rsp + 0x50]
mov rax, qword [rax + 0x20]
call qword [case.0x14001f589.0]
mov rax, qword [rsp + 0x50]
movabs r10, 0x8cc4973714525370
mov r9d, ebx
mov r8d, dword [rsp + 0x64]
lea rdx, str.Windows.
lea rcx, [rsp + 0x50]
mov rax, qword [rax + 0x20]
call qword [case.0x14001f589.0]
mov rdx, qword [rsp + 0x58]
lea rcx, [rsp + 0x30]
call fcn.14001bf00
nop
mov rbx, qword [rsp + 0x30]
mov rax, rbx
neg rax
sbb esi, esi
not esi
and esi, 0x8007000e
mov rcx, qword [rbp + 0x668]
jge 0x140058e23
mov r9d, esi
mov r8, r15
mov edx, 0x465
call fcn.140028aec
jmp 0x140058e5d
mov qword [rsp + 0x28], r14
xor edx, edx
mov rcx, rbx
call fcn.140057ce8
mov esi, eax
mov rcx, qword [rbp + 0x668]
mov qword [rsp + 0x28], rbx
lea rax, str.Rule:__ls
mov qword [rsp + 0x20], rax
mov r9d, esi
mov r8, r15
mov edx, 0x46a
call fcn.14005b048
nop
mov rcx, rbx
call qword [sym.imp.OLEAUT32.dll_SysStringLen]
nop dword [rax + rax]
nop
lea rcx, [rsp + 0x50]
call fcn.140011278
test esi, esi
js 0x140059669
lea rdx, str.file:___
lea rcx, [rsp + 0x50]
call fcn.140011230
nop
mov rax, qword [rsp + 0x50]
movabs r10, 0x8cc4973714525370
or ebx, 0xffffffff
mov r9d, ebx
mov r8d, dword [rsp + 0x64]
lea rdx, [rbp - 0x10]
lea rcx, [rsp + 0x50]
mov rax, qword [rax + 0x20]
call qword [case.0x14001f589.0]
mov rax, qword [rsp + 0x50]
movabs r10, 0x8cc4973714525370
mov r9d, ebx
mov r8d, dword [rsp + 0x64]
lea rdx, str.CSC
lea rcx, [rsp + 0x50]
mov rax, qword [rax + 0x20]
call qword [case.0x14001f589.0]
mov rdx, qword [rsp + 0x58]
lea rcx, [rsp + 0x30]
call fcn.14001bf00
nop
mov rbx, qword [rsp + 0x30]
mov rax, rbx
neg rax
sbb esi, esi
not esi
and esi, 0x8007000e
mov rcx, qword [rbp + 0x668]
jge 0x140058f2b
mov r9d, esi
mov r8, r15
mov edx, 0x476
call fcn.140028aec
jmp 0x140058f65
mov qword [rsp + 0x28], r14
xor edx, edx
mov rcx, rbx
call fcn.140057ce8
mov esi, eax
mov rcx, qword [rbp + 0x668]
mov qword [rsp + 0x28], rbx
lea rax, str.Rule:__ls
mov qword [rsp + 0x20], rax
mov r9d, esi
mov r8, r15
mov edx, 0x47b
call fcn.14005b048
nop
mov rcx, rbx
call qword [sym.imp.OLEAUT32.dll_SysStringLen]
nop dword [rax + rax]
nop
lea rcx, [rsp + 0x50]
call fcn.140011278
test esi, esi
js 0x140059669
lea rdx, str.file:___
lea rcx, [rsp + 0x50]
call fcn.140011230
nop
mov rax, qword [rsp + 0x50]
movabs r10, 0x8cc4973714525370
or ebx, 0xffffffff
mov r9d, ebx
mov r8d, dword [rsp + 0x64]
lea rdx, [rbp - 0x10]
lea rcx, [rsp + 0x50]
mov rax, qword [rax + 0x20]
call qword [case.0x14001f589.0]
mov rax, qword [rsp + 0x50]
movabs r10, 0x8cc4973714525370
mov r9d, ebx
mov r8d, dword [rsp + 0x64]
lea rdx, str._temp
lea rcx, [rsp + 0x50]
mov rax, qword [rax + 0x20]
call qword [case.0x14001f589.0]
mov rdx, qword [rsp + 0x58]
lea rcx, [rsp + 0x30]
call fcn.14001bf00
nop
mov rbx, qword [rsp + 0x30]
mov rax, rbx
neg rax
sbb esi, esi
not esi
and esi, 0x8007000e
mov rcx, qword [rbp + 0x668]
jge 0x140059033
mov r9d, esi
mov r8, r15
mov edx, 0x487
call fcn.140028aec
jmp 0x14005906d
mov qword [rsp + 0x28], r14
xor edx, edx
mov rcx, rbx
call fcn.140057ce8
mov esi, eax
mov rcx, qword [rbp + 0x668]
mov qword [rsp + 0x28], rbx
lea rax, str.Rule:__ls
mov qword [rsp + 0x20], rax
mov r9d, esi
mov r8, r15
mov edx, 0x48c
call fcn.14005b048
nop
mov rcx, rbx
call qword [sym.imp.OLEAUT32.dll_SysStringLen]
nop dword [rax + rax]
nop
lea rcx, [rsp + 0x50]
call fcn.140011278
test esi, esi
js 0x140059669
lea rdx, str.file:___
lea rcx, [rsp + 0x50]
call fcn.140011230
nop
mov rax, qword [rsp + 0x50]
movabs r10, 0x8cc4973714525370
or ebx, 0xffffffff
mov r9d, ebx
mov r8d, dword [rsp + 0x64]
lea rdx, [rbp - 0x10]
lea rcx, [rsp + 0x50]
mov rax, qword [rax + 0x20]
call qword [case.0x14001f589.0]
mov rax, qword [rsp + 0x50]
movabs r10, 0x8cc4973714525370
mov r9d, ebx
mov r8d, dword [rsp + 0x64]
lea rdx, [0x1400ac5d4]
lea rcx, [rsp + 0x50]
mov rax, qword [rax + 0x20]
call qword [case.0x14001f589.0]
mov rdx, qword [rsp + 0x58]
lea rcx, [rsp + 0x30]
call fcn.14001bf00
nop
mov rbx, qword [rsp + 0x30]
mov rax, rbx
neg rax
sbb esi, esi
not esi
and esi, 0x8007000e
mov rcx, qword [rbp + 0x668]
jge 0x14005913b
mov r9d, esi
mov r8, r15
mov edx, 0x498
call fcn.140028aec
jmp 0x140059175
mov qword [rsp + 0x28], r14
xor edx, edx
mov rcx, rbx
call fcn.140057ce8
mov esi, eax
mov rcx, qword [rbp + 0x668]
mov qword [rsp + 0x28], rbx
lea rax, str.Rule:__ls
mov qword [rsp + 0x20], rax
mov r9d, esi
mov r8, r15
mov edx, 0x49d
call fcn.14005b048
nop
mov rcx, rbx
call qword [sym.imp.OLEAUT32.dll_SysStringLen]
nop dword [rax + rax]
nop
lea rcx, [rsp + 0x50]
call fcn.140011278
test esi, esi
js 0x140059669
lea rdx, str.file:___
lea rcx, [rsp + 0x50]
call fcn.140011230
nop
mov rax, qword [rsp + 0x50]
movabs r10, 0x8cc4973714525370
or ebx, 0xffffffff
mov r9d, ebx
mov r8d, dword [rsp + 0x64]
lea rdx, [rbp + 0x200]
lea rcx, [rsp + 0x50]
mov rax, qword [rax + 0x20]
call qword [case.0x14001f589.0]
mov rax, qword [rsp + 0x50]
movabs r10, 0x8cc4973714525370
mov r9d, ebx
mov r8d, dword [rsp + 0x64]
lea rdx, str.AppDataLocalTemp
lea rcx, [rsp + 0x50]
mov rax, qword [rax + 0x20]
call qword [case.0x14001f589.0]
mov rdx, qword [rsp + 0x58]
lea rcx, [rsp + 0x30]
call fcn.14001bf00
nop
mov rbx, qword [rsp + 0x30]
mov rax, rbx
neg rax
sbb esi, esi
not esi
and esi, 0x8007000e
mov rcx, qword [rbp + 0x668]
jge 0x140059246
mov r9d, esi
mov r8, r15
mov edx, 0x4ab
call fcn.140028aec
jmp 0x140059280
mov qword [rsp + 0x28], r14
xor edx, edx
mov rcx, rbx
call fcn.140057ce8
mov esi, eax
mov rcx, qword [rbp + 0x668]
mov qword [rsp + 0x28], rbx
lea rax, str.Rule:__ls
mov qword [rsp + 0x20], rax
mov r9d, esi
mov r8, r15
mov edx, 0x4b0
call fcn.14005b048
nop
mov rcx, rbx
call qword [sym.imp.OLEAUT32.dll_SysStringLen]
nop dword [rax + rax]
nop
lea rcx, [rsp + 0x50]
call fcn.140011278
test esi, esi
js 0x140059669
lea rdx, str.file:___
lea rcx, [rsp + 0x50]
call fcn.140011230
nop
mov rax, qword [rsp + 0x50]
movabs r10, 0x8cc4973714525370
or ebx, 0xffffffff
mov r9d, ebx
mov r8d, dword [rsp + 0x64]
lea rdx, [rbp + 0x200]
lea rcx, [rsp + 0x50]
mov rax, qword [rax + 0x20]
call qword [case.0x14001f589.0]
mov rax, qword [rsp + 0x50]
movabs r10, 0x8cc4973714525370
mov r9d, ebx
mov r8d, dword [rsp + 0x64]
lea rdx, str.DefaultAppData
lea rcx, [rsp + 0x50]
mov rax, qword [rax + 0x20]
call qword [case.0x14001f589.0]
mov rdx, qword [rsp + 0x58]
lea rcx, [rsp + 0x30]
call fcn.14001bf00
nop
mov rbx, qword [rsp + 0x30]
mov rax, rbx
neg rax
sbb esi, esi
not esi
and esi, 0x8007000e
mov rcx, qword [rbp + 0x668]
jge 0x140059351
mov r9d, esi
mov r8, r15
mov edx, 0x4bd
call fcn.140028aec
jmp 0x14005938b
mov qword [rsp + 0x28], r14
xor edx, edx
mov rcx, rbx
call fcn.140057ce8
mov esi, eax
mov rcx, qword [rbp + 0x668]
mov qword [rsp + 0x28], rbx
lea rax, str.Rule:__ls
mov qword [rsp + 0x20], rax
mov r9d, esi
mov r8, r15
mov edx, 0x4c2
call fcn.14005b048
nop
mov rcx, rbx
call qword [sym.imp.OLEAUT32.dll_SysStringLen]
nop dword [rax + rax]
nop
lea rcx, [rsp + 0x50]
call fcn.140011278
test esi, esi
js 0x140059669
lea rdx, str.file:___
lea rcx, [rsp + 0x50]
call fcn.140011230
nop
mov rax, qword [rsp + 0x50]
movabs r10, 0x8cc4973714525370
or ebx, 0xffffffff
mov r9d, ebx
mov r8d, dword [rsp + 0x64]
lea rdx, [rbp + 0x200]
lea rcx, [rsp + 0x50]
mov rax, qword [rax + 0x20]
call qword [case.0x14001f589.0]
mov rax, qword [rsp + 0x50]
movabs r10, 0x8cc4973714525370
mov r9d, ebx
mov r8d, dword [rsp + 0x64]
lea rdx, str.AppDataLocalMicrosoftWindowsTemporary_Internet_Files
lea rcx, [rsp + 0x50]
mov rax, qword [rax + 0x20]
call qword [case.0x14001f589.0]
mov rdx, qword [rsp + 0x58]
lea rcx, [rsp + 0x30]
call fcn.14001bf00
nop
mov rbx, qword [rsp + 0x30]
mov rax, rbx
neg rax
sbb esi, esi
not esi
and esi, 0x8007000e
mov rcx, qword [rbp + 0x668]
jge 0x14005945c
mov r9d, esi
mov r8, r15
mov edx, 0x4ce
call fcn.140028aec
jmp 0x140059496
mov qword [rsp + 0x28], r14
xor edx, edx
mov rcx, rbx
call fcn.140057ce8
mov esi, eax
mov rcx, qword [rbp + 0x668]
mov qword [rsp + 0x28], rbx
lea rax, str.Rule:__ls
mov qword [rsp + 0x20], rax
mov r9d, esi
mov r8, r15
mov edx, 0x4d3
call fcn.14005b048
nop
mov rcx, rbx
call qword [sym.imp.OLEAUT32.dll_SysStringLen]
nop dword [rax + rax]
nop
lea rcx, [rsp + 0x50]
call fcn.140011278
test esi, esi
js 0x140059669
lea rdx, str.file:___
lea rcx, [rsp + 0x50]
call fcn.140011230
nop
mov rax, qword [rsp + 0x50]
movabs r10, 0x8cc4973714525370
or ebx, 0xffffffff
mov r9d, ebx
mov r8d, dword [rsp + 0x64]
lea rdx, [rbp + 0x200]
lea rcx, [rsp + 0x50]
mov rax, qword [rax + 0x20]
call qword [case.0x14001f589.0]
mov rax, qword [rsp + 0x50]
movabs r10, 0x8cc4973714525370
mov r9d, ebx
mov r8d, dword [rsp + 0x64]
lea rdx, str.AppData_
lea rcx, [rsp + 0x50]
mov rax, qword [rax + 0x20]
call qword [case.0x14001f589.0]
mov rdx, qword [rsp + 0x58]
lea rcx, [rsp + 0x30]
call fcn.14001bf00
nop
mov rbx, qword [rsp + 0x30]
mov rax, rbx
neg rax
sbb esi, esi
not esi
and esi, 0x8007000e
mov rcx, qword [rbp + 0x668]
jge 0x140059567
mov r9d, esi
mov r8, r15
mov edx, 0x4e2
call fcn.140028aec
jmp 0x1400595a1
mov qword [rsp + 0x28], r14
xor edx, edx
mov rcx, rbx
call fcn.140057ce8
mov esi, eax
mov rcx, qword [rbp + 0x668]
mov qword [rsp + 0x28], rbx
lea rax, str.Rule:__ls
mov qword [rsp + 0x20], rax
mov r9d, esi
mov r8, r15
mov edx, 0x4e7
call fcn.14005b048
nop
mov rcx, rbx
call qword [sym.imp.OLEAUT32.dll_SysStringLen]
nop dword [rax + rax]
nop
lea rcx, [rsp + 0x50]
call fcn.140011278
test esi, esi
js 0x140059669
mov qword [rsp + 0x28], r14
mov qword [rsp + 0x20], r12
mov edx, 1
lea ecx, [rdx + 0x15]
call fcn.140057fb0
mov esi, eax
cmp eax, 0x80070057
cmove esi, r13d
mov rcx, qword [rbp + 0x668]
test esi, esi
jns 0x1400595fa
mov r9d, esi
mov edx, 0x4f6
jmp 0x140059660
mov rdx, r14
mov rcx, r12
call fcn.1400582b4
mov esi, eax
mov rcx, qword [rbp + 0x668]
test eax, eax
jns 0x140059619
mov edx, 0x4fd
jmp 0x14005965d
mov qword [rsp + 0x28], r14
mov qword [rsp + 0x20], r12
xor edx, edx
lea ecx, [rdx + 0x23]
call fcn.140057fb0
mov esi, eax
mov rcx, qword [rbp + 0x668]
test eax, eax
jns 0x140059641
mov edx, 0x504
jmp 0x14005965d
mov dl, 1
mov rcx, r14
call fcn.14009b5b8
mov esi, eax
mov rcx, qword [rbp + 0x668]
test eax, eax
jns 0x140059669
mov edx, 0x50a
mov r9d, eax
mov r8, r15
call fcn.140028aec
nop
mov rcx, qword [rsp + 0x40]
call qword [sym.imp.OLEAUT32.dll_SysStringLen]
nop dword [rax + rax]
mov eax, esi
mov rcx, qword [rbp + 0x620]
xor rcx, rsp
call fcn.140036e80
add rsp, 0x730
pop r15
pop r14
pop r13
pop r12
pop rsi
pop rbx
pop rbp
ret