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

Disassembly:
push ebp
mov ebp, esp
mov ecx, 0xc
push 0
push 0
dec ecx
jne 0x45e244
push esi
mov dword [ebp - 8], edx
mov dword [ebp - 4], eax
xor eax, eax
push ebp
push 0x45e613
push dword fs:[eax]
mov dword fs:[eax], esp
mov edx, dword [ebp - 8]
mov eax, dword [ebp - 4]
call fcn.0046ded0
mov eax, dword [ebp - 4]
cmp byte [eax + 0x268], 0
je 0x45e5c9
mov eax, dword [ebp - 4]
mov al, byte [eax + 0x276]
sub al, 2
jae 0x45e2a5
lea edx, [ebp - 0x3c]
mov eax, dword [ebp - 4]
call fcn.00466d70
mov edx, dword [ebp - 0x3c]
mov eax, dword [ebp - 4]
add eax, 0x270
call fcn.004047e8
jmp 0x45e2d5
call sub.kernel32.dll_GetTickCount
mov edx, dword [ebp - 4]
sub eax, dword [edx + 0x26c]
cmp eax, 0x1f4
jb 0x45e2c7
mov eax, dword [ebp - 4]
add eax, 0x270
call fcn.00404794
call sub.kernel32.dll_GetTickCount
mov edx, dword [ebp - 4]
mov dword [edx + 0x26c], eax
mov eax, dword [ebp - 8]
mov al, byte [eax]
sub al, 8
je 0x45e31e
dec al
je 0x45e2ef
sub al, 0x12
jne 0x45e4a5
jmp 0x45e5c9
mov eax, dword [ebp - 4]
cmp byte [eax + 0x269], 0
je 0x45e5c9
mov eax, dword [ebp - 4]
call fcn.0045cbf4
test al, al
je 0x45e5c9
xor edx, edx
mov eax, dword [ebp - 4]
call fcn.0045cc24
jmp 0x45e5c9
push ebp
lea edx, [ebp - 0x10]
lea eax, [ebp - 0xc]
call fcn.0045e134
pop ecx
test al, al
je 0x45e33b
push ebp
call fcn.0045e174
pop ecx
jmp 0x45e48e
mov eax, dword [ebp - 4]
mov al, byte [eax + 0x276]
sub al, 2
jae 0x45e44a
lea edx, [ebp - 0x40]
mov eax, dword [ebp - 4]
call fcn.00466d70
mov eax, dword [ebp - 0x40]
call fcn.00404a54
test eax, eax
jle 0x45e44a
lea edx, [ebp - 0x18]
mov eax, dword [ebp - 4]
call fcn.00466d70
mov eax, dword [ebp - 0xc]
mov dword [ebp - 0x1c], eax
jmp 0x45e37d
dec dword [ebp - 0x1c]
mov edx, dword [ebp - 0x1c]
mov eax, dword [ebp - 0x18]
call fcn.0040f0bc
cmp al, 2
je 0x45e37a
lea eax, [ebp - 0x14]
push eax
mov ecx, dword [ebp - 0x1c]
dec ecx
mov edx, 1
mov eax, dword [ebp - 0x18]
call fcn.00404cb4
push 0
push 0xffffffffffffffff
push 0x14e
mov eax, dword [ebp - 4]
call fcn.0046f4e8
push eax
call sub.user32.dll_SendMessageA
lea eax, [ebp - 0x48]
push eax
mov edx, dword [ebp - 0x10]
inc edx
mov ecx, 0x7fffffff
mov eax, dword [ebp - 0x18]
call fcn.00404cb4
mov ecx, dword [ebp - 0x48]
lea eax, [ebp - 0x44]
mov edx, dword [ebp - 0x14]
call fcn.00404aa0
mov edx, dword [ebp - 0x44]
mov eax, dword [ebp - 4]
call fcn.00466db0
mov dx, word [ebp - 0x1c]
dec edx
mov ax, word [ebp - 0x1c]
dec eax
call fcn.00407c4c
push eax
push 0
push 0x142
mov eax, dword [ebp - 4]
call fcn.0046f4e8
push eax
call sub.user32.dll_SendMessageA
lea edx, [ebp - 0x4c]
mov eax, dword [ebp - 4]
call fcn.00466d70
mov edx, dword [ebp - 0x4c]
mov eax, dword [ebp - 4]
add eax, 0x270
call fcn.004047e8
jmp 0x45e48e
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x270]
call fcn.00404a54
mov edx, eax
mov eax, dword [ebp - 4]
add eax, 0x270
mov ecx, 1
call fcn.00404cf4
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x270]
call fcn.00404a54
mov edx, eax
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x270]
call fcn.0040f0bc
cmp al, 2
je 0x45e428
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x270]
call fcn.00404a54
mov edx, eax
mov eax, dword [ebp - 4]
add eax, 0x270
mov ecx, 1
call fcn.00404cf4
mov eax, dword [ebp - 8]
mov byte [eax], 0
mov eax, dword [ebp - 4]
mov si, 0xffb3
call fcn.00403b7c
jmp 0x45e5c9
mov eax, dword [ebp - 4]
cmp byte [eax + 0x269], 0
je 0x45e4c7
mov eax, dword [ebp - 4]
call fcn.0045cbf4
test al, al
jne 0x45e4c7
mov dl, 1
mov eax, dword [ebp - 4]
call fcn.0045cc24
push ebp
lea edx, [ebp - 0x10]
lea eax, [ebp - 0xc]
call fcn.0045e134
pop ecx
test al, al
je 0x45e511
lea eax, [ebp - 0x50]
push eax
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x270]
mov ecx, dword [ebp - 0xc]
mov edx, 1
call fcn.00404cb4
mov eax, dword [ebp - 0x50]
push eax
lea eax, [ebp - 0x54]
mov edx, dword [ebp - 8]
mov dl, byte [edx]
call fcn.0040497c
mov ecx, dword [ebp - 0x54]
lea eax, [ebp - 0x18]
pop edx
call fcn.00404aa0
jmp 0x45e532
lea eax, [ebp - 0x58]
mov edx, dword [ebp - 8]
mov dl, byte [edx]
call fcn.0040497c
mov ecx, dword [ebp - 0x58]
mov eax, dword [ebp - 4]
mov edx, dword [eax + 0x270]
lea eax, [ebp - 0x18]
call fcn.00404aa0
mov eax, dword [ebp - 8]
mov al, byte [eax]
mov edx, dword [0x575148]
and eax, 0xff
bt dword [edx], eax
jae 0x45e5b4
push 0
push 0
push 0
mov eax, dword [ebp - 4]
call fcn.0046f4e8
push eax
lea eax, [ebp - 0x38]
push eax
call sub.user32.dll_PeekMessageA
test eax, eax
je 0x45e5c9
cmp dword [ebp - 0x34], 0x102
jne 0x45e5c9
lea eax, [ebp - 0x60]
mov dl, byte [ebp - 0x30]
call fcn.0040497c
mov ecx, dword [ebp - 0x60]
lea eax, [ebp - 0x5c]
mov edx, dword [ebp - 0x18]
call fcn.00404aa0
mov edx, dword [ebp - 0x5c]
mov eax, dword [ebp - 4]
call fcn.0045e620
test al, al
je 0x45e5c9
push 1
push 0
push 0
mov eax, dword [ebp - 4]
call fcn.0046f4e8
push eax
lea eax, [ebp - 0x38]
push eax
call sub.user32.dll_PeekMessageA
mov eax, dword [ebp - 8]
mov byte [eax], 0
jmp 0x45e5c9
mov edx, dword [ebp - 0x18]
mov eax, dword [ebp - 4]
call fcn.0045e620
test al, al
je 0x45e5c9
mov eax, dword [ebp - 8]
mov byte [eax], 0
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x45e61a
lea eax, [ebp - 0x60]
mov edx, 5
call fcn.004047b8
lea eax, [ebp - 0x4c]
call fcn.00404794
lea eax, [ebp - 0x48]
mov edx, 2
call fcn.004047b8
lea eax, [ebp - 0x40]
mov edx, 2
call fcn.004047b8
lea eax, [ebp - 0x18]
mov edx, 2
call fcn.004047b8
ret