Function at 0x40de00
Capabilities:
Check for time delay via gettickcount

Disassembly:
mov eax, dword [0x452168]
sub esp, 8
push ebx
push esi
push edi
xor edi, edi
xor esi, esi
cmp eax, edi
jne 0x40de27
mov ebx, dword [sym.imp.KERNEL32.dll_GetTickCount]
call ebx
mov dword [0x452168], eax
mov esi, 1
jmp 0x40de66
call dword [sym.imp.KERNEL32.dll_GetTickCount]
mov ecx, dword [0x452168]
add ecx, 0x28
cmp ecx, eax
ja 0x40de60
mov eax, dword [0x452164]
inc eax
cmp eax, 0x22
mov dword [0x452164], eax
jne 0x40de50
mov dword [0x452164], edi
call dword [sym.imp.KERNEL32.dll_GetTickCount]
mov dword [0x452168], eax
mov esi, 1
mov ebx, dword [sym.imp.KERNEL32.dll_GetTickCount]
mov ecx, dword [0x41cc10]
mov eax, dword [0x452150]
cmp ecx, 0x15
jne 0x40debd
mov dword [0x452154], edi
cmp dword [0x452158], edi
je 0x40dece
cmp eax, edi
je 0x40de97
call ebx
mov edx, dword [0x452158]
add edx, 0xa
cmp edx, eax
jbe 0x40dea6
call ebx
mov ecx, dword [0x452158]
add ecx, 0x64
cmp ecx, eax
ja 0x40dedb
push edi
call fcn.0040e1b0
add esp, 4
mov dword [0x452150], eax
call ebx
mov dword [0x452158], eax
jmp 0x40dedb
cmp ecx, 0x16
je 0x40dec6
cmp eax, edi
jne 0x40de7c
mov dword [0x452158], edi
jmp 0x40ded5
call ebx
mov dword [0x452158], eax
mov dword [0x452150], edi
mov eax, dword [0x41cc10]
cmp eax, 0x16
mov eax, dword [0x452154]
je 0x40def6
cmp eax, edi
jne 0x40def6
mov dword [0x45215c], edi
jmp 0x40df3f
cmp dword [0x45215c], edi
je 0x40df38
cmp eax, edi
je 0x40df11
call ebx
mov edx, dword [0x45215c]
add edx, 0xa
cmp edx, eax
jbe 0x40df20
call ebx
mov ecx, dword [0x45215c]
add ecx, 0x64
cmp ecx, eax
ja 0x40df45
push 1
call fcn.0040e1b0
add esp, 4
mov dword [0x452154], eax
call ebx
mov dword [0x45215c], eax
jmp 0x40df45
call ebx
mov dword [0x45215c], eax
mov dword [0x452154], edi
cmp dword [0x452118], edi
je 0x40df5c
call ebx
mov edx, dword [0x452118]
add edx, 0x14
cmp edx, eax
jbe 0x40df75
cmp esi, edi
je 0x40e1a2
cmp dword [0x41fdb4], edi
je 0x40e1a2
jmp 0x40e198
cmp dword [0x452110], edi
je 0x40e18c
cmp dword [0x452114], edi
je 0x40e18c
mov eax, dword [0x45211c]
mov ecx, dword [0x452120]
mov ebx, eax
add eax, 8
cmp ecx, eax
mov dword [esp + 0xc], eax
ja 0x40dfa9
mov dword [esp + 0xc], ecx
mov eax, dword [0x41fd98]
mov ecx, 1
cmp eax, ecx
jne 0x40e012
mov eax, dword [0x452128]
mov edx, dword [0x452124]
cmp eax, edx
je 0x40dfcd
call fcn.0040b8d0
jmp 0x40e003
cmp eax, edi
je 0x40e012
cmp dword [0x41fd94], ecx
jne 0x40dfef
mov dword [0x41fd80], 0x33
mov dword [0x41fd84], 0x2d
jmp 0x40e003
mov dword [0x41fd80], 0x37
mov dword [0x41fd84], 0x3f
call fcn.0040bbc0
call fcn.0040bea0
call fcn.0040c0a0
push ebp
push edi
call fcn.0040c290
mov eax, dword [esp + 0x14]
add esp, 4
cmp ebx, eax
mov ebp, ebx
jae 0x40e118
mov eax, dword [0x41fd54]
push 1
push ebp
push eax
call sub.DreyeWndU.dll_Ordinal_22
cmp eax, 0xffffffff
je 0x40e0fc
mov esi, dword [0x452114]
mov ecx, dword [esi + eax*4 - 0x194]
mov edx, ecx
and edx, 0xff
jbe 0x40e07c
cmp edx, 4
jne 0x40e069
and cl, 0
mov dword [esi + eax*4 - 0x194], ecx
jmp 0x40e076
inc ecx
mov edi, 1
mov dword [esi + eax*4 - 0x194], ecx
mov esi, dword [0x452114]
mov ecx, dword [esi + eax*4 - 0x194]
xor edx, edx
mov dl, ch
test edx, edx
jbe 0x40e0b4
cmp edx, 4
jne 0x40e09c
and ch, 0
mov dword [esi + eax*4 - 0x194], ecx
jmp 0x40e0ae
add ecx, 0x100
mov edi, 1
mov dword [esi + eax*4 - 0x194], ecx
mov esi, dword [0x452114]
mov ecx, dword [esi + eax*4 - 0x194]
xor edx, edx
mov dword [esp + 0x14], ecx
mov dl, byte [esp + 0x16]
test edx, edx
jbe 0x40e0ef
cmp edx, 4
jne 0x40e0dd
and ecx, 0xff00ffff
mov dword [esi + eax*4 - 0x194], ecx
jmp 0x40e0ef
add ecx, 0x10000
mov edi, 1
mov dword [esi + eax*4 - 0x194], ecx
mov eax, dword [esp + 0x10]
inc ebp
cmp ebp, eax
jb 0x40e02a
test edi, edi
je 0x40e118
call dword [sym.imp.KERNEL32.dll_GetTickCount]
pop ebp
pop edi
mov dword [0x452118], eax
pop esi
mov eax, 1
pop ebx
add esp, 8
ret
mov eax, dword [0x452128]
xor ebp, ebp
cmp eax, ebp
mov dword [0x452118], ebp
je 0x40e17f
mov edi, dword [esp + 0x10]
mov esi, ebx
cmp ebx, edi
jae 0x40e15c
mov ecx, dword [0x41fd54]
push 1
push esi
push ecx
call sub.DreyeWndU.dll_Ordinal_22
cmp eax, 0xffffffff
je 0x40e15c
mov edx, dword [0x452110]
test byte [edx + eax*4 - 0x194], 1
jne 0x40e17f
inc esi
cmp esi, edi
jb 0x40e133
mov dword [0x452128], ebp
call fcn.0040b8d0
call fcn.0040bbc0
call fcn.0040bea0
call fcn.0040c0a0
push ebp
call fcn.0040c290
add esp, 4
pop ebp
pop edi
pop esi
mov eax, 1
pop ebx
add esp, 8
ret
cmp esi, edi
je 0x40e1a2
cmp dword [0x41fdb4], edi
je 0x40e1a2
push 1
call fcn.0040c290
add esp, 4
pop edi
pop esi
mov eax, 1
pop ebx
add esp, 8
ret