Function at 0x40aebc
Capabilities:
Check mutex on windows

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffeac
mov eax, 0x589a5c
push ebx
push esi
push edi
mov esi, dword [ebp + 8]
call fcn.0056134c
push 0x5870eb
push 0
push 0x1f0001
call sub.KERNEL32.DLL_OpenMutexA
mov dword [ebp - 0x50], eax
push 0x5870f3
push 0
push 0x1f0001
call sub.KERNEL32.DLL_OpenMutexA
mov dword [ebp - 0x54], eax
push 0xffffffffffffffff
mov edx, dword [ebp - 0x54]
push edx
call sub.KERNEL32.DLL_WaitForSingleObject
push 0xffffffffffffffff
mov ecx, dword [ebp - 0x50]
push ecx
call sub.KERNEL32.DLL_WaitForSingleObject
lea eax, [ebp - 0x48]
push eax
call fcn.0056c6dc
pop ecx
push 0x5870ff
lea edx, [esi + 0x7ec]
push edx
call fcn.00563300
add esp, 8
mov dword [ebp - 0x44], eax
mov ecx, dword [ebp - 0x44]
push ecx
push 1
push 0x14
lea eax, [ebp - 0xa0]
push eax
call fcn.00563578
add esp, 0x10
push 0
push 0
mov edx, dword [ebp - 0x44]
push edx
call fcn.00563618
add esp, 0xc
inc dword [ebp - 0xa0]
dec dword [ebp - 0x9c]
mov ecx, dword [ebp - 0x48]
mov dword [ebp - 0x90], ecx
mov eax, dword [ebp - 0x44]
push eax
push 1
push 0x14
lea edx, [ebp - 0xa0]
push edx
call fcn.005637ec
add esp, 0x10
push 2
push 0
mov ecx, dword [ebp - 0x44]
push ecx
call fcn.00563618
add esp, 0xc
mov eax, dword [ebp - 0x44]
push eax
push 1
push 4
lea edx, [ebp - 0x48]
push edx
call fcn.005637ec
add esp, 0x10
mov ecx, dword [ebp - 0x44]
push ecx
push 1
push 4
lea eax, [esi + 0x944]
push eax
call fcn.005637ec
add esp, 0x10
mov edx, dword [esi + 0x36c]
mov eax, dword [edx + 0x20c]
call fcn.00539378
mov dword [ebp - 0x4c], eax
xor ebx, ebx
mov eax, dword [ebp - 0x4c]
cmp ebx, eax
jae 0x40b3fb
mov word [ebp - 0x30], 8
mov edx, dword [esi + 0x36c]
mov eax, dword [edx + 0x20c]
mov edx, ebx
call fcn.005393a8
add eax, 8
xor ecx, ecx
mov dword [ebp - 0x58], eax
mov dword [ebp - 4], ecx
inc dword [ebp - 0x24]
xor edx, edx
mov eax, dword [ebp - 0x58]
lea ecx, [ebp - 4]
mov eax, dword [eax]
mov edi, dword [eax]
call dword [edi + 0xc]
lea eax, [ebp - 4]
push eax
mov edx, 0x587103
lea eax, [ebp - 8]
call fcn.00583900
inc dword [ebp - 0x24]
lea edx, [ebp - 8]
pop eax
call fcn.00583bcc
push eax
dec dword [ebp - 0x24]
lea eax, [ebp - 8]
mov edx, 2
call fcn.00583ae8
dec dword [ebp - 0x24]
lea eax, [ebp - 4]
mov edx, 2
call fcn.00583ae8
pop ecx
test cl, cl
jne 0x40b3ef
mov eax, dword [esi + 0x36c]
mov edx, ebx
mov eax, dword [eax + 0x20c]
call fcn.005393a8
mov edi, eax
add edi, 0x24
mov eax, dword [edi]
test eax, eax
je 0x40b082
mov edx, dword [edi]
jmp 0x40b087
mov edx, 0x58710b
push edx
call fcn.004012c0
pop ecx
mov dword [ebp - 0x154], eax
mov word [ebp - 0x30], 0x14
mov eax, dword [esi + 0x36c]
mov edx, ebx
mov eax, dword [eax + 0x20c]
call fcn.005393a8
add eax, 8
xor ecx, ecx
mov dword [ebp - 0x5c], eax
mov dword [ebp - 0xc], ecx
inc dword [ebp - 0x24]
lea ecx, [ebp - 0xc]
mov eax, dword [ebp - 0x5c]
mov edx, 3
mov eax, dword [eax]
mov edi, dword [eax]
call dword [edi + 0xc]
mov eax, dword [ebp - 0xc]
test eax, eax
je 0x40b0d9
mov edx, dword [ebp - 0xc]
jmp 0x40b0de
mov edx, 0x58710c
xor eax, eax
push esi
mov edi, edx
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
lea esi, [ebp - 0x150]
xchg edi, esi
mov edx, ecx
mov eax, edi
shr ecx, 2
lea eax, [ebp - 0xc]
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
mov edx, 2
and ecx, 3
rep movsb byte es:[edi], byte [esi]
pop esi
dec dword [ebp - 0x24]
call fcn.00583ae8
mov ecx, dword [esi + 0x36c]
mov edx, ebx
mov eax, dword [ecx + 0x20c]
call fcn.005393a8
mov eax, dword [eax + 0xc]
lea edi, [ebp - 0xce]
mov ecx, 8
mov dl, byte [eax + 4]
mov byte [ebp - 0xd0], dl
push esi
lea esi, [eax + 5]
mov edx, ebx
rep movsd dword es:[edi], dword [esi]
movsb byte es:[edi], byte [esi]
pop esi
mov word [ebp - 0x30], 0x20
mov eax, dword [esi + 0x36c]
mov eax, dword [eax + 0x20c]
call fcn.005393a8
add eax, 8
xor ecx, ecx
mov dword [ebp - 0x60], eax
mov dword [ebp - 0x10], ecx
inc dword [ebp - 0x24]
lea ecx, [ebp - 0x10]
mov eax, dword [ebp - 0x60]
mov edx, 2
mov eax, dword [eax]
mov edi, dword [eax]
call dword [edi + 0xc]
mov eax, dword [ebp - 0x10]
test eax, eax
je 0x40b18c
mov eax, dword [ebp - 0x10]
jmp 0x40b191
mov eax, 0x587115
mov edx, 0x58710d
mov cl, byte [eax]
cmp cl, byte [edx]
jne 0x40b1b2
test cl, cl
je 0x40b1b2
mov cl, byte [eax + 1]
cmp cl, byte [edx + 1]
jne 0x40b1b2
add eax, 2
add edx, 2
test cl, cl
jne 0x40b196
sete al
and eax, 1
mov edx, 2
push eax
lea eax, [ebp - 0x10]
dec dword [ebp - 0x24]
call fcn.00583ae8
pop ecx
test cl, cl
je 0x40b1d8
xor eax, eax
mov dword [ebp - 0xa8], eax
jmp 0x40b1e2
mov dword [ebp - 0xa8], 1
mov word [ebp - 0x30], 0x2c
mov edx, dword [esi + 0x36c]
mov eax, dword [edx + 0x20c]
mov edx, ebx
call fcn.005393a8
add eax, 8
xor ecx, ecx
mov dword [ebp - 0x64], eax
mov dword [ebp - 0x14], ecx
inc dword [ebp - 0x24]
lea ecx, [ebp - 0x14]
mov eax, dword [ebp - 0x64]
mov edx, 1
mov eax, dword [eax]
mov edi, dword [eax]
call dword [edi + 0xc]
mov eax, dword [ebp - 0x14]
test eax, eax
je 0x40b227
mov edx, dword [ebp - 0x14]
jmp 0x40b22c
mov edx, 0x587116
xor eax, eax
push esi
mov edi, edx
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
lea esi, [ebp - 0x8c]
xchg edi, esi
mov edx, ecx
mov eax, edi
shr ecx, 2
lea eax, [ebp - 0x14]
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
mov edx, 2
and ecx, 3
rep movsb byte es:[edi], byte [esi]
pop esi
dec dword [ebp - 0x24]
call fcn.00583ae8
mov cl, byte [ebp - 0x8c]
mov al, byte [0x5ae9d4]
cmp cl, al
jne 0x40b27c
xor edx, edx
mov dword [ebp - 0xac], edx
jmp 0x40b297
lea ecx, [ebp - 0xac]
lea eax, [ebp - 0x8c]
push ecx
push 0x587117
push eax
call fcn.005650f0
add esp, 0xc
mov word [ebp - 0x30], 0x38
mov edx, dword [esi + 0x36c]
mov eax, dword [edx + 0x20c]
mov edx, ebx
call fcn.005393a8
add eax, 8
xor ecx, ecx
mov dword [ebp - 0x68], eax
mov dword [ebp - 0x18], ecx
inc dword [ebp - 0x24]
lea ecx, [ebp - 0x18]
mov eax, dword [ebp - 0x68]
mov edx, 6
mov eax, dword [eax]
mov edi, dword [eax]
call dword [edi + 0xc]
mov eax, dword [ebp - 0x18]
test eax, eax
je 0x40b2dc
mov edx, dword [ebp - 0x18]
jmp 0x40b2e1
mov edx, 0x58711a
xor eax, eax
push esi
mov edi, edx
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
lea esi, [ebp - 0x8c]
xchg edi, esi
mov edx, ecx
mov eax, edi
shr ecx, 2
lea eax, [ebp - 0x18]
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
mov edx, 2
and ecx, 3
rep movsb byte es:[edi], byte [esi]
pop esi
dec dword [ebp - 0x24]
call fcn.00583ae8
movsx ecx, byte [ebp - 0x8c]
cmp ecx, 0x4f
jne 0x40b32d
mov byte [ebp - 0xcf], 1
jmp 0x40b334
mov byte [ebp - 0xcf], 0
mov word [ebp - 0x30], 0x44
mov eax, dword [esi + 0x36c]
mov edx, ebx
mov eax, dword [eax + 0x20c]
call fcn.005393a8
add eax, 8
xor ecx, ecx
mov dword [ebp - 0x6c], eax
mov dword [ebp - 0x1c], ecx
inc dword [ebp - 0x24]
lea ecx, [ebp - 0x1c]
mov eax, dword [ebp - 0x6c]
mov edx, 7
mov eax, dword [eax]
mov edi, dword [eax]
call dword [edi + 0xc]
mov eax, dword [ebp - 0x1c]
test eax, eax
je 0x40b379
mov edx, dword [ebp - 0x1c]
jmp 0x40b37e
mov edx, 0x58711b
xor eax, eax
push esi
mov edi, edx
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
lea esi, [ebp - 0x8c]
xchg edi, esi
mov edx, ecx
mov eax, edi
shr ecx, 2
lea eax, [ebp - 0x1c]
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
mov edx, 2
and ecx, 3
rep movsb byte es:[edi], byte [esi]
pop esi
dec dword [ebp - 0x24]
call fcn.00583ae8
movsx ecx, byte [ebp - 0x8b]
cmp ecx, 0x4e
jne 0x40b3cd
mov dword [ebp - 0xa4], 1
jmp 0x40b3d5
xor eax, eax
mov dword [ebp - 0xa4], eax
mov edx, dword [ebp - 0x44]
push edx
push 1
push 0xb4
lea ecx, [ebp - 0x154]
push ecx
call fcn.005637ec
add esp, 0x10
inc ebx
mov eax, dword [ebp - 0x4c]
cmp ebx, eax
jb 0x40afe3
mov edx, dword [ebp - 0x44]
push edx
call fcn.00562bf8
pop ecx
mov ecx, dword [ebp - 0x50]
push ecx
call sub.KERNEL32.DLL_ReleaseMutex
mov eax, dword [ebp - 0x54]
push eax
call sub.KERNEL32.DLL_ReleaseMutex
mov edx, dword [ebp - 0x50]
push edx
call sub.KERNEL32.DLL_CloseHandle
mov ecx, dword [ebp - 0x54]
push ecx
call sub.KERNEL32.DLL_CloseHandle
mov eax, dword [esi + 0x968]
test eax, eax
jne 0x40b43a
mov byte [esi + 0x950], 1
mov edx, dword [ebp - 0x40]
mov dword fs:[0], edx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret