Function at 0x140013830
Capabilities:
Get common file path

Disassembly:
mov rax, rsp
push rbp
lea rbp, [rax - 0x898]
sub rsp, 0x990
mov qword [rbp - 0x18], 0xfffffffffffffffe
mov qword [rax + 0x10], rbx
mov qword [rax + 0x18], rsi
mov qword [rax + 0x20], rdi
movaps xmmword [rax - 0x18], xmm6
movaps xmmword [rax - 0x28], xmm7
mov rax, qword [0x14013f130]
xor rax, rsp
mov qword [rbp + 0x860], rax
mov rdi, rcx
mov qword [rbp - 0x10], rcx
xor esi, esi
mov dword [rsp + 0x20], esi
call qword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
mov r8d, eax
lea r9, [rbp + 0xd]
nop dword [rax]
dec r9
mov eax, 0xcccccccd
mul r8d
shr edx, 3
movzx eax, dl
shl al, 2
lea ecx, [rax + rdx]
add cl, cl
sub r8b, cl
add r8b, 0x30
mov byte [r9], r8b
mov r8d, edx
test edx, edx
jne 0x140013890
movdqa xmm0, xmmword [0x14010a4e0]
movdqu xmmword [rsp + 0x58], xmm0
mov byte [rsp + 0x48], sil
lea rax, [rbp + 0xd]
cmp r9, rax
je 0x1400138eb
lea r8, [rbp + 0xd]
sub r8, r9
mov rdx, r9
lea rcx, [rsp + 0x48]
call fcn.140007260
nop
movdqa xmm0, xmmword [0x14010a4e0]
movdqu xmmword [rbp - 0x68], xmm0
mov byte [rbp - 0x78], 0
mov dword [rsp + 0x20], send
mov rdx, qword [0x14013fe90]
add rdx, 0xe
lea rcx, [rbp - 0x78]
call fcn.140018630
mov r8d, send
lea rdx, str.kashost_crash_
lea rcx, [rbp - 0x78]
call fcn.1400073c0
lea rdx, [0x14013fe80]
cmp qword [0x14013fe98], 0x10
cmovae rdx, qword [0x14013fe80]
mov r8, qword [0x14013fe90]
lea rcx, [rbp - 0x78]
call fcn.1400073c0
mov r8d, 1
lea rdx, [0x1400ffee4]
lea rcx, [rbp - 0x78]
call fcn.1400073c0
xorps xmm0, xmm0
movdqu xmmword [rbp - 0x28], xmm0
movups xmm0, xmmword [rax]
movups xmmword [rbp - 0x38], xmm0
movups xmm1, xmmword [rax + 0x10]
movups xmmword [rbp - 0x28], xmm1
mov qword [rax + 0x10], rsi
mov qword [rax + 0x18], send
mov byte [rax], 0
mov dword [rsp + 0x20], 0x1e
lea rdx, [0x14013fea0]
cmp qword [0x14013feb8], 0x10
cmovae rdx, qword [0x14013fea0]
mov r8, qword [0x14013feb0]
lea rcx, [rbp - 0x38]
call fcn.1400073c0
xorps xmm0, xmm0
movdqu xmmword [rbp - 0x48], xmm0
movups xmm0, xmmword [rax]
movups xmmword [rbp - 0x58], xmm0
movups xmm1, xmmword [rax + 0x10]
movups xmmword [rbp - 0x48], xmm1
mov qword [rax + 0x10], rsi
mov qword [rax + 0x18], send
mov byte [rax], 0
mov dword [rsp + 0x20], 0x3e
mov r8d, 1
lea rdx, [0x1400ffee4]
lea rcx, [rbp - 0x58]
call fcn.1400073c0
xorps xmm0, xmm0
movdqu xmmword [rsp + 0x38], xmm0
movups xmm0, xmmword [rax]
movups xmmword [rsp + 0x28], xmm0
movups xmm1, xmmword [rax + 0x10]
movups xmmword [rsp + 0x38], xmm1
mov qword [rax + 0x10], rsi
mov qword [rax + 0x18], send
mov byte [rax], 0
mov dword [rsp + 0x20], 0x7e
mov rdx, qword [rsp + 0x40]
mov rax, rdx
mov r9, qword [rsp + 0x38]
sub rax, r9
mov rcx, qword [rsp + 0x60]
mov r8, qword [rsp + 0x58]
cmp r8, rax
jbe 0x140013a7a
mov rax, rcx
sub rax, r8
cmp rax, r9
jb 0x140013a7a
lea r8, [rsp + 0x28]
cmp rdx, 0x10
cmovae r8, qword [rsp + 0x28]
lea rcx, [rsp + 0x48]
call fcn.1400186e0
jmp 0x140013a93
lea rdx, [rsp + 0x48]
cmp rcx, 0x10
cmovae rdx, qword [rsp + 0x48]
lea rcx, [rsp + 0x28]
call fcn.1400073c0
xorps xmm0, xmm0
movdqu xmmword [rsp + 0x78], xmm0
movups xmm0, xmmword [rax]
movups xmmword [rsp + 0x68], xmm0
movups xmm1, xmmword [rax + 0x10]
movups xmmword [rsp + 0x78], xmm1
mov qword [rax + 0x10], rsi
mov qword [rax + 0x18], send
mov dword [rsp + 0x20], 0xfe
mov byte [rax], 0
mov r8d, 4
lea rdx, str..txt
lea rcx, [rsp + 0x68]
call fcn.1400073c0
movups xmm6, xmmword [rax]
movups xmmword [rbp - 8], xmm6
movups xmm7, xmmword [rax + 0x10]
movups xmmword [rbp + 8], xmm7
mov qword [rax + 0x10], rsi
mov qword [rax + 0x18], send
mov byte [rax], 0
lea rcx, [rsp + 0x68]
call fcn.140007080
nop
lea rcx, [rsp + 0x28]
call fcn.140007080
nop
lea rcx, [rbp - 0x58]
call fcn.140007080
nop
lea rcx, [rbp - 0x38]
call fcn.140007080
nop
lea rcx, [rbp - 0x78]
call fcn.140007080
nop
lea rcx, [rsp + 0x48]
call fcn.140007080
xor edx, edx
mov r8d, 0x800
lea rcx, [rbp + 0x60]
call fcn.1400b93c0
lea rdx, [rbp + 0x60]
mov ecx, 0x800
call qword [sym.imp.KERNEL32.dll_GetTempPathA]
dec eax
cmp eax, 0x7fe
ja 0x140013bde
movdqa xmm0, xmmword [0x14010a4e0]
movdqu xmmword [rbp + 0x48], xmm0
mov byte [rbp + 0x38], 0
lea rax, [rbp + 0x60]
mov rbx, 0xffffffffffffffff
nop dword [rax]
inc rbx
cmp byte [rax + rbx], 0
jne 0x140013b80
mov r8, rbx
lea rdx, [rbp + 0x60]
lea rcx, [rbp + 0x38]
call fcn.140007260
nop
lea rdx, [rbp - 8]
cmp qword [rbp + 0x10], 0x10
cmovae rdx, qword [rbp - 8]
mov r8, qword [rbp + 8]
lea rcx, [rbp + 0x38]
call fcn.1400073c0
movups xmm0, xmmword [rbp + 0x38]
movups xmmword [rdi], xmm0
movups xmm1, xmmword [rbp + 0x48]
movups xmmword [rdi + 0x10], xmm1
movdqa xmm0, xmmword [0x14010a4e0]
movdqu xmmword [rbp + 0x48], xmm0
mov byte [rbp + 0x38], 0
lea rcx, [rbp + 0x38]
jmp 0x140013d7f
mov qword [rbp - 0x10], rsi
lea r8, [rbp - 0x10]
lea rdx, [0x14013fe80]
mov ecx, 6
call qword [sym.imp.KERNEL32.dll_GetModuleHandleExW]
test eax, eax
jne 0x140013c18
movups xmmword [rdi], xmm6
movups xmmword [rdi + 0x10], xmm7
mov qword [rbp + 8], rsi
mov qword [rbp + 0x10], send
mov byte [rbp - 8], 0
jmp 0x140013d85
mov r8d, 0x800
lea rdx, [rbp + 0x60]
mov rcx, qword [rbp - 0x10]
call qword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
test eax, eax
je 0x140013bfc
mov qword [rbp + 0x28], rsi
mov qword [rbp + 0x30], send
mov byte [rbp + 0x18], 0
lea rax, [rbp + 0x60]
mov rbx, 0xffffffffffffffff
mov r8, rbx
nop
inc r8
cmp byte [rax + r8], 0
jne 0x140013c50
lea rdx, [rbp + 0x60]
lea rcx, [rbp + 0x18]
call fcn.140007260
nop
lea rcx, [rbp + 0x18]
mov r8, qword [rbp + 0x18]
mov r9, qword [rbp + 0x30]
cmp r9, 0x10
cmovae rcx, r8
mov rdx, qword [rbp + 0x28]
test rdx, rdx
je 0x140013cd3
lea rax, [rdx - 1]
cmp rax, 0xffffffffffffffff
cmovb rbx, rax
add rbx, rcx
cmp byte [rbx], 0x5c
je 0x140013cad
nop dword [rax]
cmp rbx, rcx
je 0x140013cd3
dec rbx
cmp byte [rbx], 0x5c
jne 0x140013ca0
sub rbx, rcx
cmp rbx, 0xffffffffffffffff
je 0x140013cd3
cmp rdx, rbx
jb 0x140013dc3
mov qword [rbp + 0x28], rbx
lea rax, [rbp + 0x18]
cmp r9, 0x10
cmovae rax, r8
mov byte [rax + rbx], 0
movdqa xmm0, xmmword [0x14010a4e0]
movdqu xmmword [rsp + 0x38], xmm0
mov byte [rsp + 0x28], 0
mov dword [rsp + 0x20], 0x3f6
mov rbx, qword [rbp + 8]
lea rdx, [rbx + 1]
lea rcx, [rsp + 0x28]
call fcn.140018630
mov r8d, 1
lea rdx, [0x1401000d8]
lea rcx, [rsp + 0x28]
call fcn.1400073c0
lea rdx, [rbp - 8]
cmp qword [rbp + 0x10], 0x10
cmovae rdx, qword [rbp - 8]
mov r8, rbx
lea rcx, [rsp + 0x28]
call fcn.1400073c0
lea rdx, [rsp + 0x28]
cmp qword [rsp + 0x40], 0x10
cmovae rdx, qword [rsp + 0x28]
mov r8, qword [rsp + 0x38]
lea rcx, [rbp + 0x18]
call fcn.1400073c0
nop
lea rcx, [rsp + 0x28]
call fcn.140007080
movups xmm0, xmmword [rbp + 0x18]
movups xmmword [rdi], xmm0
movups xmm1, xmmword [rbp + 0x28]
movups xmmword [rdi + 0x10], xmm1
mov qword [rbp + 0x28], rsi
mov qword [rbp + 0x30], send
mov byte [rbp + 0x18], 0
lea rcx, [rbp + 0x18]
call fcn.140007080
nop
lea rcx, [rbp - 8]
call fcn.140007080
mov rax, rdi
mov rcx, qword [rbp + 0x860]
xor rcx, rsp
call fcn.14009ab00
lea r11, [rsp + 0x990]
mov rbx, qword [r11 + 0x18]
mov rsi, qword [r11 + 0x20]
mov rdi, qword [r11 + 0x28]
movaps xmm6, xmmword [r11 - 0x10]
movaps xmm7, xmmword [r11 - 0x20]
mov rsp, r11
pop rbp
ret
call fcn.140007690
nop
int3