Function at 0x104e825
Capabilities:
Check mutex on windows

Disassembly:
push 0x298
mov eax, 0x10596a5
call fcn.01022105
mov esi, dword [ebp + 8]
mov ebx, dword [ebp + 0x14]
lea ecx, [ebp - 0x220]
call fcn.010155dc
xor edi, edi
mov dword [ebp - 4], edi
lea ecx, [ebp - 0x274]
call fcn.0101526d
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x21c]
call fcn.010155dc
mov byte [ebp - 4], 2
lea ecx, [ebp - 0x224]
mov dword [ebp - 0x238], edi
call fcn.010155dc
mov byte [ebp - 4], 3
lea ecx, [ebp - 0x28c]
mov dword [ebp - 0x22c], edi
mov dword [ebp - 0x23c], edi
call fcn.0101526d
mov byte [ebp - 4], 4
push 6
mov dword [ebx], edi
pop ecx
mov dword [ebp - 0x228], edi
mov dword [ebp - 0x230], edi
xor eax, eax
lea edi, [ebp - 0x2a4]
rep stosd dword es:[edi], eax
lea eax, [ebp - 0x274]
push eax
push 4
mov ecx, esi
call fcn.0103c315
test eax, eax
jne 0x104e8df
push 0x1011a08
push 3
call fcn.0103aac4
pop ecx
pop ecx
mov edi, 0x65b
jmp 0x104ece7
cmp dword [ebp - 0x26c], 1
jbe 0x104e8fe
push 0x1013908
push 3
call fcn.0103aac4
pop ecx
pop ecx
push 0xd
pop edi
jmp 0x104ece7
cmp dword [ebp - 0x26c], 0
jne 0x104e90e
push 0x1011910
jmp 0x104e8ed
mov eax, dword [ebp - 0x274]
xor ecx, ecx
test eax, eax
setne cl
test ecx, ecx
jne 0x104e929
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 0x104e8d5
lea ecx, [ebp - 0x21c]
call fcn.01014f3a
push eax
push edi
lea eax, [ebp - 0x218]
push eax
call fcn.010150a7
test eax, eax
jl 0x104e8d5
lea ecx, [ebp - 0x2a4]
call fcn.0104ac86
mov edi, eax
test edi, edi
jne 0x104ece7
lea eax, [ebp - 0x218]
push eax
push edi
lea eax, [ebp - 0x2a4]
push eax
call dword [sym.imp.KERNEL32.dll_CreateMutexW]
test eax, eax
mov dword [ebp - 0x228], eax
jne 0x104e9b6
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov edi, eax
jmp 0x104ecdf
push 0x3e8
push eax
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
cmp eax, 0x80
je 0x104e9db
test eax, eax
je 0x104e9db
cmp eax, 0x102
jne 0x104e9a9
push 0x20
jmp 0x104e8f8
and dword [ebp - 0x234], 0
lea eax, [ebp - 0x23c]
push eax
lea eax, [ebp - 0x22c]
push eax
lea eax, [ebp - 0x224]
push eax
lea eax, [ebp - 0x234]
push eax
push ecx
lea eax, [ebp - 0x21c]
mov ecx, esp
mov dword [ebp - 0x240], esp
push eax
mov dword [ebp - 0x230], 1
call fcn.010157a2
mov byte [ebp - 4], 5
push esi
mov byte [ebp - 4], 4
call fcn.0104d169
mov edi, eax
test edi, edi
jne 0x104ece7
mov eax, dword [ebp - 0x234]
push 0x1004f44
lea ecx, [ebp - 0x224]
mov dword [ebp - 0x238], eax
call fcn.01014f10
test eax, eax
jne 0x104eb90
cmp dword [ebp - 0x234], eax
je 0x104eb3b
cmp dword [ebp + 0x10], eax
jne 0x104eb3b
push 0x1012480
push 1
call fcn.0103aac4
pop ecx
pop ecx
lea eax, [ebp - 0x21c]
push eax
call fcn.0104b5b4
test eax, eax
je 0x104ea9c
push eax
push 0x10120f8
push 3
call fcn.0103aac4
add esp, 0xc
cmp dword [ebp - 0x230], 0
je 0x104eab1
push dword [ebp - 0x228]
call dword [sym.imp.KERNEL32.dll_ReleaseMutex]
cmp dword [ebp - 0x228], 0
je 0x104eac6
push dword [ebp - 0x228]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
lea eax, [ebp - 0x2a4]
call fcn.0104adc7
cmp dword [ebp - 0x22c], 0
je 0x104eae6
push dword [ebp - 0x22c]
call fcn.010213c8
pop ecx
mov byte [ebp - 4], 3
lea ecx, [ebp - 0x28c]
call fcn.01014fc6
mov byte [ebp - 4], 2
lea ecx, [ebp - 0x224]
call fcn.010151a6
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x21c]
call fcn.010151a6
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x274]
call fcn.01014fc6
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x220]
call fcn.010151a6
mov eax, edi
call fcn.01022197
ret 0x10
lea eax, [ebp - 0x220]
push eax
push 2
mov ecx, esi
call fcn.0103b658
test eax, eax
jne 0x104eb67
push 0x100c220
push 3
call fcn.0103aac4
pop ecx
pop ecx
mov edi, 0x643
jmp 0x104ece7
cmp dword [ebp + 0xc], 9
jne 0x104ec6f
lea eax, [ebp - 0x28c]
push eax
push 8
mov ecx, esi
call fcn.0103c315
test eax, eax
jne 0x104ec6f
push 0x1013878
jmp 0x104eb54
cmp dword [ebp + 0x10], 0
je 0x104eccf
lea ecx, [ebp - 0x25c]
call fcn.0103b062
mov byte [ebp - 4], 6
push 3
pop esi
push esi
push ecx
lea eax, [ebp - 0x224]
mov ecx, esp
mov dword [ebp - 0x240], esp
push eax
call fcn.010157a2
mov byte [ebp - 4], 7
mov byte [ebp - 4], 6
lea ecx, [ebp - 0x25c]
call fcn.0103b51c
cmp eax, 0xb7
je 0x104ec09
push dword [ebp - 0x224]
push 0x1012548
push esi
call fcn.0103aac4
add esp, 0xc
mov edi, 0x643
mov byte [ebp - 4], 4
lea ecx, [ebp - 0x25c]
call fcn.0103adc0
jmp 0x104ece7
lea eax, [ebp - 0x220]
push eax
push 2
lea ecx, [ebp - 0x25c]
call fcn.0103b658
test eax, eax
jne 0x104ec30
push 0x100c220
push esi
call fcn.0103aac4
pop ecx
pop ecx
jmp 0x104ebf0
cmp dword [ebp + 0xc], 9
jne 0x104ec55
lea eax, [ebp - 0x28c]
push eax
push 8
lea ecx, [ebp - 0x25c]
call fcn.0103c315
test eax, eax
jne 0x104ec55
push 0x1013878
jmp 0x104ec26
lea ecx, [ebp - 0x25c]
call fcn.0103ac08
mov byte [ebp - 4], 4
lea ecx, [ebp - 0x25c]
call fcn.0103adc0
push dword [ebp + 0xc]
push dword [ebp - 0x220]
push 0x1011658
push 1
call fcn.0103aac4
add esp, 0x10
cmp dword [ebp + 0xc], 5
je 0x104ecb7
cmp dword [ebp + 0xc], 9
jne 0x104ea7c
lea eax, [ebp - 0x28c]
push eax
lea eax, [ebp - 0x21c]
push eax
mov edx, ebx
lea ecx, [ebp - 0x220]
call fcn.0104bd93
jmp 0x104e9af
push ebx
lea eax, [ebp - 0x220]
push eax
lea ecx, [ebp - 0x21c]
call fcn.0104ba94
jmp 0x104e9af
push 0x1012480
push 1
call fcn.0103aac4
pop ecx
pop ecx
xor edi, edi
test edi, edi
je 0x104ea7c
push 0x1010938
push edi
push 3
call fcn.0103ab56
add esp, 0xc
cmp dword [ebp - 0x230], 0
je 0x104eab1
cmp dword [ebp - 0x238], 0
jne 0x104ea9c
push ebx
push dword [ebp - 0x23c]
lea eax, [ebp - 0x21c]
push dword [ebp - 0x22c]
push dword [ebp + 0xc]
push eax
call fcn.0104e602
test eax, eax
je 0x104ea9c
push eax
push 0x10123f0
jmp 0x104ea92