Function at 0x404cd0
Capabilities:
Check for time delay via queryperformancecounter
Find taskbar
Terminate thread

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x48
mov eax, dword [0x45a080]
xor eax, ebp
mov dword [ebp - 8], eax
push ebx
push esi
mov ebx, ecx
mov ecx, 0x4690e3
push edi
call fcn.00447953
xor dl, dl
or ecx, 0xffffffff
call fcn.0041d7a0
mov ecx, dword [ebx + 0x1dd4]
mov eax, ecx
mov byte [ebx + 0x1608], 0
mov word [ebx + 0x15f5], 0
mov byte [ebx + 0x15f4], 0
mov byte [ebx + 0x15f7], 0
mov byte [ebx + 0x16ac], 0
test ecx, ecx
jne 0x404d30
mov eax, dword [ebx + 0x1dd0]
push eax
test ecx, ecx
mov edx, str.FAIL__d
mov eax, str.STOP__d
cmovne eax, edx
push eax
lea eax, [ebp - 0x1c]
push 0x14
push eax
call fcn.004013f0
add esp, 0x10
cmp byte [ebx + 0x1528], 0
je 0x404da9
push ecx
lea eax, [ebx + 0xfd]
push eax
lea ecx, [ebx + 0xeb0]
call fcn.00413930
push ecx
lea ecx, [ebx + 0xeb0]
call fcn.004139e0
cmp eax, 1
jne 0x404d8e
mov eax, dword [ebx + 0xeb0]
lea ecx, [ebp - 0x1c]
push ecx
lea ecx, [ebx + 0xeb0]
call dword [eax]
mov eax, dword [ebx + 0xeb8]
test eax, eax
je 0x404d9f
push eax
call dword [sym.imp.WS2_32.dll_closesocket]
mov dword [ebx + 0xeb8], 0
mov edi, dword [sym.imp.KERNEL32.dll_QueryPerformanceCounter]
lea eax, [ebp - 0x3c]
push eax
call edi
lea eax, [ebp - 0x34]
mov dword [ebp - 0x44], 0
xorps xmm0, xmm0
push eax
movsd qword [ebp - 0x2c], xmm0
call edi
mov ecx, dword [ebp - 0x34]
sub ecx, dword [ebp - 0x3c]
mov edx, dword [ebp - 0x30]
sbb edx, dword [ebp - 0x38]
call fcn.00447a00
mulsd xmm0, qword [0x461ce0]
cvttsd2si eax, xmm0
cmp eax, 0x2710
jge 0x404e46
mov esi, dword [sym.imp.KERNEL32.dll_Sleep]
cmp dword [ebx + 0x15e4], 0
jne 0x404e18
cmp dword [ebx + 0x15ec], 0
jne 0x404e18
cmp dword [ebx + 0x16b0], 0
jne 0x404e18
cmp dword [ebx + 0x1604], 0
je 0x404e46
push 0x64
call esi
lea eax, [ebp - 0x34]
push eax
call edi
mov ecx, dword [ebp - 0x34]
sub ecx, dword [ebp - 0x3c]
mov edx, dword [ebp - 0x30]
sbb edx, dword [ebp - 0x38]
call fcn.00447a00
mulsd xmm0, qword [0x461ce0]
cvttsd2si eax, xmm0
cmp eax, 0x2710
jl 0x404df4
lea eax, [ebx + 0x16dc]
push eax
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov edi, dword [ebx + 0x16d4]
mov esi, dword [edi]
cmp esi, edi
je 0x404e73
nop
push 0x18
push dword [esi + 8]
call fcn.00421cfe
mov esi, dword [esi]
add esp, 8
cmp esi, edi
jne 0x404e60
lea ecx, [ebx + 0x16b4]
call fcn.00412410
mov ecx, dword [ebx + 0x16d4]
mov eax, dword [ecx + 4]
mov dword [eax], 0
mov eax, dword [ecx]
test eax, eax
je 0x404ea6
mov esi, dword [eax]
push 0xc
push eax
call fcn.00421cfe
add esp, 8
mov eax, esi
test esi, esi
jne 0x404e93
mov eax, dword [ebx + 0x16d4]
mov dword [eax], eax
mov eax, dword [ebx + 0x16d4]
mov dword [eax + 4], eax
lea eax, [ebx + 0x16dc]
push eax
mov dword [ebx + 0x16d8], 0
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
cmp byte [ebx + 0x160b], 0
je 0x404ee9
mov edx, dword [ebx + 0x154c]
push ecx
push 0
mov ecx, ebx
call fcn.0040c6c0
jmp 0x404f03
cmp byte [ebx + 0x160a], 0
je 0x404f06
mov edx, dword [ebx + 0x154c]
mov ecx, ebx
push 0
push 0
call fcn.0040c8e0
add esp, 8
mov eax, dword [ebx + 0x154c]
test eax, eax
je 0x404f21
push eax
call dword [sym.imp.USER32.dll_DestroyWindow]
mov dword [ebx + 0x154c], 0
cmp byte [ebx + 0x160b], 0
je 0x404fe6
mov eax, dword [0x461848]
test eax, eax
je 0x404f57
cmp dword [0x46186c], eax
je 0x404f57
push dword [0x46185c]
call dword [sym.imp.USER32.dll_SetThreadDesktop]
push dword [0x461848]
call dword [sym.imp.USER32.dll_SwitchDesktop]
mov eax, dword [0x461864]
test eax, eax
je 0x404f67
push eax
call dword [sym.imp.USER32.dll_CloseDesktop]
mov esi, dword [sym.imp.USER32.dll_FindWindowA]
push 0
push str.Shell_TrayWnd
mov dword [0x461848], 0
mov dword [0x461864], 0
mov dword [0x46186c], 0
mov dword [0x46185c], 0
call esi
mov edi, eax
test edi, edi
je 0x404fe6
push 0
push str.Button
push 0
push edi
call dword [sym.imp.USER32.dll_FindWindowExA]
mov dword [ebp - 0x20], eax
test eax, eax
jne 0x404fc6
push eax
push str.Button
call esi
mov dword [ebp - 0x20], eax
mov esi, dword [sym.imp.USER32.dll_ShowWindow]
push 0xa
push edi
call esi
push 0xa
push dword [ebp - 0x20]
call esi
push dword [ebp - 0x20]
mov esi, dword [sym.imp.USER32.dll_DestroyWindow]
call esi
push edi
call esi
mov eax, dword [ebx + 0x15e0]
test eax, eax
je 0x404ff9
push 0
push eax
call dword [sym.imp.KERNEL32.dll_TerminateThread]
cmp byte [0x461854], 0
je 0x40502d
mov esi, dword [0x461858]
call fcn.0040c650
cmp eax, esi
je 0x40502d
or esi, 0x80
push esi
push 0
push 0
push 0
push 0
call dword [sym.imp.USER32.dll_SetDisplayConfig]
mov byte [0x461854], 1
cmp byte [0x461855], 0
je 0x405047
mov edx, dword [0x461878]
mov ecx, dword [0x46187c]
call fcn.0040c850
cmp byte [ebx + 0x1e74], 0
je 0x40505b
lea ecx, [ebx + 0x1e70]
call fcn.0040be20
cmp byte [ebx + 0x1dec], 0
je 0x40506f
lea ecx, [ebx + 0x1de8]
call fcn.0040b9d0
mov ecx, dword [ebp - 8]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0042195a
mov esp, ebp
pop ebp
ret 4