Function at 0x410830
Capabilities:
Create thread
Resume thread
Terminate thread

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x444e3e
mov eax, dword fs:[0]
push eax
sub esp, 0x58
mov eax, dword [0x45d0bc]
xor eax, ebp
mov dword [ebp - 0x10], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, ecx
mov dword [ebp - 0x34], edi
mov dword [ebp - 0x2c], edi
mov eax, dword [ebp + 8]
mov dword [ebp - 0x40], edi
mov dword [ebp - 0x2c], 0
mov dword [ebp - 0x30], eax
mov dword [edi], vtable.Log::ILogEventHandler.0
lea esi, [edi + 4]
mov dword [ebp - 4], 0
mov dword [ebp - 0x2c], esi
mov dword [esi + 4], vtable.utils::IRefObject.0
lea eax, [esi + 8]
mov byte [ebp - 4], 2
push eax
mov dword [esi], vtable.utils::CSharedThread_class_Log::CSectStreamLogging_.0
mov dword [esi + 4], vtable.utils::CSharedThread_class_Log::CSectStreamLogging_.1.0
call fcn.0040e890
add esp, 4
push 0
push 0
lea eax, [esi + 0x24]
mov dword [esi + 0x20], 0
push 1
mov dword [ebp - 0x3c], eax
push 0
mov byte [ebp - 4], 3
mov dword [eax], 0
call dword [sym.imp.KERNEL32.dll_CreateEventA]
mov dword [esi + 0x28], eax
test eax, eax
je 0x410d72
mov byte [ebp - 4], 4
mov dword [esi + 0x2c], 0xffffffff
test eax, eax
je 0x410d8d
push eax
call dword [sym.imp.KERNEL32.dll_ResetEvent]
test eax, eax
je 0x410da8
mov dword [esi + 0x30], 0
mov dword [esi + 0x34], edi
push 0
push 0
push 1
push 0
mov byte [ebp - 4], 5
mov dword [edi], vtable.Log::CSectStreamLogging.0
mov dword [esi], vtable.Log::CSectStreamLogging.1.0
mov dword [edi + 8], vtable.Log::CSectStreamLogging.2.0
call dword [sym.imp.KERNEL32.dll_CreateEventA]
mov dword [edi + 0x3c], eax
test eax, eax
je 0x410dc3
lea eax, [edi + 0x40]
mov byte [ebp - 4], 6
lea esi, [eax + 4]
mov dword [ebp - 0x3c], eax
push 0
mov dword [eax], vtable.utils::ProtectedList_struct_std::pair_class_Log::ILogNode_const___class_Log::ILogMessage____class_sync::CNormalCriticalSection__class_utils::WinNotificationEvent_.0
mov ecx, esi
mov dword [ebp - 0x2c], esi
push 0
mov dword [esi], 0
mov dword [esi + 4], 0
call fcn.00412f50
mov dword [esi], eax
lea eax, [edi + 0x4c]
mov byte [ebp - 4], 7
push eax
call fcn.0040e890
add esp, 4
push 0
push 0
push 1
push 0
mov byte [ebp - 4], 8
call dword [sym.imp.KERNEL32.dll_CreateEventA]
mov dword [edi + 0x64], eax
test eax, eax
je 0x410dc3
lea eax, [edi + 0x3c]
mov dword [edi + 0x68], eax
lea esi, [edi + 0x70]
mov dword [ebp - 0x3c], esi
mov dword [esi], 0x4478dc
mov dword [esi + 0x68], vtable.std::basic_ios_char__struct_std::char_traits_char__.0
mov eax, dword [esi]
lea edi, [esi + 4]
push 0
push edi
mov byte [ebp - 4], 0xa
mov eax, dword [eax + 4]
mov dword [ebp - 0x2c], 1
mov dword [esi + eax], vtable.std::basic_ostream_char__struct_std::char_traits_char__.0
mov eax, dword [esi]
mov ecx, dword [eax + 4]
lea eax, [ecx - 8]
mov dword [ecx + esi - 4], eax
mov eax, dword [esi]
mov ecx, dword [eax + 4]
add ecx, esi
call fcn.00409580
mov eax, dword [esi]
mov dword [ebp - 4], 0xc
mov eax, dword [eax + 4]
mov dword [esi + eax], vtable.std::basic_ofstream_char__struct_std::char_traits_char__.0
mov eax, dword [esi]
mov ecx, dword [eax + 4]
mov dword [ebp - 0x38], edi
lea eax, [ecx - 0x68]
mov dword [ecx + esi - 4], eax
mov ecx, edi
call fcn.004094c0
lea eax, [edi + 4]
mov dword [edi], vtable.std::basic_filebuf_char__struct_std::char_traits_char__.0
mov dword [edi + 0xc], eax
lea ecx, [edi + 8]
lea eax, [edi + 0x14]
mov byte [edi + 0x48], 0
mov dword [edi + 0x1c], eax
lea eax, [edi + 0x18]
mov dword [edi + 0x20], eax
lea eax, [edi + 0x24]
mov dword [edi + 0x2c], eax
lea eax, [edi + 0x28]
mov dword [edi + 0x30], eax
mov byte [edi + 0x3d], 0
mov dword [edi + 0x10], ecx
mov dword [ecx], 0
mov eax, dword [edi + 0x20]
mov dword [eax], 0
mov eax, dword [edi + 0x30]
mov dword [eax], 0
mov eax, dword [edi + 0xc]
mov dword [eax], 0
mov eax, dword [edi + 0x1c]
mov dword [eax], 0
mov eax, dword [edi + 0x2c]
mov dword [eax], 0
mov dword [edi + 0x4c], 0
mov eax, dword [0x45ea54]
mov dword [edi + 0x40], eax
mov eax, dword [0x45ea58]
mov dword [edi + 0x44], eax
mov dword [edi + 0x38], 0
mov edi, dword [ebp - 0x34]
mov byte [ebp - 4], 0xd
lea eax, [edi + 0x120]
mov dword [ebp - 0x38], eax
mov esi, dword [ebp - 0x30]
push esi
call fcn.0040e4c0
mov edx, eax
add esp, 4
cmp edx, 0xffffffff
jne 0x410abd
push esi
lea ecx, [edi + 0x120]
call fcn.00405e70
jmp 0x410afb
cmp dword [esi + 0x14], 8
mov eax, esi
jb 0x410ac7
mov eax, dword [esi]
lea eax, [eax + edx*2]
mov edx, esi
jb 0x410ad0
mov edx, dword [esi]
lea ecx, [edi + 0x120]
xor edi, edi
mov dword [ecx + 0x10], 0
mov dword [ecx + 0x14], 7
mov word [ecx], di
mov edi, dword [ebp - 0x34]
cmp edx, eax
je 0x410afb
sub eax, edx
sar eax, 1
push eax
push edx
call fcn.00407d10
push esi
mov byte [ebp - 4], 0xe
call fcn.0040e4c0
add esp, 4
mov dword [ebp - 0x30], eax
cmp eax, 0xffffffff
jne 0x410b26
xor eax, eax
mov dword [ebp - 0x18], 0
mov dword [ebp - 0x14], 7
mov word [ebp - 0x28], ax
jmp 0x410b67
cmp dword [esi + 0x14], 8
mov ecx, esi
jb 0x410b30
mov ecx, dword [esi]
mov eax, dword [esi + 0x10]
lea eax, [ecx + eax*2]
jb 0x410b3a
mov esi, dword [esi]
mov ecx, dword [ebp - 0x30]
xor edx, edx
inc ecx
mov dword [ebp - 0x18], 0
mov dword [ebp - 0x14], 7
mov word [ebp - 0x28], dx
lea ecx, [esi + ecx*2]
cmp ecx, eax
je 0x410b67
sub eax, ecx
sar eax, 1
push eax
push ecx
lea ecx, [ebp - 0x28]
call fcn.00407d10
push 0x2e
push 1
lea esi, [edi + 0x138]
mov byte [ebp - 4], 0xf
push 0
lea ecx, [ebp - 0x28]
mov dword [ebp - 0x38], esi
call fcn.00414ad0
mov dword [esi + 0x10], 0
xor ecx, ecx
mov dword [esi + 0x14], 0
movups xmm0, xmmword [eax]
movups xmmword [esi], xmm0
movq xmm0, qword [eax + 0x10]
movq qword [esi + 0x10], xmm0
mov dword [eax + 0x10], 0
mov dword [eax + 0x14], 7
mov word [eax], cx
mov edx, dword [ebp - 0x14]
mov byte [ebp - 4], 0x11
cmp edx, 8
jb 0x410bf1
mov ecx, dword [ebp - 0x28]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x410be7
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x410dde
push edx
push ecx
call fcn.004241cb
add esp, 8
mov ecx, dword [ebp + 0x10]
xor eax, eax
push ecx
sub esp, 0x18
mov word [ebp - 0x28], ax
mov eax, dword [ebp + 0xc]
mov dword [edi + 0x154], ecx
mov ecx, esp
mov dword [edi + 0x150], eax
mov eax, dword [ebp + 0x14]
mov dword [ebp - 0x38], esp
push esi
mov dword [ebp - 0x18], 0
mov dword [ebp - 0x14], 7
mov dword [edi + 0x158], eax
mov dword [edi + 0x15c], 0
call fcn.00405e70
sub esp, 0x18
mov byte [ebp - 4], 0x12
lea eax, [edi + 0x120]
mov ecx, esp
push eax
call fcn.00405e70
mov byte [ebp - 4], 0x11
call fcn.004124c0
add esp, 0x34
mov ecx, edi
cmp byte [ebp + 0x18], 0
je 0x410c69
call fcn.00411ba0
jmp 0x410c7b
push 2
lea eax, [ebp - 0x30]
mov dword [ebp - 0x30], 0
push eax
call fcn.00412960
lea esi, [edi + 0xc]
push esi
mov dword [ebp - 0x38], esi
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
cmp dword [edi + 0x34], 0
lea eax, [edi + 4]
mov byte [ebp - 4], 0x13
je 0x410cac
push str.Cannot_start_thread_twice
lea ecx, [ebp - 0x1c]
call fcn.00401370
push 0x458b8c
jmp 0x410dd5
lea ecx, [ebp - 0x2c]
mov dword [ebp - 0x2c], 0
push ecx
push 4
push eax
push 0x422250
push 0
push 0
call fcn.0042d7fc
add esp, 0x18
mov dword [ebp - 0x34], eax
test eax, eax
jne 0x410ce9
push str.Cannot_start_thread
lea ecx, [ebp - 0x1c]
call fcn.00401370
push 0x458b8c
jmp 0x410dd5
mov edx, dword [edi + 0x28]
lea ecx, [edi + 4]
test edx, edx
je 0x410d00
push edx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [ebp - 0x34]
lea ecx, [edi + 4]
mov dword [ecx + 0x24], eax
mov eax, dword [ebp - 0x2c]
mov dword [ecx + 0x30], eax
add ecx, 4
mov dword [ebp - 0x30], ecx
mov eax, dword [ecx]
call dword [eax + 4]
push dword [ebp - 0x34]
call dword [sym.imp.KERNEL32.dll_ResumeThread]
cmp eax, 0xffffffff
jne 0x410d4c
push 0
push dword [ebp - 0x34]
call dword [sym.imp.KERNEL32.dll_TerminateThread]
mov ecx, dword [ebp - 0x30]
mov eax, dword [ecx]
call dword [eax + 8]
push str.Cannot_resume_thread
lea ecx, [ebp - 0x1c]
call fcn.00401370
push 0x458b8c
jmp 0x410dd5
push esi
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
mov eax, edi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.00424185
mov esp, ebp
pop ebp
ret 0x14
push str.cant_create_event.
lea ecx, [ebp - 0x4c]
call fcn.00401490
push 0x45b95c
lea eax, [ebp - 0x4c]
push eax
call fcn.00425c43
push str.utils::WinNotificationEvent::CheckOwn_Handle_was_released.
lea ecx, [ebp - 0x58]
call fcn.00401490
push 0x45b95c
lea eax, [ebp - 0x58]
push eax
call fcn.00425c43
push str.cant_reset_event
lea ecx, [ebp - 0x64]
call fcn.00401490
push 0x45b95c
lea eax, [ebp - 0x64]
push eax
call fcn.00425c43
push str.cant_create_event.
lea ecx, [ebp - 0x1c]
call fcn.00401490
push 0x45b95c
lea eax, [ebp - 0x1c]
push eax
call fcn.00425c43
call fcn.0042b37c
int3