Function at 0x140002910
Capabilities:
Get common file path

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
mov qword [rsp + 0x18], rdi
push rbp
push r14
push r15
lea rbp, [rsp - 0x1a0]
sub rsp, 0x2a0
mov rax, qword [0x14000f010]
xor rax, rsp
mov qword [rbp + 0x190], rax
xor r15d, r15d
xorps xmm0, xmm0
movups xmmword [rsp + 0x58], xmm0
mov qword [rsp + 0x68], r15
mov qword [rsp + 0x70], r15
lea r8d, [r15 + 8]
lea rdx, str.edg2.tmp
lea rcx, [rsp + 0x58]
call fcn.140004d20
nop
lea rdx, [rbp - 0x80]
mov ecx, 0x104
call qword [sym.imp.KERNEL32.dll_GetTempPathW]
lea r8, [rsp + 0x58]
lea rdx, [rbp - 0x80]
lea rcx, [rsp + 0x38]
call fcn.140004a90
mov rbx, rax
lea rax, [rsp + 0x58]
cmp rax, rbx
je 0x140002a11
mov rdx, qword [rsp + 0x70]
cmp rdx, 8
jb 0x1400029dc
lea rdx, [rdx*2 + 2]
mov rcx, qword [rsp + 0x58]
mov rax, rcx
cmp rdx, 0x1000
jb 0x1400029d7
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x140002a4a
call fcn.140005dd0
mov qword [rsp + 0x68], r15
mov qword [rsp + 0x70], 7
mov word [rsp + 0x58], r15w
movups xmm0, xmmword [rbx]
movups xmmword [rsp + 0x58], xmm0
movups xmm1, xmmword [rbx + 0x10]
movups xmmword [rsp + 0x68], xmm1
mov qword [rbx + 0x10], r15
mov qword [rbx + 0x18], 7
mov word [rbx], r15w
mov rdx, qword [rsp + 0x50]
cmp rdx, 8
jb 0x140002a56
lea rdx, [rdx*2 + 2]
mov rcx, qword [rsp + 0x38]
mov rax, rcx
cmp rdx, 0x1000
jb 0x140002a51
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x140002a51
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.140005dd0
lea rax, [rsp + 0x58]
cmp qword [rsp + 0x70], 8
cmovae rax, qword [rsp + 0x58]
mov rbx, 0xffffffffffffffff
mov rdi, rbx
inc rdi
cmp word [rax + rdi*2], 0
jne 0x140002a71
add rdi, rdi
mov ecx, 0x208
call fcn.14000606c
mov rsi, rax
xor edx, edx
mov r8d, 0x208
mov rcx, rax
call sub.VCRUNTIME140.dll_memset
lea rcx, str.Kernel32.dll
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
mov r8d, 0x104
mov rdx, rsi
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
nop word [rax + rax]
inc rbx
cmp word [rsi + rbx*2], 0
jne 0x140002ac0
add rbx, rbx
lea r8, [rbx + 4]
add r8, rdi
mov dword [rsp + 0x20], 4
xor edx, edx
mov r9d, 0x3000
mov rcx, qword [0x140097478]
call qword [sym.imp.KERNEL32.dll_VirtualAllocEx]
mov r14, rax
lea r8, [rsp + 0x58]
cmp qword [rsp + 0x70], 8
cmovae r8, qword [rsp + 0x58]
mov qword [rsp + 0x20], r15
mov r9, rdi
mov rdx, rax
mov rcx, qword [0x140097478]
call qword [sym.imp.KERNEL32.dll_WriteProcessMemory]
test eax, eax
je 0x140002b59
mov qword [0x140097ec0], r14
add rdi, 2
add rdi, r14
mov qword [rsp + 0x20], r15
mov r9, rbx
mov r8, rsi
mov rdx, rdi
mov rcx, qword [0x140097478]
call qword [sym.imp.KERNEL32.dll_WriteProcessMemory]
test eax, eax
je 0x140002b59
mov qword [0x140097eb0], rdi
mov bl, 1
jmp 0x140002b5b
xor bl, bl
mov rcx, rsi
call fcn.140005dd0
nop
mov rdx, qword [rsp + 0x70]
cmp rdx, 8
jb 0x140002ba9
lea rdx, [rdx*2 + 2]
mov rcx, qword [rsp + 0x58]
mov rax, rcx
cmp rdx, 0x1000
jb 0x140002ba4
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x140002ba4
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.140005dd0
movzx eax, bl
mov rcx, qword [rbp + 0x190]
xor rcx, rsp
call fcn.140005db0
lea r11, [rsp + 0x2a0]
mov rbx, qword [r11 + 0x20]
mov rsi, qword [r11 + 0x28]
mov rdi, qword [r11 + 0x30]
mov rsp, r11
pop r15
pop r14
pop rbp
ret