Function at 0x104e09b
Capabilities:
Check mutex on windows

Disassembly:
push 0x274
mov eax, 0x1059570
call fcn.01022105
mov ebx, dword [ebp + 8]
mov esi, dword [ebp + 0x10]
lea ecx, [ebp - 0x250]
call fcn.0101526d
xor edi, edi
mov dword [ebp - 4], edi
lea ecx, [ebp - 0x21c]
call fcn.010155dc
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x280]
call fcn.0101526d
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.0103c315
test eax, eax
jne 0x104e137
push 0x1011a08
push 3
call fcn.0103aac4
pop ecx
pop ecx
mov edi, 0x65b
jmp 0x104e31b
cmp dword [ebp - 0x248], 1
jbe 0x104e156
push 0x1013818
push 3
call fcn.0103aac4
pop ecx
pop ecx
push 0xd
pop edi
jmp 0x104e31b
cmp dword [ebp - 0x248], 0
jne 0x104e166
push 0x1011910
jmp 0x104e145
mov eax, dword [ebp - 0x250]
xor ecx, ecx
test eax, eax
setne cl
test ecx, ecx
jne 0x104e181
push 0x80004005
call fcn.01014904
add eax, 8
push eax
lea ecx, [ebp - 0x21c]
call fcn.01015b0a
push dword [0x10645e0]
mov edi, 0x104
push edi
lea eax, [ebp - 0x218]
push eax
call fcn.0101506d
test eax, eax
jl 0x104e12d
lea ecx, [ebp - 0x21c]
call fcn.01014f3a
push eax
push edi
lea eax, [ebp - 0x218]
push eax
call fcn.010150a7
test eax, eax
jl 0x104e12d
lea ecx, [ebp - 0x268]
call fcn.0104ac86
mov edi, eax
test edi, edi
jne 0x104e31b
lea eax, [ebp - 0x218]
push eax
push edi
lea eax, [ebp - 0x268]
push eax
call dword [sym.imp.KERNEL32.dll_CreateMutexW]
test eax, eax
mov dword [ebp - 0x228], eax
jne 0x104e20e
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov edi, eax
jmp 0x104e317
push 0x3e8
push eax
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
cmp eax, 0x80
je 0x104e233
test eax, eax
je 0x104e233
cmp eax, 0x102
jne 0x104e201
push 0x20
jmp 0x104e150
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.010157a2
mov byte [ebp - 4], 3
push ebx
mov byte [ebp - 4], 2
call fcn.0104d61a
mov edi, eax
test edi, edi
je 0x104e2a1
push dword [ebp - 0x21c]
push edi
push 0x1012300
push 3
call fcn.0103aac4
add esp, 0x10
jmp 0x104e317
mov eax, dword [ebp - 0x224]
test eax, eax
mov dword [ebp - 0x230], eax
je 0x104e366
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.010157a2
mov byte [ebp - 4], 4
mov byte [ebp - 4], 2
call fcn.0104d922
test eax, eax
jne 0x104e308
push dword [ebp - 0x21c]
mov edi, 0x643
push 0x1012208
push 3
call fcn.0103aac4
add esp, 0xc
jmp 0x104e31b
cmp dword [ebp - 0x224], 0
je 0x104e366
mov dword [esi], 1
test edi, edi
je 0x104e366
push 0x10105e0
push edi
push 3
call fcn.0103ab56
add esp, 0xc
cmp dword [ebp - 0x22c], 0
je 0x104e39b
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.0104de3e
test eax, eax
je 0x104e386
push eax
push 0x1012170
jmp 0x104e37c
lea eax, [ebp - 0x21c]
push eax
call fcn.0104b5b4
test eax, eax
je 0x104e386
push eax
push 0x1013798
push 3
call fcn.0103aac4
add esp, 0xc
cmp dword [ebp - 0x22c], 0
je 0x104e39b
push dword [ebp - 0x228]
call dword [sym.imp.KERNEL32.dll_ReleaseMutex]
cmp dword [ebp - 0x228], 0
je 0x104e3b0
push dword [ebp - 0x228]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
lea eax, [ebp - 0x268]
call fcn.0104adc7
cmp dword [ebp - 0x220], 0
je 0x104e3d0
push dword [ebp - 0x220]
call fcn.010213c8
pop ecx
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x280]
call fcn.01014fc6
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x21c]
call fcn.010151a6
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x250]
call fcn.01014fc6
mov eax, edi
call fcn.01022197
ret 0xc