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

Disassembly:
push 0xffffffffffffffff
push 0x468f48
mov eax, dword fs:[0]
push eax
sub esp, 0x38
push ebx
push ebp
push esi
push edi
mov eax, dword [0x489190]
xor eax, esp
push eax
lea eax, [esp + 0x4c]
mov dword fs:[0], eax
mov ebp, ecx
mov edi, dword [esp + 0x60]
mov ecx, dword [edi + 4]
test ecx, ecx
je 0x42f1ae
mov eax, dword [edi + 8]
sub eax, ecx
sar eax, 2
jne 0x42f1b5
xor eax, eax
jmp 0x42f6c1
lea esi, [eax - 1]
cmp esi, eax
jb 0x42f1c1
call fcn.00449f03
mov eax, dword [edi + 4]
mov eax, dword [eax + esi*4]
lea ecx, [esp + 0x2c]
push ecx
mov ecx, dword [ebp + 0x28]
push eax
call fcn.00439010
sub esi, 1
js 0x42f229
lea ebx, [ebx]
mov ecx, dword [edi + 4]
test ecx, ecx
je 0x42f1f3
mov eax, dword [edi + 8]
sub eax, ecx
sar eax, 2
cmp esi, eax
jb 0x42f1f8
call fcn.00449f03
mov edx, dword [edi + 4]
mov eax, dword [edx + esi*4]
lea ecx, [esp + 0x3c]
push ecx
mov ecx, dword [ebp + 0x28]
push eax
call fcn.00439010
mov eax, dword [esp + 0x3c]
add dword [esp + 0x2c], eax
add dword [esp + 0x34], eax
mov eax, dword [esp + 0x40]
add dword [esp + 0x30], eax
add dword [esp + 0x38], eax
sub esi, 1
jns 0x42f1e0
mov ecx, dword [ebp + 0x28]
call fcn.004386e0
mov ebx, eax
mov dword [esp + 0x18], 0
mov dword [esp + 0x54], 1
mov edx, dword [esp + 0x5c]
mov eax, dword [edx]
mov ecx, dword [eax]
lea edx, [esp + 0x18]
push edx
push eax
mov eax, dword [ecx + 0x1b0]
call eax
call dword [sym.imp.KERNEL32.dll_GetTickCount]
push eax
call fcn.00448f2f
add esp, 4
cmp dword [esp + 0x64], 0
je 0x42f30c
mov ebp, dword [ebp + 0x28]
mov edx, dword [ebp + 4]
lea ecx, [esp + 0x3c]
add ebp, 4
push ecx
push edx
call dword [sym.imp.USER32.dll_GetClientRect]
mov eax, dword [esp + 0x44]
sub eax, dword [esp + 0x3c]
mov ecx, dword [esp + 0x2c]
cdq
sub eax, edx
mov esi, eax
mov eax, dword [esp + 0x34]
add eax, ecx
cdq
sub eax, edx
mov ecx, eax
mov eax, dword [esp + 0x48]
sub eax, dword [esp + 0x40]
sar esi, 1
cdq
sub eax, edx
mov edx, dword [esp + 0x30]
sar ecx, 1
sub ecx, esi
mov esi, eax
mov eax, dword [esp + 0x38]
add eax, edx
cdq
sub eax, edx
sar esi, 1
sar eax, 1
sub eax, esi
test ecx, ecx
jg 0x42f2d0
xor ecx, ecx
test eax, eax
jg 0x42f2d6
xor eax, eax
mov edx, dword [esp + 0x18]
test edx, edx
je 0x42f2eb
mov esi, dword [edx]
push eax
push ecx
mov ecx, dword [esi + 0x11c]
push edx
call ecx
mov dword [esp + 0x54], 0xffffffff
mov eax, dword [esp + 0x18]
test eax, eax
je 0x42f6bc
mov edx, dword [eax]
push eax
mov eax, dword [edx + 8]
call eax
jmp 0x42f6bc
mov ecx, dword [edi + 4]
test ecx, ecx
jne 0x42f317
xor eax, eax
jmp 0x42f31f
mov eax, dword [edi + 8]
sub eax, ecx
sar eax, 2
test ecx, ecx
lea esi, [eax - 1]
je 0x42f332
mov eax, dword [edi + 8]
sub eax, ecx
sar eax, 2
cmp esi, eax
jb 0x42f337
call fcn.00449f03
mov ecx, dword [edi + 4]
lea eax, [ecx + esi*4]
mov eax, dword [eax]
push eax
lea ecx, [esp + 0x18]
call fcn.0042d000
mov byte [esp + 0x54], 3
mov edx, dword [esp + 0x34]
sub edx, dword [esp + 0x2c]
cmp edx, 0x1e
jle 0x42f368
mov eax, 0xa
add dword [esp + 0x2c], eax
sub dword [esp + 0x34], eax
mov eax, dword [esp + 0x38]
sub eax, dword [esp + 0x30]
cmp eax, 0xa
jle 0x42f382
mov eax, 3
add dword [esp + 0x30], eax
sub dword [esp + 0x38], eax
call fcn.00448f3c
mov ecx, dword [esp + 0x2c]
mov esi, dword [esp + 0x34]
cdq
sub esi, ecx
idiv esi
mov edi, edx
add edi, ecx
call fcn.00448f3c
mov ecx, dword [esp + 0x30]
mov esi, dword [esp + 0x38]
sub esi, ecx
cdq
idiv esi
mov dword [esp + 0x24], edi
mov esi, edx
add esi, ecx
lea ecx, [esp + 0x24]
push ecx
push ebx
mov dword [esp + 0x30], esi
call dword [sym.imp.USER32.dll_ClientToScreen]
mov edx, dword [esp + 0x14]
push edx
mov ecx, ebp
call fcn.0042d560
test eax, eax
jne 0x42f47a
mov eax, dword [esp + 0x34]
sub eax, dword [esp + 0x2c]
test eax, eax
jle 0x42f47a
mov ecx, dword [esp + 0x38]
sub ecx, dword [esp + 0x30]
test ecx, ecx
jle 0x42f47a
mov dword [ebp + 0xa0], 1
call dword [sym.imp.KERNEL32.dll_GetTickCount]
push eax
call fcn.00448f2f
add esp, 4
push esi
push edi
push ebx
mov ecx, ebp
call fcn.0042cb50
mov edx, dword [esp + 0x28]
mov eax, dword [esp + 0x24]
push edx
push eax
call fcn.00434b00
movzx esi, si
movzx ecx, di
mov edi, dword [sym.imp.USER32.dll_SendMessageW]
add esp, 8
shl esi, 0x10
or esi, ecx
push esi
push 0
push 0x200
push ebx
call edi
push 0x14
call dword [sym.imp.KERNEL32.dll_Sleep]
push esi
push 0
push 0x201
push ebx
call edi
push 0xa
call dword [sym.imp.KERNEL32.dll_Sleep]
push esi
push 0
push 0x202
push ebx
call edi
lea ecx, [ebp + 0x2c]
call fcn.0042ebc0
jmp 0x42f68f
mov edx, dword [esp + 0x14]
push edx
lea ecx, [esp + 0x64]
mov dword [ebp + 0xa0], 1
call fcn.0042d7c0
mov byte [esp + 0x54], 4
xor ebx, ebx
mov dword [esp + 0x64], ebx
mov byte [esp + 0x54], 6
mov eax, dword [esp + 0x28]
mov ecx, dword [esp + 0x24]
push eax
push ecx
mov dword [esp + 0x64], ebx
call fcn.00434b00
mov eax, dword [esp + 0x20]
add esp, 8
cmp eax, ebx
je 0x42f50a
mov edx, dword [eax]
mov edx, dword [edx + 0xd4]
lea ecx, [esp + 0x64]
push ecx
push eax
call edx
mov eax, dword [esp + 0x64]
cmp eax, ebx
je 0x42f50e
push eax
lea ecx, [esp + 0x20]
call fcn.0042d830
mov byte [esp + 0x54], 7
mov eax, dword [esp + 0x1c]
cmp eax, ebx
je 0x42f4fc
mov edx, dword [esp + 0x14]
mov ecx, dword [eax]
push edx
push eax
mov eax, dword [ecx + 0x60]
call eax
mov byte [esp + 0x54], 6
lea ecx, [esp + 0x1c]
call fcn.00438b60
mov eax, dword [esp + 0x64]
cmp eax, ebx
mov word [esp + 0x3c], 9
mov dword [esp + 0x44], eax
je 0x42f525
mov ecx, dword [eax]
mov edx, dword [ecx + 4]
push eax
call edx
mov byte [esp + 0x54], 8
mov eax, dword [esp + 0x60]
cmp eax, ebx
je 0x42f5df
mov ecx, dword [eax]
lea edx, [esp + 0x5c]
push edx
lea edx, [esp + 0x40]
push edx
push str.onmousemove
push eax
mov eax, dword [ecx + 0x7c]
call eax
mov eax, dword [esp + 0x60]
mov ecx, dword [eax]
lea edx, [esp + 0x5c]
push edx
lea edx, [esp + 0x40]
push edx
push str.onmouseover
push eax
mov eax, dword [ecx + 0x7c]
call eax
mov eax, dword [esp + 0x60]
mov ecx, dword [eax]
lea edx, [esp + 0x5c]
push edx
lea edx, [esp + 0x40]
push edx
push str.onmousemove
push eax
mov eax, dword [ecx + 0x7c]
call eax
mov eax, dword [esp + 0x60]
mov ecx, dword [eax]
lea edx, [esp + 0x5c]
push edx
lea edx, [esp + 0x40]
push edx
push str.onmousedown
push eax
mov eax, dword [ecx + 0x7c]
call eax
mov eax, dword [esp + 0x60]
mov ecx, dword [eax]
lea edx, [esp + 0x5c]
push edx
lea edx, [esp + 0x40]
push edx
push str.onfocus
push eax
mov eax, dword [ecx + 0x7c]
call eax
mov eax, dword [esp + 0x60]
mov ecx, dword [eax]
lea edx, [esp + 0x5c]
push edx
lea edx, [esp + 0x40]
push edx
push str.onmouseup
push eax
mov eax, dword [ecx + 0x7c]
call eax
push 0xc8
call dword [sym.imp.KERNEL32.dll_Sleep]
mov eax, dword [esp + 0x14]
mov ecx, dword [eax]
mov edx, dword [ecx + 0x114]
push eax
call edx
mov eax, dword [esp + 0x60]
cmp eax, ebx
je 0x42f628
mov ecx, dword [eax]
lea edx, [esp + 0x5c]
push edx
lea edx, [esp + 0x40]
push edx
push str.onmousemove
push eax
mov eax, dword [ecx + 0x7c]
call eax
mov eax, dword [esp + 0x60]
mov ecx, dword [eax]
lea edx, [esp + 0x5c]
push edx
lea edx, [esp + 0x40]
push edx
push 0x4724a0
push eax
mov eax, dword [ecx + 0x7c]
call eax
mov esi, dword [ebp + 0x34]
add ebp, 0x2c
cmp dword [ebp + 4], esi
jbe 0x42f638
call fcn.00449f03
mov edi, dword [ebp + 4]
cmp edi, dword [ebp + 8]
jbe 0x42f645
call fcn.00449f03
push esi
push ebp
push edi
push ebp
lea ecx, [esp + 0x2c]
push ecx
mov ecx, ebp
call fcn.0042e740
mov byte [esp + 0x54], 6
lea edx, [esp + 0x3c]
push edx
call dword [sym.imp.OLEAUT32.dll_VariantCopy]
mov byte [esp + 0x54], 4
mov eax, dword [esp + 0x64]
cmp eax, ebx
je 0x42f67a
mov ecx, dword [eax]
mov edx, dword [ecx + 8]
push eax
call edx
mov byte [esp + 0x54], 3
mov eax, dword [esp + 0x60]
cmp eax, ebx
je 0x42f68f
mov ecx, dword [eax]
mov edx, dword [ecx + 8]
push eax
call edx
mov byte [esp + 0x54], 1
mov eax, dword [esp + 0x14]
test eax, eax
je 0x42f6a4
mov ecx, dword [eax]
mov edx, dword [ecx + 8]
push eax
call edx
mov dword [esp + 0x54], 0xffffffff
mov eax, dword [esp + 0x18]
test eax, eax
je 0x42f6bc
mov ecx, dword [eax]
mov edx, dword [ecx + 8]
push eax
call edx
mov eax, 1
mov ecx, dword [esp + 0x4c]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x44
ret 0xc