Function at 0x104e61a
Capabilities:
Check mutex on windows

Disassembly:
push 0x274
mov eax, 0x10599b8
call fcn.01021f2c
mov ebx, dword [ebp + 8]
mov esi, dword [ebp + 0x10]
lea ecx, [ebp - 0x250]
call fcn.01014c71
xor edi, edi
mov dword [ebp - 4], edi
lea ecx, [ebp - 0x21c]
call fcn.010151da
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x280]
call fcn.01014c71
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.0103c4cc
test eax, eax
jne 0x104e6b6
push 0x10115f8
push 3
call fcn.0103ac75
pop ecx
pop ecx
mov edi, 0x65b
jmp 0x104e89a
cmp dword [ebp - 0x248], 1
jbe 0x104e6d5
push 0x1013408
push 3
call fcn.0103ac75
pop ecx
pop ecx
push 0xd
pop edi
jmp 0x104e89a
cmp dword [ebp - 0x248], 0
jne 0x104e6e5
push 0x1011500
jmp 0x104e6c4
mov eax, dword [ebp - 0x250]
xor ecx, ecx
test eax, eax
setne cl
test ecx, ecx
jne 0x104e700
push 0x80004005
call fcn.01014415
add eax, 8
push eax
lea ecx, [ebp - 0x21c]
call fcn.01015959
push dword [0x10646b0]
mov edi, 0x104
push edi
lea eax, [ebp - 0x218]
push eax
call fcn.01014ba1
test eax, eax
jl 0x104e6ac
lea ecx, [ebp - 0x21c]
call fcn.01015002
push eax
push edi
lea eax, [ebp - 0x218]
push eax
call fcn.01014bdb
test eax, eax
jl 0x104e6ac
lea ecx, [ebp - 0x268]
call fcn.0104b3d3
mov edi, eax
test edi, edi
jne 0x104e89a
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 0x104e78d
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov edi, eax
jmp 0x104e896
push 0x3e8
push eax
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
cmp eax, 0x80
je 0x104e7b2
test eax, eax
je 0x104e7b2
cmp eax, 0x102
jne 0x104e780
push 0x20
jmp 0x104e6cf
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.010151f2
mov byte [ebp - 4], 3
push ebx
mov byte [ebp - 4], 2
call fcn.0104db99
mov edi, eax
test edi, edi
je 0x104e820
push dword [ebp - 0x21c]
push edi
push 0x1011ef0
push 3
call fcn.0103ac75
add esp, 0x10
jmp 0x104e896
mov eax, dword [ebp - 0x224]
mov dword [ebp - 0x230], eax
test eax, eax
je 0x104e8e5
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.010151f2
mov byte [ebp - 4], 4
mov byte [ebp - 4], 2
call fcn.0104dea1
test eax, eax
jne 0x104e887
push dword [ebp - 0x21c]
mov edi, 0x643
push 0x1011df8
push 3
call fcn.0103ac75
add esp, 0xc
jmp 0x104e89a
cmp dword [ebp - 0x224], 0
je 0x104e8e5
mov dword [esi], 1
test edi, edi
je 0x104e8e5
push 0x10101d0
push edi
push 3
call fcn.0103ad09
add esp, 0xc
cmp dword [ebp - 0x22c], 0
je 0x104e91a
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.0104e3bd
test eax, eax
je 0x104e905
push eax
push 0x1011d60
jmp 0x104e8fb
lea eax, [ebp - 0x21c]
push eax
call fcn.0104bb1a
test eax, eax
je 0x104e905
push eax
push 0x1013388
push 3
call fcn.0103ac75
add esp, 0xc
cmp dword [ebp - 0x22c], 0
je 0x104e91a
push dword [ebp - 0x228]
call dword [sym.imp.KERNEL32.dll_ReleaseMutex]
cmp dword [ebp - 0x228], 0
je 0x104e92f
push dword [ebp - 0x228]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
lea eax, [ebp - 0x268]
call fcn.0104b514
cmp dword [ebp - 0x220], 0
je 0x104e94f
push dword [ebp - 0x220]
call fcn.01021179
pop ecx
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x280]
call fcn.01014fbc
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x21c]
call fcn.01015174
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x250]
call fcn.01014fbc
mov eax, edi
call fcn.01021fbe
ret 0xc