Function at 0x1800e1d70
Capabilities:
Get common file path

Disassembly:
push rbp
push rsi
push rdi
push r12
push r13
sub rsp, 0x560
mov qword [rsp + 0xa0], 0xfffffffffffffffe
mov qword [rsp + 0x5a0], rbx
mov rax, qword [0x180175020]
xor rax, rsp
mov qword [rsp + 0x550], rax
mov rdi, rdx
mov rsi, rcx
test rcx, rcx
je 0x1800e21b8
cmp word [rcx], 0
je 0x1800e21b8
test rdx, rdx
je 0x1800e21a9
cmp word [rdx], 0
je 0x1800e21a9
lea rdx, [rsp + 0x340]
mov ecx, 0x104
call qword [sym.imp.KERNEL32.dll_GetTempPathW]
test eax, eax
jne 0x1800e1dfd
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, eax
call qword [sym.imp.KERNEL32.dll_SetLastError]
xor eax, eax
jmp 0x1800e21c5
lea r9, [rsp + 0x130]
xor r8d, r8d
mov rdx, rdi
lea rcx, [rsp + 0x340]
call qword [sym.imp.KERNEL32.dll_GetTempFileNameW]
test eax, eax
jne 0x1800e1e32
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, eax
call qword [sym.imp.KERNEL32.dll_SetLastError]
xor eax, eax
jmp 0x1800e21c5
xor r8d, r8d
lea rdx, [rsp + 0x130]
mov rcx, rsi
call qword [0x18017a000]
test eax, eax
jne 0x1800e1e5f
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, eax
call qword [sym.imp.KERNEL32.dll_SetLastError]
xor eax, eax
jmp 0x1800e21c5
lea rbx, vtable.SpeedBit::Utils::Std::StringConverter.0
mov qword [rsp + 0x70], rbx
lea rcx, [rsp + 0x78]
call qword [sym.imp.MSVCP90.dll_public:_void___cdecl_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::constructor_void____ptr64]
nop
xor r13d, r13d
mov dword [rsp + 0x20], r13d
mov dword [rsp + 0x24], r13d
mov dword [rsp + 0x28], r13d
xor eax, eax
or rcx, 0xffffffffffffffff
mov rdi, rsi
repne scasw ax, word [rdi]
not rcx
lea r8, [rcx - 1]
lea r9, [rsp + 0x70]
mov rdx, rsi
lea rcx, [rsp + 0x20]
call fcn.180040470
lea rdx, [rsp + 0x78]
lea rcx, [rsp + 0xd8]
call qword [sym.imp.MSVCP90.dll_public:_void___cdecl_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::constructor_class_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char___const____ptr64____ptr64]
nop
mov qword [rsp + 0x70], rbx
lea rcx, [rsp + 0x78]
call qword [sym.imp.MSVCP90.dll_public:_void___cdecl_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::destructor_void____ptr64]
nop
lea rax, vtable.SpeedBit::Utils::Transcoder::MultibyteHandler.0
mov qword [rsp + 0x70], rax
mov qword [rsp + 0xa8], rbx
lea rcx, [rsp + 0xb0]
call qword [sym.imp.MSVCP90.dll_public:_void___cdecl_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::constructor_void____ptr64]
nop
mov dword [rsp + 0x20], r13d
mov dword [rsp + 0x24], r13d
mov dword [rsp + 0x28], r13d
xor eax, eax
or rcx, 0xffffffffffffffff
lea rdi, [rsp + 0x130]
repne scasw ax, word [rdi]
not rcx
lea r8, [rcx - 1]
lea r9, [rsp + 0xa8]
lea rdx, [rsp + 0x130]
lea rcx, [rsp + 0x20]
call fcn.180040470
lea rdx, [rsp + 0xb0]
lea rcx, [rsp + 0x100]
call qword [sym.imp.MSVCP90.dll_public:_void___cdecl_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::constructor_class_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char___const____ptr64____ptr64]
nop
mov qword [rsp + 0xa8], rbx
lea rcx, [rsp + 0xb0]
call qword [sym.imp.MSVCP90.dll_public:_void___cdecl_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::destructor_void____ptr64]
nop
mov qword [rsp + 0x60], rsi
lea rax, [rsp + 0x130]
mov qword [rsp + 0x68], rax
mov qword [rsp + 0x20], r13
mov qword [rsp + 0x28], r13
lea rbp, [rsp + 0xe0]
cmp qword [rsp + 0xf8], 0x10
cmovae rbp, qword [rsp + 0xe0]
mov qword [rsp + 0x50], rbp
lea r12, [rsp + 0x108]
cmp qword [rsp + 0x120], 0x10
cmovae r12, qword [rsp + 0x108]
mov qword [rsp + 0x58], r12
mov qword [rsp + 0x40], r13
mov qword [rsp + 0x48], r13
mov edx, 0x38
mov r8, r13
mov rax, rdx
and eax, 7
je 0x1800e1fe0
sub rdx, rax
add rdx, 8
mov qword [rsp + r8 + 0x20], rdx
mov rax, qword [rsp + r8 + 0x60]
lea rdi, [0x180118050]
test rax, rax
cmovne rdi, rax
xor eax, eax
or rcx, 0xffffffffffffffff
repne scasw ax, word [rdi]
not rcx
lea rdx, [rdx + rcx*2]
add r8, 8
cmp r8, 0x10
jne 0x1800e1fd1
mov r8, r13
lea rbx, [0x18011804f]
nop dword [rax]
mov rax, rdx
and eax, 7
je 0x1800e202f
sub rdx, rax
add rdx, 8
mov qword [rsp + r8 + 0x40], rdx
mov rax, qword [rsp + r8 + 0x50]
mov rdi, rbx
test rax, rax
cmovne rdi, rax
xor eax, eax
or rcx, 0xffffffffffffffff
repne scasb al, byte [rdi]
not rcx
add rdx, rcx
add r8, 8
cmp r8, 0x10
jne 0x1800e2020
lea rax, vtable.SpeedBit::Utils::LocalBuffer.0
mov qword [rsp + 0x30], rax
mov qword [rsp + 0x38], r13
lea ecx, [r8 + 0x30]
call qword [sym.imp.KERNEL32.dll_LocalAlloc]
mov qword [rsp + 0x38], rax
lea rcx, [rsp + 0x30]
mov rax, qword [rsp + 0x30]
call qword [rax + 0x10]
mov rdx, rax
test rax, rax
je 0x1800e2171
mov qword [rax + 0x20], r13
xor eax, eax
mov qword [rdx + 0x28], rax
mov qword [rdx + 0x30], rax
mov rcx, qword [rsp + 0x20]
lea rdi, [rdx + rcx]
mov rcx, rdi
sub rcx, rsi
nop word [rax + rax]
movzx eax, word [rsi]
mov word [rcx + rsi], ax
add rsi, 2
test ax, ax
jne 0x1800e20c0
mov qword [rdx + 8], rdi
mov rax, qword [rsp + 0x28]
lea r8, [rdx + rax]
lea rcx, [rsp + 0x130]
lea rax, [rsp + 0x130]
mov rdi, r8
sub rdi, rax
nop word [rax + rax]
movzx eax, word [rcx]
mov word [rdi + rcx], ax
add rcx, 2
test ax, ax
jne 0x1800e2100
mov qword [rdx + 0x18], r8
mov rax, qword [rsp + 0x40]
lea r8, [rdx + rax]
mov rcx, rbx
test rbp, rbp
cmovne rcx, rbp
mov rdi, r8
sub rdi, rcx
nop dword [rax]
movzx eax, byte [rcx]
mov byte [rdi + rcx], al
inc rcx
test al, al
jne 0x1800e2130
mov qword [rdx], r8
mov rax, qword [rsp + 0x48]
lea rdi, [rdx + rax]
test r12, r12
cmovne rbx, r12
mov rcx, rdi
sub rcx, rbx
nop word [rax + rax]
movzx eax, byte [rbx]
mov byte [rcx + rbx], al
inc rbx
test al, al
jne 0x1800e2160
mov qword [rdx + 0x10], rdi
mov rdi, qword [rsp + 0x38]
mov qword [rsp + 0x38], r13
lea rax, vtable.SpeedBit::Utils::BaseBuffer.0
mov qword [rsp + 0x30], rax
lea rcx, [rsp + 0x100]
call qword [sym.imp.MSVCP90.dll_public:_void___cdecl_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::destructor_void____ptr64]
nop
lea rcx, [rsp + 0xd8]
call qword [sym.imp.MSVCP90.dll_public:_void___cdecl_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::destructor_void____ptr64]
mov rax, rdi
jmp 0x1800e21c5
mov ecx, 0x57
call qword [sym.imp.KERNEL32.dll_SetLastError]
xor eax, eax
jmp 0x1800e21c5
mov ecx, 0x57
call qword [sym.imp.KERNEL32.dll_SetLastError]
xor eax, eax
mov rcx, qword [rsp + 0x550]
xor rcx, rsp
call fcn.1800e9aa0
mov rbx, qword [rsp + 0x5a0]
add rsp, 0x560
pop r13
pop r12
pop rdi
pop rsi
pop rbp
ret