Function at 0x140272d8c
Capabilities:
Check if file exists
Create process on windows
Terminate process

Disassembly:
mov rax, rsp
push rbp
push rsi
push rdi
push r12
push r13
push r14
push r15
lea rbp, [rax - 0xd8]
sub rsp, 0x1a0
mov qword [rbp - 0x68], 0xfffffffffffffffe
mov qword [rax + 0x18], rbx
mov rax, qword [0x1403f04b0]
xor rax, rsp
mov qword [rbp + 0x90], rax
mov r12b, r8b
mov r14d, edx
mov r15, rcx
xor eax, eax
mov qword [rbp - 0x70], rax
mov dword [rbp - 0x80], DispGetParam
mov dword [rbp - 0x70], 1
xor r13d, r13d
mov qword [rbp - 0x78], r13
lea rsi, [rcx + 0x10]
mov rcx, rsi
cmp qword [rsi + 0x18], 8
jb 0x140272dfa
mov rcx, qword [rsi]
mov qword [rsp + 0x30], r13
mov dword [rsp + 0x28], 0x80
mov dword [rsp + 0x20], 2
lea r9, [rbp - 0x80]
xor r8d, r8d
mov edx, 0x40000000
call qword [sym.imp.api_ms_win_core_file_l1_1_0.dll_CreateFileW]
mov rdi, rax
mov qword [rbp - 0x60], rax
cmp rax, 0xffffffffffffffff
setne al
mov rcx, qword [rbp + 0xd8]
lea rdx, str.Failed_to_create_an_output_file
mov qword [rsp + 0x20], rdx
movzx r9d, al
lea rbx, str.amcorewcd_sourcecommon_src_toolrunner.cpp
mov r8, rbx
mov edx, 0x2e
call fcn.140059378
mov dword [rsp + 0x50], r13d
mov eax, 1
mov r8d, eax
mov edx, eax
mov rcx, rdi
call qword [sym.imp.api_ms_win_core_handle_l1_1_0.dll_SetHandleInformation]
test eax, eax
jne 0x140272f58
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.140048a14
mov r10, qword [rax + 8]
cmp dword [r10], 2
jbe 0x140272f2b
lea rax, [rsp + 0x50]
mov qword [rbp + 0x50], rax
mov qword [rbp + 0x58], 4
lea rax, str.ToolRunner::Run___CreateFileW_failed
mov qword [rbp + 0x60], rax
mov qword [rbp + 0x68], 0x25
cmp qword [rsi + 0x18], 8
jb 0x140272ed3
mov rsi, qword [rsi]
lea rcx, [0x1402cb810]
mov rax, r13
test rsi, rsi
je 0x140272ef3
mov rcx, rsi
or rax, 0xffffffffffffffff
inc rax
cmp word [rsi + rax*2], r13w
jne 0x140272ee9
mov qword [rbp + 0x70], rcx
lea eax, [rax*2 + 2]
mov dword [rbp + 0x78], eax
mov dword [rbp + 0x7c], r13d
lea rax, [rbp + 0x30]
mov qword [rsp + 0x28], rax
mov dword [rsp + 0x20], 5
xor r9d, r9d
xor r8d, r8d
lea rdx, [0x140354320]
mov rcx, r10
call fcn.140001078
mov ecx, dword [rsp + 0x50]
call fcn.1400443b8
mov r9d, eax
mov rcx, qword [rbp + 0xd8]
lea rax, str.SetHandleInformation_failed_to_set_handlers_inheritable
mov qword [rsp + 0x20], rax
mov r8, rbx
mov edx, 0x38
call fcn.140048380
int3
mov qword [rsp + 0x58], r13
lea r9, [rsp + 0x58]
xor r8d, r8d
lea edx, [r8 + 1]
xor ecx, ecx
call qword [sym.imp.api_ms_win_core_processthreads_l1_1_0.dll_InitializeProcThreadAttributeList]
mov rcx, qword [rsp + 0x58]
test rcx, rcx
jne 0x140273019
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.140048a14
mov rcx, qword [rax + 8]
cmp dword [rcx], 2
jbe 0x140272fec
lea rax, [rsp + 0x50]
mov qword [rbp + 0x50], rax
mov qword [rbp + 0x58], 4
lea rax, str.ToolRunner::Run___InitializeProcThreadAttributeList_failed_to_return_size
mov qword [rbp + 0x60], rax
mov qword [rbp + 0x68], VarR8FromUI1
lea rax, [rbp + 0x30]
mov qword [rsp + 0x28], rax
mov dword [rsp + 0x20], 4
xor r9d, r9d
xor r8d, r8d
lea rdx, [0x140351477]
call fcn.140001078
mov ecx, dword [rsp + 0x50]
call fcn.1400443b8
mov r9d, eax
mov rcx, qword [rbp + 0xd8]
lea rax, str.InitializeProcThreadAttributeList_failed_to_return_size
mov qword [rsp + 0x20], rax
mov r8, rbx
mov edx, 0x46
call fcn.140048380
int3
call fcn.1402803c0
mov rbx, rax
mov qword [rbp - 0x58], rax
mov qword [rbp - 0x50], rax
lea r9, [rsp + 0x58]
xor r8d, r8d
lea edx, [r8 + 1]
mov rcx, rax
call qword [sym.imp.api_ms_win_core_processthreads_l1_1_0.dll_InitializeProcThreadAttributeList]
test eax, eax
jne 0x1402730e4
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.140048a14
mov rcx, qword [rax + 8]
cmp dword [rcx], 2
jbe 0x1402730b3
lea rax, [rsp + 0x50]
mov qword [rbp + 0x50], rax
mov qword [rbp + 0x58], 4
lea rax, str.ToolRunner::Run___InitializeProcThreadAttributeList_failed
mov qword [rbp + 0x60], rax
mov qword [rbp + 0x68], 0x3b
lea rax, [rbp + 0x30]
mov qword [rsp + 0x28], rax
mov dword [rsp + 0x20], 4
xor r9d, r9d
xor r8d, r8d
lea rdx, [0x140351477]
call fcn.140001078
mov ecx, dword [rsp + 0x50]
call fcn.1400443b8
mov r9d, eax
mov rcx, qword [rbp + 0xd8]
lea rax, str.InitializeProcThreadAttributeList_failed
mov qword [rsp + 0x20], rax
lea r8, str.amcorewcd_sourcecommon_src_toolrunner.cpp
mov edx, 0x55
call fcn.140048380
int3
mov qword [rsp + 0x78], rdi
mov qword [rsp + 0x30], r13
mov qword [rsp + 0x28], r13
mov qword [rsp + 0x20], 8
lea r9, [rsp + 0x78]
xor edx, edx
mov r8d, 0x20002
mov rcx, rbx
call qword [sym.imp.api_ms_win_core_processthreads_l1_1_0.dll_UpdateProcThreadAttribute]
test eax, eax
jne 0x1402731b8
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.140048a14
mov rcx, qword [rax + 8]
cmp dword [rcx], 2
jbe 0x140273187
lea rax, [rsp + 0x50]
mov qword [rbp + 0x50], rax
mov qword [rbp + 0x58], 4
lea rax, str.ToolRunner::Run___UpdateProcThreadAttribute_failed
mov qword [rbp + 0x60], rax
mov qword [rbp + 0x68], 0x33
lea rax, [rbp + 0x30]
mov qword [rsp + 0x28], rax
mov dword [rsp + 0x20], 4
xor r9d, r9d
xor r8d, r8d
lea rdx, [0x140351477]
call fcn.140001078
mov ecx, dword [rsp + 0x50]
call fcn.1400443b8
mov r9d, eax
mov rcx, qword [rbp + 0xd8]
lea rax, str.UpdateProcThreadAttribute_failed
mov qword [rsp + 0x20], rax
lea r8, str.amcorewcd_sourcecommon_src_toolrunner.cpp
mov edx, 0x67
call fcn.140048380
int3
xor edx, edx
lea r8d, [rdx + 0x68]
lea rcx, [rbp - 0x38]
call sub.api_ms_win_crt_private_l1_1_0.dll__o_memset
mov dword [rbp - 0x40], WSACleanup
mov qword [rbp + 0x28], rbx
mov dword [rbp - 4], pe_nt_image_headers64
mov qword [rbp + 0x10], r13
mov qword [rbp + 0x18], rdi
mov qword [rbp + 0x20], rdi
xor eax, eax
mov qword [rsp + 0x60], rax
mov qword [rsp + 0x68], rax
mov qword [rsp + 0x70], rax
lea rax, [rsp + 0x60]
mov qword [rsp + 0x48], rax
lea rax, [rbp - 0x40]
mov qword [rsp + 0x40], rax
mov qword [rsp + 0x38], r13
mov qword [rsp + 0x30], r13
mov dword [rsp + 0x28], 0x8080020
mov dword [rsp + 0x20], 1
xor r9d, r9d
xor r8d, r8d
mov rdx, qword [r15 + 8]
xor ecx, ecx
call qword [sym.imp.api_ms_win_core_processthreads_l1_1_0.dll_CreateProcessW]
test eax, eax
setne al
mov rcx, qword [rbp + 0xd8]
lea rdx, str.Failed_to_create_a_process
mov qword [rsp + 0x20], rdx
movzx r9d, al
lea r8, str.amcorewcd_sourcecommon_src_toolrunner.cpp
mov edx, 0x84
call fcn.140059378
mov edx, r14d
mov rcx, qword [rsp + 0x60]
call qword [sym.imp.api_ms_win_core_synch_l1_1_0.dll_WaitForSingleObject]
mov r14d, eax
test r12b, r12b
je 0x1402732c5
mov eax, 0x102
cmp r14d, eax
sete r12b
cmp r14d, eax
jne 0x140273296
xor edx, edx
mov rcx, qword [rsp + 0x60]
call qword [sym.imp.api_ms_win_core_processthreads_l1_1_0.dll_TerminateProcess]
mov rcx, qword [rbp + 0xd8]
lea rax, str.Timeout_expired
mov qword [rsp + 0x28], rax
mov byte [rsp + 0x20], r12b
mov r9d, 0x80070102
lea r8, str.amcorewcd_sourcecommon_src_toolrunner.cpp
mov edx, 0x90
call fcn.1400796d0
cmp r14d, 0xffffffff
sete al
mov rcx, qword [rbp + 0xd8]
lea rdx, str.Failed_to_wait_on_process_execution
mov qword [rsp + 0x20], rdx
movzx r9d, al
lea r8, str.amcorewcd_sourcecommon_src_toolrunner.cpp
mov edx, 0x93
call fcn.1401ba5c0
mov dword [rsp + 0x54], r13d
lea rdx, [rsp + 0x54]
mov rcx, qword [rsp + 0x60]
call qword [sym.imp.api_ms_win_core_processthreads_l1_1_0.dll_GetExitCodeProcess]
call fcn.140048a14
mov r10, qword [rax + 8]
cmp dword [r10], 4
jbe 0x1402733da
lea rax, str.ToolRunner::Run___completed
mov qword [rbp + 0x50], rax
mov qword [rbp + 0x58], SetCompressorInformation
cmp qword [rsi + 0x18], 8
jb 0x140273339
mov rsi, qword [rsi]
lea rcx, [0x1402cb810]
mov rdx, rcx
mov rax, r13
test rsi, rsi
je 0x14027335c
mov rdx, rsi
or rax, 0xffffffffffffffff
inc rax
cmp word [rsi + rax*2], r13w
jne 0x140273352
mov qword [rbp + 0x60], rdx
lea eax, [rax*2 + 2]
mov dword [rbp + 0x68], eax
mov dword [rbp + 0x6c], r13d
mov rdx, qword [r15 + 8]
mov rax, r13
test rdx, rdx
je 0x14027338b
mov rcx, rdx
or rax, 0xffffffffffffffff
inc rax
cmp word [rdx + rax*2], r13w
jne 0x140273381
mov qword [rbp + 0x70], rcx
lea eax, [rax*2 + 2]
mov dword [rbp + 0x78], eax
mov dword [rbp + 0x7c], r13d
lea rax, [rsp + 0x54]
mov qword [rbp + 0x80], rax
mov qword [rbp + 0x88], 4
lea rax, [rbp + 0x30]
mov qword [rsp + 0x28], rax
mov dword [rsp + 0x20], 6
xor r9d, r9d
xor r8d, r8d
lea rdx, [0x140354364]
mov rcx, r10
call fcn.140001078
mov esi, dword [rsp + 0x54]
mov rcx, qword [rsp + 0x60]
test rcx, rcx
je 0x140273404
call qword [sym.imp.api_ms_win_core_handle_l1_1_0.dll_CloseHandle]
mov rcx, qword [rbp + 0xd8]
test eax, eax
jne 0x140273404
mov edx, 0x878
call fcn.140042fac
int3
mov rcx, qword [rsp + 0x68]
test rcx, rcx
je 0x14027342a
call qword [sym.imp.api_ms_win_core_handle_l1_1_0.dll_CloseHandle]
mov rcx, qword [rbp + 0xd8]
test eax, eax
jne 0x14027342a
mov edx, 0x878
call fcn.140042fac
nop
test rbx, rbx
je 0x140273439
mov rcx, rbx
call qword [sym.imp.api_ms_win_core_processthreads_l1_1_0.dll_DeleteProcThreadAttributeList]
nop
test rbx, rbx
je 0x140273453
call qword [sym.imp.api_ms_win_core_heap_l1_1_0.dll_GetProcessHeap]
mov rcx, rax
mov r8, rbx
xor edx, edx
call qword [sym.imp.api_ms_win_core_heap_l1_1_0.dll_HeapFree]
nop
lea rcx, [rdi - 1]
cmp rcx, 0xfffffffffffffffd
ja 0x140273466
mov rcx, rdi
call qword [sym.imp.api_ms_win_core_handle_l1_1_0.dll_CloseHandle]
mov eax, esi
mov rcx, qword [rbp + 0x90]
xor rcx, rsp
call fcn.14027a710
mov rbx, qword [rsp + 0x1f0]
add rsp, 0x1a0
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
ret