Function at 0x1400135c0
Capabilities:
Accept command line arguments
Check if file exists
Check mutex on windows

Disassembly:
push rbp
push rbx
push rsi
push rdi
push r12
push r13
push r14
push r15
lea rbp, [rsp - 0x68]
sub rsp, 0x168
mov qword [rsp + 0x70], 0xfffffffffffffffe
mov rax, qword [0x140049080]
xor rax, rsp
mov qword [rbp + 0x50], rax
mov r14, r9
mov r12, r8
mov r15, rdx
mov rsi, rcx
mov qword [rsp + 0x78], rcx
xor r13d, r13d
mov dword [rsp + 0x30], r13d
xor edx, edx
lea r8d, [r13 + 0x60]
call fcn.140020880
mov rcx, rsi
call fcn.140012184
mov dword [rsp + 0x30], 1
mov byte [r12], r13b
mov byte [r14], r13b
mov rdi, qword [rsi + 0x10]
lea rcx, [rbp + 0x30]
call qword [sym.imp.Wex.Common.dll_class_std::filesystem::path___cdecl_TAEF::Common::ProcessInformation::GetExecutableFileName_void_]
nop
movdqa xmm0, xmmword [0x140039b60]
movdqu xmmword [rbp + 0x20], xmm0
mov word [rbp + 0x10], r13w
xorps xmm0, xmm0
movups xmmword [rbp - 0x10], xmm0
movdqa xmm1, xmmword [0x140039b60]
movdqu xmmword [rbp], xmm1
mov word [rbp - 0x10], r13w
lea rcx, [rbp + 0x30]
cmp qword [rbp + 0x48], 8
cmovae rcx, qword [rbp + 0x30]
mov qword [rbp - 0x20], rcx
mov rax, qword [rbp + 0x40]
mov qword [rbp - 0x18], rax
lea rdx, [rcx + rax*2]
mov r11, rdx
call fcn.140009b84
cmp rax, rdx
je 0x1400136c2
cmp word [rax], 0x5c
je 0x14001369c
cmp word [rax], 0x2f
jne 0x1400136a5
add rax, 2
cmp rax, rdx
jne 0x140013690
cmp rax, rdx
je 0x1400136c2
lea rcx, [r11 - 2]
cmp word [rcx], 0x5c
je 0x1400136c2
cmp word [rcx], 0x2f
je 0x1400136c2
mov r11, rcx
cmp rax, rcx
jne 0x1400136aa
mov rax, r11
cmp r11, rdx
je 0x140013703
cmp word [rax], 0x3a
je 0x1400136d9
add rax, 2
cmp rax, rdx
jne 0x1400136ca
cmp r11, rax
je 0x140013703
lea rcx, [rax - 2]
cmp r11, rcx
je 0x140013703
cmp word [rcx], 0x2e
jne 0x1400137e5
lea rdx, [rcx - 2]
cmp r11, rdx
jne 0x140013700
cmp word [rdx], 0x2e
je 0x140013703
mov rax, rcx
sub rax, r11
sar rax, 1
mov qword [rbp - 0x20], r11
mov qword [rbp - 0x18], rax
lea rdx, [rbp - 0x20]
lea rcx, [rsp + 0x38]
call fcn.140006be0
mov dword [rsp + 0x30], 7
lea r9, [rsp + 0x38]
cmp qword [rsp + 0x50], 8
cmovae r9, qword [rsp + 0x38]
lea r8, str._s_cmd
lea rdx, [rsp + 0x58]
lea rcx, [rbp - 0x10]
call fcn.140002d28
mov rcx, qword [rax + 8]
cmp qword [rcx + 0x18], 8
jb 0x14001375b
mov rcx, qword [rcx]
lea rdx, [rbp + 0x10]
call qword [sym.imp.Wex.Common.dll_public:_static_bool___cdecl_TAEF::Common::Environment::TryGetValue_unsigned_short_int_const____ptr64__class_TAEF::Common::String____ptr64_]
mov bl, al
lea rcx, [rsp + 0x38]
call fcn.140002d80
nop
lea rcx, [rbp - 0x10]
call fcn.140002d80
test bl, bl
je 0x1400137a1
lea r9, [rbp + 0x10]
cmp qword [rbp + 0x28], 8
cmovae r9, qword [rbp + 0x10]
lea r8, [rsi + 0x18]
mov qword [rsp + 0x20], r14
mov rdx, rdi
mov rcx, r15
call fcn.1400080fc
call qword [sym.imp.KERNEL32.dll_GetCommandLineW]
mov rcx, rax
mov qword [rbp - 0x20], rax
mov rbx, r13
mov qword [rbp - 0x18], rbx
mov r13d, 0x20
cmp word [rcx + rbx*2], r13w
ja 0x1400137f3
movzx eax, word [rcx + rbx*2]
movabs rdx, 0x100003700
bt rdx, rax
jae 0x1400137f3
inc rbx
jmp 0x1400137bb
cmp word [rcx], 0x2e
je 0x140013700
sub rcx, 2
cmp r11, rcx
jne 0x1400137db
jmp 0x140013703
mov qword [rbp - 0x18], rbx
lea rcx, [rcx + rbx*2]
mov r8d, 1
lea rdx, [0x1400362d8]
call qword [sym.imp.api_ms_win_crt_string_l1_1_0.dll__wcsnicmp]
xor r13d, r13d
test eax, eax
jne 0x140013822
inc rbx
mov qword [rbp - 0x18], rbx
lea eax, [r13 + 0x22]
jmp 0x140013827
mov eax, 0x20
movzx r8d, ax
lea rdx, [rsp + 0x58]
lea rcx, [rbp - 0x20]
call fcn.14000598c
mov r8, qword [rbp - 0x20]
mov rax, qword [rbp - 0x18]
cmp byte [rsp + 0x68], r13b
jne 0x14001386c
lea rdx, [r8 + rax*2]
or rcx, 0xffffffffffffffff
inc rcx
cmp word [rdx + rcx*2], r13w
jne 0x140013850
lea rax, [rdx + rcx*2]
sub rax, r8
sar rax, 1
mov qword [rbp - 0x20], rdx
mov qword [rbp - 0x18], rcx
lea r9, [r8 + rax*2]
lea r8, [rsi + 0x18]
mov qword [rsp + 0x20], r14
mov rdx, rdi
mov rcx, r15
call fcn.1400080fc
cmp byte [rdi + 0x132], r13b
je 0x14001388e
int3
cmp qword [rdi + 0x260], r13
jne 0x1400138ad
cmp byte [rdi + 0x270], r13b
jne 0x1400138ad
call fcn.14001c9f4
test al, al
je 0x1400139c7
cmp qword [rdi + 0x148], 1
jne 0x1400139c7
cmp dword [rdi + 0x198], 2
je 0x1400139c7
mov ecx, 1
call fcn.140012038
test al, al
je 0x1400139c7
lea r8, str.TaefInitiatedDisconnectMutex
xor edx, edx
mov ecx, 0x100000
call qword [sym.imp.KERNEL32.dll_OpenMutexW]
mov rbx, rax
mov qword [rbp - 0x20], rax
test rax, rax
jne 0x140013981
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 2
jne 0x140013ae9
lea rdx, [rbp - 0x10]
mov rcx, rdi
call fcn.140011e58
nop
cmp qword [rbp], r13
je 0x140013a4d
lea rcx, [rbp - 0x10]
call qword [sym.imp.Wex.Common.dll_bool___cdecl_TAEF::Common::FileInfo::Exists_class_std::filesystem::path_const____ptr64_]
test al, al
je 0x140013a4d
mov r8, r12
lea rdx, [rbp - 0x10]
lea rcx, [rbp - 0x80]
call fcn.140012d58
mov rdx, rax
mov rcx, rsi
call fcn.140012fb8
lea rcx, [rbp - 0x80]
call fcn.140012ec0
nop
lea rcx, [rbp - 0x10]
call fcn.140002d80
nop
lea rax, [rbx - 1]
cmp rax, 0xfffffffffffffffd
ja 0x140013a17
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_CloseHandle]
jmp 0x140013a17
mov al, byte [rdi + 0x134]
neg al
sbb edx, edx
and edx, 0xffff8acf
add edx, 0x7530
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_WaitForSingleObject]
mov r9d, eax
test eax, 0xffffff7f
je 0x14001390d
cmp eax, 0x102
je 0x140013b1d
cmp eax, 0xffffffff
jne 0x140013aa2
jmp 0x140013b03
lea rdx, [rbp - 0x10]
mov rcx, rdi
call fcn.140011d48
nop
cmp qword [rbp], r13
je 0x140013a0d
lea rcx, [rbp - 0x10]
call qword [sym.imp.Wex.Common.dll_bool___cdecl_TAEF::Common::FileInfo::Exists_class_std::filesystem::path_const____ptr64_]
test al, al
je 0x140013a0d
mov r8, r12
lea rdx, [rbp - 0x10]
lea rcx, [rbp - 0x80]
call fcn.140012d58
mov rdx, rax
mov rcx, rsi
call fcn.140012fb8
lea rcx, [rbp - 0x80]
call fcn.140012ec0
nop
lea rcx, [rbp - 0x10]
call fcn.140002d80
nop
lea rcx, [rbp + 0x10]
call fcn.140002d80
nop
lea rcx, [rbp + 0x30]
call fcn.140002d80
mov rax, rsi
mov rcx, qword [rbp + 0x50]
xor rcx, rsp
call fcn.14001e7d0
add rsp, 0x168
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbx
pop rbp
ret
xorps xmm0, xmm0
movups xmmword [rsp + 0x38], xmm0
movups xmmword [rsp + 0x48], xmm0
lea rcx, [rsp + 0x38]
call fcn.140001420
mov r10, rax
lea rcx, [rbp - 0x10]
call fcn.140002d70
mov r9, rax
lea r8, str.State_file:__s_was_not_found_despite_a_TAEF_initiated_disconnect_having_occurred.
lea rdx, [rsp + 0x58]
mov rcx, r10
call fcn.140002d28
mov r9d, 0x1e3
lea r8, str.E:BA163_s_srcTAEFTETestExecution.cpp
mov rdx, rax
mov ecx, 0x80070002
call fcn.14000194c
nop
xorps xmm0, xmm0
movups xmmword [rsp + 0x38], xmm0
movups xmmword [rsp + 0x48], xmm0
lea rcx, [rsp + 0x38]
call fcn.140001420
nop
lea r8, str.Unexpected_value_of__u_returned_from_wait_for_TAEF_initiated_disconnect_mutex.
lea rdx, [rsp + 0x58]
mov rcx, rax
call fcn.140002d28
mov rdx, rax
mov r9d, 0x1dc
lea r8, str.E:BA163_s_srcTAEFTETestExecution.cpp
mov ecx, 0x8000ffff
call fcn.14000194c
nop
call qword [sym.imp.KERNEL32.dll_GetLastError]
movzx ecx, ax
or ecx, 0x80070000
test eax, eax
cmovle ecx, eax
call fcn.140016198
int3
call qword [sym.imp.KERNEL32.dll_GetLastError]
movzx ecx, ax
or ecx, 0x80070000
test eax, eax
cmovle ecx, eax
call fcn.140016230
int3
mov ecx, 0x800705b4
call fcn.1400161e4
int3