Function at 0x6101c3c0
Capabilities:
Check mutex on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x23c
mov eax, dword [0x61048110]
xor eax, ebp
mov dword [ebp - 4], eax
mov ecx, dword [ebp + 0x10]
push ebx
xor ebx, ebx
push esi
mov esi, dword [ebp + 8]
push edi
xor eax, eax
mov dword [ebp - 0x23c], ebx
lea edi, [ebp - 0x238]
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
mov dword [ebp - 0x21c], esi
mov dword [ebp - 0x224], ecx
mov dword [ebp - 0x210], ebx
mov dword [ebp - 0x214], ebx
mov dword [ebp - 0x218], ebx
mov dword [ebp - 0x220], ebx
stosd dword es:[edi], eax
cmp esi, ebx
je 0x6101c625
cmp dword [ebp + 0xc], 4
je 0x6101c435
cmp dword [ebp + 0xc], 3
je 0x6101c435
cmp dword [ebp + 0xc], 2
jne 0x6101c625
cmp ecx, ebx
je 0x6101c625
mov dword [ecx], ebx
cmp dword [0x610496f0], ebx
jne 0x6101c454
call fcn.6101bbcc
cmp eax, ebx
jne 0x6101c628
lea eax, [ebp - 0x214]
push eax
push esi
lea edi, [ebp - 0x218]
call fcn.6101c08b
test eax, eax
jne 0x6101c472
push 0x6e
jmp 0x6101c627
push 0x61004594
mov esi, 0x104
push esi
lea eax, [ebp - 0x20c]
push eax
call fcn.6100d41c
test eax, eax
jl 0x6101c46b
lea eax, [ebp - 0x210]
push eax
push esi
lea eax, [ebp - 0x20c]
push eax
call fcn.6100d4f0
test eax, eax
jl 0x6101c46b
lea eax, [esi - 1]
sub eax, dword [ebp - 0x210]
push eax
push dword [ebp - 0x21c]
lea eax, [ebp - 0x20c]
push esi
push eax
call fcn.6101b9d7
test eax, eax
jl 0x6101c46b
lea ecx, [ebp - 0x23c]
call fcn.6101b8af
cmp eax, ebx
jne 0x6101c628
lea eax, [ebp - 0x20c]
push eax
push ebx
lea eax, [ebp - 0x23c]
push eax
call dword [sym.imp.KERNEL32.dll_CreateMutexW]
mov dword [ebp - 0x210], eax
cmp eax, ebx
jne 0x6101c52a
call dword [sym.imp.KERNEL32.dll_GetLastError]
lea esi, [ebp - 0x23c]
mov edi, eax
call fcn.6101b79c
push dword [ebp - 0x214]
call fcn.6102b701
push dword [ebp - 0x218]
call fcn.6102b701
pop ecx
pop ecx
mov eax, edi
jmp 0x6101c628
lea esi, [ebp - 0x23c]
call fcn.6101b79c
push 0x3e8
push dword [ebp - 0x210]
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
mov edi, dword [ebp - 0x214]
cmp eax, ebx
mov ebx, dword [ebp - 0x218]
je 0x6101c570
cmp eax, 0x80
je 0x6101c570
cmp eax, 0x102
jne 0x6101c5ff
push 0x20
pop esi
jmp 0x6101c607
push ebx
push edi
call fcn.6101c1e0
push 2
pop esi
cmp eax, esi
jne 0x6101c5bc
cmp dword [ebp + 0xc], 3
je 0x6101c5ef
push ebx
push edi
call fcn.6101c293
test eax, eax
jne 0x6101c5d7
xor esi, esi
mov dword [ebp - 0x220], 1
push dword [ebp - 0x210]
push ebx
push edi
push dword [ebp - 0x21c]
call fcn.6101b690
test eax, eax
je 0x6101c5dc
mov ecx, dword [ebp - 0x224]
mov dword [ecx], eax
jmp 0x6101c613
mov ecx, 0xb7
cmp eax, ecx
jne 0x6101c5d7
cmp dword [ebp + 0xc], esi
jne 0x6101c5d3
push ebx
push edi
call fcn.6101c369
jmp 0x6101c584
mov esi, ecx
jmp 0x6101c59b
push 0x6e
pop esi
jmp 0x6101c5ef
cmp dword [ebp - 0x220], 0
push 0xe
pop esi
je 0x6101c5ef
push ebx
push edi
call fcn.6101c369
push dword [ebp - 0x210]
call dword [sym.imp.KERNEL32.dll_ReleaseMutex]
test eax, eax
jne 0x6101c607
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, eax
push dword [ebp - 0x210]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push edi
call fcn.6102b701
push ebx
call fcn.6102b701
pop ecx
pop ecx
mov eax, esi
jmp 0x6101c628
push 0x57
pop eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.6102b2c1
leave
ret 0xc