Function at 0x1402d8f1c
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 [0x14049e510]
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.14006f314
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], WSAStartup
mov dword [rbp - 0x14], pe_nt_image_headers64
xorps xmm0, xmm0
movdqa xmmword [rbp], xmm0
mov qword [rbp + 0x10], r13
or rsi, 0xffffffffffffffff
cmp qword [r14 + 0x28], r13
je 0x1402d9181
xor eax, eax
mov qword [rsp + 0x70], rax
mov qword [rbp - 0x80], rax
mov dword [rsp + 0x70], DispGetParam
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 0x1402d8fe2
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.1401c8a30
nop
mov rax, qword [rsp + 0x60]
test rax, rax
je 0x1402d9027
mov rax, qword [rax]
jmp 0x1402d902a
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.140062740
mov rcx, qword [rsp + 0x60]
test rcx, rcx
je 0x1402d9067
mov rcx, qword [rcx]
jmp 0x1402d906a
mov rcx, r13
mov r8d, edi
mov edx, edi
call qword [sym.imp.KERNEL32.dll_SetHandleInformation]
test eax, eax
jne 0x1402d910a
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.14004d8a4
mov rcx, qword [rax + 8]
cmp dword [rcx], 2
jbe 0x1402d9490
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], MsiGetActiveDatabase
cmp qword [rbx + 0x18], 8
jb 0x1402d90e1
mov rbx, qword [rbx]
lea rdi, [0x140344690]
mov rax, r13
test rbx, rbx
je 0x1402d944f
mov rdi, rbx
mov rax, rsi
inc rax
cmp word [rbx + rax*2], r13w
je 0x1402d944f
jmp 0x1402d90fa
mov rcx, qword [rsp + 0x60]
test rcx, rcx
je 0x1402d911d
mov rax, qword [rcx]
mov qword [rbp + 8], rax
jmp 0x1402d9121
mov qword [rbp + 8], r13
test rcx, rcx
je 0x1402d912f
mov rax, qword [rcx]
mov qword [rbp + 0x10], rax
jmp 0x1402d9133
mov qword [rbp + 0x10], r13
lea rdx, [rsp + 0x60]
lea rcx, [rbp - 0x78]
call fcn.1401c7c94
nop
mov rbx, qword [rsp + 0x68]
test rbx, rbx
je 0x1402d9181
mov eax, esi
lock xadd dword [rbx + 8], eax
add eax, esi
jne 0x1402d9181
mov rax, qword [rbx]
mov rcx, rbx
mov rax, qword [rax]
call qword [case.0x140245398.0]
mov eax, esi
lock xadd dword [rbx + 0xc], eax
add eax, esi
jne 0x1402d9181
mov rax, qword [rbx]
mov rcx, rbx
mov rax, qword [rax + 8]
call qword [case.0x140245398.0]
mov qword [rsp + 0x58], r13
movdqa xmm0, xmmword [0x14038ac40]
movdqu xmmword [rbp + 0x68], xmm0
mov word [rbp + 0x58], r13w
mov rdx, qword [r14 + 0x10]
lea rcx, [rbp + 0x58]
call fcn.14004d5c4
nop
movdqa xmm0, xmmword [0x14038ac40]
movdqu xmmword [rbp + 0x48], xmm0
mov word [rbp + 0x38], r13w
lea rdi, [0x140344690]
mov rdx, rdi
lea rcx, [rbp + 0x38]
call fcn.14004d5c4
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.1401f3378
lea rsi, [r14 + 0x70]
cmp rsi, rax
je 0x1402d924b
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.1401ca054
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.1401ca054
nop
lea rcx, [rbp + 0x38]
call fcn.14004e0f0
nop
lea rcx, [rbp + 0x58]
call fcn.14004e0f0
nop
mov rcx, qword [rsp + 0x58]
lea rax, [rcx - 1]
cmp rax, 0xfffffffffffffffd
ja 0x1402d927e
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 0x1402d92dd
mov eax, 0x102
cmp ebx, eax
sete r15b
jne 0x1402d92ae
mov rcx, qword [rsi]
test rcx, rcx
je 0x1402d92ae
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.14007936c
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, WSAStartup
call fcn.1401e95b8
mov dword [rsp + 0x54], r13d
mov rcx, qword [rsi]
test rcx, rcx
je 0x1402d9323
lea rdx, [rsp + 0x54]
call qword [sym.imp.KERNEL32.dll_GetExitCodeProcess]
call fcn.14004d8a4
mov r10, qword [rax + 8]
cmp dword [r10], 4
jbe 0x1402d940c
lea rax, str.ToolRunner::Run___completed
mov qword [rbp + 0xa0], rax
mov qword [rbp + 0xa8], Compress
lea rax, [r14 + 0x18]
cmp qword [rax + 0x18], 8
jb 0x1402d935d
mov rax, qword [rax]
mov rdx, rdi
mov rcx, r13
test rax, rax
je 0x1402d9379
mov rdx, rax
or rcx, 0xffffffffffffffff
inc rcx
cmp word [rax + rcx*2], r13w
jne 0x1402d936f
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 0x1402d93b1
mov rdi, rcx
or rax, 0xffffffffffffffff
inc rax
cmp word [rcx + rax*2], r13w
jne 0x1402d93a7
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, [0x1403e6e3b]
mov rcx, r10
call fcn.140001158
mov ebx, dword [rsp + 0x54]
lea rcx, [rbp - 0x78]
call fcn.14006f548
mov eax, ebx
mov rcx, qword [rbp + 0x130]
xor rcx, rsp
call fcn.1402dfdb0
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, [0x1403e6df7]
call fcn.140001158
mov ecx, dword [rsp + 0x50]
call fcn.140048a6c
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.14004d1a0
int3