Function at 0x1401984c0
Capabilities:
Get common file path

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
mov qword [rsp + 0x18], rdi
push rbp
lea rbp, [rsp - 0x870]
sub rsp, 0x970
mov rbx, rdx
mov rsi, rcx
xor edx, edx
lea rcx, [rbp + 0x240]
mov r8d, 0x104
call fcn.140249b10
xor edx, edx
lea rcx, [rbp + 0x130]
mov r8d, 0x104
call fcn.140249b10
xor edx, edx
lea rcx, [rbp + 0x350]
mov r8d, 0x104
call fcn.140249b10
xor edx, edx
lea rcx, [rbp + 0x460]
mov r8d, 0x104
call fcn.140249b10
cmp qword [rsi + 0x58], 0
je 0x1401985f0
mov rdx, qword [rsi + 0x48]
lea rcx, [rbp + 0x460]
call qword [sym.imp.KERNEL32.dll_lstrcpyA]
lea rcx, [rbp + 0x460]
call qword [sym.imp.SHLWAPI.dll_PathRemoveBackslashA]
xor edx, edx
lea rcx, [rsp + 0x20]
mov r8d, 0x208
call fcn.140249b10
lea rdx, str._APPLICATION_
mov rcx, rbx
call qword [sym.imp.SHLWAPI.dll_StrStrIA]
mov rdi, rax
test rax, rax
je 0x14019869b
nop dword [rax]
mov r8d, edi
lea rcx, [rsp + 0x20]
sub r8d, ebx
mov rdx, rbx
call qword [sym.imp.KERNEL32.dll_lstrcpynA]
lea rdx, [rbp + 0x460]
lea rcx, [rsp + 0x20]
call qword [sym.imp.KERNEL32.dll_lstrcatA]
lea rdx, [rdi + 0xd]
lea rcx, [rsp + 0x20]
call qword [sym.imp.KERNEL32.dll_lstrcatA]
lea rdx, [rsp + 0x20]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_lstrcpyA]
lea rdx, str._APPLICATION_
mov rcx, rbx
call qword [sym.imp.SHLWAPI.dll_StrStrIA]
mov rdi, rax
test rax, rax
jne 0x140198590
jmp 0x14019869b
mov r8d, 0x104
lea rdx, [rbp + 0x460]
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
lea rcx, [rbp + 0x460]
call qword [sym.imp.SHLWAPI.dll_PathRemoveFileSpecA]
xor edx, edx
lea rcx, [rsp + 0x20]
mov r8d, 0x208
call fcn.140249b10
lea rdx, str._APPLICATION_
mov rcx, rbx
call qword [sym.imp.SHLWAPI.dll_StrStrIA]
mov rdi, rax
test rax, rax
je 0x14019869b
nop dword [rax]
mov r8d, edi
lea rcx, [rsp + 0x20]
sub r8d, ebx
mov rdx, rbx
call qword [sym.imp.KERNEL32.dll_lstrcpynA]
lea rdx, [rbp + 0x460]
lea rcx, [rsp + 0x20]
call qword [sym.imp.KERNEL32.dll_lstrcatA]
lea rdx, [rdi + 0xd]
lea rcx, [rsp + 0x20]
call qword [sym.imp.KERNEL32.dll_lstrcatA]
lea rdx, [rsp + 0x20]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_lstrcpyA]
lea rdx, str._APPLICATION_
mov rcx, rbx
call qword [sym.imp.SHLWAPI.dll_StrStrIA]
mov rdi, rax
test rax, rax
jne 0x140198640
mov edx, 0x104
lea rcx, [rbp + 0x130]
call qword [sym.imp.KERNEL32.dll_GetWindowsDirectoryA]
test eax, eax
je 0x14019874b
lea rcx, [rbp + 0x130]
call qword [sym.imp.SHLWAPI.dll_PathRemoveBackslashA]
xor edx, edx
lea rcx, [rsp + 0x20]
mov r8d, 0x208
call fcn.140249b10
lea rdx, str._WINDOWS_
mov rcx, rbx
call qword [sym.imp.SHLWAPI.dll_StrStrIA]
mov rdi, rax
test rax, rax
je 0x14019874b
nop dword [rax]
mov r8d, edi
lea rcx, [rsp + 0x20]
sub r8d, ebx
mov rdx, rbx
call qword [sym.imp.KERNEL32.dll_lstrcpynA]
lea rdx, [rbp + 0x130]
lea rcx, [rsp + 0x20]
call qword [sym.imp.KERNEL32.dll_lstrcatA]
lea rdx, [rdi + 9]
lea rcx, [rsp + 0x20]
call qword [sym.imp.KERNEL32.dll_lstrcatA]
lea rdx, [rsp + 0x20]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_lstrcpyA]
lea rdx, str._WINDOWS_
mov rcx, rbx
call qword [sym.imp.SHLWAPI.dll_StrStrIA]
mov rdi, rax
test rax, rax
jne 0x1401986f0
lea rdx, [rbp + 0x240]
mov ecx, 0x104
call qword [sym.imp.KERNEL32.dll_GetTempPathA]
test eax, eax
je 0x1401987fb
lea rcx, [rbp + 0x240]
call qword [sym.imp.SHLWAPI.dll_PathRemoveBackslashA]
xor edx, edx
lea rcx, [rsp + 0x20]
mov r8d, 0x208
call fcn.140249b10
lea rdx, str._TEMP_
mov rcx, rbx
call qword [sym.imp.SHLWAPI.dll_StrStrIA]
mov rdi, rax
test rax, rax
je 0x1401987fb
nop dword [rax]
mov r8d, edi
lea rcx, [rsp + 0x20]
sub r8d, ebx
mov rdx, rbx
call qword [sym.imp.KERNEL32.dll_lstrcpynA]
lea rdx, [rbp + 0x240]
lea rcx, [rsp + 0x20]
call qword [sym.imp.KERNEL32.dll_lstrcatA]
lea rdx, [rdi + 6]
lea rcx, [rsp + 0x20]
call qword [sym.imp.KERNEL32.dll_lstrcatA]
lea rdx, [rsp + 0x20]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_lstrcpyA]
lea rdx, str._TEMP_
mov rcx, rbx
call qword [sym.imp.SHLWAPI.dll_StrStrIA]
mov rdi, rax
test rax, rax
jne 0x1401987a0
lea rdx, [rbp + 0x350]
xor ecx, ecx
call fcn.1400eac30
test eax, eax
je 0x1401988ab
lea rcx, [rbp + 0x350]
call qword [sym.imp.SHLWAPI.dll_PathRemoveBackslashA]
xor edx, edx
lea rcx, [rsp + 0x20]
mov r8d, 0x208
call fcn.140249b10
lea rdx, str._DESKTOP_
mov rcx, rbx
call qword [sym.imp.SHLWAPI.dll_StrStrIA]
mov rdi, rax
test rax, rax
je 0x1401988ab
nop dword [rax + rax]
mov r8d, edi
lea rcx, [rsp + 0x20]
sub r8d, ebx
mov rdx, rbx
call qword [sym.imp.KERNEL32.dll_lstrcpynA]
lea rdx, [rbp + 0x350]
lea rcx, [rsp + 0x20]
call qword [sym.imp.KERNEL32.dll_lstrcatA]
lea rdx, [rdi + 9]
lea rcx, [rsp + 0x20]
call qword [sym.imp.KERNEL32.dll_lstrcatA]
lea rdx, [rsp + 0x20]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_lstrcpyA]
lea rdx, str._DESKTOP_
mov rcx, rbx
call qword [sym.imp.SHLWAPI.dll_StrStrIA]
mov rdi, rax
test rax, rax
jne 0x140198850
cmp qword [rsi + 0x38], 0
je 0x14019895d
mov r8, qword [rsi + 0x28]
lea rcx, [rbp + 0x460]
mov edx, 0x410
call fcn.140253604
lea rcx, [rbp + 0x460]
call qword [sym.imp.SHLWAPI.dll_PathRemoveBackslashA]
xor edx, edx
lea rcx, [rsp + 0x20]
mov r8d, 0x208
call fcn.140249b10
lea rdx, str._APPLICATIONDATA_
mov rcx, rbx
call qword [sym.imp.SHLWAPI.dll_StrStrIA]
mov rdi, rax
test rax, rax
je 0x14019895d
mov r8d, edi
lea rcx, [rsp + 0x20]
sub r8d, ebx
mov rdx, rbx
call qword [sym.imp.KERNEL32.dll_lstrcpynA]
lea rdx, [rbp + 0x460]
lea rcx, [rsp + 0x20]
call qword [sym.imp.KERNEL32.dll_lstrcatA]
lea rdx, [rdi + 0x11]
lea rcx, [rsp + 0x20]
call qword [sym.imp.KERNEL32.dll_lstrcatA]
lea rdx, [rsp + 0x20]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_lstrcpyA]
lea rdx, str._APPLICATIONDATA_
mov rcx, rbx
call qword [sym.imp.SHLWAPI.dll_StrStrIA]
mov rdi, rax
test rax, rax
jne 0x140198902
lea r11, [rsp + 0x970]
mov rbx, qword [r11 + 0x10]
mov rsi, qword [r11 + 0x18]
mov rdi, qword [r11 + 0x20]
mov rsp, r11
pop rbp
ret