Function at 0x180016c28
Capabilities:
Get common file path

Disassembly:
push rbp
push rbx
push rsi
push rdi
push r12
push r14
push r15
lea rbp, [rsp - 0x6b0]
sub rsp, 0x7b0
movabs rax, 0xc935ac473cdbee1
lea rcx, [rbp - 0x50]
mov qword [rbp - 0x60], rax
movabs r12, 0xb1f5694e331e1997
movabs rax, 0xf88c1b2b464f6dd9
mov qword [rbp - 0x70], r12
mov qword [rsp + 0x70], rax
movabs rbx, 0x6bc1629f3926102c
movabs rax, 0x2b503f24b497642
mov qword [rbp - 0x68], rbx
movdqa xmm0, xmmword [rbp - 0x70]
movabs rdi, 0x9ead7275034fe1de
mov qword [rsp + 0x78], rax
movabs r14, 0xdd9147225f7a6df9
movups xmm1, xmmword [rsp + 0x70]
movabs rax, 0x7ff639ab019dd08e
mov qword [rbp - 0x58], rdi
mov qword [rbp - 0x80], rax
movabs r15, 0x6bc1629f39261040
pxor xmm0, xmm1
mov qword [rsp + 0x50], r14
movdqa xmm1, xmmword [rbp - 0x60]
movabs rax, 0x9ead7275034fe1ad
mov qword [rbp - 0x78], rax
movups xmm2, xmmword [rbp - 0x80]
mov qword [rsp + 0x58], r15
movdqa xmmword [rbp - 0x30], xmm0
movups xmm0, xmmword [rsp + 0x50]
mov qword [rsp + 0x30], r12
pxor xmm1, xmm2
mov qword [rsp + 0x38], rbx
movdqa xmmword [rbp - 0x20], xmm1
movdqa xmm1, xmmword [rsp + 0x30]
pxor xmm1, xmm0
movdqa xmmword [rbp - 0x50], xmm1
call qword [sym.imp.KERNEL32.DLL_GetModuleHandleA]
mov rcx, rax
lea rdx, [rbp - 0x30]
call qword [sym.imp.KERNEL32.DLL_GetProcAddress]
mov rsi, rax
test rax, rax
je 0x18001726c
mov qword [rbp - 0x70], r12
lea rcx, [rbp - 0x70]
mov qword [rbp - 0x68], rbx
movabs rax, 0xc935ac473cdbee1
mov qword [rbp - 0x60], rax
movabs rax, 0xc3901d2076726dc5
mov qword [rsp + 0x70], rax
movabs rax, 0x7a001f64d4f626f
mov qword [rsp + 0x78], rax
movabs rax, 0xcfd35ad07aedbb2
movups xmm0, xmmword [rsp + 0x70]
mov qword [rbp - 0x80], rax
mov qword [rbp - 0x58], rdi
pxor xmm0, xmmword [rbp - 0x70]
movdqa xmmword [rbp - 0x10], xmm0
movdqa xmm0, xmmword [rbp - 0x60]
mov qword [rbp - 0x78], rdi
movups xmm1, xmmword [rbp - 0x80]
mov qword [rsp + 0x30], r14
mov qword [rsp + 0x38], r15
pxor xmm0, xmm1
mov qword [rsp + 0x50], r12
movdqa xmmword [rbp], xmm0
movups xmm0, xmmword [rsp + 0x30]
mov qword [rsp + 0x58], rbx
pxor xmm0, xmmword [rsp + 0x50]
movdqa xmmword [rbp - 0x70], xmm0
call qword [sym.imp.KERNEL32.DLL_GetModuleHandleA]
mov rcx, rax
lea rdx, [rbp - 0x10]
call qword [sym.imp.KERNEL32.DLL_GetProcAddress]
mov r15, rax
test rax, rax
je 0x18001726c
mov qword [rsp + 0x30], r12
lea rcx, [rsp + 0x70]
mov qword [rsp + 0x38], rbx
movabs rax, 0xc935ac473cdbee1
mov qword [rsp + 0x40], rax
movabs rax, 0xd483082b7f726dc5
mov qword [rsp + 0x70], rax
movabs rax, 0x7a001f64d4f626f
mov qword [rsp + 0x78], rax
movabs rax, 0xcfd35ad07aedbb2
movups xmm0, xmmword [rsp + 0x70]
mov qword [rbp - 0x80], rax
movabs rax, 0x6bc1629f39261040
mov qword [rbp - 0x78], rdi
pxor xmm0, xmmword [rsp + 0x30]
movups xmm1, xmmword [rbp - 0x80]
mov qword [rsp + 0x38], rax
movdqa xmmword [rbp + 0x10], xmm0
mov qword [rsp + 0x48], rdi
movdqa xmm0, xmmword [rsp + 0x40]
pxor xmm0, xmm1
mov qword [rsp + 0x30], r14
movdqa xmmword [rbp + 0x20], xmm0
movups xmm0, xmmword [rsp + 0x30]
mov qword [rsp + 0x50], r12
mov qword [rsp + 0x58], rbx
pxor xmm0, xmmword [rsp + 0x50]
movdqa xmmword [rsp + 0x70], xmm0
call qword [sym.imp.KERNEL32.DLL_GetModuleHandleA]
mov rcx, rax
lea rdx, [rbp + 0x10]
call qword [sym.imp.KERNEL32.DLL_GetProcAddress]
mov r14, rax
test rax, rax
je 0x18001726c
mov qword [rsp + 0x50], r12
lea rcx, [rsp + 0x30]
mov qword [rsp + 0x58], rbx
movabs rax, 0xc935ac473cdbee1
mov qword [rsp + 0x60], rax
movabs rax, 0xe48100207a726dc5
mov qword [rsp + 0x30], rax
movabs rax, 0x1f9207fb56457942
mov qword [rsp + 0x38], rax
movabs rax, 0xc935ac414a3d793
movups xmm0, xmmword [rsp + 0x30]
mov qword [rsp + 0x40], rax
movabs rax, 0xdd9147225f7a6df9
mov qword [rsp + 0x30], rax
movabs rax, 0x6bc1629f39261040
pxor xmm0, xmmword [rsp + 0x50]
mov qword [rsp + 0x38], rax
movdqa xmmword [rbp + 0x30], xmm0
movups xmm0, xmmword [rsp + 0x30]
mov qword [rsp + 0x48], rdi
movups xmm1, xmmword [rsp + 0x40]
mov qword [rsp + 0x68], rdi
mov qword [rsp + 0x50], r12
pxor xmm1, xmmword [rsp + 0x60]
mov qword [rsp + 0x58], rbx
pxor xmm0, xmmword [rsp + 0x50]
movdqa xmmword [rsp + 0x30], xmm0
movdqa xmmword [rbp + 0x40], xmm1
call qword [sym.imp.KERNEL32.DLL_GetModuleHandleA]
mov rcx, rax
lea rdx, [rbp + 0x30]
call qword [sym.imp.KERNEL32.DLL_GetProcAddress]
mov rdi, rax
test rax, rax
je 0x18001726c
call qword [sym.imp.KERNEL32.DLL_GetCurrentProcessId]
xor edx, edx
mov ecx, 0x438
mov r8d, eax
call qword [sym.imp.KERNEL32.DLL_OpenProcess]
mov rbx, rax
cmp rax, 0xffffffffffffffff
je 0x18001726c
and qword [rsp + 0x20], 0
lea r8, [rbp + 0x50]
mov r9d, gethostbyname
xor edx, edx
mov rcx, rax
call rsi
and qword [rsp + 0x20], 0
lea r8, [rbp + 0x6f0]
mov esi, 8
lea rdx, [rbp + 0x58]
mov r9d, esi
mov rcx, rbx
call qword [sym.imp.KERNEL32.DLL_ReadProcessMemory]
test eax, eax
je 0x18001726c
mov rdx, qword [rbp + 0x6f0]
lea r8, [rbp + 0x708]
and qword [rsp + 0x20], 0
add rdx, 0x18
mov r9d, esi
mov rcx, rbx
call qword [sym.imp.KERNEL32.DLL_ReadProcessMemory]
test eax, eax
je 0x18001726c
xor edx, edx
lea rcx, [rbp + 0x80]
mov r8d, 0x208
call sub.ntdll.dll_memset
lea edx, [rsi + 0x5c]
lea rcx, [rbp + 0x80]
call qword [sym.imp.KERNEL32.DLL_GetWindowsDirectoryW]
test eax, eax
jne 0x180017039
call qword [sym.imp.KERNEL32.DLL_GetLastError]
movabs rax, 0x6bc1629f3926102c
mov qword [rsp + 0x50], r12
mov qword [rsp + 0x58], rax
lea rdx, [rbp - 0x30]
movabs rax, 0xc935ac473cdbee1
lea rcx, [rbp + 0x80]
mov qword [rsp + 0x60], rax
movabs rax, 0x9ead7275034fe1de
mov qword [rsp + 0x68], rax
movabs rax, 0xb1856936337b19cb
mov qword [rbp - 0x50], rax
movabs rax, 0x6ba462ed39491040
mov qword [rbp - 0x48], rax
movabs rax, 0xceb5aa173e3be93
movups xmm0, xmmword [rbp - 0x50]
mov qword [rbp - 0x40], rax
movabs rax, 0x9ead7275034fe1bb
mov qword [rbp - 0x38], rax
movups xmm1, xmmword [rbp - 0x40]
pxor xmm0, xmmword [rsp + 0x50]
pxor xmm1, xmmword [rsp + 0x60]
movdqa xmmword [rbp - 0x20], xmm1
movdqa xmmword [rbp - 0x30], xmm0
call qword [sym.imp.KERNEL32.DLL_lstrcatW]
mov r12d, 0x104
mov ecx, r12d
call qword [sym.imp.msvcrt.dll_malloc]
mov rcx, rax
lea rdx, [rbp + 0x80]
mov rsi, rax
call qword [sym.imp.KERNEL32.DLL_lstrcpyW]
mov rcx, qword [rbp + 0x6f0]
mov rcx, qword [rcx + 0x38]
call r15
mov rcx, qword [rbp + 0x6f0]
mov rdx, rsi
mov rcx, qword [rcx + 0x20]
add rcx, 0x60
call rdi
mov rcx, qword [rbp + 0x6f0]
mov rdx, rsi
mov rcx, qword [rcx + 0x20]
add rcx, 0x70
call rdi
mov r15d, 0x208
lea rcx, [rbp + 0x290]
mov r8d, r15d
xor edx, edx
call sub.ntdll.dll_memset
mov r8d, r15d
lea rcx, [rbp + 0x4a0]
xor edx, edx
call sub.ntdll.dll_memset
mov r8d, r12d
lea rdx, [rbp + 0x4a0]
xor ecx, ecx
call qword [sym.imp.KERNEL32.DLL_GetModuleFileNameW]
mov rax, qword [rbp + 0x6f0]
mov rcx, qword [rax + 0x18]
mov rax, qword [rbp + 0x708]
mov r15, qword [rcx + 0x10]
mov rcx, qword [rax + 0x10]
mov qword [rbp + 0x700], rcx
and qword [rsp + 0x20], 0
lea r8, [rbp + 0x6f8]
mov r9d, 8
lea rdx, [rbp + 0x700]
mov rcx, rbx
call qword [sym.imp.KERNEL32.DLL_ReadProcessMemory]
test eax, eax
je 0x18001726c
mov rdx, qword [rbp + 0x6f8]
lea r8, [rbp + 0x290]
and qword [rsp + 0x20], 0
mov rcx, rbx
movzx r9d, word [rdx + 0x4a]
mov rdx, qword [rdx + 0x50]
call qword [sym.imp.KERNEL32.DLL_ReadProcessMemory]
test eax, eax
je 0x18001726c
lea rdx, [rbp + 0x290]
lea rcx, [rbp + 0x4a0]
call qword [sym.imp.ntdll.dll__wcsicmp]
test eax, eax
je 0x180017211
mov rax, qword [rbp + 0x6f8]
mov rcx, qword [rax]
mov qword [rbp + 0x700], rcx
cmp rcx, r15
je 0x180017231
jmp 0x180017185
mov rcx, qword [rbp + 0x6f8]
mov rdx, rsi
add rcx, 0x48
call rdi
mov rcx, qword [rbp + 0x6f8]
mov rdx, rsi
add rcx, 0x58
call rdi
mov rcx, qword [rbp + 0x6f0]
mov rcx, qword [rcx + 0x38]
call r14
test rbx, rbx
je 0x18001724d
mov rcx, rbx
call qword [sym.imp.KERNEL32.DLL_CloseHandle]
lea rdx, [rbp + 0x290]
lea rcx, [rbp + 0x80]
call qword [sym.imp.ntdll.dll__wcsicmp]
test eax, eax
je 0x18001726c
mov eax, 1
jmp 0x18001726e
xor eax, eax
add rsp, 0x7b0
pop r15
pop r14
pop r12
pop rdi
pop rsi
pop rbx
pop rbp
ret