Function at 0x61024a6d
Capabilities:
Check mutex on windows

Disassembly:
push 0x274
mov eax, 0x61040810
call fcn.6102b349
mov ebx, dword [ebp + 8]
mov esi, dword [ebp + 0x10]
lea ecx, [ebp - 0x250]
call fcn.6100d565
xor edi, edi
mov dword [ebp - 4], edi
lea ecx, [ebp - 0x21c]
call fcn.6100d83e
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x280]
call fcn.6100d565
mov byte [ebp - 4], 2
push 6
mov dword [esi], edi
pop ecx
mov dword [ebp - 0x220], edi
mov dword [ebp - 0x234], edi
mov dword [ebp - 0x230], edi
mov dword [ebp - 0x228], edi
mov dword [ebp - 0x22c], edi
xor eax, eax
lea edi, [ebp - 0x268]
rep stosd dword es:[edi], eax
lea eax, [ebp - 0x250]
push eax
push 4
mov ecx, ebx
call fcn.6101dc8d
test eax, eax
jne 0x61024b09
push 0x61008058
push 3
call fcn.6101b566
pop ecx
pop ecx
mov edi, 0x65b
jmp 0x61024ced
cmp dword [ebp - 0x248], 1
jbe 0x61024b28
push 0x61007ff8
push 3
call fcn.6101b566
pop ecx
pop ecx
push 0xd
pop edi
jmp 0x61024ced
cmp dword [ebp - 0x248], 0
jne 0x61024b38
push 0x61007f88
jmp 0x61024b17
mov eax, dword [ebp - 0x250]
xor ecx, ecx
test eax, eax
setne cl
test ecx, ecx
jne 0x61024b53
push 0x80004005
call fcn.6100cd98
add eax, 8
push eax
lea ecx, [ebp - 0x21c]
call fcn.6100dd8c
push dword [0x610480d8]
mov edi, 0x104
push edi
lea eax, [ebp - 0x218]
push eax
call fcn.6100d41c
test eax, eax
jl 0x61024aff
lea ecx, [ebp - 0x21c]
call fcn.61011da0
push eax
push edi
lea eax, [ebp - 0x218]
push eax
call fcn.61017b8e
test eax, eax
jl 0x61024aff
lea ecx, [ebp - 0x268]
call fcn.610217f5
mov edi, eax
test edi, edi
jne 0x61024ced
lea eax, [ebp - 0x218]
push eax
push edi
lea eax, [ebp - 0x268]
push eax
call dword [sym.imp.KERNEL32.dll_CreateMutexW]
mov dword [ebp - 0x228], eax
test eax, eax
jne 0x61024be0
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov edi, eax
jmp 0x61024ce9
push 0x3e8
push eax
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
cmp eax, 0x80
je 0x61024c05
test eax, eax
je 0x61024c05
cmp eax, 0x102
jne 0x61024bd3
push 0x20
jmp 0x61024b22
and dword [ebp - 0x224], 0
lea eax, [ebp - 0x234]
push eax
lea eax, [ebp - 0x220]
push eax
lea eax, [ebp - 0x224]
push eax
lea eax, [ebp - 0x280]
push eax
push ecx
lea eax, [ebp - 0x21c]
mov ecx, esp
mov dword [ebp - 0x238], esp
push eax
mov dword [ebp - 0x22c], 1
call fcn.6100d869
mov byte [ebp - 4], 3
push ebx
mov byte [ebp - 4], 2
call fcn.61023fec
mov edi, eax
test edi, edi
je 0x61024c73
push dword [ebp - 0x21c]
push edi
push 0x61007f00
push 3
call fcn.6101b566
add esp, 0x10
jmp 0x61024ce9
mov eax, dword [ebp - 0x224]
mov dword [ebp - 0x230], eax
test eax, eax
je 0x61024d38
lea eax, [ebp - 0x224]
push eax
lea eax, [ebp - 0x280]
push eax
push dword [ebp + 0xc]
lea eax, [ebp - 0x21c]
push ecx
mov ecx, esp
mov dword [ebp - 0x238], esp
push eax
call fcn.6100d869
mov byte [ebp - 4], 4
mov byte [ebp - 4], 2
call fcn.610242f4
test eax, eax
jne 0x61024cda
push dword [ebp - 0x21c]
mov edi, 0x643
push 0x61007e08
push 3
call fcn.6101b566
add esp, 0xc
jmp 0x61024ced
cmp dword [ebp - 0x224], 0
je 0x61024d38
mov dword [esi], 1
test edi, edi
je 0x61024d38
push 0x61007d78
push edi
push 3
call fcn.6101b5fa
add esp, 0xc
cmp dword [ebp - 0x22c], 0
je 0x61024d6d
xor eax, eax
cmp dword [ebp - 0x230], eax
push esi
setne al
push eax
push dword [ebp - 0x234]
lea eax, [ebp - 0x21c]
push dword [ebp - 0x220]
push eax
push ebx
call fcn.61024810
test eax, eax
je 0x61024d58
push eax
push 0x61007ce0
jmp 0x61024d4e
lea eax, [ebp - 0x21c]
push eax
call fcn.61022020
test eax, eax
je 0x61024d58
push eax
push 0x61007c60
push 3
call fcn.6101b566
add esp, 0xc
cmp dword [ebp - 0x22c], 0
je 0x61024d6d
push dword [ebp - 0x228]
call dword [sym.imp.KERNEL32.dll_ReleaseMutex]
cmp dword [ebp - 0x228], 0
je 0x61024d82
push dword [ebp - 0x228]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
lea eax, [ebp - 0x268]
call fcn.61021936
cmp dword [ebp - 0x220], 0
je 0x61024da2
push dword [ebp - 0x220]
call fcn.6102ae57
pop ecx
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x280]
call fcn.6100d5a3
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x21c]
call fcn.6100d793
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x250]
call fcn.6100d5a3
mov eax, edi
call fcn.6102b3db
ret 0xc