Function at 0x413dcb
Capabilities:
Check mutex on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x427a48
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
mov eax, 0x9e9c
call fcn.00426f20
push ebx
push esi
push edi
mov dword [ebp - 0x74], 0
call dword [sym.imp.KERNEL32.dll_GetTickCount]
push eax
push 0x402ef8
call fcn.004137fc
add esp, 4
push eax
push 0x403444
lea eax, [ebp - 0x70]
push eax
call dword [sym.imp.USER32.dll_wsprintfA]
add esp, 0x10
push 0x402ef8
call fcn.004137fc
add esp, 4
push eax
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateMutexA]
mov dword [ebp - 0x78], eax
cmp dword [ebp - 0x78], 0
je 0x413e53
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xb7
jne 0x413e53
push 0
call sub.MSVCRT.dll_exit
nop
nop
nop
nop
nop
nop
push 0
call dword [sym.imp.KERNEL32.dll_Sleep]
lea ecx, [ebp - 0x134]
call fcn.00407e60
mov dword [ebp - 4], 0
mov byte [ebp - 0x138], 0
mov ecx, 1
test ecx, ecx
je 0x4140c8
mov edx, dword [ebp - 0x138]
and edx, 0xff
test edx, edx
je 0x413f09
mov eax, dword [ebp - 0x138]
and eax, 0xff
cmp eax, 3
je 0x413f09
mov dword [ebp - 0x9ea4], 0
jmp 0x413ec2
mov ecx, dword [ebp - 0x9ea4]
add ecx, 1
mov dword [ebp - 0x9ea4], ecx
cmp dword [ebp - 0x9ea4], 0x3e8
jge 0x413f09
lea edx, [ebp - 0x70]
push edx
push 0
push 0x1f0003
call dword [sym.imp.KERNEL32.dll_OpenEventA]
mov dword [ebp - 0x74], eax
cmp dword [ebp - 0x74], 0
je 0x413eff
lea ecx, [ebp - 0x134]
call fcn.004085fb
mov eax, dword [ebp - 0x74]
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
jmp 0x413f09
push 0xa
call dword [sym.imp.KERNEL32.dll_Sleep]
jmp 0x413eb3
push 0x402ef8
call fcn.004137fc
add esp, 4
mov dword [0x4296e4], eax
push 0x403024
call fcn.004137fc
add esp, 4
push eax
call sub.MSVCRT.dll_atoi
add esp, 4
mov dword [0x4296dc], eax
call dword [sym.imp.KERNEL32.dll_GetTickCount]
mov dword [ebp - 0x13c], eax
mov ecx, dword [0x4296dc]
push ecx
mov edx, dword [0x4296e4]
push edx
lea ecx, [ebp - 0x134]
call fcn.0040804a
and eax, 0xff
test eax, eax
jne 0x413f70
mov byte [ebp - 0x138], 2
jmp 0x413e7a
mov dword [ebp - 0x9ea0], 0xffffffff
call dword [sym.imp.KERNEL32.dll_GetTickCount]
sub eax, dword [ebp - 0x13c]
push eax
lea eax, [ebp - 0x134]
push eax
push 0
call fcn.00413bc4
add esp, 0xc
mov ecx, dword [0x4296dc]
push ecx
mov edx, dword [0x4296e4]
push edx
lea eax, [ebp - 0x70]
push eax
lea ecx, [ebp - 0x134]
push ecx
lea ecx, [ebp - 0x9e98]
call fcn.0040f3bf
mov byte [ebp - 4], 1
lea edx, [ebp - 0x9e98]
push edx
lea ecx, [ebp - 0x134]
call fcn.004089b0
mov dword [ebp - 0x140], 0
jmp 0x413fed
mov eax, dword [ebp - 0x140]
add eax, 1
mov dword [ebp - 0x140], eax
cmp dword [ebp - 0x140], 0xa
jge 0x414014
lea ecx, [ebp - 0x9e98]
call fcn.0040fdc5
and eax, 0xff
test eax, eax
jne 0x414014
push 0x64
call dword [sym.imp.KERNEL32.dll_Sleep]
jmp 0x413fde
lea ecx, [ebp - 0x9e98]
call fcn.0040fdc5
and eax, 0xff
test eax, eax
jne 0x41403c
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x9e98]
call fcn.0040f430
jmp 0x413e7a
call dword [sym.imp.KERNEL32.dll_GetTickCount]
mov dword [ebp - 0x13c], eax
lea ecx, [ebp - 0x70]
push ecx
push 0
push 0x1f0003
call dword [sym.imp.KERNEL32.dll_OpenEventA]
mov dword [ebp - 0x74], eax
push 0x64
mov edx, dword [ebp - 0x88]
push edx
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
mov dword [ebp - 0x9e9c], eax
push 0xa
call dword [sym.imp.KERNEL32.dll_Sleep]
cmp dword [ebp - 0x74], 0
jne 0x414088
cmp dword [ebp - 0x9e9c], 0
jne 0x414048
cmp dword [ebp - 0x74], 0
je 0x4140b4
lea ecx, [ebp - 0x134]
call fcn.004085fb
mov eax, dword [ebp - 0x74]
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x9e98]
call fcn.0040f430
jmp 0x4140c8
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x9e98]
call fcn.0040f430
jmp 0x413e7a
nop
nop
nop
nop
nop
nop
push 0
call dword [sym.imp.KERNEL32.dll_Sleep]
mov dword [ebp - 0x9ea8], 0
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x134]
call fcn.00407f7b
mov eax, dword [ebp - 0x9ea8]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret