Function at 0x40cce0
Capabilities:
Create thread

Disassembly:
sub esp, 0xc
push ebx
push ebp
push esi
mov esi, ecx
push edi
mov edi, dword [esp + 0x20]
lea ebx, [esi + 0xac]
push 1
push ebx
push edi
mov dword [esi + 0xdc], 0
mov dword [esi + 0xe0], edi
call sub.MFC42u.DLL_CTreeCtrl::GetItemRect
mov eax, dword [esp + 0x24]
mov ebp, dword [sym.imp.GDI32.dll_CreateSolidBrush]
test eax, eax
je 0x40ce3e
mov ecx, dword [ebx]
mov edx, dword [ebx + 4]
lea edi, [esi + 0x84]
mov eax, edi
mov dword [eax], ecx
mov ecx, dword [ebx + 8]
mov dword [eax + 4], edx
mov edx, dword [ebx + 0xc]
mov dword [eax + 8], ecx
mov ecx, 0
mov dword [eax + 0xc], edx
mov eax, dword [edi + 0xc]
sub eax, dword [edi + 4]
sub eax, 0x10
cdq
sub eax, edx
mov edx, dword [esi + 0x88]
sar eax, 1
sets cl
dec ecx
and eax, ecx
mov ecx, dword [esi + 0x90]
add edx, eax
sub ecx, eax
mov dword [esi + 0x88], edx
mov edx, dword [esi + 0x20]
push edx
mov dword [esi + 0x90], ecx
call dword [sym.imp.USER32.dll_GetDC]
push eax
call sub.MFC42u.DLL_CDC::FromHandle
mov ebx, eax
mov eax, dword [esp + 0x20]
push 0
lea ecx, [esp + 0x28]
push eax
push ecx
mov ecx, esi
call fcn.0040c8a0
mov eax, dword [eax]
lea edx, [esp + 0x14]
push edx
mov edx, dword [ebx + 8]
mov ecx, dword [eax - 8]
push ecx
push eax
push edx
call dword [sym.imp.GDI32.dll_GetTextExtentPoint32W]
lea ecx, [esp + 0x24]
call sub.MFC42u.DLL_CString::CString
mov eax, dword [ebx + 4]
mov ecx, dword [esi + 0x20]
push eax
push ecx
call dword [sym.imp.USER32.dll_ReleaseDC]
mov edx, dword [esp + 0x14]
push 0
add edx, 2
push edx
push edi
call dword [sym.imp.USER32.dll_OffsetRect]
lea ebx, [esi + 0x94]
mov eax, edi
mov ecx, ebx
push 0xfffffffffffffffe
mov edx, dword [eax]
push 0xfffffffffffffffe
mov dword [ecx], edx
push ebx
mov edx, dword [eax + 4]
mov dword [ecx + 4], edx
mov edx, dword [eax + 8]
mov dword [ecx + 8], edx
mov eax, dword [eax + 0xc]
mov dword [ecx + 0xc], eax
call dword [sym.imp.USER32.dll_InflateRect]
mov ecx, dword [ebx]
mov edx, dword [edi]
mov dword [esi + 0x9c], ecx
add edx, 0x36
xor edi, edi
mov dword [esi + 0x8c], edx
push edi
call ebp
push 0xff0000
mov dword [esi + 0xa4], eax
call ebp
mov dword [esi + 0xc4], edi
mov dword [esi + 0xc8], edi
mov edi, dword [esp + 0x20]
mov dword [esi + 0xa8], eax
xor ebx, ebx
jmp 0x40ce4c
xor ebx, ebx
mov dword [esi + 0xa4], ebx
mov dword [esi + 0xa8], ebx
lea eax, [esi + 0x74]
mov ecx, esi
push eax
push edi
mov dword [esi + 0x70], ebx
call fcn.0040d190
mov ecx, dword [esi + 0x20]
push ebx
push ebx
push 0x111f
push ecx
call dword [sym.imp.USER32.dll_SendMessageW]
and eax, 0xffffff
push eax
call ebp
push ebx
push 1
push ebx
push ebx
mov dword [esi + 0x6c], eax
mov dword [esi + 0xd4], ebx
call dword [sym.imp.KERNEL32.dll_CreateEventW]
lea edx, [esp + 0x10]
mov dword [esi + 0xd0], eax
push edx
push 2
push esi
push 0x40d240
push ebx
push ebx
mov dword [esp + 0x28], ebx
call dword [sym.imp.KERNEL32.dll_CreateThread]
mov dword [esi + 0xcc], eax
mov eax, dword [esi + 0xc0]
cmp eax, ebx
jle 0x40ced0
mov ecx, dword [esi + 0xd0]
push 0x11
push ebx
push ecx
push 5
push eax
call dword [sym.imp.WINMM.dll_timeSetEvent]
mov dword [esi + 0xbc], eax
mov edx, dword [esi + 0x20]
push 1
push ebx
push edx
call dword [sym.imp.USER32.dll_InvalidateRect]
pop edi
pop esi
pop ebp
pop ebx
add esp, 0xc
ret 8