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

Disassembly:
mov eax, dword [esp + 8]
sub esp, 0x20
push ebx
push ebp
xor ebp, ebp
push esi
push edi
cmp eax, ebp
mov edi, ecx
je 0x49982b
mov ecx, dword [eax]
mov edx, dword [eax + 4]
mov eax, dword [edi + 0x14]
mov dword [esp + 0x10], ecx
lea esi, [edi + 0x14]
lea ecx, [esp + 0x20]
push ecx
mov ecx, esi
mov dword [esp + 0x18], edx
call dword [eax + 0x74]
mov edx, dword [esi]
lea eax, [esp + 0x20]
push eax
mov ecx, esi
call dword [edx + 0x98]
mov edx, dword [esi]
mov ecx, esi
call dword [edx + 0x60]
mov esi, eax
cmp esi, ebp
je 0x4999a6
mov ecx, dword [esi + 0x20]
mov ebx, dword [sym.imp.USER32.dll_MapWindowPoints]
lea eax, [esp + 0x20]
push 2
push eax
push ebp
push ecx
call ebx
mov eax, dword [esi + 0x20]
lea edx, [esp + 0x10]
push 1
push edx
push ebp
push eax
call ebx
mov ecx, dword [esp + 0x24]
lea esi, [edi + 0x24c]
cmp esi, ebp
mov dword [esp + 0x14], ecx
jne 0x49975c
xor eax, eax
jmp 0x49975f
mov eax, dword [esi + 0x20]
mov ebx, dword [sym.imp.USER32.dll_IsWindow]
push eax
call ebx
test eax, eax
jne 0x4997a0
cmp esi, ebp
je 0x499773
mov eax, dword [esi + 0x20]
push eax
call ebx
test eax, eax
jne 0x4997a0
mov eax, dword [edi + 0x94]
mov dword [esp + 0x18], ebp
cmp eax, ebp
mov dword [esp + 0x1c], ebp
jne 0x499790
xor eax, eax
jmp 0x499793
mov eax, dword [eax + 0x20]
lea edx, [esp + 0x18]
mov ecx, esi
push edx
push eax
call fcn.00556c60
cmp esi, ebp
jne 0x4997a8
xor eax, eax
jmp 0x4997ab
mov eax, dword [esi + 0x20]
push eax
call ebx
test eax, eax
je 0x4999a6
cmp esi, ebp
jne 0x4997be
xor eax, eax
jmp 0x4997c1
mov eax, dword [esi + 0x20]
push eax
call dword [sym.imp.USER32.dll_IsWindowVisible]
test eax, eax
jne 0x4997d2
mov dword [edi + 0x3ec], ebp
cmp dword [edi + 0x3ec], ebp
jne 0x499801
call dword [sym.imp.KERNEL32.DLL_GetTickCount]
mov ecx, dword [esp + 0x34]
mov dword [edi + 0x3ec], eax
lea eax, [esp + 0x10]
push eax
push ecx
mov ecx, esi
call fcn.00556d80
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x20
ret 8
call dword [sym.imp.KERNEL32.DLL_GetTickCount]
mov ecx, dword [edi + 0x3ec]
mov ebx, eax
mov edx, ebx
sub edx, ecx
cmp edx, 0x32
jb 0x4999a6
mov ecx, dword [esp + 0x34]
lea eax, [esp + 0x10]
push eax
push ecx
jmp 0x499999
mov edx, dword [esp + 0x34]
mov eax, dword [edx]
cmp dword [eax - 8], ebp
jne 0x499859
lea ecx, [esp + 0x18]
mov dword [esp + 0x18], ebp
push ecx
push ebp
lea ecx, [edi + 0x24c]
mov dword [esp + 0x24], ebp
call fcn.005570b0
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x20
ret 8
lea edx, [esp + 0x10]
push edx
call dword [sym.imp.USER32.dll_GetCursorPos]
mov eax, dword [edi + 0x14]
lea esi, [edi + 0x14]
lea ecx, [esp + 0x20]
push ecx
mov ecx, esi
call dword [eax + 0x74]
mov edx, dword [esi]
lea eax, [esp + 0x20]
push eax
mov ecx, esi
call dword [edx + 0x98]
mov edx, dword [esi]
mov ecx, esi
call dword [edx + 0x60]
cmp eax, ebp
je 0x4999a6
mov edx, dword [eax + 0x20]
lea ecx, [esp + 0x20]
push 2
push ecx
push ebp
push edx
call dword [sym.imp.USER32.dll_MapWindowPoints]
mov eax, dword [esp + 0x14]
mov ecx, dword [esp + 0x10]
push eax
lea edx, [esp + 0x24]
push ecx
push edx
call dword [sym.imp.USER32.dll_PtInRect]
test eax, eax
je 0x4999a6
mov eax, dword [esp + 0x24]
lea esi, [edi + 0x24c]
cmp esi, ebp
mov dword [esp + 0x14], eax
jne 0x4998d7
xor eax, eax
jmp 0x4998da
mov eax, dword [esi + 0x20]
mov ebx, dword [sym.imp.USER32.dll_IsWindow]
push eax
call ebx
test eax, eax
jne 0x49991b
cmp esi, ebp
je 0x4998ee
mov eax, dword [esi + 0x20]
push eax
call ebx
test eax, eax
jne 0x49991b
mov eax, dword [edi + 0x94]
mov dword [esp + 0x18], ebp
cmp eax, ebp
mov dword [esp + 0x1c], ebp
jne 0x49990b
xor eax, eax
jmp 0x49990e
mov eax, dword [eax + 0x20]
lea ecx, [esp + 0x18]
push ecx
push eax
mov ecx, esi
call fcn.00556c60
cmp esi, ebp
jne 0x499923
xor eax, eax
jmp 0x499926
mov eax, dword [esi + 0x20]
push eax
call ebx
test eax, eax
je 0x4999a6
cmp esi, ebp
jne 0x499935
xor eax, eax
jmp 0x499938
mov eax, dword [esi + 0x20]
push eax
call dword [sym.imp.USER32.dll_IsWindowVisible]
test eax, eax
jne 0x499949
mov dword [edi + 0x3ec], ebp
cmp dword [edi + 0x3ec], ebp
jne 0x499978
call dword [sym.imp.KERNEL32.DLL_GetTickCount]
mov dword [edi + 0x3ec], eax
mov eax, dword [esp + 0x34]
lea edx, [esp + 0x10]
mov ecx, esi
push edx
push eax
call fcn.00556d80
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x20
ret 8
call dword [sym.imp.KERNEL32.DLL_GetTickCount]
mov edx, dword [edi + 0x3ec]
mov ebx, eax
mov ecx, ebx
sub ecx, edx
cmp ecx, 0x32
jb 0x4999a6
mov eax, dword [esp + 0x34]
lea edx, [esp + 0x10]
push edx
push eax
mov ecx, esi
call fcn.00556d80
mov dword [edi + 0x3ec], ebx
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x20
ret 8