Function at 0x140001784
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 [0x140009010]
xor rax, rsp
mov qword [rbp + 0xda0], rax
mov r12, r8
mov byte [rsp + 0x20], 1
mov rbx, rcx
lea rsi, [0x140006c9c]
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.140001498
mov r9, r12
mov byte [rsp + 0x20], 1
lea r8, str.Pogo12.Mtx.
mov edx, r14d
lea rcx, [rbp + 0x370]
call fcn.140001498
mov r15d, 0x208
mov byte [rsp + 0x20], r13b
mov edx, r15d
lea r9, [rbp + 0x370]
mov r8, rsi
lea rcx, [rbp + 0x990]
call fcn.140001498
cmp byte [rbx + 4], r13b
je 0x140001843
lea rcx, [rsp + 0x50]
call fcn.1400028c4
mov rdi, rax
test rax, rax
jne 0x1400018b4
lea r8, [rbp + 0x990]
xor edx, edx
mov ecx, 0x100000
call qword [sym.imp.KERNEL32.dll_OpenMutexW]
mov rdi, rax
test rax, rax
jne 0x1400018b4
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 5
jne 0x140001888
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.1400059ac
xor al, al
mov rcx, qword [rbp + 0xda0]
xor rcx, rsp
call fcn.140002e40
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.KERNEL32.dll_WaitForSingleObjectEx]
mov r9, r12
mov byte [rsp + 0x20], 1
lea r8, str.Pogo12.Mem.
mov rdx, r14
lea rcx, [rbp + 0x370]
call fcn.140001498
lea r9, [rbp + 0x370]
mov byte [rsp + 0x20], r13b
mov r8, rsi
lea rcx, [rbp + 0x580]
mov rdx, r15
call fcn.140001498
lea r14, str.D:_a_work1_s_src_vctoolsCompilerUtc_src_toolspogopogosweep_sweepdll.cpp
mov esi, 2
cmp byte [rbx + 4], r13b
je 0x140001925
lea rcx, [rsp + 0x50]
call fcn.140002a40
mov qword [rsp + 0x30], rax
test rax, rax
jne 0x140001968
lea r8, [rbp + 0x580]
xor edx, edx
mov ecx, esi
call qword [sym.imp.KERNEL32.dll_OpenFileMappingW]
mov qword [rsp + 0x30], rax
test rax, rax
jne 0x140001968
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_ReleaseMutex]
lea r9, [rbp + 0x580]
mov r8d, 0x1a2
mov rdx, r14
mov ecx, 0x409
call fcn.1400059ac
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.KERNEL32.dll_MapViewOfFileEx]
mov r15, rax
test rax, rax
jne 0x1400019ae
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_ReleaseMutex]
lea r9, [rbp + 0x580]
mov r8d, 0x1b0
mov rdx, r14
mov ecx, 0x409
call fcn.1400059ac
cmp byte [r15 + 0x51], r13b
jne 0x1400019d3
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_ReleaseMutex]
mov r9, r12
mov r8d, 0x1b7
mov rdx, r14
mov ecx, 0x423
call fcn.1400059ac
cmp byte [rbx + 4], r13b
je 0x1400019f2
lea rdx, [rsp + 0x50]
lea rcx, str.Pogo14.Diff.
call fcn.140002718
mov r13, rax
test rax, rax
jne 0x140001a28
lea r9, [rsp + 0x50]
mov byte [rsp + 0x20], 1
lea r8, str.Pogo14.Diff.
mov edx, 0x104
lea rcx, [rbp + 0x160]
call fcn.140001498
lea r8, [rbp + 0x160]
xor edx, edx
mov ecx, esi
call qword [sym.imp.KERNEL32.dll_OpenEventW]
mov r13, rax
cmp byte [rbx + 4], 0
je 0x140001a47
lea rdx, [rsp + 0x50]
lea rcx, str.Pogo14.DiffFin.
call fcn.140002718
mov rsi, rax
test rax, rax
jne 0x140001a80
lea r9, [rsp + 0x50]
mov byte [rsp + 0x20], 1
lea r8, str.Pogo14.DiffFin.
mov edx, 0x104
lea rcx, [rbp + 0x160]
call fcn.140001498
lea r8, [rbp + 0x160]
xor edx, edx
mov ecx, 0x100002
call qword [sym.imp.KERNEL32.dll_OpenEventW]
mov rsi, rax
cmp byte [rbx + 4], 0
je 0x140001a9f
lea rdx, [rsp + 0x50]
lea rcx, str.Pogo14.DiffClr.
call fcn.140002718
mov r12, rax
test rax, rax
jne 0x140001ad6
lea r9, [rsp + 0x50]
mov byte [rsp + 0x20], 1
lea r8, str.Pogo14.DiffClr.
mov edx, 0x104
lea rcx, [rbp + 0x160]
call fcn.140001498
xor edx, edx
lea r8, [rbp + 0x160]
lea ecx, [rdx + 2]
call qword [sym.imp.KERNEL32.dll_OpenEventW]
mov r12, rax
cmp byte [rbx + 2], 0
jne 0x140001b22
test rsi, rsi
je 0x140001b16
and dword [r15 + 0x78], 0
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_ResetEvent]
mov rcx, r13
call qword [sym.imp.KERNEL32.dll_PulseEvent]
mov edx, 0x9c4
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_WaitForSingleObject]
cmp eax, 0x102
jne 0x140001b16
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_SetEvent]
cmp byte [rbx + 2], 0
jne 0x140001b22
cmp byte [rbx + 1], 0
je 0x140001b5c
test rsi, rsi
je 0x140001b5c
and dword [r15 + 0x78], 0
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_ResetEvent]
mov rcx, r12
call qword [sym.imp.KERNEL32.dll_PulseEvent]
mov edx, 0x9c4
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_WaitForSingleObject]
cmp eax, 0x102
jne 0x140001b5c
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_SetEvent]
mov rcx, r13
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rcx, r12
call qword [sym.imp.KERNEL32.dll_CloseHandle]
cmp byte [rbx + 3], 0
je 0x140001bd9
mov r8d, dword [rbx + 8]
xor edx, edx
mov ecx, 0x100000
call qword [sym.imp.KERNEL32.dll_OpenProcess]
mov rsi, rax
test rax, rax
je 0x140001bd9
mov ecx, 0x3a9b
call fcn.1400052d0
mov edx, dword [rbx + 8]
mov rcx, rax
call fcn.1400056b8
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_ReleaseMutex]
or r12d, 0xffffffff
mov rcx, rsi
mov edx, r12d
call qword [sym.imp.KERNEL32.dll_WaitForSingleObject]
mov edx, r12d
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_WaitForSingleObject]
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_CloseHandle]
xor esi, esi
xor r12d, r12d
cmp byte [rbx + 2], sil
jne 0x140001c75
mov rcx, qword [rbx + 0x18]
lea r8d, [rsi + 0x10]
lea rdx, [0x140006d00]
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll__wfsopen]
mov r12, rax
test rax, rax
jne 0x140001c23
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_ReleaseMutex]
mov r9, qword [rbx + 0x18]
lea ecx, [rsi + 0x57]
mov r8d, 0x209
mov rdx, r14
call fcn.1400059ac
lea rcx, [rsp + 0x38]
call qword [sym.imp.ole32.dll_CoCreateGuid]
test eax, eax
je 0x140001c52
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_ReleaseMutex]
mov r9, qword [rbx + 0x18]
mov r8d, 0x210
mov rdx, r14
mov ecx, 0x40b
call fcn.1400059ac
lea r9, [rsp + 0x38]
mov r8, r12
mov rdx, r15
mov rcx, rbx
call fcn.140001554
mov rcx, r12
mov esi, eax
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fclose]
mov r12d, eax
jmp 0x140001c7d
mov rcx, r15
call fcn.140005b44
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_ReleaseMutex]
sub esi, 1
je 0x140001cd0
cmp esi, 1
je 0x140001cd0
test r12d, r12d
je 0x140001cac
mov r9, qword [rbx + 0x18]
mov r8d, 0x236
mov rdx, r14
mov ecx, 0x5b
call fcn.1400059ac
mov rcx, r15
call qword [sym.imp.KERNEL32.dll_UnmapViewOfFile]
mov rcx, qword [rsp + 0x30]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov al, 1
jmp 0x14000188a
mov ecx, 0x3a99
call fcn.1400052d0
mov rcx, rax
mov edx, 0x40f
call fcn.140003d30
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