Function at 0x41a640
Capabilities:
Terminate thread

Disassembly:
push 0xffffffffffffffff
push 0x4780ca
mov eax, dword fs:[0]
push eax
push ecx
push ebx
push ebp
push esi
push edi
mov eax, dword [0x4eec64]
xor eax, esp
push eax
lea eax, [esp + 0x18]
mov dword fs:[0], eax
mov edi, ecx
mov dword [esp + 0x14], edi
mov dword [edi], vtable.ytDrawUI.0
mov dword [esp + 0x20], 0xe
call fcn.00402ed0
mov eax, dword [edi + 0xc]
xor ebx, ebx
push ebx
push eax
push str.EndThread__x_for__d_n
call fcn.00402b20
mov eax, dword [edi + 0xc]
add esp, 0xc
mov ebp, 1
mov dword [edi + 4], ebp
cmp eax, ebx
je 0x41a6c6
push 0xffffffffffffffff
push eax
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
cmp eax, 0x102
jne 0x41a6c3
mov eax, dword [edi + 0xc]
cmp eax, ebx
je 0x41a6c3
push ebx
push eax
call dword [sym.imp.KERNEL32.dll_TerminateThread]
mov dword [edi + 0xc], ebx
mov dword [edi + 4], ebx
mov ecx, dword [edi + 0xa4]
cmp ecx, ebx
je 0x41a6dd
mov edx, dword [ecx]
mov eax, dword [edx + 8]
call eax
mov dword [edi + 0xa4], ebx
mov ecx, dword [edi + 0xa8]
cmp ecx, ebx
je 0x41a6f4
mov edx, dword [ecx]
mov eax, dword [edx + 8]
call eax
mov dword [edi + 0xa8], ebx
mov byte [esp + 0x20], 0xd
mov eax, dword [edi + 0xd4]
cmp eax, ebx
je 0x41a72b
mov ecx, dword [eax - 4]
lea esi, [eax - 4]
push fcn.00401080
push ecx
push 4
push eax
call fcn.0045c6d8
push 0x4f85e0
call dword [sym.imp.KERNEL32.dll_InterlockedDecrement]
push esi
call fcn.00402770
add esp, 4
and dword [edi + 0xd8], ebp
mov dword [edi + 0xd4], ebx
mov byte [esp + 0x20], 0xc
mov eax, dword [edi + 0xb4]
cmp eax, ebx
je 0x41a763
mov edx, dword [eax - 4]
lea esi, [eax - 4]
push 0x44be90
push edx
push 4
push eax
call fcn.0045c6d8
push esi
call fcn.0045c158
add esp, 4
and dword [edi + 0xb8], ebp
mov dword [edi + 0xb4], ebx
mov byte [esp + 0x20], 0xb
mov ecx, dword [edi + 0xb0]
cmp ecx, ebx
je 0x41a785
mov eax, dword [ecx]
mov edx, dword [eax + 8]
call edx
mov byte [esp + 0x20], 0xa
mov ecx, dword [edi + 0xac]
cmp ecx, ebx
je 0x41a79b
mov eax, dword [ecx]
mov edx, dword [eax + 8]
call edx
mov byte [esp + 0x20], 9
mov ecx, dword [edi + 0xa8]
cmp ecx, ebx
je 0x41a7b1
mov eax, dword [ecx]
mov edx, dword [eax + 8]
call edx
mov byte [esp + 0x20], 8
mov ecx, dword [edi + 0xa4]
cmp ecx, ebx
je 0x41a7c7
mov eax, dword [ecx]
mov edx, dword [eax + 8]
call edx
mov byte [esp + 0x20], 7
mov eax, dword [edi + 0x8c]
cmp eax, ebx
je 0x41a7df
push eax
call fcn.0045c158
add esp, 4
and dword [edi + 0x90], ebp
mov dword [edi + 0x8c], ebx
mov byte [esp + 0x20], 6
mov eax, dword [edi + 0x84]
cmp eax, ebx
je 0x41a803
push eax
call fcn.0045c158
add esp, 4
and dword [edi + 0x88], ebp
mov dword [edi + 0x84], ebx
mov byte [esp + 0x20], 5
mov eax, dword [edi + 0x7c]
cmp eax, ebx
je 0x41a824
push eax
call fcn.0045c158
add esp, 4
and dword [edi + 0x80], ebp
mov dword [edi + 0x7c], ebx
mov byte [esp + 0x20], 4
mov eax, dword [edi + 0x74]
cmp eax, ebx
je 0x41a842
push eax
call fcn.0045c158
add esp, 4
and dword [edi + 0x78], ebp
mov dword [edi + 0x74], ebx
mov byte [esp + 0x20], 3
mov eax, dword [edi + 0x6c]
cmp eax, ebx
je 0x41a85d
push eax
call fcn.0045c158
add esp, 4
and dword [edi + 0x70], ebp
mov dword [edi + 0x6c], ebx
mov byte [esp + 0x20], 2
mov eax, dword [edi + 0x64]
cmp eax, ebx
je 0x41a878
push eax
call fcn.0045c158
add esp, 4
and dword [edi + 0x68], ebp
mov dword [edi + 0x64], ebx
mov byte [esp + 0x20], 1
mov eax, dword [edi + 0x5c]
cmp eax, ebx
je 0x41a893
push eax
call fcn.0045c158
add esp, 4
and dword [edi + 0x60], ebp
lea esi, [edi + 0x38]
mov dword [edi + 0x5c], ebx
mov byte [esp + 0x20], bl
call fcn.0040f210
mov ecx, edi
mov dword [edi], vtable.ytDrawable.0
mov dword [edi + 0x28], ebx
call fcn.00418390
mov ecx, dword [esp + 0x18]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x10
ret