Function at 0x18000e140
Capabilities:
Get common file path

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rsi
mov qword [rsp + 0x20], rdi
push rbp
push r12
push r13
push r14
push r15
lea rbp, [rsp - 0x1b0]
sub rsp, 0x2b0
mov rax, qword [0x180037020]
xor rax, rsp
mov qword [rbp + 0x1a0], rax
mov rsi, rcx
mov qword [rsp + 0x20], rcx
xor edx, edx
mov r8d, 0x20a
lea rcx, [rbp - 0x70]
call sub.VCRUNTIME140.dll_memset
lea rdx, [rbp - 0x70]
mov ecx, 0x105
call qword [sym.imp.KERNEL32.dll_GetTempPathW]
dec eax
mov rdx, 0xffffffffffffffff
cmp eax, 0x104
ja 0x18000e220
lea rcx, [rbp - 0x70]
mov rax, rdx
nop word [rax + rax]
lea rax, [rax + 1]
cmp word [rcx + rax*2], 0
jne 0x18000e1c0
xor edi, edi
cmp word [rbp + rax*2 - 0x72], 0x5c
jne 0x18000e1ee
lea rax, [rax*2 - 2]
cmp rax, 0x20a
jae 0x18000e4db
mov word [rbp + rax - 0x70], di
mov qword [rsp + 0x70], rdi
mov qword [rbp - 0x80], rdi
mov qword [rbp - 0x78], 7
mov word [rsp + 0x70], di
lea rax, [rbp - 0x70]
mov r8, rdx
nop dword [rax + rax]
inc r8
cmp word [rax + r8*2], di
jne 0x18000e210
lea rdx, [rbp - 0x70]
jmp 0x18000e265
lea rdx, str.____Failed_to_get_temp_path
mov rcx, qword [sym.imp.MSVCP140.dll_class_std::basic_ostream_wchar_t__struct_std::char_traits_wchar_t___std::wcout]
call fcn.180015960
lea rdx, [0x180015b40]
mov rcx, rax
call qword [sym.imp.MSVCP140.dll_public:_class_std::basic_ostream_wchar_t__struct_std::char_traits_wchar_t______ptr64___cdecl_std::basic_ostream_wchar_t__struct_std::char_traits_wchar_t__::operator___class_std::basic_ostream_wchar_t__struct_std::char_traits_wchar_t______ptr64____cdecl___class_std::basic_ostream_wchar_t__struct_std::char_traits_wchar_t______ptr64_____ptr64]
xor edi, edi
mov qword [rsp + 0x70], rdi
mov qword [rbp - 0x80], rdi
mov qword [rbp - 0x78], 7
mov word [rsp + 0x70], di
xor r8d, r8d
lea rdx, [0x18002e10c]
lea rcx, [rsp + 0x70]
call fcn.180006110
nop
mov r15, qword [rbp - 0x80]
test r15, r15
jne 0x18000e2e9
mov qword [rsi], rdi
mov qword [rsi + 0x10], rdi
mov qword [rsi + 0x18], 7
mov word [rsi], di
xor r8d, r8d
lea rdx, [0x18002e10c]
mov rcx, rsi
call fcn.180006110
nop
mov rdx, qword [rbp - 0x78]
cmp rdx, 8
jb 0x18000e4a2
lea rdx, [rdx*2 + 2]
mov rcx, qword [rsp + 0x70]
mov rax, rcx
cmp rdx, 0x1000
jb 0x18000e49d
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x18000e49d
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
nop
lea rcx, [rsp + 0x50]
call fcn.18000e010
mov qword [rsp + 0x20], rax
movabs rdx, 0x7ffffffffffffffe
mov rcx, rdx
sub rcx, r15
cmp rcx, 1
jb 0x18000e4d5
lea rax, [rsp + 0x70]
mov r14, qword [rsp + 0x70]
mov r13, qword [rbp - 0x78]
cmp r13, 8
cmovae rax, r14
mov qword [rsp + 0x28], rax
mov qword [rsp + 0x30], rdi
lea rax, [r15 + 1]
mov ebx, 7
lea r12, [rsp + 0x30]
cmp rax, rbx
jbe 0x18000e385
mov rbx, rax
or rbx, 7
cmp rbx, rdx
jbe 0x18000e356
mov rbx, rdx
jmp 0x18000e362
mov eax, 0xa
cmp rbx, rax
cmovb rbx, rax
mov rdx, rbx
add rdx, 1
mov rax, 0xffffffffffffffff
cmovb rdx, rax
call fcn.180006600
mov r12, rax
mov qword [rsp + 0x30], rax
lea rax, [r15 + 1]
mov qword [rsp + 0x40], rax
mov qword [rsp + 0x48], rbx
lea rbx, [r15 + r15]
mov r8, rbx
mov rdx, qword [rsp + 0x28]
mov rcx, r12
call sub.VCRUNTIME140.dll_memcpy
mov eax, 0x5c
mov word [r12 + rbx], ax
mov word [r12 + r15*2 + 2], di
mov r9, qword [rsp + 0x20]
lea r8, [rsp + 0x30]
mov rcx, rsi
call fcn.180016cf0
nop
mov rdx, qword [rsp + 0x48]
cmp rdx, 8
jb 0x18000e40c
lea rdx, [rdx*2 + 2]
mov rcx, qword [rsp + 0x30]
mov rax, rcx
cmp rdx, 0x1000
jb 0x18000e406
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x18000e406
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.180029c7c
nop
mov rdx, qword [rsp + 0x68]
cmp rdx, 8
jb 0x18000e451
lea rdx, [rdx*2 + 2]
mov rcx, qword [rsp + 0x50]
mov rax, rcx
cmp rdx, 0x1000
jb 0x18000e44c
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x18000e44c
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.180029c7c
mov qword [rsp + 0x60], rdi
mov qword [rsp + 0x68], 7
mov word [rsp + 0x50], di
cmp r13, 8
jb 0x18000e4a2
lea rdx, [r13*2 + 2]
mov rax, r14
cmp rdx, 0x1000
jb 0x18000e49a
add rdx, 0x27
mov r14, qword [r14 - 8]
sub rax, r14
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x18000e49a
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
mov rcx, r14
call fcn.180029c7c
mov rax, rsi
mov rcx, qword [rbp + 0x1a0]
xor rcx, rsp
call fcn.180029c20
lea r11, [rsp + 0x2b0]
mov rbx, qword [r11 + 0x38]
mov rsi, qword [r11 + 0x40]
mov rdi, qword [r11 + 0x48]
mov rsp, r11
pop r15
pop r14
pop r13
pop r12
pop rbp
ret
call fcn.180001540
nop
call fcn.18002a3e0
int3