Function at 0x4070c0
Capabilities:
Check mutex and terminate process on windows
Check mutex on windows
Terminate process
Terminate thread

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x24
mov dword [ebp - 4], ecx
mov eax, dword [ebp - 4]
mov ecx, dword [eax + 0x4c]
push ecx
push 0x43a05c
push 0
push 0
call fcn.00407960
add esp, 0x10
mov dword [ebp - 0x18], eax
mov edx, dword [ebp - 0x18]
add edx, 1
push edx
call fcn.004168a6
add esp, 4
mov dword [ebp - 0x1c], eax
mov eax, dword [ebp - 0x1c]
mov dword [ebp - 0x10], eax
mov ecx, dword [ebp - 4]
mov edx, dword [ecx + 0x4c]
push edx
push 0x43a068
mov eax, dword [ebp - 0x10]
push eax
call fcn.00407a20
add esp, 0xc
mov ecx, dword [ebp - 4]
movzx edx, byte [ecx + 0x30]
test edx, edx
jne 0x40728a
mov eax, dword [ebp - 0x10]
push eax
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateMutexA]
mov dword [ebp - 8], eax
cmp dword [ebp - 8], 0
je 0x40720d
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp - 0x14], eax
cmp dword [ebp - 0x14], 0xb7
je 0x407156
cmp dword [ebp - 0x14], 5
jne 0x407182
mov ecx, dword [ebp - 4]
cmp dword [ecx + 0x5c], 0
je 0x407180
mov edx, dword [ebp - 4]
cmp dword [edx + 0x48], 0
je 0x407180
mov eax, dword [ebp - 4]
mov ecx, dword [eax + 0x48]
push ecx
push 0x43a074
mov edx, dword [ebp - 4]
push edx
call fcn.00406cc0
add esp, 0xc
jmp 0x4071f7
push 0x43a084
mov eax, dword [ebp - 4]
mov ecx, dword [eax + 0x48]
push ecx
call fcn.00407940
add esp, 8
test eax, eax
je 0x4071c6
mov edx, dword [ebp - 4]
cmp dword [edx + 0x5c], 0
je 0x4071c4
mov eax, dword [ebp - 4]
cmp dword [eax + 0x48], 0
je 0x4071c4
mov ecx, dword [ebp - 4]
mov edx, dword [ecx + 0x48]
push edx
push 0x43a094
mov eax, dword [ebp - 4]
push eax
call fcn.00406cc0
add esp, 0xc
jmp 0x4071f7
mov ecx, dword [ebp - 4]
mov edx, dword [ecx + 0x48]
push edx
push 0x43a0a8
mov eax, dword [ebp - 4]
push eax
call fcn.00406cc0
add esp, 0xc
mov ecx, dword [ebp - 8]
push ecx
call dword [sym.imp.KERNEL32.dll_ReleaseMutex]
mov edx, dword [ebp - 8]
push edx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
jmp 0x40728a
mov eax, dword [ebp - 8]
push eax
call dword [sym.imp.KERNEL32.dll_ReleaseMutex]
mov ecx, dword [ebp - 8]
push ecx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
jmp 0x40727a
push 0x43a118
mov edx, dword [ebp - 4]
mov eax, dword [edx + 0x48]
push eax
call fcn.00407940
add esp, 8
test eax, eax
jne 0x407234
mov ecx, dword [ebp - 4]
call fcn.00407460
movzx ecx, al
test ecx, ecx
je 0x407260
mov edx, dword [ebp - 4]
cmp dword [edx + 0x5c], 0
je 0x40725e
mov eax, dword [ebp - 4]
cmp dword [eax + 0x48], 0
je 0x40725e
mov ecx, dword [ebp - 4]
mov edx, dword [ecx + 0x48]
push edx
push 0x43a128
mov eax, dword [ebp - 4]
push eax
call fcn.00406cc0
add esp, 0xc
jmp 0x40727a
mov ecx, dword [ebp - 4]
mov edx, dword [ecx + 0x48]
push edx
push 0x43a138
mov eax, dword [ebp - 4]
push eax
call fcn.00406cc0
add esp, 0xc
jmp 0x40728a
push 0x7d0
call dword [sym.imp.KERNEL32.dll_Sleep]
jmp 0x407114
mov ecx, dword [ebp - 4]
mov edx, dword [ecx + 0x48]
push edx
push 0x43a194
mov eax, dword [ebp - 4]
push eax
call fcn.00406cc0
add esp, 0xc
mov ecx, dword [ebp - 4]
movzx edx, byte [ecx + 0x30]
test edx, edx
jne 0x407346
mov eax, dword [ebp - 4]
mov ecx, dword [eax + 0x48]
push ecx
push 0x43a1b8
mov edx, dword [ebp - 4]
push edx
call fcn.00406cc0
add esp, 0xc
mov eax, dword [ebp - 4]
movzx ecx, byte [eax + 0x58]
test ecx, ecx
jne 0x4072f6
push 0x43a1e0
mov edx, dword [ebp - 4]
push edx
call fcn.00406cc0
add esp, 8
push 0
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call dword [sym.imp.KERNEL32.dll_TerminateProcess]
jmp 0x407346
push 0x43a1f8
mov eax, dword [ebp - 4]
push eax
call fcn.00406cc0
add esp, 8
mov ecx, dword [ebp - 4]
add ecx, 0x3c
call fcn.00407910
mov dword [ebp - 0xc], eax
mov ecx, dword [ebp - 0xc]
mov dword [ebp - 0x20], ecx
mov edx, dword [ebp - 0xc]
sub edx, 1
mov dword [ebp - 0xc], edx
cmp dword [ebp - 0x20], 0
jbe 0x407346
push 0
mov eax, dword [ebp - 0xc]
push eax
mov ecx, dword [ebp - 4]
add ecx, 0x3c
call fcn.00407800
mov ecx, dword [eax]
push ecx
call dword [sym.imp.KERNEL32.dll_TerminateThread]
jmp 0x407315
mov edx, dword [ebp - 0x10]
mov dword [ebp - 0x24], edx
push 1
mov eax, dword [ebp - 0x24]
push eax
call fcn.00416898
add esp, 8
mov esp, ebp
pop ebp
ret