Function at 0x140011fc2
Capabilities:
Get common file path

Disassembly:
jmp 0x14023fdb0
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 - 0x3a0]
sub rsp, 0x4a0
mov rax, qword [0x140779878]
xor rax, rsp
mov qword [rbp + 0x390], rax
mov r13, rcx
cmp dword [rcx], 0
jl 0x14023fdf5
call fcn.14000ec00
xor edx, edx
lea rcx, [rsp + 0x40]
call fcn.140014e11
lea rdi, [r13 + 8]
mov rdx, rax
mov rcx, rdi
call fcn.140006c71
mov rdx, qword [rsp + 0x58]
cmp rdx, 0x10
jb 0x14023fe50
inc rdx
mov rcx, qword [rsp + 0x40]
mov rax, rcx
cmp rdx, 0x1000
jb 0x14023fe4b
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x14023fe4b
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.14001326e
cmp qword [rdi + 0x18], 0x10
jb 0x14023fe6b
mov r8, qword [rdi]
lea r9, [rdi + 0x10]
mov qword [rsp + 0x38], r9
mov rdx, r8
add r8, qword [r9]
jmp 0x14023fe7d
lea rax, [rdi + 0x10]
mov qword [rsp + 0x38], rax
mov rdx, rdi
mov r8, qword [rax]
add r8, rdi
cmp rdx, r8
je 0x14023fe92
cmp byte [rdx], 0x2f
jne 0x14023fe8a
mov byte [rdx], 0x5c
inc rdx
cmp rdx, r8
jne 0x14023fe82
mov rdx, rdi
lea rcx, [rsp + 0x40]
call qword [sym.imp.MiKTeX231000_util.dll_public:_static_class_std::basic_string_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t_____cdecl_MiKTeX::Util::PathNameUtil::ToLengthExtendedPathName_class_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char___const____ptr64_]
cmp qword [rax + 0x18], 8
jb 0x14023feaa
mov rax, qword [rax]
lea r9, [rbp + 0x180]
xor r8d, r8d
lea rdx, str.stdin
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetTempFileNameW]
mov ebx, eax
mov rdx, qword [rsp + 0x58]
cmp rdx, 8
jb 0x14023ff0b
lea rdx, [rdx*2 + 2]
mov rcx, qword [rsp + 0x40]
mov rax, rcx
cmp rdx, 0x1000
jb 0x14023ff06
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x14023ff06
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.14001326e
test ebx, ebx
je 0x14024012b
xor r12d, r12d
mov dword [rsp + 0x28], r12d
lea rax, [rsp + 0x30]
mov qword [rsp + 0x20], rax
mov edx, 0x8101
mov r9d, 0x80
lea r8d, [r12 + 0x40]
lea rcx, [rbp + 0x180]
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll__wsopen_dispatch]
mov ecx, dword [rsp + 0x30]
mov rbx, 0xffffffffffffffff
test eax, eax
cmovne ecx, ebx
mov dword [r13], ecx
lea rax, vtable.MiKTeX::Util::CharBuffer_char__512_.0
mov qword [rsp + 0x60], rax
mov esi, 0x200
mov r8d, esi
xor edx, edx
lea rcx, [rsp + 0x68]
call sub.VCRUNTIME140.dll_memset
lea r15, [rsp + 0x68]
mov qword [rbp + 0x168], r15
mov qword [rbp + 0x170], rsi
lea rcx, [rbp + 0x180]
mov rax, rbx
lea rax, [rax + 1]
cmp word [rcx + rax*2], r12w
jne 0x14023ff93
lea r14, [rax*4 + 1]
cmp r14, rsi
jbe 0x14023fff3
mov rcx, r14
call fcn.14000ab00
mov r15, rax
mov r8, qword [rbp + 0x170]
mov rdx, qword [rbp + 0x168]
mov rcx, rax
call sub.VCRUNTIME140.dll_memcpy
lea rax, [rsp + 0x68]
mov rcx, qword [rbp + 0x168]
cmp rcx, rax
je 0x14023ffe2
call fcn.14000ba23
mov qword [rbp + 0x168], r15
mov rsi, r14
mov qword [rbp + 0x170], r14
lea r8, [rbp + 0x180]
mov rdx, rsi
mov rcx, r15
call qword [sym.imp.MiKTeX231000_util.dll_public:_static_unsigned_long_long_unsigned___int64____cdecl_MiKTeX::Util::StringUtil::CopyString_char____ptr64__unsigned_long_long_unsigned___int64___wchar_t_const____ptr64_]
nop
mov r15, qword [rbp + 0x168]
nop
inc rbx
cmp byte [r15 + rbx], 0
jne 0x140240010
mov r14, qword [rdi + 0x18]
cmp rbx, r14
ja 0x14024004b
cmp r14, 0x10
jb 0x14024002c
mov rdi, qword [rdi]
mov rax, qword [rsp + 0x38]
mov qword [rax], rbx
mov r8, rbx
mov rdx, r15
mov rcx, rdi
call sub.VCRUNTIME140.dll_memmove
mov byte [rdi + rbx], 0
jmp 0x140240121
movabs rsi, 0x7fffffffffffffff
cmp rbx, rsi
ja 0x14024016b
mov rcx, rbx
or rcx, 0xf
cmp rcx, rsi
jbe 0x14024007b
movabs rcx, 0x8000000000000000
call fcn.14000e7dc
jmp 0x1402400c9
mov rdx, r14
shr rdx, 1
mov rax, rsi
sub rax, rdx
cmp r14, rax
jbe 0x14024009d
movabs rcx, 0x8000000000000000
call fcn.14000e7dc
jmp 0x1402400c9
lea rax, [rdx + r14]
mov rsi, rcx
cmp rcx, rax
cmovb rsi, rax
lea rcx, [rsi + 1]
cmp rcx, 0x1000
jb 0x1402400bf
call fcn.14000e7dc
jmp 0x1402400c9
test rcx, rcx
je 0x1402400cc
call fcn.140001ec4
mov r12, rax
mov rax, qword [rsp + 0x38]
mov qword [rax], rbx
mov qword [rdi + 0x18], rsi
mov r8, rbx
mov rdx, r15
mov rcx, r12
call sub.VCRUNTIME140.dll_memcpy
mov byte [r12 + rbx], 0
cmp r14, 0x10
jb 0x14024011e
mov rcx, qword [rdi]
lea rdx, [r14 + 1]
cmp rdx, 0x1000
jb 0x140240119
add rdx, 0x27
mov r8, qword [rcx - 8]
sub rcx, r8
lea rax, [rcx - 8]
cmp rax, 0x1f
ja 0x140240164
mov rcx, r8
call fcn.14001326e
mov qword [rdi], r12
lea rcx, [rsp + 0x60]
call fcn.14000abf5
mov eax, dword [r13]
shr eax, 0x1f
xor al, 1
mov rcx, qword [rbp + 0x390]
xor rcx, rsp
call fcn.14000baf0
lea r11, [rsp + 0x4a0]
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 qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
nop
call fcn.14000c225
int3