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

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x4d27bc
mov eax, dword fs:[0]
push eax
sub esp, 0x1b0
mov eax, dword [0x5254e0]
xor eax, esp
mov dword [esp + 0x1a8], eax
push ebx
push esi
push edi
mov eax, dword [0x5254e0]
xor eax, esp
push eax
lea eax, [esp + 0x1c0]
mov dword fs:[0], eax
mov esi, ecx
xor ebx, ebx
mov dword [esp + 0x20], ebx
mov eax, dword [esi + 8]
mov edi, dword [sym.imp.KERNEL32.DLL_ResetEvent]
push eax
call edi
mov ecx, dword [esi + 0xc]
push ecx
call edi
mov ecx, dword [esi + 0x18]
mov edx, dword [ebp + 0xc]
mov byte [esi + 0x14], bl
mov dword [esi + 0x20], edx
cmp ecx, ebx
je 0x4592f6
mov eax, dword [ecx]
mov edx, dword [eax + 0xc]
push 1
call edx
mov dword [esi + 0x18], ebx
push 0x14
call fcn.004a9f06
mov edi, eax
add esp, 4
cmp edi, ebx
je 0x459339
mov eax, dword [ebp + 8]
mov ecx, dword [eax]
push ebx
push ebx
push ebx
mov dword [esp + 0x2c], ecx
mov dword [edi], vtable.StopSignal.0
mov dword [edi + 8], ebx
call dword [sym.imp.KERNEL32.DLL_CreateMutexW]
mov edx, dword [esp + 0x20]
mov dword [edi + 4], eax
lea eax, [esi + 0x14]
mov dword [edi], vtable.WorkerThreadStopSignal.0
mov dword [edi + 0xc], edx
mov dword [edi + 0x10], eax
jmp 0x45933b
xor edi, edi
mov eax, dword [ebp + 8]
mov eax, dword [eax + 4]
mov ecx, edi
mov dword [esi + 0x18], edi
mov dword [esi + 0x1c], eax
mov edx, dword [ecx]
mov edx, dword [edx]
push 1
push eax
call edx
push ebx
push ebx
push esi
push 0x459760
push ebx
push ebx
call dword [sym.imp.KERNEL32.DLL_CreateThread]
mov dword [esi + 4], eax
cmp eax, ebx
jne 0x459519
mov eax, dword [esi]
mov edx, dword [eax + 8]
mov ecx, esi
call edx
mov dword [esp + 0xd4], 0x4fca94
mov dword [esp + 0xe4], 0x4e4be8
mov dword [esp + 0x1c8], ebx
lea ecx, [esp + 0x134]
mov dword [esp + 0x20], 1
mov dword [esp + method.std::basic_istream_char__struct_std::char_traits_char__.virtual_0], vtable.std::basic_istream_char__struct_std::char_traits_char__.0
mov dword [esp + 0xdc], ebx
mov dword [esp + 0xe0], ebx
call fcn.00401780
lea eax, [esp + 0xec]
push 0x20
lea ecx, [esp + 0x138]
mov dword [esp + 0x170], eax
mov dword [esp + 0x174], ebx
call fcn.0040b460
mov byte [esp + 0x174], al
cmp dword [esp + 0x16c], ebx
jne 0x45940b
mov eax, dword [esp + 0x140]
or eax, 4
push ebx
push eax
lea ecx, [esp + 0x13c]
call fcn.00401640
mov ecx, dword [esp + 0xe4]
mov edx, dword [ecx + 4]
mov dword [esp + edx + 0xe4], vtable.std::basic_ostream_char__struct_std::char_traits_char__.0
mov eax, dword [esp + 0xd4]
mov ecx, dword [eax + 4]
mov dword [esp + ecx + 0xd4], vtable.std::basic_iostream_char__struct_std::char_traits_char__.0
mov dword [esp + 0x1c8], 5
mov edx, dword [esp + 0xd4]
mov eax, dword [edx + 4]
lea ecx, [esp + 0xec]
mov dword [esp + eax + 0xd4], vtable.std::basic_stringstream_char__struct_std::char_traits_char___class_std::allocator_char__.0
call fcn.0040a560
mov dword [esp + 0xec], vtable.std::basic_stringbuf_char__struct_std::char_traits_char___class_std::allocator_char__.0
mov dword [esp + 0x128], ebx
mov dword [esp + 0x12c], ebx
push 0x4faa0c
push ecx
mov dword [esp + 0x1d0], 7
call dword [sym.imp.KERNEL32.DLL_GetLastError]
push eax
push ecx
push str.::IWorkerThread::Start:_CreateThread_failed__
push ecx
push 0x52b290
push esi
call fcn.004ab038
add esp, 4
mov ecx, eax
call fcn.004a9e80
push eax
lea ecx, [esp + 0x100]
push ecx
call fcn.0040b990
add esp, 0xc
push eax
call fcn.0040b990
add esp, 0xc
push eax
call fcn.0041c210
add esp, 4
push eax
call fcn.0040b990
add esp, 8
lea edx, [esp + 0x19c]
push edx
lea ecx, [esp + 0xd8]
call fcn.0041cca0
mov byte [esp + 0x1c8], 8
cmp dword [eax + 0x14], 0x10
jb 0x4594fe
mov eax, dword [eax]
mov ecx, eax
lea esi, [esp + 0x180]
call fcn.00428400
push 0x5152b4
mov eax, esi
push eax
call fcn.004aba66
mov ecx, dword [esi + 8]
mov edx, dword [esi + 0xc]
push 0xffffffffffffffff
push ebx
lea eax, [esp + 0x2c]
push eax
push 2
mov dword [esp + 0x34], ecx
mov dword [esp + 0x38], edx
call dword [sym.imp.KERNEL32.DLL_WaitForMultipleObjects]
mov edi, eax
cmp edi, 2
jbe 0x4596df
mov edx, dword [esi]
mov eax, dword [edx + 8]
mov ecx, esi
call eax
mov dword [esp + 0x2c], 0x4fca94
mov dword [esp + 0x3c], 0x4e4be8
mov dword [esp + 0x1c8], 9
lea ecx, [esp + 0x8c]
mov dword [esp + 0x20], 0x10
mov dword [esp + 0x8c], vtable.std::basic_istream_char__struct_std::char_traits_char__.0
mov dword [esp + 0x34], ebx
mov dword [esp + 0x38], ebx
call fcn.00401780
lea ecx, [esp + 0x44]
mov dword [esp + 0xc4], ecx
push 0x20
lea ecx, [esp + 0x90]
mov dword [esp + 0xcc], ebx
call fcn.0040b460
mov byte [esp + 0xcc], al
cmp dword [esp + 0xc4], ebx
jne 0x4595d5
mov eax, dword [esp + 0x98]
or eax, 4
push ebx
push eax
lea ecx, [esp + 0x94]
call fcn.00401640
mov edx, dword [esp + 0x3c]
mov eax, dword [edx + 4]
mov dword [esp + eax + 0x3c], vtable.std::basic_ostream_char__struct_std::char_traits_char__.0
mov ecx, dword [esp + 0x2c]
mov edx, dword [ecx + 4]
mov dword [esp + edx + 0x2c], vtable.std::basic_iostream_char__struct_std::char_traits_char__.0
mov dword [esp + 0x1c8], 0xe
mov eax, dword [esp + 0x2c]
mov ecx, dword [eax + 4]
mov dword [esp + ecx + 0x2c], vtable.std::basic_stringstream_char__struct_std::char_traits_char___class_std::allocator_char__.0
lea ecx, [esp + 0x44]
call fcn.0040a560
mov dword [esp + 0x44], vtable.std::basic_stringbuf_char__struct_std::char_traits_char___class_std::allocator_char__.0
mov dword [esp + 0x80], ebx
mov dword [esp + 0x84], ebx
push 0x4faa0c
mov ebx, 0x10
push ecx
mov dword [esp + 0x1d0], ebx
call dword [sym.imp.KERNEL32.DLL_GetLastError]
push eax
push ecx
push 0x4e4b20
push ecx
push edi
push ecx
push str.::IWorkerThread::Start:_WaitForMultipleObjects_failed__
push ecx
push 0x52b290
push esi
call fcn.004ab038
add esp, 4
mov ecx, eax
call fcn.004a9e80
push eax
lea edx, [esp + 0x68]
push edx
call fcn.0040b990
add esp, 0xc
push eax
call fcn.0040b990
add esp, 0xc
push eax
call fcn.0041c210
add esp, 4
push eax
call fcn.0040b990
add esp, 0xc
push eax
call fcn.0041c210
add esp, 4
push eax
call fcn.0040b990
add esp, 8
lea eax, [esp + 0x19c]
push eax
lea ecx, [esp + 0x30]
call fcn.0041cca0
mov byte [esp + 0x1c8], 0x11
cmp dword [eax + 0x14], ebx
jb 0x4596c4
mov eax, dword [eax]
mov ecx, eax
lea esi, [esp + 0x180]
call fcn.00428400
push 0x5152b4
mov ecx, esi
push ecx
call fcn.004aba66
cmp edi, ebx
sete al
mov byte [esp + 0x1f], al
cmp al, bl
jne 0x4596f9
mov edx, dword [esi]
mov eax, dword [edx + 8]
mov ecx, esi
call eax
mov al, byte [esp + 0x1f]
mov ecx, dword [esp + 0x1c0]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x1a8]
xor ecx, esp
call fcn.004a91d2
mov esp, ebp
pop ebp
ret 8