Function at 0x101d2250
Capabilities:
Check mutex on windows
Create thread

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x10216890
mov eax, dword fs:[0]
push eax
sub esp, 0x30
push ebx
push esi
push edi
mov eax, dword [0x105520d0]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
xor ebx, ebx
push ebx
push ebx
push ebx
mov dword [esi], vtable.ComThreadManager2.0
call dword [sym.imp.KERNEL32.dll_CreateMutexA]
mov dword [esi + 4], eax
cmp eax, ebx
jne 0x101d22dc
sub esp, 0x1c
mov ecx, esp
mov dword [ebp + 8], esp
push 0x3e
mov dword [ecx + 0x14], 0xf
mov dword [ecx + 0x10], ebx
push str.ComThreadManager2::ComThreadManager2___Unable_to_creat_a_mutex
mov byte [ecx], bl
call fcn.10003320
lea ecx, [ebp - 0x30]
call fcn.101d21d0
push eax
lea ecx, [ebp - 0x18]
mov dword [ebp - 4], ebx
call dword [sym.imp.MSVCR100.dll_public:_void___thiscall_std::exception::constructor_class_std::exception_const__]
push 0x1043bd64
lea eax, [ebp - 0x18]
push eax
mov dword [ebp - 0x18], vtable.ComThreadManager2::ComThreadManager2Exception.0
call sub.MSVCR100.dll__CxxThrowException
mov edi, dword [sym.imp.KERNEL32.dll_CreateEventA]
push ebx
push ebx
push ebx
push ebx
call edi
mov dword [esi + 8], eax
cmp eax, ebx
jne 0x101d233d
sub esp, 0x1c
mov ecx, esp
mov dword [ebp + 8], esp
push 0x3f
mov dword [ecx + 0x14], 0xf
mov dword [ecx + 0x10], ebx
push str.ComThreadManager2::ComThreadManager2___Unable_to_creat_an_event
mov byte [ecx], bl
call fcn.10003320
lea ecx, [ebp - 0x30]
call fcn.101d21d0
push eax
lea ecx, [ebp - 0x18]
mov dword [ebp - 4], 1
call dword [sym.imp.MSVCR100.dll_public:_void___thiscall_std::exception::constructor_class_std::exception_const__]
push 0x1043bd64
lea ecx, [ebp - 0x18]
push ecx
mov dword [ebp - 0x18], vtable.ComThreadManager2::ComThreadManager2Exception.0
call sub.MSVCR100.dll__CxxThrowException
push ebx
push ebx
push ebx
push ebx
call edi
mov dword [esi + 0x10], eax
cmp eax, ebx
jne 0x101d2398
sub esp, 0x1c
mov ecx, esp
mov dword [ebp + 8], esp
push 0x3f
mov dword [ecx + 0x14], 0xf
mov dword [ecx + 0x10], ebx
push str.ComThreadManager2::ComThreadManager2___Unable_to_creat_an_event
mov byte [ecx], bl
call fcn.10003320
lea ecx, [ebp - 0x30]
call fcn.101d21d0
push eax
lea ecx, [ebp - 0x18]
mov dword [ebp - 4], 2
call dword [sym.imp.MSVCR100.dll_public:_void___thiscall_std::exception::constructor_class_std::exception_const__]
push 0x1043bd64
lea edx, [ebp - 0x18]
push edx
mov dword [ebp - 0x18], vtable.ComThreadManager2::ComThreadManager2Exception.0
call sub.MSVCR100.dll__CxxThrowException
push ebx
push ebx
push ebx
push ebx
call edi
mov dword [esi + 0xc], eax
cmp eax, ebx
jne 0x101d23e5
sub esp, 0x1c
mov ecx, esp
mov dword [ebp + 8], esp
push str.ComThreadManager2::ComThreadManager2___Unable_to_creat_an_event
call fcn.10003820
lea ecx, [ebp - 0x3c]
call fcn.101d21d0
push eax
lea ecx, [ebp - 0x24]
mov dword [ebp - 4], 3
call dword [sym.imp.MSVCR100.dll_public:_void___thiscall_std::exception::constructor_class_std::exception_const__]
push 0x1043bd64
lea eax, [ebp - 0x24]
push eax
mov dword [ebp - 0x24], vtable.ComThreadManager2::ComThreadManager2Exception.0
call sub.MSVCR100.dll__CxxThrowException
mov eax, dword [ebp + 8]
cmp eax, ebx
jle 0x101d241a
mov edi, dword [sym.imp.MSVCR100.dll__beginthread]
mov ebx, dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
mov dword [ebp + 8], eax
jmp 0x101d2400
push esi
push 0
push 0x101d2130
call edi
mov ecx, dword [esi + 8]
add esp, 0xc
push 0xffffffffffffffff
push ecx
call ebx
dec dword [ebp + 8]
jne 0x101d2400
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4