Function at 0x40c5b0
Capabilities:
Check mutex on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x433593
mov eax, dword fs:[0]
push eax
sub esp, 0xe8
mov eax, dword [section..data]
xor eax, ebp
mov dword [ebp - 0x14], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0xd4], ecx
cmp dword [0x453e60], 0
mov ebx, dword [ebp + 8]
mov esi, dword [sym.imp.MSVCR120.dll_void___cdecl_operator_delete_void__]
mov dword [ebp - 0xd0], ebx
je 0x40c97c
xorps xmm0, xmm0
mov dword [ebp - 0x20], 0
movq qword [ebp - 0x28], xmm0
mov dword [ebp - 0x28], 0
mov dword [ebp - 0x24], 0
mov dword [ebp - 0x20], 0
lea eax, [ebp - 0x28]
mov dword [ebp - 4], 0
push eax
mov ecx, 0x453dc0
call fcn.0041b3c0
mov eax, dword [ebp - 0x24]
xor edi, edi
mov ecx, dword [ebp - 0x28]
sub eax, ecx
sar eax, 2
mov dword [ebp - 0xcc], edi
mov dword [ebp - 0xc8], eax
test eax, eax
je 0x40c96b
lea ebx, [ebx]
cmp eax, edi
jbe 0x40caae
mov eax, dword [ecx + edi*4]
mov ecx, 0x453dc0
push eax
mov dword [ebp - 0xf4], eax
lea eax, [ebp - 0x64]
push eax
call fcn.0041b100
mov eax, dword [ebp - 0xd4]
lea ecx, [ebp - 0x4c]
push ecx
mov byte [ebp - 4], 1
lea ecx, [eax + 8]
call fcn.00412b90
push 0xffffffffffffffff
push 0
push eax
lea ecx, [ebp - 0x64]
mov byte [ebp - 4], 2
call fcn.0040b230
mov byte [ebp - 4], 1
cmp dword [ebp - 0x38], 8
jb 0x40c6b9
push dword [ebp - 0x4c]
call esi
add esp, 4
cmp dword [ebp - 0x50], 8
lea eax, [ebp - 0x64]
cmovae eax, dword [ebp - 0x64]
push eax
push 0
push 0
call dword [sym.imp.KERNEL32.dll_OpenMutexW]
test eax, eax
jne 0x40c6e2
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 5
jne 0x40c941
mov ecx, dword [ebp - 0xd4]
lea eax, [ebp - 0xf0]
xorps xmm0, xmm0
push eax
movq qword [ebp - 0x1c], xmm0
lea ecx, [ecx + 8]
call fcn.00412bd0
mov ecx, eax
lea eax, [ebp - 0x4c]
mov dword [ebp - 0x38], 7
mov dword [ebp - 0xd8], eax
xor eax, eax
mov dword [ebp - 0x3c], 0
mov word [ebp - 0x4c], ax
mov byte [ebp - 4], 4
mov edx, dword [ecx + 0x14]
cmp edx, 8
jb 0x40c72e
mov eax, dword [ecx]
jmp 0x40c730
mov eax, ecx
mov edi, dword [ecx + 0x10]
cmp edx, 8
jb 0x40c73a
mov ecx, dword [ecx]
lea eax, [eax + edi*2]
push eax
push ecx
lea ecx, [ebp - 0x4c]
call fcn.0040d990
sub esp, 0x18
mov byte [ebp - 4], 5
mov ecx, esp
mov dword [ebp - 0x1c], 0
xor eax, eax
mov dword [ebp - 0x18], 2
push 0xffffffffffffffff
mov dword [ecx + 0x14], 7
mov dword [ecx + 0x10], 0
push eax
mov word [ecx], ax
lea eax, [ebp - 0x4c]
push eax
call fcn.004079f0
mov edi, dword [ebp - 0xf4]
lea ecx, [ebp - 0x1c]
push edi
call fcn.0041f630
cmp dword [ebp - 0x38], 8
jb 0x40c79a
push dword [ebp - 0x4c]
call esi
add esp, 4
xor eax, eax
mov dword [ebp - 0x38], 7
mov dword [ebp - 0x3c], 0
mov word [ebp - 0x4c], ax
cmp dword [ebp - 0xdc], 8
jb 0x40c7c2
push dword [ebp - 0xf0]
call esi
add esp, 4
xor eax, eax
mov dword [ebp - 0x8c], 7
mov dword [ebp - 0x90], 0
mov word [ebp - 0xa0], ax
push edi
lea eax, [ebp - 0x1c]
mov byte [ebp - 4], 8
push eax
lea eax, [ebp - 0xf0]
mov dword [ebp - 0xa4], edi
push eax
mov dword [ebp - 0x88], 3
call fcn.0041ba80
mov edi, eax
lea eax, [ebp - 0xa0]
cmp eax, edi
je 0x40c89a
cmp dword [ebp - 0x8c], 8
jb 0x40c828
push dword [ebp - 0xa0]
call esi
add esp, 4
xor eax, eax
mov dword [ebp - 0x8c], 7
mov dword [ebp - 0x90], 0
mov word [ebp - 0xa0], ax
cmp dword [edi + 0x14], 8
jae 0x40c867
mov eax, dword [edi + 0x10]
inc eax
je 0x40c875
add eax, eax
push eax
lea eax, [ebp - 0xa0]
push edi
push eax
call dword [sym.imp.MSVCR120.dll_memmove]
add esp, 0xc
jmp 0x40c875
mov eax, dword [edi]
mov dword [ebp - 0xa0], eax
mov dword [edi], 0
mov eax, dword [edi + 0x10]
mov dword [ebp - 0x90], eax
mov eax, dword [edi + 0x14]
mov dword [ebp - 0x8c], eax
xor eax, eax
mov dword [edi + 0x14], 7
mov dword [edi + 0x10], 0
mov word [edi], ax
cmp dword [ebp - 0xdc], 8
jb 0x40c8ae
push dword [ebp - 0xf0]
call esi
add esp, 4
lea eax, [ebp - 0xa4]
mov ecx, ebx
push eax
call fcn.0040d270
cmp dword [ebp - 0x8c], 8
jb 0x40c8d0
push dword [ebp - 0xa0]
call esi
add esp, 4
xor eax, eax
mov byte [ebp - 4], 1
mov edi, dword [ebp - 0x1c]
mov dword [ebp - 0x8c], 7
mov dword [ebp - 0x90], 0
mov word [ebp - 0xa0], ax
test edi, edi
je 0x40c93b
cmp dword [edi + 0x48], 8
jb 0x40c906
push dword [edi + 0x34]
call esi
add esp, 4
mov dword [edi + 0x48], 7
xor eax, eax
mov dword [edi + 0x44], 0
mov word [edi + 0x34], ax
push dword [edi + 0x18]
call dword [sym.imp.MSVCR120.dll_free]
add esp, 4
push dword [edi + 0x14]
call esi
add esp, 4
mov ecx, edi
call fcn.0041a440
push edi
call esi
add esp, 4
mov edi, dword [ebp - 0xcc]
mov byte [ebp - 4], 0
cmp dword [ebp - 0x50], 8
jb 0x40c953
push dword [ebp - 0x64]
call esi
add esp, 4
mov eax, dword [ebp - 0xc8]
inc edi
mov ecx, dword [ebp - 0x28]
mov dword [ebp - 0xcc], edi
cmp edi, eax
jb 0x40c660
mov dword [ebp - 4], 0xffffffff
test ecx, ecx
je 0x40c97c
push ecx
call esi
add esp, 4
cmp dword [0x453be0], 0
je 0x40ce1f
xorps xmm0, xmm0
mov dword [ebp - 0x38], 0
movq qword [ebp - 0x40], xmm0
mov dword [ebp - 0x40], 0
mov dword [ebp - 0x3c], 0
mov dword [ebp - 0x38], 0
lea eax, [ebp - 0x40]
mov dword [ebp - 4], 9
push eax
mov ecx, 0x453b40
call fcn.0041b3c0
mov eax, dword [ebp - 0x3c]
xor edx, edx
mov ecx, dword [ebp - 0x40]
sub eax, ecx
sar eax, 2
mov dword [ebp - 0xcc], edx
test eax, eax
je 0x40ce03
cmp eax, edx
jbe 0x40caae
mov edi, dword [ecx + edx*4]
lea eax, [ebp - 0x64]
push edi
push eax
mov ecx, 0x453b40
call fcn.0041b100
mov eax, dword [ebp - 0xd4]
lea ecx, [ebp - 0xf0]
push ecx
mov byte [ebp - 4], 0xa
lea ecx, [eax + 8]
call fcn.00412b90
push 0xffffffffffffffff
push 0
push eax
lea ecx, [ebp - 0x64]
mov byte [ebp - 4], 0xb
call fcn.0040b230
mov byte [ebp - 4], 0xa
cmp dword [ebp - 0xdc], 8
jb 0x40ca39
push dword [ebp - 0xf0]
call esi
add esp, 4
cmp dword [ebp - 0x50], 8
lea eax, [ebp - 0x64]
cmovae eax, dword [ebp - 0x64]
push eax
push 0
push 0
call dword [sym.imp.KERNEL32.dll_OpenMutexW]
test eax, eax
jne 0x40ca62
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 5
jne 0x40cdd1
mov ecx, dword [ebp - 0xd4]
lea eax, [ebp - 0xf0]
xorps xmm0, xmm0
push eax
movq qword [ebp - 0x1c], xmm0
lea ecx, [ecx + 8]
call fcn.00412c10
mov ecx, eax
lea eax, [ebp - 0x34]
mov dword [ebp - 0x20], 7
mov dword [ebp - 0xd8], eax
xor eax, eax
mov dword [ebp - 0x24], 0
mov word [ebp - 0x34], ax
mov byte [ebp - 4], 0xd
mov edx, dword [ecx + 0x14]
cmp edx, 8
jb 0x40cab9
mov eax, dword [ecx]
jmp 0x40cabb
push str.invalid_vector_T__subscript
call dword [sym.imp.MSVCP120.dll_void___cdecl_std::_Xout_of_range_char_const__]
mov eax, ecx
mov ebx, dword [ecx + 0x10]
mov dword [ebp - 0xc8], ebx
mov ebx, dword [ebp - 0xd0]
cmp edx, 8
jb 0x40cad1
mov ecx, dword [ecx]
mov edx, dword [ebp - 0xc8]
lea eax, [eax + edx*2]
push eax
push ecx
lea ecx, [ebp - 0x34]
call fcn.0040d990
sub esp, 0x18
mov byte [ebp - 4], 0xe
mov ecx, esp
mov dword [ebp - 0x1c], 0
xor eax, eax
mov dword [ebp - 0x18], 2
push 0xffffffffffffffff
mov dword [ecx + 0x14], 7
mov dword [ecx + 0x10], 0
push eax
mov word [ecx], ax
lea eax, [ebp - 0x34]
push eax
call fcn.004079f0
push edi
lea ecx, [ebp - 0x1c]
call fcn.0041f630
cmp dword [ebp - 0x20], 8
jb 0x40cb31
push dword [ebp - 0x34]
call esi
add esp, 4
xor eax, eax
mov dword [ebp - 0x20], 7
mov dword [ebp - 0x24], 0
mov word [ebp - 0x34], ax
cmp dword [ebp - 0xdc], 8
jb 0x40cb59
push dword [ebp - 0xf0]
call esi
add esp, 4
xor eax, eax
mov dword [ebp - 0x6c], 7
mov dword [ebp - 0x70], 0
mov word [ebp - 0x80], ax
push edi
lea eax, [ebp - 0x1c]
mov byte [ebp - 4], 0x11
push eax
lea eax, [ebp - 0xf0]
mov dword [ebp - 0x84], edi
push eax
mov dword [ebp - 0x68], 1
call fcn.0041ba80
mov edi, eax
lea eax, [ebp - 0x80]
cmp eax, edi
je 0x40cc03
cmp dword [ebp - 0x6c], 8
jb 0x40cba6
push dword [ebp - 0x80]
call esi
add esp, 4
xor eax, eax
mov dword [ebp - 0x6c], 7
mov dword [ebp - 0x70], 0
mov word [ebp - 0x80], ax
cmp dword [edi + 0x14], 8
jae 0x40cbd9
mov eax, dword [edi + 0x10]
inc eax
je 0x40cbe4
add eax, eax
push eax
lea eax, [ebp - 0x80]
push edi
push eax
call dword [sym.imp.MSVCR120.dll_memmove]
add esp, 0xc
jmp 0x40cbe4
mov eax, dword [edi]
mov dword [ebp - 0x80], eax
mov dword [edi], 0
mov eax, dword [edi + 0x10]
mov dword [ebp - 0x70], eax
mov eax, dword [edi + 0x14]
mov dword [ebp - 0x6c], eax
xor eax, eax
mov dword [edi + 0x14], 7
mov dword [edi + 0x10], 0
mov word [edi], ax
cmp dword [ebp - 0xdc], 8
jb 0x40cc17
push dword [ebp - 0xf0]
call esi
add esp, 4
mov ecx, dword [ebx + 4]
lea eax, [ebp - 0x84]
cmp eax, ecx
jae 0x40ccff
mov ebx, dword [ebx]
cmp ebx, eax
ja 0x40ccf9
mov edx, dword [ebp - 0xd0]
mov edi, eax
sub edi, ebx
mov edx, dword [edx + 8]
cmp ecx, edx
jne 0x40cca2
mov eax, edx
sub eax, ecx
sar eax, 5
cmp eax, 1
jae 0x40cca2
sub ecx, ebx
mov eax, 0x7ffffff
sar ecx, 5
sub eax, ecx
cmp eax, 1
jb 0x40cf50
inc ecx
sub edx, ebx
sar edx, 5
mov eax, 0x7ffffff
mov dword [ebp - 0xc8], ecx
mov ecx, edx
shr ecx, 1
sub eax, ecx
cmp eax, edx
jae 0x40cc83
xor edx, edx
jmp 0x40cc85
add edx, ecx
cmp edx, dword [ebp - 0xc8]
mov ebx, dword [ebp - 0xd0]
mov ecx, ebx
cmovb edx, dword [ebp - 0xc8]
push edx
call fcn.0040d3a0
jmp 0x40cca8
mov ebx, dword [ebp - 0xd0]
mov ecx, dword [ebx + 4]
and edi, 0xffffffe0
add edi, dword [ebx]
mov dword [ebp - 0xc8], ecx
mov byte [ebp - 4], 0x12
test ecx, ecx
je 0x40cd9a
mov eax, dword [edi]
mov dword [ecx], eax
add ecx, 4
xor eax, eax
push 0xffffffffffffffff
push eax
mov dword [ecx + 0x14], 7
mov dword [ecx + 0x10], 0
mov word [ecx], ax
lea eax, [edi + 4]
push eax
call fcn.004079f0
mov ecx, dword [ebp - 0xc8]
mov eax, dword [edi + 0x1c]
mov dword [ecx + 0x1c], eax
jmp 0x40cd9a
mov ebx, dword [ebp - 0xd0]
mov edx, dword [ebx + 8]
cmp ecx, edx
jne 0x40cd5f
mov eax, edx
sub eax, ecx
sar eax, 5
cmp eax, 1
jae 0x40cd5f
mov edi, dword [ebx]
mov eax, 0x7ffffff
sub ecx, edi
sar ecx, 5
sub eax, ecx
cmp eax, 1
jb 0x40cf50
inc ecx
sub edx, edi
sar edx, 5
mov eax, 0x7ffffff
mov dword [ebp - 0xc8], ecx
mov ecx, edx
shr ecx, 1
sub eax, ecx
cmp eax, edx
jae 0x40cd48
xor edx, edx
jmp 0x40cd4a
add edx, ecx
cmp edx, dword [ebp - 0xc8]
mov ecx, ebx
cmovb edx, dword [ebp - 0xc8]
push edx
call fcn.0040d3a0
mov edi, dword [ebx + 4]
mov byte [ebp - 4], 0x13
test edi, edi
je 0x40cd9a
mov eax, dword [ebp - 0x84]
lea ecx, [edi + 4]
mov dword [edi], eax
xor eax, eax
push 0xffffffffffffffff
mov dword [ecx + 0x14], 7
mov dword [ecx + 0x10], 0
push eax
mov word [ecx], ax
lea eax, [ebp - 0x80]
push eax
call fcn.004079f0
mov eax, dword [ebp - 0x68]
mov dword [edi + 0x1c], eax
add dword [ebx + 4], 0x20
cmp dword [ebp - 0x6c], 8
jb 0x40cdac
push dword [ebp - 0x80]
call esi
add esp, 4
xor eax, eax
mov byte [ebp - 4], 0xa
mov ecx, dword [ebp - 0x1c]
mov dword [ebp - 0x6c], 7
mov dword [ebp - 0x70], 0
mov word [ebp - 0x80], ax
test ecx, ecx
je 0x40cdd1
push ecx
call fcn.0041f5d0
mov byte [ebp - 4], 9
cmp dword [ebp - 0x50], 8
jb 0x40cde3
push dword [ebp - 0x64]
call esi
add esp, 4
mov eax, dword [ebp - 0x3c]
mov edx, dword [ebp - 0xcc]
mov ecx, dword [ebp - 0x40]
inc edx
sub eax, ecx
mov dword [ebp - 0xcc], edx
sar eax, 2
cmp eax, edx
ja 0x40c9e5
mov dword [ebp - 4], 0xffffffff
test ecx, ecx
je 0x40ce1f
lea ecx, [ebp - 0x40]
call dword [sym.imp.MSVCP120.dll_public:_void___thiscall_std::_Container_base0::_Orphan_all_void_]
push dword [ebp - 0x40]
call esi
add esp, 4
cmp dword [0x453d20], 0
je 0x40d0e1
xorps xmm0, xmm0
mov dword [ebp - 0x20], 0
movq qword [ebp - 0x28], xmm0
mov dword [ebp - 0x28], 0
mov dword [ebp - 0x24], 0
mov dword [ebp - 0x20], 0
lea eax, [ebp - 0x28]
mov dword [ebp - 4], 0x14
push eax
mov ecx, 0x453c80
call fcn.0041b3c0
mov eax, dword [ebp - 0x24]
xor edi, edi
mov ecx, dword [ebp - 0x28]
sub eax, ecx
sar eax, 2
test eax, eax
je 0x40d0c5
cmp eax, edi
jbe 0x40caae
mov eax, dword [ecx + edi*4]
mov ecx, 0x453c80
push eax
mov dword [ebp - 0xcc], eax
lea eax, [ebp - 0x64]
push eax
call fcn.0041b100
mov eax, dword [ebp - 0xd4]
lea ecx, [ebp - 0xf0]
push ecx
mov byte [ebp - 4], 0x15
lea ecx, [eax + 8]
call fcn.00412b90
push 0xffffffffffffffff
push 0
push eax
lea ecx, [ebp - 0x64]
mov byte [ebp - 4], 0x16
call fcn.0040b230
mov byte [ebp - 4], 0x15
cmp dword [ebp - 0xdc], 8
jb 0x40cedc
push dword [ebp - 0xf0]
call esi
add esp, 4
cmp dword [ebp - 0x50], 8
lea eax, [ebp - 0x64]
cmovae eax, dword [ebp - 0x64]
push eax
push 0
push 0
call dword [sym.imp.KERNEL32.dll_OpenMutexW]
test eax, eax
jne 0x40cf05
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 5
jne 0x40d09f
mov ecx, dword [ebp - 0xd4]
lea eax, [ebp - 0xf0]
xorps xmm0, xmm0
push eax
movq qword [ebp - 0x1c], xmm0
lea ecx, [ecx + 8]
call fcn.00412c50
mov ecx, eax
sub esp, 0x18
xor eax, eax
mov edx, esp
mov dword [ebp - 0xd8], edx
mov dword [edx + 0x14], 7
mov dword [edx + 0x10], 0
mov word [edx], ax
mov byte [ebp - 4], 0x18
cmp dword [ecx + 0x14], 8
jb 0x40cf5b
mov eax, dword [ecx]
jmp 0x40cf5d
push str.vector_T__too_long
call dword [sym.imp.MSVCP120.dll_void___cdecl_std::_Xlength_error_char_const__]
mov eax, ecx
cmp dword [ecx + 0x14], 8
mov ebx, dword [ecx + 0x10]
jb 0x40cf68
mov ecx, dword [ecx]
lea eax, [eax + ebx*2]
push eax
push ecx
mov ecx, edx
call fcn.0040d990
push dword [ebp - 0xcc]
lea ecx, [ebp - 0x1c]
mov byte [ebp - 4], 0x17
call fcn.0041f530
cmp dword [ebp - 0xdc], 8
mov ebx, dword [ebp - 0xd0]
jb 0x40cfa0
push dword [ebp - 0xf0]
call esi
add esp, 4
xor eax, eax
mov dword [ebp - 0xac], 7
mov dword [ebp - 0xb0], 0
mov word [ebp - 0xc0], ax
mov eax, dword [ebp - 0xcc]
push eax
mov byte [ebp - 4], 0x1b
mov dword [ebp - 0xc4], eax
lea eax, [ebp - 0x1c]
push eax
lea eax, [ebp - 0xf0]
mov dword [ebp - 0xa8], 2
push eax
call fcn.0041ba80
lea ecx, [ebp - 0xc0]
mov dword [ebp - 0xc8], eax
cmp ecx, eax
je 0x40d03b
cmp dword [ebp - 0xac], 8
jb 0x40d012
push dword [ebp - 0xc0]
call esi
mov eax, dword [ebp - 0xc8]
add esp, 4
xor ecx, ecx
mov dword [ebp - 0xac], 7
mov word [ebp - 0xc0], cx
lea ecx, [ebp - 0xc0]
push eax
mov dword [ebp - 0xb0], 0
call fcn.0040b100
cmp dword [ebp - 0xdc], 8
jb 0x40d04f
push dword [ebp - 0xf0]
call esi
add esp, 4
lea eax, [ebp - 0xc4]
mov ecx, ebx
push eax
call fcn.0040d270
cmp dword [ebp - 0xac], 8
jb 0x40d071
push dword [ebp - 0xc0]
call esi
add esp, 4
xor eax, eax
mov byte [ebp - 4], 0x15
mov ecx, dword [ebp - 0x1c]
mov dword [ebp - 0xac], 7
mov dword [ebp - 0xb0], 0
mov word [ebp - 0xc0], ax
test ecx, ecx
je 0x40d09f
push ecx
call fcn.0041f5d0
mov byte [ebp - 4], 0x14
cmp dword [ebp - 0x50], 8
jb 0x40d0b1
push dword [ebp - 0x64]
call esi
add esp, 4
mov eax, dword [ebp - 0x24]
inc edi
mov ecx, dword [ebp - 0x28]
sub eax, ecx
sar eax, 2
cmp eax, edi
ja 0x40ce82
mov dword [ebp - 4], 0xffffffff
test ecx, ecx
je 0x40d0e1
lea ecx, [ebp - 0x28]
call dword [sym.imp.MSVCP120.dll_public:_void___thiscall_std::_Container_base0::_Orphan_all_void_]
push dword [ebp - 0x28]
call esi
add esp, 4
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x14]
xor ecx, ebp
call fcn.00431ce8
mov esp, ebp
pop ebp
ret 4