Function at 0x497480
Capabilities:
Check for time delay via gettickcount
Hide graphical window

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x52ad00
mov eax, dword fs:[0]
push eax
sub esp, 0x64
mov eax, dword [0x569638]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov ebx, dword [ebp + 8]
mov eax, dword [ebp + 0xc]
xor esi, esi
mov edi, ecx
mov dword [eax], esi
mov dword [ebp - 0x4c], esi
mov dword [ebp - 0x50], esi
mov dword [ebp - 4], esi
mov eax, dword [edi + 0x234]
cmp eax, 1
jne 0x4974db
mov eax, dword [edi + 0x204]
mov ecx, dword [edi + 0x200]
push eax
push ecx
jmp 0x4974ee
cmp eax, 2
jne 0x497500
mov edx, dword [edi + 0x20c]
mov eax, dword [edi + 0x208]
push edx
push eax
lea esi, [ebp - 0x50]
call fcn.00495660
xor ecx, ecx
cmp dword [ebp - 0x50], ecx
jne 0x497545
mov esi, dword [ebp - 0x4c]
mov dword [ebp - 4], 0xffffffff
test esi, esi
je 0x497947
lea ecx, [esi + 8]
or edx, 0xffffffff
lock xadd dword [ecx], edx
jne 0x497947
mov eax, dword [esi]
mov edx, dword [eax]
mov ecx, esi
call edx
lea eax, [esi + 0xc]
or ecx, 0xffffffff
lock xadd dword [eax], ecx
jne 0x497947
mov edx, dword [esi]
mov eax, dword [edx + 4]
mov ecx, esi
call eax
jmp 0x497947
cmp ebx, 0x66
jne 0x49766e
mov ecx, dword [edi + 4]
push ebx
push ecx
call dword [sym.imp.USER32.dll_KillTimer]
call dword [sym.imp.KERNEL32.dll_GetTickCount]
mov edx, eax
sub edx, dword [edi + 0x254]
mov eax, 0x10624dd3
mul edx
mov eax, dword [edi + 0x258]
shr edx, 6
cmp eax, edx
jbe 0x497583
sub eax, edx
mov ebx, eax
xor esi, esi
jmp 0x497587
xor esi, esi
xor ebx, ebx
mov eax, dword [edi + 0x260]
cmp eax, esi
je 0x497596
cmp eax, 2
jne 0x4975bb
mov eax, dword [edi + 0x1f0]
cmp eax, esi
je 0x4975bb
mov eax, dword [eax + 0x30]
push eax
call dword [sym.imp.USER32.dll_IsWindow]
test eax, eax
je 0x4975bb
mov ecx, dword [edi + 0x1f0]
push ebx
push ecx
call fcn.004abe40
cmp ebx, esi
je 0x4975d6
mov edx, dword [edi + 4]
push esi
push 0x3e8
push 0x66
push edx
call dword [sym.imp.USER32.dll_SetTimer]
jmp 0x497910
mov eax, dword [edi + 0x1fc]
cmp eax, 0xa
je 0x4975f6
cmp eax, 0x1b
je 0x4975f6
mov eax, dword [edi + 4]
push esi
push eax
call dword [sym.imp.USER32.dll_ShowWindow]
jmp 0x497910
mov eax, dword [edi + 0x1f0]
cmp eax, esi
je 0x497622
mov ecx, dword [eax + 0x30]
push ecx
call dword [sym.imp.USER32.dll_IsWindow]
test eax, eax
je 0x497622
mov eax, dword [edi + 0x1f0]
mov edx, dword [eax + 0x30]
add eax, 0x30
push esi
push edx
call dword [sym.imp.USER32.dll_ShowWindow]
xor eax, eax
mov dword [ebp - 0x3c], esi
mov dword [ebp - 0x38], esi
mov dword [ebp - 0x18], 7
mov dword [ebp - 0x1c], esi
mov word [ebp - 0x2c], ax
mov dword [ebp - 0x14], esi
mov byte [ebp - 4], 1
mov edx, dword [edi + 4]
mov ecx, dword [edi + 0x1f8]
push edx
mov dword [ebp - 0x40], esi
mov dword [ebp - 0x34], ecx
call dword [sym.imp.USER32.dll_GetParent]
push eax
lea ecx, [ebp - 0x40]
call fcn.004d0c90
add esp, 4
lea esi, [ebp - 0x40]
call fcn.00497970
jmp 0x497910
cmp ebx, 0x67
jne 0x49768b
mov eax, dword [edi + 4]
push ebx
push eax
call dword [sym.imp.USER32.dll_KillTimer]
push edi
xor ecx, ecx
call fcn.00498b10
jmp 0x497910
cmp ebx, 0x68
jne 0x497772
mov ecx, dword [edi + 4]
push ebx
push ecx
call dword [sym.imp.USER32.dll_KillTimer]
lea edx, [ebp - 0x48]
push edx
mov dword [ebp - 0x44], 0
mov dword [ebp - 0x48], 8
call dword [sym.imp.USER32.dll_GetLastInputInfo]
mov eax, dword [0x5758e8]
test eax, eax
je 0x497751
cmp eax, dword [ebp - 0x44]
je 0x49775a
mov byte [edi + 0x2c5], 0
call dword [sym.imp.KERNEL32.dll_GetTickCount]
mov esi, dword [sym.imp.USER32.dll_SetTimer]
push 0
push 0x3e8
mov dword [edi + 0x254], eax
mov eax, dword [edi + 4]
push 0x66
push eax
call esi
mov ecx, dword [edi + 4]
push 0
push 0xfa
push 0x69
push ecx
call esi
mov eax, dword [edi + 0x260]
cmp eax, 2
je 0x497717
test eax, eax
jne 0x497910
mov eax, dword [edi + 0x1f0]
test eax, eax
je 0x497910
mov edx, dword [eax + 0x30]
push edx
call dword [sym.imp.USER32.dll_IsWindow]
test eax, eax
je 0x497910
mov edi, dword [edi + 0x1f0]
mov eax, dword [edi + 0x30]
add edi, 0x30
push 5
push eax
call dword [sym.imp.USER32.dll_ShowWindow]
jmp 0x497910
mov ecx, dword [ebp - 0x44]
mov dword [0x5758e8], ecx
mov edx, dword [edi + 4]
push 0
push 0x1f4
push 0x68
push edx
call dword [sym.imp.USER32.dll_SetTimer]
jmp 0x497910
cmp ebx, 0x69
jne 0x497910
mov eax, dword [edi + 0x260]
cmp eax, 1
je 0x49779b
cmp eax, 2
je 0x49779b
mov eax, dword [edi + 4]
push ebx
push eax
call dword [sym.imp.USER32.dll_KillTimer]
jmp 0x497910
mov dword [ebp - 0x48], ecx
mov dword [ebp - 0x44], ecx
lea ecx, [ebp - 0x48]
push ecx
call dword [sym.imp.USER32.dll_GetCursorPos]
mov eax, dword [edi + 4]
mov esi, dword [sym.imp.USER32.dll_GetWindowRect]
lea edx, [ebp - 0x60]
push edx
push eax
call esi
mov ecx, dword [edi + 4]
push ecx
call dword [sym.imp.USER32.dll_GetParent]
lea edx, [ebp - 0x70]
push edx
push eax
call esi
mov eax, dword [ebp - 0x44]
mov ecx, dword [ebp - 0x48]
mov esi, dword [sym.imp.USER32.dll_PtInRect]
push eax
push ecx
lea edx, [ebp - 0x60]
push edx
call esi
test eax, eax
jne 0x49789a
mov eax, dword [ebp - 0x44]
mov ecx, dword [ebp - 0x48]
push eax
push ecx
lea edx, [ebp - 0x70]
push edx
call esi
test eax, eax
jne 0x49789a
cmp byte [edi + 0x2c4], al
je 0x497910
mov byte [edi + 0x2c4], al
call dword [sym.imp.KERNEL32.dll_GetTickCount]
mov ecx, dword [edi + 0x2c8]
sub ecx, dword [edi + 0x258]
mov edx, dword [edi + 4]
imul ecx, ecx, 0x3e8
push 0
push 0x3e8
push 0x66
add eax, ecx
push edx
mov dword [edi + 0x254], eax
call dword [sym.imp.USER32.dll_SetTimer]
cmp dword [edi + 0x260], 2
jne 0x497910
mov eax, dword [edi + 0x1f0]
test eax, eax
je 0x497910
mov eax, dword [eax + 0x30]
push eax
call dword [sym.imp.USER32.dll_IsWindow]
test eax, eax
je 0x497910
mov ecx, dword [edi + 0x2c8]
mov edx, dword [edi + 0x1f0]
push ecx
push edx
call fcn.004abe40
mov edi, dword [edi + 0x1f0]
mov eax, dword [edi + 0x30]
add edi, 0x30
push 5
push eax
call dword [sym.imp.USER32.dll_ShowWindow]
jmp 0x497910
cmp byte [edi + 0x2c4], 0
jne 0x497910
mov ecx, dword [edi + 4]
push 0x66
push ecx
call dword [sym.imp.USER32.dll_KillTimer]
mov eax, dword [edi + 0x1f0]
mov byte [edi + 0x2c4], 1
test eax, eax
je 0x4978e2
mov edx, dword [eax + 0x30]
push edx
call dword [sym.imp.USER32.dll_IsWindow]
test eax, eax
je 0x4978e2
mov eax, dword [edi + 0x1f0]
add eax, 0x30
mov eax, dword [eax]
push 0
push eax
call dword [sym.imp.USER32.dll_ShowWindow]
call dword [sym.imp.KERNEL32.dll_GetTickCount]
mov ecx, eax
sub ecx, dword [edi + 0x254]
mov eax, 0x10624dd3
mul ecx
mov eax, dword [edi + 0x258]
shr edx, 6
cmp eax, edx
jbe 0x497908
sub eax, edx
jmp 0x49790a
xor eax, eax
mov dword [edi + 0x2c8], eax
mov dword [ebp - 4], 0xffffffff
mov esi, dword [ebp - 0x4c]
test esi, esi
je 0x497947
lea edx, [esi + 8]
or eax, 0xffffffff
lock xadd dword [edx], eax
jne 0x497947
mov edx, dword [esi]
mov eax, dword [edx]
mov ecx, esi
call eax
lea ecx, [esi + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
jne 0x497947
mov eax, dword [esi]
mov edx, dword [eax + 4]
mov ecx, esi
call edx
xor eax, eax
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.004f398f
mov esp, ebp
pop ebp
ret 8