Function at 0x140001620
Capabilities:
Get common file path

Disassembly:
push rdi
sub rsp, 0x790
mov rax, qword [0x140049040]
xor rax, rsp
mov qword [rsp + 0x780], rax
lea rax, [rsp + 0x30]
mov rdi, rax
xor eax, eax
mov ecx, 1
rep stosb byte [rdi], al
lea rdx, [rsp + 0xd0]
lea rcx, [rsp + 0x30]
call fcn.140001a70
mov rcx, rax
call fcn.14000c1e0
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
mov qword [rsp + 0x60], rax
lea rax, [rsp + 0x31]
mov rdi, rax
xor eax, eax
mov ecx, 1
rep stosb byte [rdi], al
lea rdx, [rsp + 0x130]
lea rcx, [rsp + 0x31]
call fcn.140001aa0
mov rcx, rax
call fcn.14000c240
mov rdx, rax
mov rcx, qword [rsp + 0x60]
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov qword [rsp + 0x78], rax
cmp qword [rsp + 0x78], 0
jne 0x1400016c1
xor eax, eax
jmp 0x140001a51
lea rax, [rsp + 0x32]
mov rdi, rax
xor eax, eax
mov ecx, 1
rep stosb byte [rdi], al
lea rdx, [rsp + 0x100]
lea rcx, [rsp + 0x32]
call fcn.140001ad0
mov rcx, rax
call fcn.14000c220
mov rdx, rax
mov rcx, qword [rsp + 0x60]
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov qword [rsp + 0x80], rax
cmp qword [rsp + 0x80], 0
jne 0x140001714
xor eax, eax
jmp 0x140001a51
lea rax, [rsp + 0x33]
mov rdi, rax
xor eax, eax
mov ecx, 1
rep stosb byte [rdi], al
lea rdx, [rsp + 0x118]
lea rcx, [rsp + 0x33]
call fcn.140001b00
mov rcx, rax
call fcn.14000c220
mov rdx, rax
mov rcx, qword [rsp + 0x60]
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov qword [rsp + 0x88], rax
cmp qword [rsp + 0x88], 0
jne 0x140001767
xor eax, eax
jmp 0x140001a51
lea rax, [rsp + 0x34]
mov rdi, rax
xor eax, eax
mov ecx, 1
rep stosb byte [rdi], al
lea rdx, [rsp + 0xe8]
lea rcx, [rsp + 0x34]
call fcn.140001b30
mov rcx, rax
call fcn.14000c200
mov rdx, rax
mov rcx, qword [rsp + 0x60]
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov qword [rsp + 0x50], rax
cmp qword [rsp + 0x50], 0
jne 0x1400017b4
xor eax, eax
jmp 0x140001a51
call qword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
mov dword [rsp + 0x68], eax
mov r8d, dword [rsp + 0x68]
xor edx, edx
mov ecx, 0x438
call qword [sym.imp.KERNEL32.dll_OpenProcess]
mov qword [rsp + 0x38], rax
cmp qword [rsp + 0x38], 0xffffffffffffffff
jne 0x1400017e4
xor eax, eax
jmp 0x140001a51
mov qword [rsp + 0x20], 0
mov r9d, 0x30
lea r8, [rsp + 0xa0]
xor edx, edx
mov rcx, qword [rsp + 0x38]
call qword [rsp + 0x78]
nop
mov qword [rsp + 0x20], 0
mov r9d, 8
lea r8, [rsp + 0x40]
lea rdx, [rsp + 0xa8]
mov rcx, qword [rsp + 0x38]
call qword [sym.imp.KERNEL32.dll_ReadProcessMemory]
test eax, eax
jne 0x140001839
xor eax, eax
jmp 0x140001a51
mov rax, qword [rsp + 0x40]
add rax, 0x18
mov qword [rsp + 0x20], 0
mov r9d, 8
lea r8, [rsp + 0x90]
mov rdx, rax
mov rcx, qword [rsp + 0x38]
call qword [sym.imp.KERNEL32.dll_ReadProcessMemory]
test eax, eax
jne 0x140001872
xor eax, eax
jmp 0x140001a51
mov edx, 0x104
lea rcx, [rsp + 0x150]
call qword [sym.imp.KERNEL32.dll_GetWindowsDirectoryW]
lea r8, str.explorer.exe
mov edx, 0x105
lea rcx, [rsp + 0x150]
call fcn.14001b04c
mov ecx, 0x104
call fcn.14001bd24
mov qword [rsp + 0x48], rax
lea r8, [rsp + 0x150]
mov edx, 0x104
mov rcx, qword [rsp + 0x48]
call fcn.14001b0c4
mov rax, qword [rsp + 0x40]
mov rcx, qword [rax + 0x38]
call qword [rsp + 0x80]
mov rax, qword [rsp + 0x40]
mov rax, qword [rax + 0x20]
add rax, 0x60
mov rdx, qword [rsp + 0x48]
mov rcx, rax
call qword [rsp + 0x50]
mov rax, qword [rsp + 0x40]
mov rax, qword [rax + 0x20]
add rax, 0x70
mov rdx, qword [rsp + 0x48]
mov rcx, rax
call qword [rsp + 0x50]
mov r8d, 0x104
lea rdx, [rsp + 0x570]
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
mov rax, qword [rsp + 0x40]
mov rax, qword [rax + 0x18]
mov rax, qword [rax + 0x10]
mov qword [rsp + 0x98], rax
mov rax, qword [rsp + 0x90]
mov rax, qword [rax + 0x10]
mov qword [rsp + 0x70], rax
mov qword [rsp + 0x20], 0
mov r9d, 8
lea r8, [rsp + 0x58]
lea rdx, [rsp + 0x70]
mov rcx, qword [rsp + 0x38]
call qword [sym.imp.KERNEL32.dll_ReadProcessMemory]
test eax, eax
jne 0x140001971
xor eax, eax
jmp 0x140001a51
mov rax, qword [rsp + 0x58]
movzx eax, word [rax + 0x4a]
mov qword [rsp + 0x20], 0
mov r9d, eax
lea r8, [rsp + 0x360]
mov rax, qword [rsp + 0x58]
mov rdx, qword [rax + 0x50]
mov rcx, qword [rsp + 0x38]
call qword [sym.imp.KERNEL32.dll_ReadProcessMemory]
test eax, eax
jne 0x1400019ad
xor eax, eax
jmp 0x140001a51
lea rdx, [rsp + 0x360]
lea rcx, [rsp + 0x570]
call fcn.14001b65c
test eax, eax
jne 0x1400019f3
mov rax, qword [rsp + 0x58]
add rax, 0x48
mov rdx, qword [rsp + 0x48]
mov rcx, rax
call qword [rsp + 0x50]
mov rax, qword [rsp + 0x58]
add rax, 0x58
mov rdx, qword [rsp + 0x48]
mov rcx, rax
call qword [rsp + 0x50]
nop
jmp 0x140001a13
mov rax, qword [rsp + 0x58]
mov rax, qword [rax]
mov qword [rsp + 0x70], rax
mov rax, qword [rsp + 0x98]
cmp qword [rsp + 0x70], rax
jne 0x140001942
mov rax, qword [rsp + 0x40]
mov rcx, qword [rax + 0x38]
call qword [rsp + 0x88]
mov rcx, qword [rsp + 0x38]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
nop
lea rdx, [rsp + 0x360]
lea rcx, [rsp + 0x150]
call fcn.14001b65c
test eax, eax
jne 0x140001a4c
xor eax, eax
jmp 0x140001a51
mov eax, 1
mov rcx, qword [rsp + 0x780]
xor rcx, rsp
call fcn.140015340
add rsp, 0x790
pop rdi
ret