Function at 0x522308
Capabilities:
Check for time delay via gettickcount
Check for unmoving mouse cursor
Get graphical window text
Hide graphical window

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffdb8
push ebx
push esi
push edi
xor ecx, ecx
mov dword [ebp - 0x248], ecx
mov dword [ebp - 0x244], ecx
mov dword [ebp - 4], edx
xor eax, eax
push ebp
push 0x5226f8
push dword fs:[eax]
mov dword fs:[eax], esp
mov byte [ebp - 5], 0
mov eax, dword [0x58d178]
mov ecx, dword [eax + 0x1bc]
lea eax, [ebp - 0x244]
mov edx, 0x522714
call fcn.004054c0
mov edx, dword [ebp - 0x244]
mov eax, dword [0x58d174]
call fcn.0050babc
mov eax, dword [0x58d178]
mov ecx, dword [eax + 0x1bc]
lea eax, [ebp - 0x248]
mov edx, 0x522728
call fcn.004054c0
mov edx, dword [ebp - 0x248]
mov eax, dword [0x58d174]
call fcn.0050babc
call fcn.004b9988
mov ebx, eax
cmp dword [ebp - 4], 0
je 0x5226da
push 0x52273c
push 0
push 1
call sub.kernel32.dll_GetCurrentProcessId
mov edx, eax
mov ecx, 0x52274c
mov eax, dword [ebp - 4]
call fcn.004b982c
mov esi, eax
test esi, esi
jne 0x5223e0
push 0x52273c
push 0
push 1
call sub.kernel32.dll_GetCurrentProcessId
mov edx, eax
mov ecx, 0x52275c
mov eax, dword [ebp - 4]
call fcn.004b982c
mov esi, eax
test esi, esi
jne 0x522403
push 0x52273c
push 0
push 1
call sub.kernel32.dll_GetCurrentProcessId
mov edx, eax
mov ecx, 0x52276c
mov eax, dword [ebp - 4]
call fcn.004b982c
mov esi, eax
test esi, esi
jne 0x522426
push 0x52273c
push 0
push 1
call sub.kernel32.dll_GetCurrentProcessId
mov edx, eax
mov ecx, 0x52277c
mov eax, dword [ebp - 4]
call fcn.004b982c
mov esi, eax
test esi, esi
jne 0x522449
push 0x52273c
push 0
push 1
call sub.kernel32.dll_GetCurrentProcessId
mov edx, eax
mov ecx, 0x52278c
mov eax, dword [ebp - 4]
call fcn.004b982c
mov esi, eax
test esi, esi
jne 0x52246c
push 0x52273c
push 0
push 1
call sub.kernel32.dll_GetCurrentProcessId
mov edx, eax
mov ecx, 0x52279c
mov eax, dword [ebp - 4]
call fcn.004b982c
mov esi, eax
test esi, esi
jne 0x5224ad
mov edx, 0x5227ac
mov eax, dword [0x58d178]
call fcn.00521e50
jmp 0x5226da
mov eax, dword [0x58d178]
cmp dword [eax + 0x1b8], 2
jne 0x522498
mov byte [ebp - 5], 1
jmp 0x5224bd
call fcn.004b9988
sub eax, ebx
cmp eax, 0x1f4
ja 0x5224bd
push 0x64
call sub.kernel32.dll_Sleep_2
mov eax, dword [0x586750]
mov eax, dword [eax]
cmp byte [eax + 0xa4], 0
je 0x522484
cmp byte [ebp - 5], 0
jne 0x5226da
lea eax, [ebp - 0x240]
xor ecx, ecx
mov edx, 0x80
call fcn.004039a4
lea eax, [ebp - 0x240]
push eax
push 0x522230
mov eax, dword [ebp - 4]
push eax
call sub.user32.dll_EnumChildWindows
mov dword [ebp - 0x20], 0x7fffffff
xor eax, eax
mov dword [ebp - 0xc], eax
mov edi, 0x80
lea ebx, [ebp - 0x240]
cmp dword [ebx], 0
je 0x52255f
mov eax, dword [ebx]
push eax
call sub.user32.dll_GetParent
push eax
push esi
call sub.user32.dll_GetParent
pop edx
cmp edx, eax
jne 0x522559
lea eax, [ebp - 0x30]
push eax
mov eax, dword [ebx]
push eax
call sub.user32.dll_GetWindowRect
lea eax, [ebp - 0x40]
push eax
push esi
call sub.user32.dll_GetWindowRect
mov eax, dword [ebp - 0x2c]
sub eax, dword [ebp - 0x3c]
cdq
xor eax, edx
sub eax, edx
mov ecx, eax
cmp ecx, dword [ebp - 0x20]
jge 0x522559
mov eax, dword [ebp - 0x2c]
sub eax, dword [ebp - 0x3c]
cdq
xor eax, edx
sub eax, edx
mov dword [ebp - 0x20], ecx
mov eax, dword [ebx]
mov dword [ebp - 0xc], eax
add ebx, 4
dec edi
jne 0x522505
cmp dword [ebp - 0xc], 0
je 0x5226da
mov eax, 0x400
call fcn.00402f50
mov ebx, eax
push 0x400
push ebx
mov eax, dword [ebp - 0xc]
push eax
call sub.user32.dll_GetWindowTextA
test ebx, ebx
je 0x52258b
cmp byte [ebx], 0
jne 0x5225a7
mov eax, dword [0x58d178]
mov eax, dword [eax + 0x1bc]
call fcn.00405638
push eax
mov eax, dword [ebp - 0xc]
push eax
call sub.user32.dll_SetWindowTextA
mov eax, ebx
call fcn.00402f6c
mov eax, dword [0x58d178]
xor edx, edx
mov dword [eax + 0x1b8], edx
mov eax, dword [ebp - 4]
push eax
call sub.user32.dll_GetParent
mov edx, dword [0x586404]
mov edx, dword [edx]
mov ebx, dword [edx + 0x1c]
cmp eax, ebx
jne 0x5225da
mov eax, dword [0x586404]
jmp 0x5225dd
mov ebx, dword [ebp - 4]
lea eax, [ebp - 0x30]
push eax
push esi
call sub.user32.dll_GetWindowRect
mov eax, dword [ebp - 0x30]
mov dword [ebp - 0x1c], eax
mov esi, dword [ebp - 0x2c]
mov dword [ebp - 0x18], esi
lea eax, [ebp - 0x14]
push eax
call sub.user32.dll_GetCursorPos
add esi, 0xa
push esi
mov eax, dword [ebp - 0x1c]
add eax, 0x14
push eax
call sub.user32.dll_SetCursorPos
push 1
push ebx
call sub.user32.dll_ShowWindow
push 3
push 0
push 0
push 0
push 0
push 0xffffffffffffffff
push ebx
call sub.user32.dll_SetWindowPos
push 0
push 0
push 0
push 0
push 6
call sub.user32.dll_mouse_event
push 3
push 0
push 0
push 0
push 0
push 0xfffffffffffffffe
push ebx
call sub.user32.dll_SetWindowPos
mov eax, dword [ebp - 0x10]
push eax
mov eax, dword [ebp - 0x14]
push eax
call sub.user32.dll_SetCursorPos
call fcn.004b9988
mov ebx, eax
jmp 0x5226ca
push 0x64
call sub.kernel32.dll_Sleep_2
mov eax, dword [0x58d178]
mov esi, dword [eax + 0x1b8]
cmp esi, 2
jne 0x52267a
mov byte [ebp - 5], 1
jmp 0x5226da
dec esi
jne 0x5226bc
mov eax, dword [0x58d178]
xor edx, edx
mov dword [eax + 0x1b8], edx
lea eax, [ebp - 0x14]
push eax
call sub.user32.dll_GetCursorPos
mov eax, dword [ebp - 0x18]
push eax
mov eax, dword [ebp - 0x1c]
push eax
call sub.user32.dll_SetCursorPos
push 0
push 0
push 0
push 0
push 6
call sub.user32.dll_mouse_event
mov eax, dword [ebp - 0x10]
push eax
mov eax, dword [ebp - 0x14]
push eax
call sub.user32.dll_SetCursorPos
call fcn.004b9988
sub eax, ebx
cmp eax, 0x3e8
ja 0x5226da
mov eax, dword [0x586750]
mov eax, dword [eax]
cmp byte [eax + 0xa4], 0
je 0x52265d
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x5226ff
lea eax, [ebp - 0x248]
mov edx, 2
call fcn.004051cc
ret