Function at 0x4125d0
Capabilities:
Check mutex on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x57bf3b
mov eax, dword fs:[0]
push eax
sub esp, 0x88
mov eax, dword [0x5e108c]
xor eax, ebp
mov dword [ebp - 0x10], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, ecx
push 1
lea eax, [ebp - 0x54]
mov dword [ebp - 4], 1
push eax
call dword [sym.imp.ADVAPI32.dll_InitializeSecurityDescriptor]
push 0
push 0
push 1
lea eax, [ebp - 0x54]
push eax
call dword [sym.imp.ADVAPI32.dll_SetSecurityDescriptorDacl]
lea eax, [ebp - 0x54]
mov dword [ebp - 0x60], 0xc
lea edx, [ebp + 0x20]
mov dword [ebp - 0x58], 0
lea ecx, [ebp - 0x78]
mov dword [ebp - 0x5c], eax
call fcn.00430640
mov esi, eax
lea edx, [ebp + 8]
mov byte [ebp - 4], 2
lea ecx, [ebp - 0x90]
call fcn.00430640
push esi
mov edx, eax
mov byte [ebp - 4], 3
lea ecx, [ebp - 0x40]
call fcn.00426c10
add esp, 4
mov eax, dword [ebp - 0x7c]
cmp eax, 8
jb 0x412682
inc eax
lea ecx, [ebp - 0x90]
push eax
push dword [ebp - 0x90]
call fcn.0040ca40
xor eax, eax
mov dword [ebp - 0x7c], 7
mov dword [ebp - 0x80], 0
mov word [ebp - 0x90], ax
mov byte [ebp - 4], 6
mov eax, dword [ebp - 0x64]
cmp eax, 8
jb 0x4126b2
inc eax
lea ecx, [ebp - 0x78]
push eax
push dword [ebp - 0x78]
call fcn.0040ca40
xor eax, eax
mov dword [ebp - 0x64], 7
push 0xffffffffffffffff
push eax
mov word [ebp - 0x78], ax
lea ecx, [ebp - 0x28]
mov dword [ebp - 0x18], eax
mov word [ebp - 0x28], ax
lea eax, [ebp - 0x40]
push eax
mov dword [ebp - 0x68], 0
mov dword [ebp - 0x14], 7
call fcn.0040c1a0
push 7
push 0
push str.Global_
lea ecx, [ebp - 0x28]
mov byte [ebp - 4], 7
call fcn.004241d0
cmp eax, 0xffffffff
jne 0x412765
lea eax, [ebp - 0x28]
mov edx, str.Global_
push eax
lea ecx, [ebp - 0x78]
call fcn.00427450
add esp, 4
mov esi, eax
lea eax, [ebp - 0x28]
cmp eax, esi
je 0x41274c
mov eax, dword [ebp - 0x14]
cmp eax, 8
jb 0x41272f
inc eax
lea ecx, [ebp - 0x28]
push eax
push dword [ebp - 0x28]
call fcn.0040ca40
xor eax, eax
mov dword [ebp - 0x14], 7
push esi
lea ecx, [ebp - 0x28]
mov dword [ebp - 0x18], 0
mov word [ebp - 0x28], ax
call fcn.00424a90
mov byte [ebp - 4], 7
mov eax, dword [ebp - 0x64]
cmp eax, 8
jb 0x412765
inc eax
lea ecx, [ebp - 0x78]
push eax
push dword [ebp - 0x78]
call fcn.0040ca40
push 6
push str._multp
lea ecx, [ebp - 0x28]
call fcn.00424850
cmp dword [ebp - 0x14], 8
lea eax, [ebp - 0x28]
cmovae eax, dword [ebp - 0x28]
push eax
push 0
lea eax, [ebp - 0x60]
push eax
call dword [sym.imp.KERNEL32.dll_CreateMutexW]
mov dword [0x60c05c], eax
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xb7
jne 0x4127bb
mov eax, dword [0x60c05c]
test eax, eax
je 0x4127bb
push eax
mov byte [edi], 1
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [0x60c05c], 0
mov eax, dword [ebp - 0x14]
cmp eax, 8
jb 0x4127d0
inc eax
lea ecx, [ebp - 0x28]
push eax
push dword [ebp - 0x28]
call fcn.0040ca40
xor eax, eax
mov dword [ebp - 0x14], 7
mov word [ebp - 0x28], ax
mov eax, dword [ebp - 0x2c]
mov dword [ebp - 0x18], 0
cmp eax, 8
jb 0x4127f9
inc eax
lea ecx, [ebp - 0x40]
push eax
push dword [ebp - 0x40]
call fcn.0040ca40
xor eax, eax
mov dword [ebp - 0x2c], 7
mov word [ebp - 0x40], ax
mov eax, dword [ebp + 0x1c]
mov dword [ebp - 0x30], 0
cmp eax, 0x10
jb 0x412822
inc eax
lea ecx, [ebp + 8]
push eax
push dword [ebp + 8]
call fcn.0040c0a0
mov eax, dword [ebp + 0x34]
mov dword [ebp + 0x1c], 0xf
mov dword [ebp + 0x18], 0
mov byte [ebp + 8], 0
cmp eax, 0x10
jb 0x412849
inc eax
lea ecx, [ebp + 0x20]
push eax
push dword [ebp + 0x20]
call fcn.0040c0a0
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.004f4655
mov esp, ebp
pop ebp
ret