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

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
sub esp, 0xec
xor eax, eax
lea ecx, [ebp - 0x6c]
mov dword [ecx + 4], eax
mov dword [ecx + 8], eax
mov dword [ecx + 0xc], eax
mov dword [esp], ecx
mov dword [esp + 4], 0x26
call fcn.00404190
mov ebx, eax
lea eax, [ebp - 0x44]
mov dword [eax + 0x1c], 0x51dfc0
mov dword [eax + 0x20], 0x523220
mov dword [eax + 0x24], ebp
mov dword [eax + 0x2c], esp
mov dword [eax + 0x24], 0x402c22
call fcn.0051ec29
test bl, bl
je 0x40286f
mov esi, dword [ebp - 0x68]
mov eax, 0x26
mov dword [esp + 8], eax
mov dword [esp], esi
mov dword [esp + 4], str.FF0E9B6C_EC9E_488C_9E67_85CA6316495F
call fcn.0050ddd0
lea eax, [esi + 0x26]
mov dword [ebp - 0x64], eax
jmp 0x402875
mov esi, dword [ebp - 0x68]
mov eax, dword [ebp - 0x64]
lea ecx, [ebp - 0xcc]
mov dword [ecx + 0x18], 7
mov dword [ecx + 0x14], 0
mov word [ecx + 4], 0
mov dword [ebp - 0x9c], eax
mov dword [ebp - 0xa0], esi
sub eax, esi
mov dword [ebp - 0x3c], 1
mov dword [esp + 4], eax
mov dword [esp], ecx
call fcn.004041f0
mov dword [ebp - 0x3c], 2
mov al, byte [ebp - 0x50]
mov byte [esp + 0xc], al
mov eax, dword [ebp - 0x9c]
mov dword [esp + 8], eax
mov eax, dword [ebp - 0xa0]
mov dword [esp + 4], eax
lea eax, [ebp - 0xcc]
mov dword [esp], eax
call fcn.00404234
lea eax, [ebp - 0xcc]
mov esi, eax
mov dword [esp + 4], esi
mov dword [esp], 0x527e14
call fcn.00402f18
mov dword [esp], esi
call fcn.00403b68
cmp dword [0x527e2c], 7
ja 0x402910
mov eax, 0x527e18
jmp 0x402915
mov eax, dword [0x527e18]
mov dword [ebp - 0x3c], 3
mov dword [esp + 8], eax
mov dword [esp + 4], 1
mov dword [esp], 0
call sub.KERNEL32.DLL_CreateMutexW
sub esp, 0xc
cmp eax, 0xffffffff
je 0x402953
mov dword [ebp - 0x3c], 4
call sub.KERNEL32.DLL_GetLastError
cmp eax, 0xb7
jne 0x402a04
mov dword [ebp - 0x3c], 0x1c
call sub.KERNEL32.DLL_GetCurrentProcessId
mov dword [ebp - 0xa4], eax
mov eax, dword [ebp - 0xa4]
mov dword [ebp - 0x3c], 0x1d
mov dword [esp + 8], eax
mov dword [esp + 4], 0
mov dword [esp], 0x100001
call sub.KERNEL32.DLL_OpenProcess
sub esp, 0xc
mov dword [ebp - 0xa8], eax
mov eax, dword [ebp - 0xa8]
mov dword [ebp - 0x3c], 0x1e
mov dword [esp], eax
mov dword [esp + 4], 0
call sub.KERNEL32.DLL_TerminateProcess
sub esp, 8
mov eax, dword [ebp - 0x68]
mov dword [ebp - 0x48], eax
cmp dword [ebp - 0x48], 0
je 0x4029eb
mov eax, dword [ebp - 0x48]
mov ecx, dword [ebp - 0x60]
sub ecx, eax
cmp ecx, 0x1000
mov eax, dword [ebp - 0x48]
jb 0x4029d8
mov eax, dword [ebp - 0x48]
mov eax, dword [eax - 4]
mov dword [esp], eax
call fcn.005040fc
xor eax, eax
mov dword [ebp - 0x68], eax
mov dword [ebp - 0x64], eax
mov dword [ebp - 0x60], eax
lea eax, [ebp - 0x44]
mov dword [esp], eax
call fcn.0051ec4a
xor eax, eax
inc eax
add esp, 0xec
pop esi
pop edi
pop ebx
pop ebp
ret
mov dword [ebp - 0x3c], 5
call fcn.0051ed1c
mov ecx, edx
mov dword [ebp - 0x78], 0xb2d05e00
mov dword [ebp - 0x74], 0
mov edx, 0x64
mul edx
mov esi, eax
imul eax, ecx, 0x64
add eax, edx
add esi, dword [ebp - 0x78]
adc eax, dword [ebp - 0x74]
xor edi, edi
add esi, 0x77359400
adc eax, edi
mov dword [esp + 0xc], edi
mov dword [esp], esi
mov dword [esp + 4], eax
mov dword [esp + 8], 0x3b9aca00
call fcn.0051652f
sub esp, 0x10
mov dword [ebp - 0xcc], eax
imul eax, eax, 0xc4653600
add eax, esi
mov dword [ebp - 0xc8], eax
mov dword [ebp - 0x3c], 6
mov dword [esp + 4], edi
lea eax, [ebp - 0xcc]
mov dword [esp], eax
call fcn.0051f548
mov dword [ebp - 0x3c], 7
call fcn.00426048
test al, al
je 0x402b55
mov dword [ebp - 0x3c], 0xb
mov dword [esp], 0x21c
call fcn.00506060
mov dword [ebp - 0x58], eax
mov eax, dword [ebp - 0x58]
mov dword [ebp - 0x3c], 0xc
mov dword [esp], eax
call fcn.00429028
mov eax, dword [ebp - 0x58]
mov dword [ebp - 0x3c], 0xd
mov dword [esp + 4], eax
mov dword [esp], 0x5319f4
call fcn.00402fe8
mov dword [ebp - 0x3c], 0xe
call fcn.0051ed1c
mov dword [ebp - 0x88], eax
mov dword [ebp - 0x84], edx
mov eax, 0x64
mul dword [ebp - 0x88]
mov esi, eax
imul eax, dword [ebp - 0x84], 0x64
mov ecx, 0x3b9aca00
add esi, ecx
adc eax, edx
xor edi, edi
mov dword [esp + 0xc], edi
mov dword [esp + 8], ecx
mov dword [esp], esi
mov dword [esp + 4], eax
call fcn.0051652f
sub esp, 0x10
lea ecx, [ebp - 0xd4]
mov dword [ecx], eax
imul eax, eax, 0xc4653600
add eax, esi
mov dword [ecx + 4], eax
mov dword [ebp - 0x3c], 0xf
mov dword [esp + 4], edi
mov dword [esp], ecx
call fcn.0051f548
jmp 0x402cff
mov dword [esp], 0x24
call fcn.0051cc4c
mov dword [ebp - 0x54], eax
mov eax, dword [ebp - 0x54]
mov ecx, 8
mov dword [ebp - 0x3c], ecx
mov dword [esp], eax
mov dword [esp + 4], 0x5231de
call fcn.0040339c
mov eax, dword [ebp - 0x54]
mov dword [ebp - 0x3c], 9
mov dword [esp], eax
mov dword [esp + 0xc], 0
mov dword [esp + 8], 0x402fc8
mov dword [esp + 4], 0x523480
call fcn.0051ccfc
mov eax, dword [ebp - 0x38]
mov esi, dword [ebp - 0x34]
mov dword [ebp - 0xac], eax
mov dword [ebp - 0xb0], esi
mov eax, dword [ebp - 0x68]
mov dword [ebp - 0x4c], eax
cmp dword [ebp - 0x4c], 0
je 0x402bf3
mov eax, dword [ebp - 0x4c]
mov ecx, dword [ebp - 0x60]
sub ecx, eax
cmp ecx, 0x1000
mov eax, dword [ebp - 0x4c]
jb 0x402be0
mov eax, dword [ebp - 0x4c]
mov eax, dword [eax - 4]
mov dword [esp], eax
call fcn.005040fc
xor eax, eax
mov dword [ebp - 0x68], eax
mov dword [ebp - 0x64], eax
mov dword [ebp - 0x60], eax
mov eax, dword [ebp - 0xac]
mov dword [ebp - 0x3c], 0xffffffff
mov dword [esp], eax
call fcn.0051ebc8
sub esp, 4
jmp 0x402ba9
mov eax, dword [0x5319f4]
cmp byte [eax + 0x219], 0
je 0x402db0
mov dword [ebp - 0x80], eax
mov eax, dword [ebp - 0x80]
cmp byte [eax + 0x21a], 0
jne 0x402e7c
mov eax, dword [ebp - 0x80]
cmp byte [eax + 0x21b], 0
jne 0x402e8d
mov dword [ebp - 0x3c], 0x17
call fcn.0051ed1c
mov dword [ebp - 0x98], eax
mov dword [ebp - 0x94], edx
mov eax, 0x64
mul dword [ebp - 0x98]
mov esi, eax
imul eax, dword [ebp - 0x94], 0x64
add eax, edx
add esi, dword [ebp - 0x78]
adc eax, dword [ebp - 0x74]
xor edi, edi
mov dword [esp + 0xc], edi
mov dword [esp], esi
mov dword [esp + 4], eax
mov dword [esp + 8], 0x3b9aca00
call fcn.0051652f
sub esp, 0x10
lea ecx, [ebp - 0xe4]
mov dword [ecx], eax
imul eax, eax, 0xc4653600
add eax, esi
mov dword [ecx + 4], eax
mov dword [ebp - 0x3c], 0x18
mov dword [esp + 4], edi
mov dword [esp], ecx
call fcn.0051f548
jmp 0x402cff
mov dword [ebp - 0x3c], 0x10
call fcn.0051ed1c
mov dword [ebp - 0x90], eax
mov dword [ebp - 0x8c], edx
mov eax, 0x64
mul dword [ebp - 0x90]
mov esi, eax
imul eax, dword [ebp - 0x8c], 0x64
mov ecx, 0x3b9aca00
add esi, ecx
adc eax, edx
xor edi, edi
mov dword [esp + 0xc], edi
mov dword [esp + 8], ecx
mov dword [esp], esi
mov dword [esp + 4], eax
call fcn.0051652f
sub esp, 0x10
lea ecx, [ebp - 0xdc]
mov dword [ecx], eax
imul eax, eax, 0xc4653600
add eax, esi
mov dword [ecx + 4], eax
mov dword [ebp - 0x3c], 0x11
mov dword [esp + 4], edi
mov dword [esp], ecx
call fcn.0051f548
mov dword [ebp - 0x3c], 0x12
call fcn.00424394
mov dword [ebp - 0x3c], 0x13
mov dword [esp], 0x21c
call fcn.00506060
mov dword [ebp - 0x5c], eax
mov eax, dword [ebp - 0x5c]
mov dword [ebp - 0x3c], 0x14
mov dword [esp], eax
call fcn.00429028
mov eax, dword [ebp - 0x5c]
mov dword [ebp - 0x3c], 0x15
mov dword [esp + 4], eax
mov dword [esp], 0x5319f4
call fcn.00402fe8
mov eax, dword [0x5319f4]
jmp 0x402d11
mov dword [ebp - 0x3c], 0x1a
call fcn.004248a4
jmp 0x402953
mov dword [ebp - 0x3c], 0x1b
call fcn.004248a0
jmp 0x402953