Function at 0x40ca30
Capabilities:
Check mutex on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x433943
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 [0x454e10], 0
mov ebx, dword [ebp + 8]
mov esi, dword [sym.imp.MSVCR120.dll_void___cdecl_operator_delete_void__]
mov dword [ebp - 0xd0], ebx
je 0x40ce00
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
mov ecx, 0x454d70
mov dword [ebp - 4], 0
call fcn.0041ba20
lea eax, [ebp - 0x28]
mov ecx, 0x454d70
push eax
call fcn.0041b860
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 0x40cdef
cmp eax, edi
jbe 0x40cf3c
mov eax, dword [ecx + edi*4]
mov ecx, 0x454d70
push eax
mov dword [ebp - 0xf4], eax
lea eax, [ebp - 0x64]
push eax
call fcn.0041b5a0
mov eax, dword [ebp - 0xd4]
lea ecx, [ebp - 0x4c]
push ecx
mov byte [ebp - 4], 1
lea ecx, [eax + 8]
call fcn.00413030
push 0xffffffffffffffff
push 0
push eax
lea ecx, [ebp - 0x64]
mov byte [ebp - 4], 2
call fcn.0040b550
mov byte [ebp - 4], 1
cmp dword [ebp - 0x38], 8
jb 0x40cb3d
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 0x40cb66
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 5
jne 0x40cdc5
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.00413070
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 0x40cbb2
mov eax, dword [ecx]
jmp 0x40cbb4
mov eax, ecx
mov edi, dword [ecx + 0x10]
cmp edx, 8
jb 0x40cbbe
mov ecx, dword [ecx]
lea eax, [eax + edi*2]
push eax
push ecx
lea ecx, [ebp - 0x4c]
call fcn.0040de30
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.00407a40
mov edi, dword [ebp - 0xf4]
lea ecx, [ebp - 0x1c]
push edi
call fcn.0041fa90
cmp dword [ebp - 0x38], 8
jb 0x40cc1e
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 0x40cc46
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.0041bf20
mov edi, eax
lea eax, [ebp - 0xa0]
cmp eax, edi
je 0x40cd1e
cmp dword [ebp - 0x8c], 8
jb 0x40ccac
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 0x40cceb
mov eax, dword [edi + 0x10]
inc eax
je 0x40ccf9
add eax, eax
push eax
lea eax, [ebp - 0xa0]
push edi
push eax
call dword [sym.imp.MSVCR120.dll_memmove]
add esp, 0xc
jmp 0x40ccf9
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 0x40cd32
push dword [ebp - 0xf0]
call esi
add esp, 4
lea eax, [ebp - 0xa4]
mov ecx, ebx
push eax
call fcn.0040d710
cmp dword [ebp - 0x8c], 8
jb 0x40cd54
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 0x40cdbf
cmp dword [edi + 0x48], 8
jb 0x40cd8a
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.0041a8e0
push edi
call esi
add esp, 4
mov edi, dword [ebp - 0xcc]
mov byte [ebp - 4], 0
cmp dword [ebp - 0x50], 8
jb 0x40cdd7
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 0x40cae4
mov dword [ebp - 4], 0xffffffff
test ecx, ecx
je 0x40ce00
push ecx
call esi
add esp, 4
cmp dword [0x454b90], 0
je 0x40d2ad
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
mov ecx, 0x454af0
mov dword [ebp - 4], 9
call fcn.0041ba20
lea eax, [ebp - 0x40]
mov ecx, 0x454af0
push eax
call fcn.0041b860
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 0x40d291
cmp eax, edx
jbe 0x40cf3c
mov edi, dword [ecx + edx*4]
lea eax, [ebp - 0x64]
push edi
push eax
mov ecx, 0x454af0
call fcn.0041b5a0
mov eax, dword [ebp - 0xd4]
lea ecx, [ebp - 0xf0]
push ecx
mov byte [ebp - 4], 0xa
lea ecx, [eax + 8]
call fcn.00413030
push 0xffffffffffffffff
push 0
push eax
lea ecx, [ebp - 0x64]
mov byte [ebp - 4], 0xb
call fcn.0040b550
mov byte [ebp - 4], 0xa
cmp dword [ebp - 0xdc], 8
jb 0x40cec7
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 0x40cef0
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 5
jne 0x40d25f
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.004130b0
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 0x40cf47
mov eax, dword [ecx]
jmp 0x40cf49
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 0x40cf5f
mov ecx, dword [ecx]
mov edx, dword [ebp - 0xc8]
lea eax, [eax + edx*2]
push eax
push ecx
lea ecx, [ebp - 0x34]
call fcn.0040de30
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.00407a40
push edi
lea ecx, [ebp - 0x1c]
call fcn.0041fa90
cmp dword [ebp - 0x20], 8
jb 0x40cfbf
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 0x40cfe7
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.0041bf20
mov edi, eax
lea eax, [ebp - 0x80]
cmp eax, edi
je 0x40d091
cmp dword [ebp - 0x6c], 8
jb 0x40d034
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 0x40d067
mov eax, dword [edi + 0x10]
inc eax
je 0x40d072
add eax, eax
push eax
lea eax, [ebp - 0x80]
push edi
push eax
call dword [sym.imp.MSVCR120.dll_memmove]
add esp, 0xc
jmp 0x40d072
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 0x40d0a5
push dword [ebp - 0xf0]
call esi
add esp, 4
mov ecx, dword [ebx + 4]
lea eax, [ebp - 0x84]
cmp eax, ecx
jae 0x40d18d
mov ebx, dword [ebx]
cmp ebx, eax
ja 0x40d187
mov edx, dword [ebp - 0xd0]
mov edi, eax
sub edi, ebx
mov edx, dword [edx + 8]
cmp ecx, edx
jne 0x40d130
mov eax, edx
sub eax, ecx
sar eax, 5
cmp eax, 1
jae 0x40d130
sub ecx, ebx
mov eax, 0x7ffffff
sar ecx, 5
sub eax, ecx
cmp eax, 1
jb 0x40d3e8
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 0x40d111
xor edx, edx
jmp 0x40d113
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.0040d840
jmp 0x40d136
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 0x40d228
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.00407a40
mov ecx, dword [ebp - 0xc8]
mov eax, dword [edi + 0x1c]
mov dword [ecx + 0x1c], eax
jmp 0x40d228
mov ebx, dword [ebp - 0xd0]
mov edx, dword [ebx + 8]
cmp ecx, edx
jne 0x40d1ed
mov eax, edx
sub eax, ecx
sar eax, 5
cmp eax, 1
jae 0x40d1ed
mov edi, dword [ebx]
mov eax, 0x7ffffff
sub ecx, edi
sar ecx, 5
sub eax, ecx
cmp eax, 1
jb 0x40d3e8
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 0x40d1d6
xor edx, edx
jmp 0x40d1d8
add edx, ecx
cmp edx, dword [ebp - 0xc8]
mov ecx, ebx
cmovb edx, dword [ebp - 0xc8]
push edx
call fcn.0040d840
mov edi, dword [ebx + 4]
mov byte [ebp - 4], 0x13
test edi, edi
je 0x40d228
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.00407a40
mov eax, dword [ebp - 0x68]
mov dword [edi + 0x1c], eax
add dword [ebx + 4], 0x20
cmp dword [ebp - 0x6c], 8
jb 0x40d23a
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 0x40d25f
push ecx
call fcn.0041fa30
mov byte [ebp - 4], 9
cmp dword [ebp - 0x50], 8
jb 0x40d271
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 0x40ce73
mov dword [ebp - 4], 0xffffffff
test ecx, ecx
je 0x40d2ad
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 [0x454cd0], 0
je 0x40d579
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
mov ecx, 0x454c30
mov dword [ebp - 4], 0x14
call fcn.0041ba20
lea eax, [ebp - 0x28]
mov ecx, 0x454c30
push eax
call fcn.0041b860
mov eax, dword [ebp - 0x24]
xor edi, edi
mov ecx, dword [ebp - 0x28]
sub eax, ecx
sar eax, 2
test eax, eax
je 0x40d55d
cmp eax, edi
jbe 0x40cf3c
mov eax, dword [ecx + edi*4]
mov ecx, 0x454c30
push eax
mov dword [ebp - 0xcc], eax
lea eax, [ebp - 0x64]
push eax
call fcn.0041b5a0
mov eax, dword [ebp - 0xd4]
lea ecx, [ebp - 0xf0]
push ecx
mov byte [ebp - 4], 0x15
lea ecx, [eax + 8]
call fcn.00413030
push 0xffffffffffffffff
push 0
push eax
lea ecx, [ebp - 0x64]
mov byte [ebp - 4], 0x16
call fcn.0040b550
mov byte [ebp - 4], 0x15
cmp dword [ebp - 0xdc], 8
jb 0x40d374
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 0x40d39d
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 5
jne 0x40d537
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.004130f0
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 0x40d3f3
mov eax, dword [ecx]
jmp 0x40d3f5
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 0x40d400
mov ecx, dword [ecx]
lea eax, [eax + ebx*2]
push eax
push ecx
mov ecx, edx
call fcn.0040de30
push dword [ebp - 0xcc]
lea ecx, [ebp - 0x1c]
mov byte [ebp - 4], 0x17
call fcn.0041f990
cmp dword [ebp - 0xdc], 8
mov ebx, dword [ebp - 0xd0]
jb 0x40d438
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.0041bf20
lea ecx, [ebp - 0xc0]
mov dword [ebp - 0xc8], eax
cmp ecx, eax
je 0x40d4d3
cmp dword [ebp - 0xac], 8
jb 0x40d4aa
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.0040b680
cmp dword [ebp - 0xdc], 8
jb 0x40d4e7
push dword [ebp - 0xf0]
call esi
add esp, 4
lea eax, [ebp - 0xc4]
mov ecx, ebx
push eax
call fcn.0040d710
cmp dword [ebp - 0xac], 8
jb 0x40d509
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 0x40d537
push ecx
call fcn.0041fa30
mov byte [ebp - 4], 0x14
cmp dword [ebp - 0x50], 8
jb 0x40d549
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 0x40d31a
mov dword [ebp - 4], 0xffffffff
test ecx, ecx
je 0x40d579
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.004320a8
mov esp, ebp
pop ebp
ret 4