Function at 0x140019df0
Capabilities:
Get common file path
Set current directory

Disassembly:
mov qword [rsp + 0x18], rbx
mov qword [rsp + 0x20], rbp
push rsi
push rdi
push r14
sub rsp, 0x470
mov rax, qword [0x1400a2078]
xor rax, rsp
mov qword [rsp + 0x460], rax
mov rbx, qword [rcx + 0x458]
lea rbp, [rsp + 0x60]
mov r14, rdx
test rbx, rbx
je 0x140019e34
cmp byte [rbx], 0
jne 0x140019ee6
movzx eax, byte [rcx + 0x40]
lea rsi, [rcx + 0x40]
lea rbx, str.ampl_lic
mov rcx, rsi
mov rdi, rsi
test al, al
je 0x140019ee6
movabs rdx, 0x200000000801
nop dword [rax + rax]
inc rcx
sub al, 0x2f
cmp al, 0x2d
ja 0x140019e72
bt rdx, rax
jae 0x140019e72
mov rdi, rcx
movzx eax, byte [rcx]
test al, al
jne 0x140019e60
cmp rdi, rsi
jbe 0x140019ee6
mov rcx, rdi
sub rcx, rsi
add rcx, 0xa
cmp rcx, 0x400
jbe 0x140019e9e
call fcn.14005608c
mov rbp, rax
test rax, rax
je 0x140019ee6
cmp byte [rsi], 0x2e
jne 0x140019eb5
movzx ecx, byte [rsi + 1]
cmp cl, 0x2f
je 0x140019eb1
cmp cl, 0x5c
jne 0x140019eb5
add rsi, 2
sub rdi, rsi
je 0x140019ec8
mov r8, rdi
mov rdx, rsi
mov rcx, rbp
call fcn.140044760
sub rdi, rbx
lea rcx, [rdi + rbp]
nop
movzx eax, byte [rbx]
mov byte [rcx + rbx], al
lea rbx, [rbx + 1]
test al, al
jne 0x140019ed0
mov rbx, rbp
cmp byte [rbp], al
je 0x140019f05
cmp byte [rbx + 1], 0x3a
jne 0x140019f05
movzx eax, byte [rbx + 2]
cmp al, 0x2f
je 0x140019ef8
cmp al, 0x5c
jne 0x140019f05
cmp byte [rbx + 3], 0
je 0x140019f05
xor edi, edi
jmp 0x140019f97
mov rdx, r14
mov ecx, 0x7fe
call qword [sym.imp.KERNEL32.dll_GetCurrentDirectoryA]
mov edi, eax
test eax, eax
je 0x14001a0a2
cmp byte [rbx + 1], 0x3a
jne 0x140019f97
movsx esi, byte [rbx]
lea eax, [rsi - 0x61]
cmp eax, 0x19
ja 0x140019f31
sub esi, 0x20
movsx ecx, byte [r14]
lea eax, [rcx - 0x61]
cmp eax, 0x19
ja 0x140019f40
sub ecx, 0x20
cmp esi, ecx
je 0x140019f93
mov byte [rsp + 0x20], cl
lea rcx, [rsp + 0x20]
mov word [rsp + 0x21], 0x3a
call qword [sym.imp.KERNEL32.dll_SetCurrentDirectoryA]
test eax, eax
jne 0x140019f6a
lea rcx, str.Could_not_get_directory_for___s_
jmp 0x14001a0a9
mov rdx, r14
mov ecx, 0x7fe
call qword [sym.imp.KERNEL32.dll_GetCurrentDirectoryA]
lea rcx, [rsp + 0x20]
mov byte [rsp + 0x20], sil
mov edi, eax
call qword [sym.imp.KERNEL32.dll_SetCurrentDirectoryA]
test rdi, rdi
je 0x14001a0a2
add rbx, 2
mov rdx, 0xffffffffffffffff
nop
inc rdx
cmp byte [rbx + rdx], 0
jne 0x140019fa0
lea rax, [rdi + 2]
add rax, rdx
cmp rax, 0x7fe
ja 0x14001a0a2
test rdi, rdi
je 0x140019fc9
mov byte [r14 + rdi], 0x5c
inc rdi
mov r8, r14
mov rcx, rbx
sub r8, rbx
add r8, rdi
nop word [rax + rax]
movzx eax, byte [rcx]
mov byte [r8 + rcx], al
lea rcx, [rcx + 1]
test al, al
jne 0x140019fe0
add rdi, rdx
cmp rdx, 5
jb 0x14001a020
cmp byte [rdx + rbx - 4], 0x2e
jne 0x14001a020
movzx eax, byte [rdx + rbx - 3]
sub al, 0x45
test al, 0xdf
jne 0x14001a020
movzx eax, byte [rdx + rbx - 2]
sub al, 0x58
test al, 0xdf
jne 0x14001a020
movzx eax, byte [rdx + rbx - 1]
sub al, 0x45
test al, 0xdf
je 0x14001a046
lea rax, [rdi + 5]
cmp rax, 0x7fe
ja 0x14001a0a2
mov eax, dword [str..exe]
mov dword [r14 + rdi], eax
movzx eax, byte [0x1400925f8]
mov byte [r14 + rdi + 4], al
add rdi, 4
lea rdx, [rsp + 0x28]
mov byte [r14 + rdi], 0
mov rcx, r14
call fcn.140051b24
test eax, eax
je 0x14001a068
mov rdx, r14
lea rcx, str.cannot_find___s_
jmp 0x14001a0ac
movzx eax, word [rsp + 0x2e]
mov ecx, 0xc000
and ax, cx
mov ecx, 0x8000
cmp ax, cx
je 0x14001a08b
mov rdx, r14
lea rcx, str.not_a_regular_file:___s_
jmp 0x14001a0ac
lea rax, [rsp + 0x60]
cmp rbp, rax
je 0x14001a09d
mov rcx, rbp
call fcn.1400543f0
mov rax, r14
jmp 0x14001a0b3
lea rcx, str.Directory_name_too_long_for___s_
mov rdx, rbx
call fcn.140019410
xor eax, eax
mov rcx, qword [rsp + 0x460]
xor rcx, rsp
call fcn.140042470
lea r11, [rsp + 0x470]
mov rbx, qword [r11 + 0x30]
mov rbp, qword [r11 + 0x38]
mov rsp, r11
pop r14
pop rdi
pop rsi
ret