Function at 0x10003b70
Capabilities:
Check mutex on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x100afd6c
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x1c
push ebx
mov ebx, dword [ebp + 8]
push esi
push edi
lea edi, [ebx + 0x44]
push edi
mov dword [ebp - 0x10], edi
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov eax, dword [ebx]
push ebx
call dword [eax + 0x10]
test eax, eax
jne 0x10003bc3
call dword [sym.imp.KERNEL32.dll_GetLastError]
push edi
mov esi, eax
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
push esi
call dword [sym.imp.KERNEL32.dll_SetLastError]
jmp 0x1000402c
mov ebx, dword [ebp + 0x10]
cmp ebx, 0x10
jbe 0x10003bd3
mov ebx, 0x10
mov dword [ebp + 0x10], ebx
mov edx, dword [ebp + 0xc]
test edx, edx
jne 0x10003d3c
test ebx, ebx
jne 0x10003bf6
push edi
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
push 0x57
call dword [sym.imp.KERNEL32.dll_SetLastError]
jmp 0x1000402c
xor ecx, ecx
mov eax, ebx
mov edx, 0x90
mul edx
push 0x100da820
seto cl
neg ecx
or ecx, eax
xor eax, eax
add ecx, 4
setb al
neg eax
or eax, ecx
push eax
call fcn.1009c33f
add esp, 8
mov dword [ebp - 0x24], eax
mov dword [ebp - 4], 0
test eax, eax
je 0x10003c4d
push 0x100038a0
push 0x10003660
push ebx
lea edi, [eax + 4]
mov dword [eax], ebx
push 0x90
push edi
call fcn.1009c707
jmp 0x10003c4f
xor edi, edi
mov dword [ebp - 4], 0xffffffff
test edi, edi
jne 0x10003c71
mov eax, dword [ebp - 0x10]
push eax
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
push 0xe
call dword [sym.imp.KERNEL32.dll_SetLastError]
jmp 0x1000402c
xor eax, eax
mov dword [ebp - 0x1c], eax
test ebx, ebx
je 0x10003f58
mov ecx, dword [ebp + 8]
lea esi, [edi + 0x24]
lea edx, [ecx + 0x3c]
mov dword [ebp - 0x20], edx
lea ebx, [ebx]
mov dword [esi + 0x5c], eax
mov eax, dword [esi]
mov dword [esi + 0x58], ecx
mov dword [ebp - 0x24], eax
test eax, eax
je 0x10003cb8
add eax, 4
push eax
call dword [sym.imp.KERNEL32.dll_InterlockedDecrement]
test eax, eax
jne 0x10003cb8
push dword [ebp - 0x24]
call fcn.1009c777
add esp, 4
mov eax, dword [ebp - 0x20]
mov dword [esi], eax
test eax, eax
je 0x10003ccb
add eax, 4
push eax
call dword [sym.imp.KERNEL32.dll_InterlockedIncrement]
mov ecx, dword [esi - 0x24]
lea eax, [esi - 0x24]
push 0
push eax
call dword [ecx + 0xc]
test eax, eax
je 0x10003cf4
mov eax, dword [ebp - 0x1c]
add esi, 0x90
mov ecx, dword [ebp + 8]
inc eax
mov dword [ebp - 0x1c], eax
cmp eax, ebx
jb 0x10003c90
jmp 0x10003f26
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, eax
mov eax, dword [ebp - 0x10]
push eax
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
cmp dword [edi - 4], 0
lea ecx, [edi - 4]
je 0x10003d27
mov edx, dword [edi]
mov ecx, edi
push 3
call dword [edx + 0x1e0]
push esi
call dword [sym.imp.KERNEL32.dll_SetLastError]
jmp 0x1000402c
push ecx
call fcn.1009c380
add esp, 4
push esi
call dword [sym.imp.KERNEL32.dll_SetLastError]
jmp 0x1000402c
push str.__G65DDCAPI_MUTEX__
push 0
push 0
mov dword [ebp - 4], 1
call dword [sym.imp.KERNEL32.dll_CreateMutexW]
mov esi, eax
push 0xffffffffffffffff
push esi
mov dword [ebp - 0x28], esi
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
cmp dword [ebp + 0xc], 0xffffffff
jne 0x10003e02
push 0x10
call fcn.1009c7ed
add esp, 4
test eax, eax
je 0x10003d83
mov ecx, eax
call fcn.1000a720
mov edi, eax
jmp 0x10003d85
xor edi, edi
cmp dword [edi + 4], 0
jne 0x10003d98
push edi
call fcn.1000a750
push 2
jmp 0x10004007
lea eax, [ebp + 0x10]
push eax
push 0
push 0
push edi
call fcn.1000a790
mov eax, dword [ebp + 0x10]
test eax, eax
jne 0x10003dc4
push edi
call fcn.1000a750
mov eax, dword [ebp - 0x10]
push eax
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
push 2
jmp 0x10004007
xor ecx, ecx
mov edx, 0x145
mul edx
push 0x100da820
seto cl
neg ecx
or ecx, eax
push ecx
call fcn.1009c33f
add esp, 8
mov ebx, eax
lea eax, [ebp + 0x10]
mov dword [ebp + 0xc], ebx
push eax
push ebx
push 0
push edi
call fcn.1000a790
push edi
call fcn.1000a750
mov dword [ebp - 0x14], ebx
mov ebx, dword [ebp + 0x10]
jmp 0x10003e11
test ebx, ebx
je 0x10003ffe
mov dword [ebp - 0x14], 0
xor ecx, ecx
mov eax, ebx
mov edx, 0x90
mul edx
push 0x100da820
seto cl
neg ecx
or ecx, eax
xor eax, eax
add ecx, 4
setb al
neg eax
or eax, ecx
push eax
call fcn.1009c33f
add esp, 8
mov dword [ebp - 0x20], eax
mov byte [ebp - 4], 2
test eax, eax
je 0x10003e68
push 0x100038a0
push 0x10003660
push ebx
lea edi, [eax + 4]
mov dword [eax], ebx
push 0x90
push edi
mov dword [ebp - 0x24], edi
call fcn.1009c707
jmp 0x10003e6d
xor edi, edi
mov dword [ebp - 0x24], edi
mov byte [ebp - 4], 1
test edi, edi
jne 0x10003e96
mov eax, dword [ebp - 0x10]
push eax
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
mov eax, dword [ebp - 0x14]
test eax, eax
je 0x10003e8f
push eax
call fcn.1009c380
add esp, 4
push 0xe
jmp 0x10004007
xor eax, eax
mov dword [ebp - 0x20], eax
test ebx, ebx
je 0x10003eeb
mov edx, dword [ebp + 0xc]
mov ecx, edi
mov dword [ebp - 0x1c], ecx
mov dword [ebp - 0x18], edx
lea ebx, [ebx]
push eax
push dword [ebp + 8]
call fcn.10003680
mov ecx, dword [ebp - 0x1c]
push dword [ebp - 0x18]
push ecx
mov eax, dword [ecx]
call dword [eax + 0xc]
test eax, eax
je 0x10003f80
mov eax, dword [ebp - 0x20]
mov ecx, dword [ebp - 0x1c]
inc eax
add dword [ebp - 0x18], 0x145
add ecx, 0x90
mov dword [ebp - 0x20], eax
mov dword [ebp - 0x1c], ecx
cmp eax, ebx
jb 0x10003eb0
mov eax, dword [ebp - 0x14]
test eax, eax
je 0x10003efb
push eax
call fcn.1009c380
add esp, 4
mov dword [ebp - 4], 0xffffffff
test esi, esi
je 0x10003f26
call dword [sym.imp.KERNEL32.dll_GetLastError]
push esi
mov edi, eax
call dword [sym.imp.KERNEL32.dll_ReleaseMutex]
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push edi
call dword [sym.imp.KERNEL32.dll_SetLastError]
mov edi, dword [ebp - 0x24]
test ebx, ebx
je 0x10003f58
mov esi, edi
mov dword [ebp - 0x24], ebx
nop
mov eax, dword [esi + 8]
lea ecx, [esi + 0x78]
mov edx, esi
neg edx
sbb edx, edx
mov byte [eax + 0x3a1], 1
mov eax, dword [esi]
and edx, ecx
push edx
push esi
call dword [eax + 4]
add esi, 0x90
dec ebx
jne 0x10003f30
mov ebx, dword [ebp + 0x10]
cmp dword [ebp + 0xc], 0
mov esi, dword [ebp + 8]
mov dword [esi + 0x34], edi
mov dword [esi + 0x38], ebx
je 0x10003fcd
push 0x18
call fcn.1009c7ed
mov edi, eax
add esp, 4
test edi, edi
je 0x10003fc5
push edi
call dword [sym.imp.KERNEL32.dll_InitializeCriticalSection]
jmp 0x10003fc7
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov ebx, eax
mov eax, dword [ebp - 0x10]
push eax
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
cmp dword [edi - 4], 0
lea ecx, [edi - 4]
je 0x10003fa9
mov edx, dword [edi]
mov ecx, edi
push 3
call dword [edx + 0x1e0]
jmp 0x10003fb2
push ecx
call fcn.1009c380
add esp, 4
mov eax, dword [ebp - 0x14]
test eax, eax
je 0x10003fc2
push eax
call fcn.1009c380
add esp, 4
push ebx
jmp 0x10004007
xor edi, edi
mov dword [esi + 0x8c], edi
mov ecx, esi
call fcn.100040b0
lea eax, [esi + 0x44]
push eax
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
push 0
call dword [sym.imp.KERNEL32.dll_SetLastError]
pop edi
pop esi
mov eax, 1
pop ebx
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
mov esp, ebp
pop ebp
ret 0xc
push edi
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
push 0x57
mov ebx, dword [sym.imp.KERNEL32.dll_SetLastError]
call ebx
test esi, esi
je 0x1000402c
call dword [sym.imp.KERNEL32.dll_GetLastError]
push esi
mov edi, eax
call dword [sym.imp.KERNEL32.dll_ReleaseMutex]
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push edi
call ebx
mov ecx, dword [ebp - 0xc]
xor eax, eax
pop edi
pop esi
pop ebx
mov dword fs:[0], ecx
mov esp, ebp
pop ebp
ret 0xc