Function at 0x100cec10
Capabilities:
Check mutex on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x100f3f39
mov eax, dword fs:[0]
push eax
sub esp, 0x454
mov eax, dword [0x1012d034]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov ebx, ecx
mov dword [ebp - 0x428], ebx
mov dword [ebp - 4], 2
call fcn.10032030
mov dword [ebp - 0x454], 0
mov dword [ebp - 0x450], 0
mov dword [ebp - 0x44c], 0
mov dword [ebp - 0x448], 0
mov dword [ebp - 0x444], 0
mov dword [ebp - 0x440], 0
mov dword [ebp - 0x460], 0
mov dword [ebp - 0x45c], 0
mov dword [ebp - 0x458], 0
sub esp, 0x18
mov byte [ebp - 4], 5
mov ecx, esp
xor eax, eax
push 0xf
mov dword [ecx + 0x14], 7
mov dword [ecx + 0x10], 0
push 0x1010d3b8
mov word [ecx], ax
call fcn.10001e10
lea ecx, [ebp - 0x40c]
call fcn.100bcbd0
add esp, 0x18
mov byte [ebp - 4], 6
mov esi, dword [eax]
lea ecx, [esi + 0x1c]
call fcn.100d5ff0
test al, al
je 0x100cecff
push 0xffffffffffffffff
push dword [esi + 0x1c]
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
mov byte [ebp - 4], 5
or edi, 0xffffffff
mov esi, dword [ebp - 0x408]
test esi, esi
je 0x100ced33
lea eax, [esi + 4]
mov ecx, edi
lock xadd dword [eax], ecx
jne 0x100ced33
mov eax, dword [esi]
mov ecx, esi
call dword [eax]
lea eax, [esi + 8]
mov ecx, edi
lock xadd dword [eax], ecx
jne 0x100ced33
mov eax, dword [esi]
mov ecx, esi
call dword [eax + 4]
sub esp, 0x18
lea eax, [ebp + 0x38]
mov ecx, esp
mov dword [ebp - 0x408], esp
push 0xffffffffffffffff
push 0
mov dword [ecx + 0x14], 0xf
mov dword [ecx + 0x10], 0
push eax
mov byte [ecx], 0
call fcn.10007d40
sub esp, 0x18
mov byte [ebp - 4], 7
mov ecx, esp
mov dword [ebp - 0x404], esp
lea eax, [ebp + 0x20]
push 0xffffffffffffffff
push 0
mov dword [ecx + 0x14], 0xf
mov dword [ecx + 0x10], 0
push eax
mov byte [ecx], 0
call fcn.10007d40
mov byte [ebp - 4], 8
mov eax, dword [0x10132804]
test al, 1
jne 0x100cedb8
or eax, 1
mov dword [0x10132804], eax
mov byte [ebp - 4], 9
call fcn.100c2550
push 0x100f74c0
call fcn.100ebe7b
add esp, 4
mov byte [ebp - 4], 8
lea eax, [ebp - 0x448]
mov byte [ebp - 4], 5
push eax
mov ecx, 0x10132808
call fcn.100c26a0
sub esp, 0x18
xor eax, eax
mov ecx, esp
push 0xf
mov dword [ecx + 0x14], 7
mov dword [ecx + 0x10], 0
push 0x1010d398
mov word [ecx], ax
call fcn.10001e10
lea ecx, [ebp - 0x40c]
call fcn.100bcbd0
add esp, 0x18
mov esi, dword [eax]
cmp dword [esi + 0x34], 8
lea eax, [esi + 0x20]
jb 0x100cee0c
mov eax, dword [eax]
push eax
push 0
push 0x1f0001
call dword [sym.imp.KERNEL32.dll_OpenMutexW]
mov dword [esi + 0x1c], eax
test eax, eax
je 0x100cee35
push eax
call dword [sym.imp.KERNEL32.dll_ReleaseMutex]
test eax, eax
jne 0x100cee35
push dword [esi + 0x1c]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov esi, dword [ebp - 0x408]
test esi, esi
je 0x100cee61
lea eax, [esi + 4]
mov ecx, edi
lock xadd dword [eax], ecx
jne 0x100cee61
mov eax, dword [esi]
mov ecx, esi
call dword [eax]
lea eax, [esi + 8]
lock xadd dword [eax], edi
dec edi
jne 0x100cee61
mov eax, dword [esi]
mov ecx, esi
call dword [eax + 4]
mov ecx, dword [ebx + 4]
mov eax, 0x10624dd3
sub ecx, dword [ebx]
imul ecx
mov ecx, dword [ebp - 0x444]
mov eax, 0x10624dd3
sub ecx, dword [ebp - 0x448]
sar edx, 5
mov edi, edx
shr edi, 0x1f
add edi, edx
imul ecx
lea eax, [edi - 1]
mov dword [ebp - 0x408], edi
sar edx, 5
mov ebx, eax
mov esi, edx
mov dword [ebp - 0x424], eax
shr esi, 0x1f
add esi, edx
mov dword [ebp - 0x414], ebx
mov dword [ebp - 0x41c], esi
test ebx, ebx
js 0x100cf112
imul edi, ebx, 0x1f4
mov dword [ebp - 0x418], edi
mov eax, dword [ebp - 0x428]
mov ecx, dword [eax + 4]
mov esi, dword [eax]
sub ecx, esi
mov eax, 0x10624dd3
imul ecx
sar edx, 5
mov eax, edx
shr eax, 0x1f
add eax, edx
cmp eax, ebx
jbe 0x100cf65a
lea eax, [edi + esi]
push eax
lea ecx, [ebp - 0x400]
call fcn.10024ce0
mov esi, dword [ebp - 0x41c]
mov byte [ebp - 4], 0xa
lea eax, [esi - 1]
mov dword [ebp - 0x404], eax
test eax, eax
js 0x100cf0e2
imul ecx, eax, 0x1f4
add ecx, dword [ebp - 0x448]
mov dword [ebp - 0x410], ecx
cmp esi, eax
jbe 0x100cf65a
push ecx
lea ecx, [ebp - 0x208]
call fcn.10024ce0
cmp dword [ebp - 0xc8], 0x10
lea ecx, [ebp - 0xdc]
mov edi, dword [ebp - 0xcc]
lea edx, [ebp - 0x2d4]
cmovae ecx, dword [ebp - 0xdc]
mov esi, edi
cmp dword [ebp - 0x2c0], 0x10
mov ebx, dword [ebp - 0x2c4]
cmovae edx, dword [ebp - 0x2d4]
cmp ebx, edi
cmovb esi, ebx
test esi, esi
je 0x100cefd0
sub esi, 4
jb 0x100cef91
nop
mov eax, dword [edx]
cmp eax, dword [ecx]
jne 0x100cef96
add edx, 4
add ecx, 4
sub esi, 4
jae 0x100cef80
cmp esi, 0xfffffffc
je 0x100cefca
mov al, byte [edx]
cmp al, byte [ecx]
jne 0x100cefc3
cmp esi, 0xfffffffd
je 0x100cefca
mov al, byte [edx + 1]
cmp al, byte [ecx + 1]
jne 0x100cefc3
cmp esi, 0xfffffffe
je 0x100cefca
mov al, byte [edx + 2]
cmp al, byte [ecx + 2]
jne 0x100cefc3
cmp esi, 0xffffffff
je 0x100cefca
mov al, byte [edx + 3]
cmp al, byte [ecx + 3]
je 0x100cefca
sbb eax, eax
or eax, 1
jmp 0x100cefcc
xor eax, eax
test eax, eax
jne 0x100cefe2
cmp ebx, edi
jae 0x100cefd9
or eax, 0xffffffff
jmp 0x100cefe0
xor eax, eax
cmp ebx, edi
setne al
test eax, eax
sete al
test al, al
je 0x100cf09e
cmp dword [ebp - 0xb0], 0x10
lea edx, [ebp - 0xc4]
mov edi, dword [ebp - 0xb4]
lea eax, [ebp - 0x2bc]
cmovae edx, dword [ebp - 0xc4]
mov esi, edi
cmp dword [ebp - 0x2a8], 0x10
mov ebx, dword [ebp - 0x2ac]
cmovae eax, dword [ebp - 0x2bc]
cmp ebx, edi
cmovb esi, ebx
test esi, esi
je 0x100cf081
sub esi, 4
jb 0x100cf042
mov ecx, dword [eax]
cmp ecx, dword [edx]
jne 0x100cf047
add eax, 4
add edx, 4
sub esi, 4
jae 0x100cf031
cmp esi, 0xfffffffc
je 0x100cf07b
mov cl, byte [eax]
cmp cl, byte [edx]
jne 0x100cf074
cmp esi, 0xfffffffd
je 0x100cf07b
mov cl, byte [eax + 1]
cmp cl, byte [edx + 1]
jne 0x100cf074
cmp esi, 0xfffffffe
je 0x100cf07b
mov cl, byte [eax + 2]
cmp cl, byte [edx + 2]
jne 0x100cf074
cmp esi, 0xffffffff
je 0x100cf07b
mov al, byte [eax + 3]
cmp al, byte [edx + 3]
je 0x100cf07b
sbb eax, eax
or eax, 1
jmp 0x100cf07d
xor eax, eax
test eax, eax
jne 0x100cf093
cmp ebx, edi
jae 0x100cf08a
or eax, 0xffffffff
jmp 0x100cf091
xor eax, eax
cmp ebx, edi
setne al
test eax, eax
sete al
test al, al
jne 0x100cf1e2
lea ecx, [ebp - 0x208]
call fcn.10024970
mov eax, dword [ebp - 0x404]
mov ecx, dword [ebp - 0x410]
dec eax
mov esi, dword [ebp - 0x41c]
sub ecx, 0x1f4
mov dword [ebp - 0x404], eax
mov dword [ebp - 0x410], ecx
test eax, eax
jns 0x100cef27
mov ebx, dword [ebp - 0x414]
mov edi, dword [ebp - 0x418]
lea ecx, [ebp - 0x400]
mov byte [ebp - 4], 5
call fcn.10024970
dec ebx
sub edi, 0x1f4
mov dword [ebp - 0x414], ebx
mov dword [ebp - 0x418], edi
test ebx, ebx
jns 0x100ceec5
mov edi, dword [ebp - 0x408]
test esi, esi
je 0x100cf162
xor esi, esi
test edi, edi
je 0x100cf162
xor edi, edi
mov edi, edi
mov eax, dword [ebp - 0x428]
mov ecx, dword [eax + 4]
mov ebx, dword [eax]
sub ecx, ebx
mov eax, 0x10624dd3
imul ecx
sar edx, 5
mov eax, edx
shr eax, 0x1f
add eax, edx
cmp eax, esi
jbe 0x100cf65a
mov eax, dword [ebp - 0x41c]
inc esi
add dword [edi + ebx + 0x174], eax
add edi, 0x1f4
cmp esi, dword [ebp - 0x408]
jb 0x100cf120
sub esp, 0x18
lea eax, [ebp + 8]
mov ecx, esp
push 0xffffffffffffffff
push 0
mov dword [ecx + 0x14], 0xf
mov dword [ecx + 0x10], 0
push eax
mov byte [ecx], 0
call fcn.10007d40
mov ecx, dword [ebp - 0x428]
mov edx, 1
call fcn.100cadf0
add esp, 0x18
jmp 0x100cf1a0
mov edi, dword [ebp - 0x444]
mov ebx, dword [ebp - 0x448]
test ebx, ebx
je 0x100cf670
mov esi, ebx
cmp ebx, edi
je 0x100cf1d1
lea ebx, [ebx]
mov ecx, esi
call fcn.10024970
add esi, 0x1f4
cmp esi, edi
jne 0x100cf1c0
push ebx
mov ebx, dword [sym.imp.MSVCR120.dll_void___cdecl_operator_delete_void__]
call ebx
add esp, 4
jmp 0x100cf676
lea ecx, [ebp - 0x208]
call fcn.10024970
lea ecx, [ebp - 0x400]
mov byte [ebp - 4], 5
call fcn.10024970
push dword [ebp - 0x408]
mov esi, dword [ebp - 0x41c]
mov edi, dword [ebp - 0x444]
mov edx, edi
mov ecx, dword [ebp - 0x448]
push esi
call fcn.100d0150
xor eax, eax
or ebx, 0xffffffff
add esp, 8
mov dword [ebp - 0x420], ebx
mov dword [ebp - 0x438], eax
mov dword [ebp - 0x410], eax
mov dword [ebp - 0x434], eax
mov dword [ebp - 0x43c], eax
mov dword [ebp - 0x430], eax
mov byte [ebp - 4], 0xb
mov eax, dword [ebp - 0x424]
mov dword [ebp - 0x42c], eax
test eax, eax
js 0x100cf1a6
lea edi, [esi - 1]
mov dword [ebp - 0x404], edi
lea esp, [esp]
mov eax, dword [ebp - 0x428]
mov ecx, dword [eax + 4]
mov esi, dword [eax]
sub ecx, esi
mov eax, 0x10624dd3
imul ecx
mov ecx, dword [ebp - 0x424]
sar edx, 5
mov eax, edx
shr eax, 0x1f
add eax, edx
cmp eax, ecx
jbe 0x100cf65a
imul eax, ecx, 0x1f4
lea ecx, [ebp - 0x400]
add eax, esi
push eax
call fcn.10024ce0
mov eax, edi
mov byte [ebp - 4], 0xc
mov dword [ebp - 0x414], eax
test eax, eax
js 0x100cf60a
mov ecx, ebx
sub ecx, eax
mov dword [ebp - 0x418], ecx
imul ecx, eax, 0x1f4
add ecx, dword [ebp - 0x448]
mov dword [ebp - 0x408], ecx
cmp dword [ebp - 0x41c], eax
jbe 0x100cf65a
push ecx
lea ecx, [ebp - 0x208]
call fcn.10024ce0
cmp dword [ebp - 0xc8], 0x10
lea ecx, [ebp - 0xdc]
mov edi, dword [ebp - 0xcc]
lea edx, [ebp - 0x2d4]
cmovae ecx, dword [ebp - 0xdc]
mov esi, edi
cmp dword [ebp - 0x2c0], 0x10
mov ebx, dword [ebp - 0x2c4]
cmovae edx, dword [ebp - 0x2d4]
cmp ebx, edi
cmovb esi, ebx
test esi, esi
je 0x100cf390
sub esi, 4
jb 0x100cf351
lea esp, [esp]
mov eax, dword [edx]
cmp eax, dword [ecx]
jne 0x100cf356
add edx, 4
add ecx, 4
sub esi, 4
jae 0x100cf340
cmp esi, 0xfffffffc
je 0x100cf38a
mov al, byte [edx]
cmp al, byte [ecx]
jne 0x100cf383
cmp esi, 0xfffffffd
je 0x100cf38a
mov al, byte [edx + 1]
cmp al, byte [ecx + 1]
jne 0x100cf383
cmp esi, 0xfffffffe
je 0x100cf38a
mov al, byte [edx + 2]
cmp al, byte [ecx + 2]
jne 0x100cf383
cmp esi, 0xffffffff
je 0x100cf38a
mov al, byte [edx + 3]
cmp al, byte [ecx + 3]
je 0x100cf38a
sbb eax, eax
or eax, 1
jmp 0x100cf38c
xor eax, eax
test eax, eax
jne 0x100cf3a2
cmp ebx, edi
jae 0x100cf399
or eax, 0xffffffff
jmp 0x100cf3a0
xor eax, eax
cmp ebx, edi
setne al
test eax, eax
sete al
test al, al
je 0x100cf47b
cmp dword [ebp - 0xb0], 0x10
lea ecx, [ebp - 0xc4]
mov edi, dword [ebp - 0xb4]
lea edx, [ebp - 0x2bc]
cmovae ecx, dword [ebp - 0xc4]
mov esi, edi
cmp dword [ebp - 0x2a8], 0x10
mov ebx, dword [ebp - 0x2ac]
cmovae edx, dword [ebp - 0x2bc]
cmp ebx, edi
cmovb esi, ebx
test esi, esi
je 0x100cf441
sub esi, 4
jb 0x100cf402
mov eax, dword [edx]
cmp eax, dword [ecx]
jne 0x100cf407
add edx, 4
add ecx, 4
sub esi, 4
jae 0x100cf3f1
cmp esi, 0xfffffffc
je 0x100cf43b
mov al, byte [edx]
cmp al, byte [ecx]
jne 0x100cf434
cmp esi, 0xfffffffd
je 0x100cf43b
mov al, byte [edx + 1]
cmp al, byte [ecx + 1]
jne 0x100cf434
cmp esi, 0xfffffffe
je 0x100cf43b
mov al, byte [edx + 2]
cmp al, byte [ecx + 2]
jne 0x100cf434
cmp esi, 0xffffffff
je 0x100cf43b
mov al, byte [edx + 3]
cmp al, byte [ecx + 3]
je 0x100cf43b
sbb eax, eax
or eax, 1
jmp 0x100cf43d
xor eax, eax
test eax, eax
jne 0x100cf453
cmp ebx, edi
jae 0x100cf44a
or eax, 0xffffffff
jmp 0x100cf451
xor eax, eax
cmp ebx, edi
setne al
test eax, eax
sete al
test al, al
je 0x100cf47b
mov ebx, dword [ebp - 0x420]
cmp ebx, 0xffffffff
je 0x100cf4be
cmp dword [ebp - 0x418], 1
je 0x100cf4be
lea ecx, [ebp - 0x208]
call fcn.10024970
jmp 0x100cf48c
lea ecx, [ebp - 0x208]
call fcn.10024970
mov ebx, dword [ebp - 0x420]
mov eax, dword [ebp - 0x414]
mov ecx, dword [ebp - 0x408]
dec eax
inc dword [ebp - 0x418]
sub ecx, 0x1f4
mov dword [ebp - 0x414], eax
mov dword [ebp - 0x408], ecx
test eax, eax
jns 0x100cf2e0
jmp 0x100cf604
mov eax, dword [ebp - 0x414]
lea ecx, [ebp - 0x208]
mov dword [ebp - 0x420], eax
call fcn.10024970
mov ebx, dword [ebp - 0x410]
lea eax, [ebp - 0x42c]
mov ecx, dword [ebp - 0x438]
cmp eax, ebx
jae 0x100cf578
cmp ecx, eax
ja 0x100cf578
mov edi, dword [ebp - 0x43c]
mov esi, eax
sub esi, ecx
sar esi, 2
cmp ebx, edi
jne 0x100cf56f
mov eax, edi
sub eax, ebx
sar eax, 2
cmp eax, 1
jae 0x100cf56f
sub ebx, ecx
mov eax, 0x3fffffff
sar ebx, 2
sub eax, ebx
cmp eax, 1
jb 0x100cf64f
sub edi, ecx
lea edx, [ebx + 1]
sar edi, 2
mov eax, 0x3fffffff
mov ecx, edi
shr ecx, 1
sub eax, ecx
cmp eax, edi
jae 0x100cf544
xor edi, edi
jmp 0x100cf546
add edi, ecx
cmp edi, edx
lea ecx, [ebp - 0x438]
cmovb edi, edx
push edi
call fcn.1000c4c0
mov eax, dword [ebp - 0x430]
mov ebx, dword [ebp - 0x434]
mov ecx, dword [ebp - 0x438]
mov dword [ebp - 0x43c], eax
test ebx, ebx
je 0x100cf5ef
mov eax, dword [ecx + esi*4]
jmp 0x100cf5ed
mov edi, dword [ebp - 0x43c]
cmp ebx, edi
jne 0x100cf5e3
mov eax, edi
sub eax, ebx
sar eax, 2
cmp eax, 1
jae 0x100cf5e3
sub ebx, ecx
mov eax, 0x3fffffff
sar ebx, 2
sub eax, ebx
cmp eax, 1
jb 0x100cf64f
sub edi, ecx
lea edx, [ebx + 1]
sar edi, 2
mov eax, 0x3fffffff
mov ecx, edi
shr ecx, 1
sub eax, ecx
cmp eax, edi
jae 0x100cf5be
xor edi, edi
jmp 0x100cf5c0
add edi, ecx
cmp edi, edx
lea ecx, [ebp - 0x438]
cmovb edi, edx
push edi
call fcn.1000c4c0
mov eax, dword [ebp - 0x430]
mov ebx, dword [ebp - 0x434]
mov dword [ebp - 0x43c], eax
test ebx, ebx
je 0x100cf5ef
mov eax, dword [ebp - 0x424]
mov dword [ebx], eax
add ebx, 4
mov dword [ebp - 0x410], ebx
mov dword [ebp - 0x434], ebx
mov ebx, dword [ebp - 0x420]
mov edi, dword [ebp - 0x404]
lea ecx, [ebp - 0x400]
mov byte [ebp - 4], 0xb
call fcn.10024970
mov eax, dword [ebp - 0x424]
dec eax
mov dword [ebp - 0x424], eax
mov dword [ebp - 0x42c], eax
jns 0x100cf270
mov eax, dword [ebp - 0x438]
test eax, eax
je 0x100cf1a0
push eax
call dword [sym.imp.MSVCR120.dll_void___cdecl_operator_delete_void__]
add esp, 4
jmp 0x100cf1a0
push str.vector_T__too_long
call dword [sym.imp.MSVCP120.dll_void___cdecl_std::_Xlength_error_char_const__]
push 0x10115b64
call dword [sym.imp.MSVCP120.dll_void___cdecl_std::_Xout_of_range_char_const__]
jmp 0x100cf670
mov ebx, dword [sym.imp.MSVCR120.dll_void___cdecl_operator_delete_void__]
cmp dword [ebp + 0x1c], 0x10
jb 0x100cf684
push dword [ebp + 8]
call ebx
add esp, 4
cmp dword [ebp + 0x34], 0x10
mov dword [ebp + 0x1c], 0xf
mov dword [ebp + 0x18], 0
mov byte [ebp + 8], 0
jb 0x100cf6a4
push dword [ebp + 0x20]
call ebx
add esp, 4
cmp dword [ebp + 0x4c], 0x10
mov dword [ebp + 0x34], 0xf
mov dword [ebp + 0x30], 0
mov byte [ebp + 0x20], 0
jb 0x100cf6c4
push dword [ebp + 0x38]
call ebx
add esp, 4
mov al, 1
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.100ebd7b
mov esp, ebp
pop ebp
ret