Function at 0x405d50
Capabilities:
Check mutex on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x433010
mov eax, dword fs:[0]
push eax
sub esp, 0x2c
push ebx
push esi
push edi
mov eax, dword [0x448620]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
call fcn.00405950
mov eax, dword [0x44d828]
cmp dword [eax - 0xc], 0
jne 0x406042
mov dword [ebp - 4], 0
xor esi, esi
mov edi, dword [sym.imp.KERNEL32.dll_CreateMutexA]
jmp 0x405da0
push str.Globalg7wsOUkjsd6j1bn5GGs
push 1
push 0
call edi
mov ebx, eax
mov dword [ebp - 0x38], ebx
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xb7
je 0x405dc2
cmp eax, 5
jne 0x405df0
test ebx, ebx
je 0x405dd9
push ebx
call dword [sym.imp.KERNEL32.dll_ReleaseMutex]
push ebx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
xor ebx, ebx
mov dword [ebp - 0x38], ebx
push 0x32
mov dword [ebp - 0x34], 0
call dword [sym.imp.KERNEL32.dll_Sleep]
inc esi
cmp esi, 0x64
jl 0x405da0
jmp 0x405df7
mov dword [ebp - 0x34], 1
call fcn.0040ca7a
xor ecx, ecx
mov edx, eax
test edx, edx
setne cl
test ecx, ecx
jne 0x405e13
push 0x80004005
call fcn.00403290
mov eax, dword [edx]
mov ecx, edx
call dword [eax + 0xc]
add eax, 0x10
mov dword [ebp - 0x28], eax
mov byte [ebp - 4], 1
call fcn.0040ca7a
xor ecx, ecx
mov edx, eax
test edx, edx
setne cl
test ecx, ecx
jne 0x405e40
push 0x80004005
call fcn.00403290
mov eax, dword [edx]
mov ecx, edx
call dword [eax + 0xc]
add eax, 0x10
mov dword [ebp - 0x1c], eax
mov byte [ebp - 4], 2
lea eax, [ebp - 0x28]
push dword [0x44d7e4]
push dword [0x44d7e0]
push dword [0x44d818]
push eax
call fcn.004074e0
mov edi, dword [ebp - 0x28]
add esp, 0x10
xor esi, esi
mov dword [ebp - 0x20], 0x3e8
mov dword [ebp - 0x24], esi
mov edi, edi
push 0
push 1
push 0
push 0
push 1
sub esp, 8
lea edx, [ebp - 0x1c]
mov ecx, edi
call fcn.00403670
add esp, 0x1c
test eax, eax
jne 0x406054
mov dword [ebp - 0x2c], eax
call fcn.0040ca7a
xor ecx, ecx
test eax, eax
setne cl
test ecx, ecx
je 0x405e09
mov edx, dword [eax]
mov ecx, eax
call dword [edx + 0xc]
lea esi, [eax + 0x10]
mov dword [ebp - 0x10], esi
mov eax, 0x43f73c
mov byte [ebp - 4], 3
test eax, 0xffff0000
jne 0x405ef7
movzx eax, ax
push eax
call fcn.0040c78b
test eax, eax
je 0x405f09
mov edx, 0x43f73c
movzx ecx, dx
push ecx
push eax
lea ecx, [ebp - 0x10]
call fcn.00402fc0
jmp 0x405f06
push 1
push 0x43f73c
lea ecx, [ebp - 0x10]
call fcn.004032e0
mov esi, dword [ebp - 0x10]
lea eax, [ebp - 0x2c]
mov byte [ebp - 4], 4
push eax
push esi
lea eax, [ebp - 0x18]
push eax
lea ecx, [ebp - 0x1c]
call fcn.00406e60
mov byte [ebp - 4], 5
mov eax, dword [ebp - 0x18]
cmp dword [eax - 0xc], 0x24
jne 0x405f6b
lea eax, [ebp - 0x2c]
push eax
push esi
lea eax, [ebp - 0x14]
push eax
lea ecx, [ebp - 0x1c]
call fcn.00406e60
mov byte [ebp - 4], 6
mov eax, dword [ebp - 0x14]
cmp dword [eax - 0xc], 7
je 0x406069
lea edx, [eax - 0x10]
mov byte [ebp - 4], 5
lea eax, [edx + 0xc]
or ecx, 0xffffffff
lock xadd dword [eax], ecx
dec ecx
test ecx, ecx
jg 0x405f6b
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov byte [ebp - 4], 4
or ecx, 0xffffffff
mov edx, dword [ebp - 0x18]
add edx, 0xfffffff0
lea eax, [edx + 0xc]
lock xadd dword [eax], ecx
dec ecx
test ecx, ecx
jg 0x405f8c
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
add esi, 0xfffffff0
mov byte [ebp - 4], 2
or ecx, 0xffffffff
lea eax, [esi + 0xc]
lock xadd dword [eax], ecx
dec ecx
test ecx, ecx
jg 0x405faa
mov ecx, dword [esi]
push esi
mov eax, dword [ecx]
call dword [eax + 4]
mov esi, dword [ebp - 0x24]
cmp esi, 1
jle 0x405fe2
cmp dword [0x44d728], 2
push 0
sbb ecx, ecx
and ecx, dword [0x44d728]
imul eax, ecx, 0x98
push 0x43f398
mov dword [0x44d728], ecx
push dword [eax + 0x43ec64]
push 0
call dword [sym.imp.USER32.dll_MessageBoxW]
inc esi
mov dword [ebp - 0x24], esi
cmp esi, 0x2710
jl 0x405e80
or esi, 0xffffffff
mov byte [ebp - 4], 1
mov ecx, esi
mov edx, dword [ebp - 0x1c]
add edx, 0xfffffff0
lea eax, [edx + 0xc]
lock xadd dword [eax], ecx
dec ecx
test ecx, ecx
jg 0x406015
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
add edi, 0xfffffff0
mov byte [ebp - 4], 0
lea eax, [edi + 0xc]
lock xadd dword [eax], esi
dec esi
test esi, esi
jg 0x406030
mov ecx, dword [edi]
push edi
mov eax, dword [ecx]
call dword [eax + 4]
test ebx, ebx
je 0x406042
push ebx
call dword [sym.imp.KERNEL32.dll_ReleaseMutex]
push ebx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
push dword [ebp - 0x20]
call dword [sym.imp.KERNEL32.dll_Sleep]
add dword [ebp - 0x20], 0xbb8
jmp 0x405fad
mov ecx, dword [ebp - 0x18]
lea edx, [ecx - 0x10]
mov dword [ebp - 0x2c], edx
mov edx, dword [0x44d828]
add edx, 0xfffffff0
mov dword [ebp - 0x30], edx
cmp dword [ebp - 0x2c], edx
je 0x4060dc
cmp dword [edx + 0xc], 0
lea eax, [edx + 0xc]
mov dword [ebp - 0x20], eax
jl 0x4060cb
mov eax, dword [ecx - 0x10]
cmp eax, dword [edx]
jne 0x4060cb
push dword [ebp - 0x2c]
call fcn.00404c50
mov edx, dword [ebp - 0x20]
add esp, 4
mov dword [ebp - 0x2c], eax
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x4060c1
mov eax, dword [ebp - 0x30]
push eax
mov ecx, dword [eax]
mov edx, dword [ecx]
call dword [edx + 4]
mov eax, dword [ebp - 0x2c]
add eax, 0x10
mov dword [0x44d828], eax
jmp 0x4060d9
push dword [ecx - 0xc]
push ecx
mov ecx, 0x44d828
call fcn.004032e0
mov eax, dword [ebp - 0x14]
mov edx, dword [0x44d82c]
lea ecx, [eax - 0x10]
mov dword [ebp - 0x30], ecx
add edx, 0xfffffff0
lea ecx, [eax - 0x10]
mov dword [ebp - 0x20], edx
cmp ecx, edx
je 0x40614e
cmp dword [edx + 0xc], 0
lea edi, [edx + 0xc]
mov dword [ebp - 0x2c], edi
mov edi, dword [ebp - 0x28]
jl 0x406140
mov ecx, dword [ecx]
cmp ecx, dword [edx]
jne 0x406140
mov ecx, dword [ebp - 0x30]
push ecx
call fcn.00404c50
mov dword [ebp - 0x30], eax
add esp, 4
mov eax, dword [ebp - 0x2c]
or ecx, 0xffffffff
lock xadd dword [eax], ecx
dec ecx
test ecx, ecx
jg 0x406133
mov eax, dword [ebp - 0x20]
push eax
mov ecx, dword [eax]
mov edx, dword [ecx]
call dword [edx + 4]
mov eax, dword [ebp - 0x30]
add eax, 0x10
mov dword [0x44d82c], eax
jmp 0x40614e
push dword [eax - 0xc]
mov ecx, 0x44d82c
push eax
call fcn.004032e0
mov eax, dword [0x44d828]
sub esp, 0x18
mov edx, esp
mov dword [ebp - 0x2c], eax
xor ecx, ecx
mov dword [ebp - 0x20], esp
mov dword [edx + 0x14], 7
mov dword [edx + 0x10], 0
mov word [edx], cx
cmp word [eax], cx
je 0x406193
mov ecx, eax
lea eax, [ecx + 2]
mov dword [ebp - 0x30], eax
mov edi, edi
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x406180
sub ecx, dword [ebp - 0x30]
mov eax, dword [ebp - 0x2c]
sar ecx, 1
push ecx
push eax
mov ecx, edx
call fcn.004041a0
sub esp, 0x18
mov byte [ebp - 4], 7
mov ecx, esp
mov dword [ebp - 0x30], esp
xor eax, eax
push 0xffffffffffffffff
push eax
mov dword [ecx + 0x14], 7
mov dword [ecx + 0x10], 0
push 0x4498e4
mov word [ecx], ax
call fcn.004042a0
sub esp, 0x18
mov byte [ebp - 4], 8
mov ecx, esp
xor eax, eax
push 0xffffffffffffffff
push eax
mov dword [ecx + 0x14], 7
mov dword [ecx + 0x10], 0
push 0x44992c
mov word [ecx], ax
call fcn.004042a0
mov byte [ebp - 4], 6
call fcn.00404d50
add esp, 0x48
test al, al
jne 0x406231
cmp dword [0x44d728], 2
push 0
sbb ecx, ecx
and ecx, dword [0x44d728]
imul eax, ecx, 0x98
push 0x43f398
mov dword [0x44d728], ecx
push dword [eax + 0x43ec5c]
push 0
call dword [sym.imp.USER32.dll_MessageBoxW]
mov eax, dword [0x44d82c]
sub esp, 0x18
mov edx, esp
mov dword [ebp - 0x2c], eax
xor ecx, ecx
mov dword [ebp - 0x20], esp
mov dword [edx + 0x14], 7
mov dword [edx + 0x10], 0
mov word [edx], cx
cmp word [eax], cx
je 0x406274
mov ecx, eax
lea eax, [ecx + 2]
mov dword [ebp - 0x30], eax
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x406261
sub ecx, dword [ebp - 0x30]
mov eax, dword [ebp - 0x2c]
sar ecx, 1
push ecx
push eax
mov ecx, edx
call fcn.004041a0
sub esp, 0x18
mov byte [ebp - 4], 9
mov ecx, esp
mov dword [ebp - 0x30], esp
xor eax, eax
push 0xffffffffffffffff
push eax
mov dword [ecx + 0x14], 7
mov dword [ecx + 0x10], 0
push 0x4498fc
mov word [ecx], ax
call fcn.004042a0
sub esp, 0x18
mov byte [ebp - 4], 0xa
mov ecx, esp
xor eax, eax
push 0xffffffffffffffff
push eax
mov dword [ecx + 0x14], 7
mov dword [ecx + 0x10], 0
push 0x44992c
mov word [ecx], ax
call fcn.004042a0
mov byte [ebp - 4], 6
call fcn.00404d50
add esp, 0x48
lea ecx, [ebp - 0x24]
push 0x43f740
call fcn.00403430
mov byte [ebp - 4], 0xb
lea ecx, [ebp - 0x24]
mov eax, dword [0x44d828]
push dword [eax - 0xc]
push eax
call fcn.00404400
mov edx, 0x44d828
lea ecx, [ebp - 0x24]
call fcn.00407d50
mov byte [ebp - 4], 6
or ecx, 0xffffffff
mov edx, dword [ebp - 0x24]
add edx, 0xfffffff0
lea eax, [edx + 0xc]
lock xadd dword [eax], ecx
dec ecx
test ecx, ecx
jg 0x40632e
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov byte [ebp - 4], 5
or ecx, 0xffffffff
mov edx, dword [ebp - 0x14]
add edx, 0xfffffff0
lea eax, [edx + 0xc]
lock xadd dword [eax], ecx
dec ecx
test ecx, ecx
jg 0x40634f
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov byte [ebp - 4], 4
or ecx, 0xffffffff
mov edx, dword [ebp - 0x18]
add edx, 0xfffffff0
lea eax, [edx + 0xc]
lock xadd dword [eax], ecx
dec ecx
test ecx, ecx
jg 0x406370
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
lea edx, [esi - 0x10]
mov byte [ebp - 4], 2
or esi, 0xffffffff
lea eax, [edx + 0xc]
mov ecx, esi
lock xadd dword [eax], ecx
dec ecx
test ecx, ecx
jg 0x405ff5
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
jmp 0x405ff5