Function at 0x1000ebbd
Capabilities:
Check mutex on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x134
mov eax, dword [0x1002f060]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push edi
mov edi, ecx
mov ecx, dword [ebp + 0xc]
cmp ecx, 0x1f4
je 0x1000ed9a
cmp ecx, 0x1f5
je 0x1000ed0f
mov eax, 0x1f6
cmp ecx, eax
je 0x1000ecb8
jle 0x1000f11f
cmp ecx, 0x1f8
jg 0x1000f11f
mov eax, dword [ebp + 8]
cmp eax, dword [edi + 0x44]
jne 0x1000f11f
xor esi, esi
cmp dword [edi + 0x54], esi
je 0x1000f11f
mov eax, dword [edi + 0x40]
cmp eax, esi
je 0x1000f11f
mov ecx, dword [edi + 0x38]
mov dword [ebp - 0x134], ecx
cmp ecx, esi
je 0x1000f11f
push 0xffffffffffffff9a
pop ebx
push 0xffffffffffffffff
push eax
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
cmp eax, 0xffffffff
je 0x1000ec7f
cmp dword [ebp + 0xc], 0x1f7
mov eax, dword [ebp - 0x134]
jne 0x1000ec6a
mov ebx, dword [eax + 4]
mov esi, dword [eax + 8]
jmp 0x1000ec76
mov ebx, dword [eax + 0x1b9c]
mov esi, dword [eax + 0x1ba0]
push dword [edi + 0x40]
call dword [sym.imp.KERNEL32.dll_ReleaseMutex]
cmp dword [ebp + 0xc], 0x1f7
jne 0x1000ec9d
mov dword [edi + 0x7c], ebx
mov dword [edi + 0x80], esi
mov dword [edi + 0x74], 1
jmp 0x1000f118
mov dword [edi + 0xf4], ebx
mov dword [edi + 0xf8], esi
mov dword [edi + 0xf0], 1
jmp 0x1000f118
mov eax, dword [ebp + 8]
cmp eax, dword [edi + 0x44]
jne 0x1000f11f
cmp dword [edi + 0x54], 0
je 0x1000f11f
mov eax, dword [edi + 0x40]
test eax, eax
je 0x1000f11f
mov ebx, dword [edi + 0x38]
test ebx, ebx
je 0x1000f11f
push 0xffffffffffffff9a
pop esi
push 0xffffffffffffffff
push eax
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
cmp eax, 0xffffffff
je 0x1000ed00
push dword [edi + 0x40]
mov esi, dword [ebx]
call dword [sym.imp.KERNEL32.dll_ReleaseMutex]
mov dword [edi + 0x78], esi
mov dword [edi + 0x70], 1
jmp 0x1000f118
mov eax, dword [ebp + 8]
cmp eax, dword [edi + 0x44]
jne 0x1000f11f
cmp dword [edi + 0x54], 0
je 0x1000f11f
mov eax, dword [edi + 0x40]
test eax, eax
je 0x1000f11f
mov esi, dword [edi + 0x38]
test esi, esi
je 0x1000f11f
push 0xffffffffffffffff
push eax
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
cmp eax, 0xffffffff
je 0x1000f11f
mov ebx, dword [esi + 0x10]
push dword [edi + 0x40]
mov esi, dword [esi + 0x14]
call dword [sym.imp.KERNEL32.dll_ReleaseMutex]
test ebx, ebx
js 0x1000f11f
cmp ebx, esi
jg 0x1000f11f
cmp dword [edi + 0x5c], 0
je 0x1000ed8e
mov eax, dword [edi]
mov ecx, edi
call dword [eax + 0x20]
test eax, eax
je 0x1000ed8e
mov eax, dword [edi]
push esi
push ebx
mov ecx, edi
call dword [eax + 0x10]
test eax, eax
jne 0x1000f11f
mov dword [edi + 0x6c], 1
jmp 0x1000f11f
cmp dword [ebp + 8], edi
jne 0x1000f11f
xor ebx, ebx
cmp dword [edi + 0x40], ebx
jne 0x1000f11f
cmp dword [edi + 0x54], ebx
je 0x1000f11f
cmp dword [edi + 0x94], ebx
je 0x1000f11f
cmp dword [edi + 0x84], ebx
je 0x1000f11f
push edi
lea eax, [ebp - 0x130]
call fcn.1000eb4a
mov esi, eax
push 0x10029c50
lea eax, [ebp - 0x130]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcatA]
mov dword [ebp - 0x134], 0xffffff9c
call fcn.10015c20
mov ecx, dword [eax + 0xc]
neg ecx
sbb ecx, ecx
and ecx, eax
lea eax, [ebp - 0x130]
push eax
push ebx
push ecx
call dword [sym.imp.KERNEL32.dll_CreateMutexA]
mov dword [edi + 0x40], eax
cmp eax, ebx
je 0x1000f0eb
mov byte [ebp + esi - 0x130], bl
lea ebx, [edi + 0x34]
push 0x1bb0
lea ecx, [ebp - 0x130]
call fcn.10016bb0
test eax, eax
je 0x1000f0d7
mov esi, dword [edi + 0x38]
xor eax, eax
cmp esi, eax
je 0x1000f0bd
cmp dword [edi + 0x3c], eax
je 0x1000eec5
push 0xffffffffffffffff
push dword [edi + 0x40]
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
cmp eax, 0xffffffff
je 0x1000f0c7
mov eax, dword [esi + 0xc]
push dword [edi + 0x40]
mov dword [edi + 0x44], eax
mov ebx, dword [esi + 0x10]
sub ebx, dword [esi + 0x14]
neg ebx
sbb ebx, ebx
call dword [sym.imp.KERNEL32.dll_ReleaseMutex]
mov eax, dword [edi]
push 0x1f5
push dword [edi + 0x44]
mov ecx, edi
call dword [eax]
inc ebx
je 0x1000f11f
mov eax, dword [edi]
push 0x1f6
push dword [edi + 0x44]
mov ecx, edi
call dword [eax]
cmp dword [edi + 0xd4], 0
je 0x1000f11f
mov eax, dword [edi]
push 0x1f7
push dword [edi + 0x44]
mov ecx, edi
call dword [eax]
jmp 0x1000f11f
mov ebx, dword [sym.imp.KERNEL32.dll_lstrcpynA]
push 0x3e8
mov dword [esi + 0xc], eax
mov dword [esi + 0x10], eax
mov dword [esi], 0xffffff96
mov dword [esi + 0x14], 1
push dword [edi + 0x94]
lea eax, [esi + 0x18]
push eax
call ebx
mov eax, dword [edi + 0xc8]
test eax, eax
je 0x1000ef0a
push 0x3e8
push eax
lea eax, [esi + 0x814]
push eax
call ebx
jmp 0x1000ef11
mov byte [esi + 0x814], 0
mov ecx, dword [edi + 0xcc]
test ecx, ecx
je 0x1000ef39
push 0x3e8
lea eax, [esi + 0x42c]
push ecx
push eax
call ebx
lea eax, [esi + 0x42c]
push eax
push edi
call fcn.1000f997
jmp 0x1000ef40
mov byte [esi + 0x42c], 0
mov eax, dword [edi + 0xd0]
test eax, eax
je 0x1000ef5b
push 0x3e8
push eax
lea eax, [esi + 0xbfc]
push eax
call ebx
jmp 0x1000ef62
mov byte [esi + 0xbfc], 0
mov eax, dword [edi + 0xd4]
test eax, eax
je 0x1000ef7d
push 0x3e8
push eax
lea eax, [esi + 0xfe4]
push eax
call ebx
jmp 0x1000ef84
mov byte [esi + 0xfe4], 0
mov ecx, dword [edi + 0xd8]
test ecx, ecx
je 0x1000efac
push 0x3e8
lea eax, [esi + 0x13cc]
push ecx
push eax
call ebx
lea eax, [esi + 0x13cc]
push eax
push edi
call fcn.1000f997
jmp 0x1000efb3
mov byte [esi + 0x13cc], 0
mov byte [esi + 0x17b4], 0
mov eax, dword [edi + 0xdc]
mov dword [esi + 0x1ba4], eax
mov eax, dword [edi + 0xe4]
mov dword [esi + 0x1ba8], eax
mov eax, dword [edi + 0xe8]
mov dword [esi + 0x1bac], eax
mov eax, dword [edi + 0x98]
mov dword [esi + 0x400], eax
mov eax, dword [edi + 0x9c]
mov dword [esi + 0x404], eax
mov eax, dword [edi + 0xa0]
mov dword [esi + 0x408], eax
mov eax, dword [edi + 0xa4]
mov dword [esi + 0x40c], eax
mov eax, dword [edi + 0xa8]
mov dword [esi + 0x410], eax
mov eax, dword [edi + 0xac]
mov dword [esi + 0x414], eax
mov eax, dword [edi + 0xb0]
mov dword [esi + 0x418], eax
mov eax, dword [edi + 0xb8]
mov dword [esi + 0x428], eax
mov eax, dword [edi + 0xbc]
mov dword [esi + 0x41c], eax
mov eax, dword [edi + 0xc0]
mov dword [esi + 0x420], eax
mov eax, dword [edi + 0xc4]
mov dword [esi + 0x424], eax
cmp dword [edi + 0xd4], 0
je 0x1000f07b
cmp dword [edi + 0xe0], 0
je 0x1000f07b
mov ecx, edi
call fcn.1000f87a
mov eax, dword [edi]
lea ebx, [edi + 0x44]
push ebx
lea ecx, [ebp - 0x130]
push ecx
mov ecx, edi
call dword [eax + 0x1c]
test eax, eax
je 0x1000f0b1
push 0xffffffffffffffff
push dword [edi + 0x40]
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
cmp eax, 0xffffffff
je 0x1000f11f
mov eax, dword [ebx]
mov dword [esi + 0xc], eax
push dword [edi + 0x40]
call dword [sym.imp.KERNEL32.dll_ReleaseMutex]
jmp 0x1000f11f
mov dword [ebp - 0x134], 0xffffff97
jmp 0x1000f0c7
mov dword [ebp - 0x134], 0xffffff9a
lea esi, [edi + 0x34]
call fcn.10016d30
mov esi, dword [ebp - 0x134]
jmp 0x1000f0da
push 0xffffffffffffff9b
pop esi
push dword [edi + 0x40]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
and dword [edi + 0x40], 0
xor ebx, ebx
jmp 0x1000f0fb
mov dword [ebp - 0x134], 0xffffff9b
mov esi, dword [ebp - 0x134]
xor eax, eax
inc eax
mov dword [edi + 0x78], esi
mov dword [edi + 0x70], eax
cmp dword [edi + 0xd4], ebx
je 0x1000f118
mov dword [edi + 0x7c], esi
mov dword [edi + 0x80], ebx
mov dword [edi + 0x74], eax
mov eax, edi
call fcn.1000f4a2
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.10017a76
leave
ret 8