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

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x30
mov eax, dword [0x71d5e0]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push edi
mov edi, dword [ebp + 8]
xor ebx, ebx
mov esi, ecx
cmp edi, ebx
je 0x579f74
mov eax, dword [esi + 0xb0]
cmp eax, dword [edi + 0x20]
jne 0x579f80
mov ecx, dword [esi + 0xb4]
cmp ecx, dword [edi + 0x24]
jmp 0x579f7a
cmp dword [esi + 0xb0], ebx
je 0x57a275
mov dword [ebp - 0x20], ebx
cmp edi, ebx
je 0x579faa
mov edx, dword [esi]
mov edx, dword [edx + 0x160]
push edi
lea eax, [ebp - 0x1c]
push eax
mov ecx, esi
call edx
mov ebx, dword [eax]
mov eax, dword [eax + 4]
mov dword [ebp - 0x20], eax
test ebx, ebx
jne 0x579faa
test eax, eax
jne 0x579faa
xor edi, edi
cmp dword [esi + 0x20], 0
je 0x579fe7
push 0x297
push 0
push 0
push 0
push 0
push 0
mov ecx, esi
call fcn.00412aee
cmp dword [esi + 0x158], 0
je 0x579fe7
mov ecx, dword [esi + 0x20]
push 0
push 0
push ecx
call dword [sym.imp.USER32.dll_SetWindowRgn]
mov dword [esi + 0x158], 0
xor eax, eax
cmp edi, eax
je 0x57a1b2
lea edx, [edi + 0x28]
push edx
mov dword [ebp - 0x14], eax
mov dword [ebp - 0x10], eax
mov dword [ebp - 0xc], eax
mov dword [ebp - 8], eax
call dword [sym.imp.USER32.dll_IsRectEmpty]
test eax, eax
jne 0x57a041
mov eax, dword [edi + 0x20]
push eax
call fcn.0040cf29
mov edx, dword [ebp - 0x20]
mov ecx, dword [edi + 0xc]
mov dword [ebp - 0x18], eax
mov eax, dword [edi + 0x34]
add edx, eax
push edx
lea edx, [ecx + ebx]
push edx
push eax
push ecx
lea eax, [ebp - 0x14]
push eax
call dword [sym.imp.USER32.dll_SetRect]
lea ecx, [ebp - 0x14]
push ecx
mov ecx, dword [ebp - 0x18]
call fcn.00414022
jmp 0x57a097
xor eax, eax
lea edx, [ebp - 0x1c]
push edx
mov dword [ebp - 0x1c], eax
mov dword [ebp - 0x18], eax
call dword [sym.imp.USER32.dll_GetCursorPos]
call fcn.00577840
add eax, dword [ebp - 0x18]
mov edx, dword [ebp - 0x20]
lea ecx, [eax + edx]
push ecx
mov ecx, dword [ebp - 0x1c]
lea edx, [ecx + ebx]
push edx
push eax
push ecx
lea eax, [ebp - 0x14]
push eax
call dword [sym.imp.USER32.dll_SetRect]
mov ecx, dword [edi + 0x20]
push 0xffffffffffffffec
push ecx
call dword [sym.imp.USER32.dll_GetWindowLongA]
test eax, 0x400000
je 0x57a097
push 0
neg ebx
push ebx
lea edx, [ebp - 0x14]
push edx
call dword [sym.imp.USER32.dll_OffsetRect]
lea eax, [ebp - 0x14]
push eax
mov ecx, esi
call fcn.00577ce0
mov eax, dword [ebp - 0x10]
mov ecx, dword [ebp - 8]
mov edx, dword [ebp - 0xc]
push 0x210
sub ecx, eax
push ecx
mov ecx, dword [ebp - 0x14]
sub edx, ecx
push edx
push eax
push ecx
push 0x726c58
mov ecx, esi
call fcn.00412aee
mov edx, dword [edi + 0x20]
xor eax, eax
mov dword [ebp - 0x2c], eax
mov dword [ebp - 0x28], eax
mov eax, dword [esi + 0x20]
lea ecx, [ebp - 0x30]
push ecx
mov dword [ebp - 0x30], eax
mov eax, dword [edi + 0x24]
push eax
push 0x4e
push edx
mov dword [ebp - 0x2c], eax
mov dword [ebp - 0x28], 0xfffffdf7
call dword [sym.imp.USER32.dll_SendMessageA]
mov ecx, esi
call fcn.00412795
test eax, 0x4000
je 0x57a109
push esi
mov ecx, esi
call fcn.00579650
push 0x257
push 0
push 0
push 0
push 0
push 0
mov ecx, esi
call fcn.00412aee
mov eax, dword [esi + 0x20]
push 0
push 0
push eax
call dword [sym.imp.USER32.dll_InvalidateRect]
push 1
mov ecx, esi
call fcn.0057aae0
lea ebx, [esi + 0xc8]
mov ecx, ebx
call fcn.004017f0
xor eax, eax
lea ecx, [ebx + 0xc]
push ecx
mov dword [ebx + 8], eax
mov dword [ebx + 0x20], eax
mov dword [ebx + 0x24], 0xffffffff
mov dword [ebx + 0x1c], eax
call dword [sym.imp.USER32.dll_SetRectEmpty]
add ebx, 0x28
push ebx
call dword [sym.imp.USER32.dll_SetRectEmpty]
cmp dword [esi + 0x148], 0
jbe 0x57a210
mov eax, dword [esi + 0x14c]
test eax, eax
je 0x57a195
mov edx, dword [esi + 0x20]
push eax
push edx
call dword [sym.imp.USER32.dll_KillTimer]
mov dword [esi + 0x14c], 0
mov eax, dword [esi + 0x148]
push 0
push eax
mov eax, dword [esi + 0x20]
push 3
push eax
call dword [sym.imp.USER32.dll_SetTimer]
mov dword [esi + 0x14c], eax
jmp 0x57a210
push eax
mov ecx, esi
call fcn.0057aae0
lea ebx, [esi + 0x100]
mov ecx, ebx
call fcn.004017f0
xor eax, eax
lea ecx, [ebx + 0xc]
push ecx
mov dword [ebx + 8], eax
mov dword [ebx + 0x20], eax
mov dword [ebx + 0x24], 0xffffffff
mov dword [ebx + 0x1c], eax
call dword [sym.imp.USER32.dll_SetRectEmpty]
add ebx, 0x28
push ebx
call dword [sym.imp.USER32.dll_SetRectEmpty]
mov eax, dword [esi + 0x14c]
test eax, eax
je 0x57a210
mov ecx, dword [esi + 0x20]
test ecx, ecx
je 0x57a206
push eax
push ecx
call dword [sym.imp.USER32.dll_KillTimer]
mov dword [esi + 0x14c], 0
test edi, edi
je 0x57a222
push edi
lea ecx, [esi + 0x90]
call fcn.005795e0
jmp 0x57a255
lea ebx, [esi + 0x90]
mov ecx, ebx
call fcn.004017f0
xor eax, eax
lea edx, [ebx + 0xc]
push edx
mov dword [ebx + 8], eax
mov dword [ebx + 0x20], eax
mov dword [ebx + 0x24], 0xffffffff
mov dword [ebx + 0x1c], eax
call dword [sym.imp.USER32.dll_SetRectEmpty]
add ebx, 0x28
push ebx
call dword [sym.imp.USER32.dll_SetRectEmpty]
call dword [sym.imp.KERNEL32.dll_GetTickCount]
xor ecx, ecx
test edi, edi
setne cl
mov dword [esi + 0x13c], eax
mov eax, dword [esi]
mov edx, dword [eax + 0x16c]
push ecx
mov ecx, esi
call edx
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.005000ee
mov esp, ebp
pop ebp
ret 4