Function at 0x1402a8220
Capabilities:
Check if file exists
Terminate process

Disassembly:
mov rax, rsp
push rbp
push rsi
push rdi
push r12
push r13
push r14
push r15
lea rbp, [rax - 0x198]
sub rsp, 0x260
mov qword [rbp - 0x60], 0xfffffffffffffffe
mov qword [rax + 0x18], rbx
movaps xmmword [rax - 0x48], xmm6
movaps xmmword [rax - 0x58], xmm7
mov rax, qword [0x14044e770]
xor rax, rsp
mov qword [rbp + 0x130], rax
mov r15b, r8b
mov r12d, edx
mov r14, rcx
xor r13d, r13d
mov dword [rsp + 0x50], r13d
lea rdx, [rcx + 0x58]
lea rcx, [rbp - 0x78]
call fcn.14006bfdc
nop
xor edx, edx
lea r8d, [r13 + 0x68]
lea rcx, [rbp - 0x48]
call sub.api_ms_win_crt_string_l1_1_0.dll_memset
mov dword [rbp - 0x50], WSACleanup
mov dword [rbp - 0x14], 0x100
xorps xmm0, xmm0
movdqa xmmword [rbp], xmm0
mov qword [rbp + 0x10], r13
or rsi, 0xffffffffffffffff
cmp qword [r14 + 0x28], r13
je 0x1402a8485
xor eax, eax
mov qword [rsp + 0x70], rax
mov qword [rbp - 0x80], rax
mov dword [rsp + 0x70], CreateCompressor
lea edi, [rsi + 2]
mov dword [rbp - 0x80], edi
mov qword [rsp + 0x78], r13
lea rbx, [r14 + 0x18]
mov rcx, rbx
cmp qword [rbx + 0x18], 8
jb 0x1402a82e6
mov rcx, qword [rbx]
mov qword [rsp + 0x30], r13
mov dword [rsp + 0x28], 0x80
mov dword [rsp + 0x20], 2
lea r9, [rsp + 0x70]
xor r8d, r8d
mov edx, 0x40000000
call qword [sym.imp.KERNEL32.dll_CreateFileW]
mov rdx, rax
lea rcx, [rsp + 0x60]
call fcn.1401b8e48
nop
mov rax, qword [rsp + 0x60]
test rax, rax
je 0x1402a832b
mov rax, qword [rax]
jmp 0x1402a832e
mov rax, r13
cmp rax, rsi
setne al
mov rcx, qword [rbp + 0x198]
lea rdx, str.Failed_to_create_an_output_file
mov qword [rsp + 0x20], rdx
movzx r9d, al
lea r8, str.amcorewcd_sourcecommon_src_toolrunner.cpp
mov edx, reloc.OLEAUT32.dll_VarR8FromUI1
call fcn.14005f650
mov rcx, qword [rsp + 0x60]
test rcx, rcx
je 0x1402a836b
mov rcx, qword [rcx]
jmp 0x1402a836e
mov rcx, r13
mov r8d, edi
mov edx, edi
call qword [sym.imp.KERNEL32.dll_SetHandleInformation]
test eax, eax
jne 0x1402a840e
call qword [sym.imp.api_ms_win_core_errorhandling_l1_1_0.dll_GetLastError]
movzx ecx, ax
or ecx, 0x80070000
test eax, eax
cmovle ecx, eax
mov dword [rsp + 0x50], ecx
call fcn.14004acb4
mov rcx, qword [rax + 8]
cmp dword [rcx], 2
jbe 0x1402a8770
lea rax, [rsp + 0x50]
mov qword [rbp + 0x100], rax
mov qword [rbp + 0x108], 4
lea rax, str.ToolRunner::Run___CreateFileW_failed
mov qword [rbp + 0x110], rax
mov qword [rbp + 0x118], 0x25
cmp qword [rbx + 0x18], 8
jb 0x1402a83e5
mov rbx, qword [rbx]
lea rdi, [0x14030cae0]
mov rax, r13
test rbx, rbx
je 0x1402a872f
mov rdi, rbx
mov rax, rsi
inc rax
cmp word [rbx + rax*2], r13w
je 0x1402a872f
jmp 0x1402a83fe
mov rcx, qword [rsp + 0x60]
test rcx, rcx
je 0x1402a8421
mov rax, qword [rcx]
mov qword [rbp + 8], rax
jmp 0x1402a8425
mov qword [rbp + 8], r13
test rcx, rcx
je 0x1402a8433
mov rax, qword [rcx]
mov qword [rbp + 0x10], rax
jmp 0x1402a8437
mov qword [rbp + 0x10], r13
lea rdx, [rsp + 0x60]
lea rcx, [rbp - 0x78]
call fcn.1401b80e0
nop
mov rbx, qword [rsp + 0x68]
test rbx, rbx
je 0x1402a8485
mov eax, esi
lock xadd dword [rbx + 8], eax
add eax, esi
jne 0x1402a8485
mov rax, qword [rbx]
mov rcx, rbx
mov rax, qword [rax]
call qword [str.PM_]
mov eax, esi
lock xadd dword [rbx + 0xc], eax
add eax, esi
jne 0x1402a8485
mov rax, qword [rbx]
mov rcx, rbx
mov rax, qword [rax + 8]
call qword [str.PM_]
mov qword [rsp + 0x58], r13
mov rdx, qword [r14 + 0x10]
lea rcx, [rbp + 0x58]
call fcn.14004a9e4
nop
lea rdi, [0x14030cae0]
mov rdx, rdi
lea rcx, [rbp + 0x38]
call fcn.14004a9e4
nop
lea rax, [r14 + 0x38]
mov qword [rsp + 0x48], rax
lea rax, [rbp - 0x50]
mov qword [rsp + 0x40], rax
mov al, byte [r14 + 8]
mov byte [rsp + 0x38], al
mov al, byte [r14 + 9]
mov byte [rsp + 0x28], al
lea rax, [rsp + 0x58]
mov qword [rsp + 0x20], rax
lea r9, [rbp - 0x78]
lea r8, [rbp + 0x58]
lea rdx, [rbp + 0x38]
lea rcx, [rbp + 0x20]
call fcn.14022fec8
lea rsi, [r14 + 0x70]
cmp rsi, rax
je 0x1402a852b
movups xmm6, xmmword [rax]
movsd xmm7, qword [rax + 0x10]
xor ecx, ecx
mov qword [rax], rcx
mov qword [rax + 8], rcx
mov qword [rax + 0x10], rcx
call qword [sym.imp.api_ms_win_core_errorhandling_l1_1_0.dll_GetLastError]
mov ebx, eax
mov rcx, rsi
call fcn.1401ba484
mov ecx, ebx
call qword [sym.imp.api_ms_win_core_errorhandling_l1_1_0.dll_SetLastError]
movups xmmword [rsi], xmm6
movsd qword [rsi + 0x10], xmm7
lea rcx, [rbp + 0x20]
call fcn.1401ba484
nop
lea rcx, [rbp + 0x38]
call fcn.14004b500
nop
lea rcx, [rbp + 0x58]
call fcn.14004b500
nop
mov rcx, qword [rsp + 0x58]
lea rax, [rcx - 1]
cmp rax, 0xfffffffffffffffd
ja 0x1402a855e
call qword [sym.imp.api_ms_win_core_handle_l1_1_0.dll_CloseHandle]
mov edx, r12d
mov rcx, qword [rsi]
call qword [sym.imp.api_ms_win_core_synch_l1_1_0.dll_WaitForSingleObject]
mov ebx, eax
test r15b, r15b
je 0x1402a85bd
mov eax, 0x102
cmp ebx, eax
sete r15b
jne 0x1402a858e
mov rcx, qword [rsi]
test rcx, rcx
je 0x1402a858e
xor edx, edx
call qword [sym.imp.api_ms_win_core_processthreads_l1_1_0.dll_TerminateProcess]
mov rcx, qword [rbp + 0x198]
lea rax, str.Timeout_expired
mov qword [rsp + 0x28], rax
mov byte [rsp + 0x20], r15b
mov r9d, 0x80070102
lea r8, str.amcorewcd_sourcecommon_src_toolrunner.cpp
mov edx, 0x6d
call fcn.140075ecc
cmp ebx, 0xffffffff
sete al
mov rcx, qword [rbp + 0x198]
lea r8, str.Failed_to_wait_on_process_execution
mov qword [rsp + 0x20], r8
movzx r9d, al
lea r8, str.amcorewcd_sourcecommon_src_toolrunner.cpp
mov edx, WSACleanup
call fcn.1401d86f8
mov dword [rsp + 0x54], r13d
mov rcx, qword [rsi]
test rcx, rcx
je 0x1402a8603
lea rdx, [rsp + 0x54]
call qword [sym.imp.KERNEL32.dll_GetExitCodeProcess]
call fcn.14004acb4
mov r10, qword [rax + 8]
cmp dword [r10], 4
jbe 0x1402a86ec
lea rax, str.ToolRunner::Run___completed
mov qword [rbp + 0xa0], rax
mov qword [rbp + 0xa8], CreateCompressor
lea rax, [r14 + 0x18]
cmp qword [rax + 0x18], 8
jb 0x1402a863d
mov rax, qword [rax]
mov rdx, rdi
mov rcx, r13
test rax, rax
je 0x1402a8659
mov rdx, rax
or rcx, 0xffffffffffffffff
inc rcx
cmp word [rax + rcx*2], r13w
jne 0x1402a864f
mov qword [rbp + 0xb0], rdx
lea eax, [rcx*2 + 2]
mov dword [rbp + 0xb8], eax
mov dword [rbp + 0xbc], r13d
mov rcx, qword [r14 + 0x10]
mov rax, r13
test rcx, rcx
je 0x1402a8691
mov rdi, rcx
or rax, 0xffffffffffffffff
inc rax
cmp word [rcx + rax*2], r13w
jne 0x1402a8687
mov qword [rbp + 0xc0], rdi
lea eax, [rax*2 + 2]
mov dword [rbp + 0xc8], eax
mov dword [rbp + 0xcc], r13d
lea rax, [rsp + 0x54]
mov qword [rbp + 0xd0], rax
mov qword [rbp + 0xd8], 4
lea rax, [rbp + 0x80]
mov qword [rsp + 0x28], rax
mov dword [rsp + 0x20], 6
xor r9d, r9d
xor r8d, r8d
lea rdx, [0x1403a4193]
mov rcx, r10
call fcn.140001158
mov ebx, dword [rsp + 0x54]
lea rcx, [rbp - 0x78]
call fcn.14006c208
mov eax, ebx
mov rcx, qword [rbp + 0x130]
xor rcx, rsp
call fcn.1402ae860
lea r11, [rsp + 0x260]
mov rbx, qword [r11 + 0x50]
movaps xmm6, xmmword [r11 - 0x10]
movaps xmm7, xmmword [r11 - 0x20]
mov rsp, r11
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
ret
mov qword [rbp + 0x120], rdi
lea eax, [rax*2 + 2]
mov dword [rbp + 0x128], eax
mov dword [rbp + 0x12c], r13d
lea rax, [rbp + 0xe0]
mov qword [rsp + 0x28], rax
mov dword [rsp + 0x20], 5
xor r9d, r9d
xor r8d, r8d
lea rdx, [0x1403a414f]
call fcn.140001158
mov ecx, dword [rsp + 0x50]
call fcn.140045e78
mov r9d, eax
mov rcx, qword [rbp + 0x198]
lea rax, str.SetHandleInformation_failed_to_set_handlers_inheritable
mov qword [rsp + 0x20], rax
lea r8, str.amcorewcd_sourcecommon_src_toolrunner.cpp
mov edx, 0x56
call fcn.14004a5c0
int3