Function at 0x405e70
Capabilities:
Check mutex on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x433a58
mov eax, dword fs:[0]
push eax
sub esp, 0x2c
push ebx
push esi
push edi
mov eax, dword [0x449620]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
call fcn.00405a70
mov eax, dword [0x44e808]
cmp dword [eax - 0xc], 0
jne 0x40615e
mov dword [ebp - 4], 0
xor esi, esi
mov edi, dword [sym.imp.KERNEL32.dll_CreateMutexA]
jmp 0x405ec0
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 0x405ee2
cmp eax, 5
jne 0x405f10
test ebx, ebx
je 0x405ef9
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 0x405ec0
jmp 0x405f17
mov dword [ebp - 0x34], 1
call fcn.0040cce5
xor ecx, ecx
mov edx, eax
test edx, edx
setne cl
test ecx, ecx
jne 0x405f33
push 0x80004005
call fcn.00403170
mov eax, dword [edx]
mov ecx, edx
call dword [eax + 0xc]
add eax, 0x10
mov dword [ebp - 0x24], eax
mov byte [ebp - 4], 1
call fcn.0040cce5
xor ecx, ecx
mov edx, eax
test edx, edx
setne cl
test ecx, ecx
jne 0x405f60
push 0x80004005
call fcn.00403170
mov eax, dword [edx]
mov ecx, edx
call dword [eax + 0xc]
add eax, 0x10
mov dword [ebp - 0x1c], eax
lea ecx, [ebp - 0x2c]
mov byte [ebp - 4], 2
call fcn.00406f70
mov byte [ebp - 4], 3
push dword [0x44e7e4]
push dword [0x44e7e0]
push dword [eax]
lea eax, [ebp - 0x24]
push eax
call fcn.00404ac0
mov byte [ebp - 4], 2
add esp, 0x10
mov edx, dword [ebp - 0x2c]
or eax, 0xffffffff
add edx, 0xfffffff0
lea ecx, [edx + 0xc]
lock xadd dword [ecx], eax
dec eax
test eax, eax
jg 0x405fb8
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov edi, dword [ebp - 0x24]
mov esi, 0x3e8
mov dword [ebp - 0x20], esi
mov dword [ebp - 0x2c], 0
lea ebx, [ebx]
push 0
push ecx
push 0
push 0
push 1
sub esp, 8
lea edx, [ebp - 0x1c]
mov ecx, edi
call fcn.00403550
add esp, 0x1c
test eax, eax
jne 0x406170
mov dword [ebp - 0x28], eax
call fcn.0040cce5
xor ecx, ecx
test eax, eax
setne cl
test ecx, ecx
je 0x405f29
mov edx, dword [eax]
mov ecx, eax
call dword [edx + 0xc]
lea esi, [eax + 0x10]
mov dword [ebp - 0x10], esi
mov eax, 0x440584
mov byte [ebp - 4], 4
test eax, 0xffff0000
jne 0x406046
movzx eax, ax
push eax
call fcn.0040c9f6
test eax, eax
je 0x406058
mov edx, 0x440584
movzx ecx, dx
push ecx
push eax
lea ecx, [ebp - 0x10]
call fcn.00402ea0
jmp 0x406055
push 1
push 0x440584
lea ecx, [ebp - 0x10]
call fcn.004031c0
mov esi, dword [ebp - 0x10]
lea eax, [ebp - 0x28]
mov byte [ebp - 4], 5
push eax
push esi
lea eax, [ebp - 0x18]
push eax
lea ecx, [ebp - 0x1c]
call fcn.00407670
mov byte [ebp - 4], 6
mov eax, dword [ebp - 0x18]
cmp dword [eax - 0xc], 0x24
jne 0x4060ba
lea eax, [ebp - 0x28]
push eax
push esi
lea eax, [ebp - 0x14]
push eax
lea ecx, [ebp - 0x1c]
call fcn.00407670
mov byte [ebp - 4], 7
mov eax, dword [ebp - 0x14]
cmp dword [eax - 0xc], 7
je 0x406185
lea edx, [eax - 0x10]
mov byte [ebp - 4], 6
lea eax, [edx + 0xc]
or ecx, 0xffffffff
lock xadd dword [eax], ecx
dec ecx
test ecx, ecx
jg 0x4060ba
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 - 0x18]
add edx, 0xfffffff0
lea eax, [edx + 0xc]
lock xadd dword [eax], ecx
dec ecx
test ecx, ecx
jg 0x4060db
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 0x4060f9
mov ecx, dword [esi]
push esi
mov eax, dword [ecx]
call dword [eax + 4]
mov esi, dword [ebp - 0x20]
mov eax, dword [ebp - 0x2c]
inc eax
mov dword [ebp - 0x2c], eax
cmp eax, 0x2710
jl 0x405fd0
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 0x406131
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 0x40614c
mov ecx, dword [edi]
push edi
mov eax, dword [ecx]
call dword [eax + 4]
test ebx, ebx
je 0x40615e
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 esi
call dword [sym.imp.KERNEL32.dll_Sleep]
add esi, 0xbb8
mov dword [ebp - 0x20], esi
jmp 0x4060fc
mov ecx, dword [ebp - 0x18]
lea edx, [ecx - 0x10]
mov dword [ebp - 0x2c], edx
mov edx, dword [0x44e808]
add edx, 0xfffffff0
mov dword [ebp - 0x30], edx
cmp dword [ebp - 0x2c], edx
je 0x4061f8
cmp dword [edx + 0xc], 0
lea eax, [edx + 0xc]
mov dword [ebp - 0x28], eax
jl 0x4061e7
mov eax, dword [ecx - 0x10]
cmp eax, dword [edx]
jne 0x4061e7
push dword [ebp - 0x2c]
call fcn.00404d70
mov edx, dword [ebp - 0x28]
add esp, 4
mov dword [ebp - 0x2c], eax
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x4061dd
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 [0x44e808], eax
jmp 0x4061f5
push dword [ecx - 0xc]
push ecx
mov ecx, 0x44e808
call fcn.004031c0
mov eax, dword [ebp - 0x14]
mov edx, dword [0x44e80c]
lea ecx, [eax - 0x10]
mov dword [ebp - 0x30], ecx
add edx, 0xfffffff0
lea ecx, [eax - 0x10]
mov dword [ebp - 0x28], edx
cmp ecx, edx
je 0x40626a
cmp dword [edx + 0xc], 0
lea edi, [edx + 0xc]
mov dword [ebp - 0x2c], edi
mov edi, dword [ebp - 0x24]
jl 0x40625c
mov ecx, dword [ecx]
cmp ecx, dword [edx]
jne 0x40625c
mov ecx, dword [ebp - 0x30]
push ecx
call fcn.00404d70
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 0x40624f
mov eax, dword [ebp - 0x28]
push eax
mov ecx, dword [eax]
mov edx, dword [ecx]
call dword [edx + 4]
mov eax, dword [ebp - 0x30]
add eax, 0x10
mov dword [0x44e80c], eax
jmp 0x40626a
push dword [eax - 0xc]
mov ecx, 0x44e80c
push eax
call fcn.004031c0
mov eax, dword [0x44e808]
sub esp, 0x18
mov edx, esp
mov dword [ebp - 0x2c], eax
xor ecx, ecx
mov dword [ebp - 0x28], esp
mov dword [edx + 0x14], 7
mov dword [edx + 0x10], 0
mov word [edx], cx
cmp word [eax], cx
je 0x4062b3
mov ecx, eax
lea eax, [ecx + 2]
mov dword [ebp - 0x30], eax
lea ebx, [ebx]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x4062a0
sub ecx, dword [ebp - 0x30]
mov eax, dword [ebp - 0x2c]
sar ecx, 1
push ecx
push eax
mov ecx, edx
call fcn.004040e0
sub esp, 0x18
mov byte [ebp - 4], 8
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 0x44a8e4
mov word [ecx], ax
call fcn.004041e0
sub esp, 0x18
mov byte [ebp - 4], 9
mov ecx, esp
xor eax, eax
push 0xffffffffffffffff
push eax
mov dword [ecx + 0x14], 7
mov dword [ecx + 0x10], 0
push 0x44a92c
mov word [ecx], ax
call fcn.004041e0
mov byte [ebp - 4], 7
call fcn.00404e70
add esp, 0x48
test al, al
jne 0x406351
cmp dword [0x44e728], 2
push 0
sbb ecx, ecx
and ecx, dword [0x44e728]
imul eax, ecx, 0x98
push 0x4403c8
mov dword [0x44e728], ecx
push dword [eax + 0x43fc7c]
push 0
call dword [sym.imp.USER32.dll_MessageBoxW]
mov eax, dword [0x44e80c]
sub esp, 0x18
mov edx, esp
mov dword [ebp - 0x2c], eax
xor ecx, ecx
mov dword [ebp - 0x28], esp
mov dword [edx + 0x14], 7
mov dword [edx + 0x10], 0
mov word [edx], cx
cmp word [eax], cx
je 0x406394
mov ecx, eax
lea eax, [ecx + 2]
mov dword [ebp - 0x30], eax
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x406381
sub ecx, dword [ebp - 0x30]
mov eax, dword [ebp - 0x2c]
sar ecx, 1
push ecx
push eax
mov ecx, edx
call fcn.004040e0
sub esp, 0x18
mov byte [ebp - 4], 0xa
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 0x44a8fc
mov word [ecx], ax
call fcn.004041e0
sub esp, 0x18
mov byte [ebp - 4], 0xb
mov ecx, esp
xor eax, eax
push 0xffffffffffffffff
push eax
mov dword [ecx + 0x14], 7
mov dword [ecx + 0x10], 0
push 0x44a92c
mov word [ecx], ax
call fcn.004041e0
mov byte [ebp - 4], 7
call fcn.00404e70
add esp, 0x48
lea ecx, [ebp - 0x20]
push 0x440588
call fcn.00403310
mov byte [ebp - 4], 0xc
lea ecx, [ebp - 0x20]
mov eax, dword [0x44e808]
push dword [eax - 0xc]
push eax
call fcn.00404340
push 0
mov edx, 0x44e808
lea ecx, [ebp - 0x20]
call fcn.00408460
mov byte [ebp - 4], 7
add esp, 4
mov edx, dword [ebp - 0x20]
or ecx, 0xffffffff
add edx, 0xfffffff0
lea eax, [edx + 0xc]
lock xadd dword [eax], ecx
dec ecx
test ecx, ecx
jg 0x406453
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov byte [ebp - 4], 6
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 0x406474
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 - 0x18]
add edx, 0xfffffff0
lea eax, [edx + 0xc]
lock xadd dword [eax], ecx
dec ecx
test ecx, ecx
jg 0x406495
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 0x406111
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
jmp 0x406111