Function at 0x14000178c
Capabilities:
Check mutex and terminate process on windows
Check mutex on windows
Delete file
Terminate process

Disassembly:
mov qword [rsp + 0x20], rbx
push rbp
push rsi
push rdi
push r12
push r13
push r14
push r15
lea rbp, [rsp - 0xdb0]
sub rsp, 0xeb0
mov rax, qword [0x14000a010]
xor rax, rsp
mov qword [rbp + 0xda0], rax
mov r12, r8
mov byte [rsp + 0x20], 1
mov rbx, rcx
lea rsi, [0x140006e4c]
mov r9, r8
lea rcx, [rsp + 0x50]
xor r13d, r13d
mov r14d, 0x104
test rdx, rdx
cmovne rsi, rdx
mov edx, r14d
mov r8, rsi
call fcn.1400014a0
mov r9, r12
mov byte [rsp + 0x20], 1
lea r8, str.Pogo12.Mtx.
mov edx, r14d
lea rcx, [rbp + 0x370]
call fcn.1400014a0
mov r15d, 0x208
mov byte [rsp + 0x20], r13b
mov edx, r15d
lea r9, [rbp + 0x370]
mov r8, rsi
lea rcx, [rbp + 0x990]
call fcn.1400014a0
cmp byte [rbx + 4], r13b
je 0x14000184b
lea rcx, [rsp + 0x50]
call fcn.1400028cc
mov rdi, rax
test rax, rax
jne 0x1400018bc
lea r8, [rbp + 0x990]
xor edx, edx
mov ecx, 0x100000
call qword [sym.imp.api_ms_win_core_synch_l1_2_0.dll_OpenMutexW]
mov rdi, rax
test rax, rax
jne 0x1400018bc
call qword [sym.imp.api_ms_win_core_errorhandling_l1_1_1.dll_GetLastError]
cmp eax, 5
jne 0x140001890
lea r9, [rbp + 0x990]
mov r8d, 0x17b
lea rdx, str.D:_a_work1_s_src_vctoolsCompilerUtc_src_toolspogopogosweep_sweepdll.cpp
mov ecx, 0x40e
call fcn.1400059ec
xor al, al
mov rcx, qword [rbp + 0xda0]
xor rcx, rsp
call fcn.140002e50
mov rbx, qword [rsp + 0xf08]
add rsp, 0xeb0
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
ret
xor r8d, r8d
or edx, 0xffffffff
mov rcx, rdi
call qword [sym.imp.api_ms_win_core_synch_l1_2_0.dll_WaitForSingleObjectEx]
mov r9, r12
mov byte [rsp + 0x20], 1
lea r8, str.Pogo12.Mem.
mov rdx, r14
lea rcx, [rbp + 0x370]
call fcn.1400014a0
lea r9, [rbp + 0x370]
mov byte [rsp + 0x20], r13b
mov r8, rsi
lea rcx, [rbp + 0x580]
mov rdx, r15
call fcn.1400014a0
lea r14, str.D:_a_work1_s_src_vctoolsCompilerUtc_src_toolspogopogosweep_sweepdll.cpp
mov esi, 2
cmp byte [rbx + 4], r13b
je 0x14000192d
lea rcx, [rsp + 0x50]
call fcn.140002a48
mov qword [rsp + 0x30], rax
test rax, rax
jne 0x140001970
lea r8, [rbp + 0x580]
xor edx, edx
mov ecx, esi
call qword [sym.imp.api_ms_win_core_memory_l1_1_2.dll_OpenFileMappingW]
mov qword [rsp + 0x30], rax
test rax, rax
jne 0x140001970
mov rcx, rdi
call qword [sym.imp.api_ms_win_core_synch_l1_2_0.dll_ReleaseMutex]
lea r9, [rbp + 0x580]
mov r8d, 0x1a2
mov rdx, r14
mov ecx, 0x409
call fcn.1400059ec
mov rax, qword [rsp + 0x30]
mov qword [rsp + 0x28], r13
xor r9d, r9d
xor r8d, r8d
mov qword [rsp + 0x20], r13
mov edx, esi
mov rcx, rax
call qword [sym.imp.api_ms_win_core_memory_l1_1_2.dll_MapViewOfFileEx]
mov r15, rax
test rax, rax
jne 0x1400019b6
mov rcx, rdi
call qword [sym.imp.api_ms_win_core_synch_l1_2_0.dll_ReleaseMutex]
lea r9, [rbp + 0x580]
mov r8d, 0x1b0
mov rdx, r14
mov ecx, 0x409
call fcn.1400059ec
cmp byte [r15 + 0x51], r13b
jne 0x1400019db
mov rcx, rdi
call qword [sym.imp.api_ms_win_core_synch_l1_2_0.dll_ReleaseMutex]
mov r9, r12
mov r8d, 0x1b7
mov rdx, r14
mov ecx, 0x423
call fcn.1400059ec
cmp byte [rbx + 4], r13b
je 0x1400019fa
lea rdx, [rsp + 0x50]
lea rcx, str.Pogo14.Diff.
call fcn.140002720
mov r13, rax
test rax, rax
jne 0x140001a30
lea r9, [rsp + 0x50]
mov byte [rsp + 0x20], 1
lea r8, str.Pogo14.Diff.
mov edx, 0x104
lea rcx, [rbp + 0x160]
call fcn.1400014a0
lea r8, [rbp + 0x160]
xor edx, edx
mov ecx, esi
call qword [sym.imp.api_ms_win_core_synch_l1_2_0.dll_OpenEventW]
mov r13, rax
cmp byte [rbx + 4], 0
je 0x140001a4f
lea rdx, [rsp + 0x50]
lea rcx, str.Pogo14.DiffFin.
call fcn.140002720
mov rsi, rax
test rax, rax
jne 0x140001a88
lea r9, [rsp + 0x50]
mov byte [rsp + 0x20], 1
lea r8, str.Pogo14.DiffFin.
mov edx, 0x104
lea rcx, [rbp + 0x160]
call fcn.1400014a0
lea r8, [rbp + 0x160]
xor edx, edx
mov ecx, 0x100002
call qword [sym.imp.api_ms_win_core_synch_l1_2_0.dll_OpenEventW]
mov rsi, rax
cmp byte [rbx + 4], 0
je 0x140001aa7
lea rdx, [rsp + 0x50]
lea rcx, str.Pogo14.DiffClr.
call fcn.140002720
mov r12, rax
test rax, rax
jne 0x140001ade
lea r9, [rsp + 0x50]
mov byte [rsp + 0x20], 1
lea r8, str.Pogo14.DiffClr.
mov edx, 0x104
lea rcx, [rbp + 0x160]
call fcn.1400014a0
xor edx, edx
lea r8, [rbp + 0x160]
lea ecx, [rdx + 2]
call qword [sym.imp.api_ms_win_core_synch_l1_2_0.dll_OpenEventW]
mov r12, rax
cmp byte [rbx + 2], 0
jne 0x140001b2a
test rsi, rsi
je 0x140001b1e
and dword [r15 + 0x78], 0
mov rcx, rsi
call qword [sym.imp.api_ms_win_core_synch_l1_2_0.dll_ResetEvent]
mov rcx, r13
call qword [sym.imp.api_ms_win_core_kernel32_legacy_l1_1_1.dll_PulseEvent]
mov edx, 0x9c4
mov rcx, rsi
call qword [sym.imp.api_ms_win_core_synch_l1_2_0.dll_WaitForSingleObject]
cmp eax, 0x102
jne 0x140001b1e
mov rcx, rsi
call qword [sym.imp.api_ms_win_core_synch_l1_2_0.dll_SetEvent]
cmp byte [rbx + 2], 0
jne 0x140001b2a
cmp byte [rbx + 1], 0
je 0x140001b64
test rsi, rsi
je 0x140001b64
and dword [r15 + 0x78], 0
mov rcx, rsi
call qword [sym.imp.api_ms_win_core_synch_l1_2_0.dll_ResetEvent]
mov rcx, r12
call qword [sym.imp.api_ms_win_core_kernel32_legacy_l1_1_1.dll_PulseEvent]
mov edx, 0x9c4
mov rcx, rsi
call qword [sym.imp.api_ms_win_core_synch_l1_2_0.dll_WaitForSingleObject]
cmp eax, 0x102
jne 0x140001b64
mov rcx, rsi
call qword [sym.imp.api_ms_win_core_synch_l1_2_0.dll_SetEvent]
mov rcx, r13
call qword [sym.imp.api_ms_win_core_handle_l1_1_0.dll_CloseHandle]
mov rcx, rsi
call qword [sym.imp.api_ms_win_core_handle_l1_1_0.dll_CloseHandle]
mov rcx, r12
call qword [sym.imp.api_ms_win_core_handle_l1_1_0.dll_CloseHandle]
cmp byte [rbx + 3], 0
je 0x140001be1
mov r8d, dword [rbx + 8]
xor edx, edx
mov ecx, 0x100000
call qword [sym.imp.api_ms_win_core_processthreads_l1_1_2.dll_OpenProcess]
mov rsi, rax
test rax, rax
je 0x140001be1
mov ecx, 0x3a9b
call fcn.140005310
mov edx, dword [rbx + 8]
mov rcx, rax
call fcn.1400056f8
mov rcx, rdi
call qword [sym.imp.api_ms_win_core_synch_l1_2_0.dll_ReleaseMutex]
or r12d, 0xffffffff
mov rcx, rsi
mov edx, r12d
call qword [sym.imp.api_ms_win_core_synch_l1_2_0.dll_WaitForSingleObject]
mov edx, r12d
mov rcx, rdi
call qword [sym.imp.api_ms_win_core_synch_l1_2_0.dll_WaitForSingleObject]
mov rcx, rsi
call qword [sym.imp.api_ms_win_core_handle_l1_1_0.dll_CloseHandle]
xor esi, esi
xor r12d, r12d
cmp byte [rbx + 2], sil
jne 0x140001c7d
mov rcx, qword [rbx + 0x18]
lea r8d, [rsi + 0x10]
lea rdx, [0x140006eb0]
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll__wfsopen]
mov r12, rax
test rax, rax
jne 0x140001c2b
mov rcx, rdi
call qword [sym.imp.api_ms_win_core_synch_l1_2_0.dll_ReleaseMutex]
mov r9, qword [rbx + 0x18]
lea ecx, [rsi + 0x57]
mov r8d, 0x209
mov rdx, r14
call fcn.1400059ec
lea rcx, [rsp + 0x38]
call qword [sym.imp.api_ms_win_core_com_l1_1_1.dll_CoCreateGuid]
test eax, eax
je 0x140001c5a
mov rcx, rdi
call qword [sym.imp.api_ms_win_core_synch_l1_2_0.dll_ReleaseMutex]
mov r9, qword [rbx + 0x18]
mov r8d, 0x210
mov rdx, r14
mov ecx, 0x40b
call fcn.1400059ec
lea r9, [rsp + 0x38]
mov r8, r12
mov rdx, r15
mov rcx, rbx
call fcn.14000155c
mov rcx, r12
mov esi, eax
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fclose]
mov r12d, eax
jmp 0x140001c85
mov rcx, r15
call fcn.140005b84
mov rcx, rdi
call qword [sym.imp.api_ms_win_core_synch_l1_2_0.dll_ReleaseMutex]
sub esi, 1
je 0x140001cd8
cmp esi, 1
je 0x140001cd8
test r12d, r12d
je 0x140001cb4
mov r9, qword [rbx + 0x18]
mov r8d, 0x236
mov rdx, r14
mov ecx, 0x5b
call fcn.1400059ec
mov rcx, r15
call qword [sym.imp.api_ms_win_core_memory_l1_1_2.dll_UnmapViewOfFile]
mov rcx, qword [rsp + 0x30]
call qword [sym.imp.api_ms_win_core_handle_l1_1_0.dll_CloseHandle]
mov rcx, rdi
call qword [sym.imp.api_ms_win_core_handle_l1_1_0.dll_CloseHandle]
mov al, 1
jmp 0x140001892
mov ecx, 0x3a99
call fcn.140005310
mov rcx, rax
mov edx, 0x40f
call fcn.140003d44
mov rcx, qword [rbx + 0x18]
call qword [sym.imp.api_ms_win_crt_filesystem_l1_1_0.dll__wremove]
mov ecx, 1
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll_exit]
int3