Function at 0x104eda4
Capabilities:
Check mutex on windows

Disassembly:
push 0x298
mov eax, 0x1059aed
call fcn.01021f2c
mov esi, dword [ebp + 8]
mov ebx, dword [ebp + 0x14]
lea ecx, [ebp - 0x220]
call fcn.010151da
xor edi, edi
mov dword [ebp - 4], edi
lea ecx, [ebp - 0x274]
call fcn.01014c71
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x21c]
call fcn.010151da
mov byte [ebp - 4], 2
lea ecx, [ebp - 0x224]
mov dword [ebp - 0x238], edi
call fcn.010151da
mov byte [ebp - 4], 3
lea ecx, [ebp - 0x28c]
mov dword [ebp - 0x22c], edi
mov dword [ebp - 0x23c], edi
call fcn.01014c71
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.0103c4cc
test eax, eax
jne 0x104ee5e
push 0x10115f8
push 3
call fcn.0103ac75
pop ecx
pop ecx
mov edi, 0x65b
jmp 0x104f266
cmp dword [ebp - 0x26c], 1
jbe 0x104ee7d
push 0x10134f8
push 3
call fcn.0103ac75
pop ecx
pop ecx
push 0xd
pop edi
jmp 0x104f266
cmp dword [ebp - 0x26c], 0
jne 0x104ee8d
push 0x1011500
jmp 0x104ee6c
mov eax, dword [ebp - 0x274]
xor ecx, ecx
test eax, eax
setne cl
test ecx, ecx
jne 0x104eea8
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 0x104ee54
lea ecx, [ebp - 0x21c]
call fcn.01015002
push eax
push edi
lea eax, [ebp - 0x218]
push eax
call fcn.01014bdb
test eax, eax
jl 0x104ee54
lea ecx, [ebp - 0x2a4]
call fcn.0104b3d3
mov edi, eax
test edi, edi
jne 0x104f266
lea eax, [ebp - 0x218]
push eax
push edi
lea eax, [ebp - 0x2a4]
push eax
call dword [sym.imp.KERNEL32.dll_CreateMutexW]
mov dword [ebp - 0x228], eax
test eax, eax
jne 0x104ef35
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov edi, eax
jmp 0x104f25e
push 0x3e8
push eax
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
cmp eax, 0x80
je 0x104ef5a
test eax, eax
je 0x104ef5a
cmp eax, 0x102
jne 0x104ef28
push 0x20
jmp 0x104ee77
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.010151f2
mov byte [ebp - 4], 5
push esi
mov byte [ebp - 4], 4
call fcn.0104d6e8
mov edi, eax
test edi, edi
jne 0x104f266
mov eax, dword [ebp - 0x234]
push 0x10022ec
lea ecx, [ebp - 0x224]
mov dword [ebp - 0x238], eax
call fcn.0101492b
test eax, eax
jne 0x104f10f
cmp dword [ebp - 0x234], eax
je 0x104f0ba
cmp dword [ebp + 0x10], eax
jne 0x104f0ba
push 0x1012070
push 1
call fcn.0103ac75
pop ecx
pop ecx
lea eax, [ebp - 0x21c]
push eax
call fcn.0104bb1a
test eax, eax
je 0x104f01b
push eax
push 0x1011ce8
push 3
call fcn.0103ac75
add esp, 0xc
cmp dword [ebp - 0x230], 0
je 0x104f030
push dword [ebp - 0x228]
call dword [sym.imp.KERNEL32.dll_ReleaseMutex]
cmp dword [ebp - 0x228], 0
je 0x104f045
push dword [ebp - 0x228]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
lea eax, [ebp - 0x2a4]
call fcn.0104b514
cmp dword [ebp - 0x22c], 0
je 0x104f065
push dword [ebp - 0x22c]
call fcn.01021179
pop ecx
mov byte [ebp - 4], 3
lea ecx, [ebp - 0x28c]
call fcn.01014fbc
mov byte [ebp - 4], 2
lea ecx, [ebp - 0x224]
call fcn.01015174
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x21c]
call fcn.01015174
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x274]
call fcn.01014fbc
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x220]
call fcn.01015174
mov eax, edi
call fcn.01021fbe
ret 0x10
lea eax, [ebp - 0x220]
push eax
push 2
mov ecx, esi
call fcn.0103b80d
test eax, eax
jne 0x104f0e6
push 0x100bb50
push 3
call fcn.0103ac75
pop ecx
pop ecx
mov edi, 0x643
jmp 0x104f266
cmp dword [ebp + 0xc], 9
jne 0x104f1ee
lea eax, [ebp - 0x28c]
push eax
push 8
mov ecx, esi
call fcn.0103c4cc
test eax, eax
jne 0x104f1ee
push 0x1013468
jmp 0x104f0d3
cmp dword [ebp + 0x10], 0
je 0x104f24e
lea ecx, [ebp - 0x25c]
call fcn.0103b217
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.010151f2
mov byte [ebp - 4], 7
mov byte [ebp - 4], 6
lea ecx, [ebp - 0x25c]
call fcn.0103b6d1
cmp eax, 0xb7
je 0x104f188
push dword [ebp - 0x224]
push 0x1012138
push esi
call fcn.0103ac75
add esp, 0xc
mov edi, 0x643
mov byte [ebp - 4], 4
lea ecx, [ebp - 0x25c]
call fcn.0103af75
jmp 0x104f266
lea eax, [ebp - 0x220]
push eax
push 2
lea ecx, [ebp - 0x25c]
call fcn.0103b80d
test eax, eax
jne 0x104f1af
push 0x100bb50
push esi
call fcn.0103ac75
pop ecx
pop ecx
jmp 0x104f16f
cmp dword [ebp + 0xc], 9
jne 0x104f1d4
lea eax, [ebp - 0x28c]
push eax
push 8
lea ecx, [ebp - 0x25c]
call fcn.0103c4cc
test eax, eax
jne 0x104f1d4
push 0x1013468
jmp 0x104f1a5
lea ecx, [ebp - 0x25c]
call fcn.0103adbd
mov byte [ebp - 4], 4
lea ecx, [ebp - 0x25c]
call fcn.0103af75
push dword [ebp + 0xc]
push dword [ebp - 0x220]
push 0x1011248
push 1
call fcn.0103ac75
add esp, 0x10
cmp dword [ebp + 0xc], 5
je 0x104f236
cmp dword [ebp + 0xc], 9
jne 0x104effb
lea eax, [ebp - 0x28c]
push eax
lea eax, [ebp - 0x21c]
push eax
mov edx, ebx
lea ecx, [ebp - 0x220]
call fcn.0104c303
jmp 0x104ef2e
push ebx
lea eax, [ebp - 0x220]
push eax
lea ecx, [ebp - 0x21c]
call fcn.0104bffd
jmp 0x104ef2e
push 0x1012070
push 1
call fcn.0103ac75
pop ecx
pop ecx
xor edi, edi
test edi, edi
je 0x104effb
push 0x1010528
push edi
push 3
call fcn.0103ad09
add esp, 0xc
cmp dword [ebp - 0x230], 0
je 0x104f030
cmp dword [ebp - 0x238], 0
jne 0x104f01b
push ebx
push dword [ebp - 0x23c]
lea eax, [ebp - 0x21c]
push dword [ebp - 0x22c]
push dword [ebp + 0xc]
push eax
call fcn.0104eb81
test eax, eax
je 0x104f01b
push eax
push 0x1011fe0
jmp 0x104f011