Function at 0x410800
Capabilities:
Check mutex on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x41b5b0
mov eax, dword fs:[0]
push eax
sub esp, 0x154
mov eax, dword [0x425018]
xor eax, ebp
mov dword [ebp - 0x14], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edx, dword [ebx + 0x10]
mov eax, dword [ebp + 8]
push 0xffffffffffffffff
push edx
mov dword [ebp - 0x148], eax
mov dword [ebp - 0x144], ecx
mov byte [ebp - 0x125], 1
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
mov ecx, dword [ebp + 0x28]
mov eax, dword [ebp + 0x24]
mov edi, dword [ebp + 0x1c]
mov esi, dword [ebp + 0x20]
mov dword [ebp - 0x134], ecx
push ebx
lea ecx, [ebp - 0x140]
mov dword [ebp - 0x140], edi
mov dword [ebp - 0x13c], esi
mov dword [ebp - 0x138], eax
call fcn.00414000
mov dword [ebp - 0x130], eax
cmp eax, dword [ebx + 4]
je 0x41093f
mov edx, dword [eax + 0xc]
mov ecx, dword [eax + 0x10]
mov dword [ebp - 0x140], edx
mov edx, dword [eax + 0x14]
mov eax, dword [eax + 0x18]
mov dword [ebp - 0x13c], ecx
mov ecx, dword [ebp + 0x24]
mov dword [ebp - 0x138], edx
mov edx, dword [ebp + 0x28]
mov dword [ebp - 0x134], eax
mov dword [ebp - 0x150], ecx
mov dword [ebp - 0x14c], edx
mov dword [ebp - 0x158], edi
mov dword [ebp - 0x154], esi
mov eax, 0x10
lea ecx, [ebp - 0x140]
lea edx, [ebp - 0x158]
mov esi, dword [edx]
cmp esi, dword [ecx]
jne 0x4108ff
sub eax, 4
add ecx, 4
add edx, 4
cmp eax, 4
jae 0x4108e1
xor esi, esi
lea eax, [ebp - 0x130]
jmp 0x410950
movzx eax, byte [edx]
movzx esi, byte [ecx]
sub eax, esi
jne 0x41092b
movzx eax, byte [edx + 1]
movzx esi, byte [ecx + 1]
sub eax, esi
jne 0x41092b
movzx eax, byte [edx + 2]
movzx esi, byte [ecx + 2]
sub eax, esi
jne 0x41092b
movzx eax, byte [edx + 3]
movzx ecx, byte [ecx + 3]
sub eax, ecx
sar eax, 0x1f
or eax, 1
xor esi, esi
cmp eax, esi
jl 0x410941
lea eax, [ebp - 0x130]
jmp 0x410950
xor esi, esi
mov eax, dword [ebx + 4]
mov dword [ebp - 0x12c], eax
lea eax, [ebp - 0x12c]
mov ecx, dword [ebx + 4]
cmp dword [eax], ecx
je 0x410963
mov byte [ebp - 0x125], 0
jmp 0x410bea
cmp dword [ebp - 0x144], esi
je 0x410957
mov dword [ebp - 0xf4], 0xf
mov dword [ebp - 0xf8], esi
mov byte [ebp - 0x108], 0
mov dword [ebp - 4], esi
mov edi, dword [sym.imp.MSVCR100.dll_void____cdecl_operator_new_unsigned_int_]
push 0x14
mov dword [ebp - 0xe0], esi
call edi
add esp, 4
cmp eax, esi
je 0x410c4b
mov dword [ebp - 0xe4], eax
mov dword [eax], eax
mov eax, dword [ebp - 0xe4]
mov dword [eax + 4], eax
lea edx, [ebp - 0xd8]
mov dword [ebp - 0x15c], edx
mov dword [ebp - 0xd8], esi
push 8
mov byte [ebp - 4], 2
call edi
add esp, 4
cmp eax, esi
je 0x410c17
mov dword [ebp - 0xd8], eax
xor ecx, ecx
mov dword [eax], ecx
xor edx, edx
mov dword [eax + 4], edx
mov ecx, dword [ebp - 0xd8]
lea eax, [ebp - 0xd8]
mov dword [ecx], eax
mov dword [ebp - 0xd4], esi
mov dword [ebp - 0xd0], esi
mov dword [ebp - 0xcc], esi
mov dword [ebp - 0xc8], esi
mov edx, dword [ebp + 0xc]
mov dword [ebp - 4], 3
mov eax, dword [ebp + 0x10]
mov ecx, dword [ebp + 0x14]
mov dword [ebp - 0xec], eax
mov eax, dword [ebp - 0x148]
mov dword [ebp - 0x110], ecx
mov dword [ebp - 0x124], edx
mov edx, dword [ebp + 0x18]
push eax
lea ecx, [ebp - 0x30]
push ecx
mov dword [ebp - 0x10c], edx
call fcn.004116e0
mov edi, eax
lea edx, [ebp - 0x108]
cmp edx, edi
je 0x410ac9
cmp dword [ebp - 0xf4], 0x10
jb 0x410a6b
mov eax, dword [ebp - 0x108]
push eax
call dword [sym.imp.MSVCR100.dll_void___cdecl_operator_delete_void__]
add esp, 4
mov dword [ebp - 0xf4], 0xf
mov dword [ebp - 0xf8], esi
mov byte [ebp - 0x108], 0
cmp dword [edi + 0x14], 0x10
jae 0x410aa0
mov eax, dword [edi + 0x10]
inc eax
push eax
lea ecx, [ebp - 0x108]
push edi
push ecx
call dword [sym.imp.MSVCR100.dll_memmove]
add esp, 0xc
jmp 0x410aaa
mov edx, dword [edi]
mov dword [ebp - 0x108], edx
mov dword [edi], esi
mov eax, dword [edi + 0x10]
mov dword [ebp - 0xf8], eax
mov ecx, dword [edi + 0x14]
mov dword [ebp - 0xf4], ecx
mov dword [edi + 0x14], 0xf
mov dword [edi + 0x10], esi
mov byte [edi], 0
mov byte [ebp - 4], 3
cmp dword [ebp - 0x1c], 0x10
jb 0x410ae0
mov edx, dword [ebp - 0x30]
push edx
call dword [sym.imp.MSVCR100.dll_void___cdecl_operator_delete_void__]
add esp, 4
mov eax, dword [ebp - 0xe4]
mov dword [ebp - 0xe8], esi
mov ecx, dword [eax + 4]
mov esi, dword [ebp - 0x144]
lea edi, [eax + 4]
push ecx
push eax
call fcn.00413870
mov edx, 0x15555554
sub edx, dword [ebp - 0xe0]
cmp edx, 1
jae 0x410b1a
push str.list_T__too_long
call dword [sym.imp.MSVCP100.dll_void___cdecl_std::_Xlength_error_char_const__]
inc dword [ebp - 0xe0]
mov dword [edi], eax
mov ecx, dword [eax + 4]
mov dword [ecx], eax
mov eax, dword [ebp + 0x1c]
mov ecx, dword [ebp + 0x20]
mov edx, dword [ebp + 0x24]
mov dword [ebp - 0x120], eax
mov eax, dword [ebp + 0x28]
xor edi, edi
push 4
mov dword [ebp - 0x11c], ecx
mov dword [ebp - 0x118], edx
mov dword [ebp - 0x114], eax
mov dword [ebp - 0xb8], edi
call dword [sym.imp.MSVCR100.dll_void____cdecl_operator_new_unsigned_int_]
mov esi, eax
add esp, 4
cmp esi, edi
je 0x410b71
push edi
push edi
push edi
call dword [sym.imp.KERNEL32.dll_CreateMutexW]
mov dword [esi], eax
jmp 0x410b73
xor esi, esi
mov edx, dword [ebp + 0x20]
mov ecx, dword [ebp + 0x1c]
mov eax, dword [ebp + 0x24]
mov dword [ebp - 0xb0], edx
mov dword [ebp - 0xb4], ecx
mov ecx, dword [ebp + 0x28]
lea edx, [ebp - 0xa4]
mov dword [ebp - 0xbc], edi
push edx
lea edi, [ebp - 0x124]
mov dword [ebp - 0xc0], esi
mov dword [ebp - 0xac], eax
mov dword [ebp - 0xa8], ecx
call fcn.00411150
lea ecx, [ebp - 0xb4]
mov edx, ebx
mov byte [ebp - 4], 5
call fcn.00414b30
push eax
lea eax, [ebp - 0x160]
push eax
push ebx
call fcn.004143e0
lea edi, [ebp - 0xa4]
call fcn.00410d80
lea edi, [ebp - 0x124]
call fcn.00410d80
mov ecx, dword [ebx + 0x10]
push ecx
call dword [sym.imp.KERNEL32.dll_ReleaseMutex]
mov al, byte [ebp - 0x125]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov ecx, dword [ebp - 0x14]
xor ecx, ebp
call fcn.00419b16
mov esp, ebp
pop ebp
ret 0x24
lea edx, [ebp - 0x12c]
push edx
lea ecx, [ebp - 0x154]
mov dword [ebp - 0x12c], esi
call dword [sym.imp.MSVCR100.dll_public:_void___thiscall_std::exception::constructor_char_const__const_const__]
push 0x420464
lea eax, [ebp - 0x154]
push eax
mov dword [ebp - method.std::bad_alloc.virtual_0], vtable.std::bad_alloc.0
call sub.MSVCR100.dll__CxxThrowException
lea ecx, [ebp - 0x130]
push ecx
lea ecx, [ebp - 0x13c]
mov dword [ebp - 0x130], esi
call dword [sym.imp.MSVCR100.dll_public:_void___thiscall_std::exception::constructor_char_const__const_const__]
push 0x420464
lea edx, [ebp - 0x13c]
push edx
mov dword [ebp - method.std::bad_alloc.virtual_0], vtable.std::bad_alloc.0
call sub.MSVCR100.dll__CxxThrowException
int3