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

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffe8
push ebx
push esi
push edi
mov esi, edx
lea edi, [ebp - 0x15]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
mov ebx, ecx
mov dword [ebp - 4], eax
call fcn.005116c4
test al, al
je 0x509fc5
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x288]
cmp byte [eax + 0x74], 0
je 0x509fc5
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x288]
cmp byte [eax + 0x76], 0
je 0x509fc5
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x288]
cmp byte [eax + 0x31], 0
je 0x509fc5
mov eax, dword [0x538c6c]
mov eax, dword [eax]
call fcn.0047287c
mov eax, dword [ebp + 0x10]
push eax
mov ecx, dword [ebp + 0x14]
mov edx, ebx
mov eax, dword [ebp - 4]
call fcn.00508f54
push ebp
mov eax, dword [ebp - 4]
lea edx, [eax + 0x25c]
mov eax, dword [ebp - 4]
add eax, 0x258
lea ecx, [ebp - 0x15]
call fcn.00509f20
pop ecx
mov eax, dword [ebp - 4]
cmp byte [eax + 0x29c], 0
je 0x50a01b
call fcn.005116c4
test al, al
jne 0x50a01b
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x260]
mov dl, 1
call fcn.00431e70
jmp 0x50a1fd
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x290]
test eax, eax
je 0x50a04a
cmp dword [eax + 0x44], 0xffffffff
je 0x50a04a
mov edx, dword [ebp - 4]
mov edx, dword [edx + 0x28c]
mov dx, word [edx + 0x84]
add dx, word [eax + 0x44]
mov eax, dword [ebp - 4]
call fcn.00453030
call fcn.005116c4
test al, al
je 0x50a0c7
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x288]
cmp byte [eax + 0x74], 0
je 0x50a0c7
push 0xffffffffffffffec
mov eax, dword [ebp - 4]
call fcn.0045960c
push eax
call sub.user32.dll_GetWindowLongA
or eax, 0x80000
push eax
push 0xffffffffffffffec
mov eax, dword [ebp - 4]
call fcn.0045960c
push eax
call sub.user32.dll_SetWindowLongA
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x288]
cmp byte [eax + 0x31], 0
je 0x50a0ae
cmp byte [eax + 0x76], 0
je 0x50a0ae
mov eax, dword [ebp - 4]
call fcn.0045960c
xor edx, edx
call fcn.00511700
jmp 0x50a0c7
mov eax, dword [ebp - 4]
call fcn.0045960c
mov edx, dword [ebp - 4]
mov edx, dword [edx + 0x288]
mov dl, byte [edx + 0x75]
call fcn.00511700
push 0x51
push 0
push 0
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x25c]
push eax
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x258]
push eax
push 0xffffffffffffffff
mov eax, dword [ebp - 4]
call fcn.0045960c
push eax
call sub.user32.dll_SetWindowPos
mov dl, 1
mov eax, dword [ebp - 4]
call fcn.00452d44
call fcn.005116c4
test al, al
je 0x50a17d
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x288]
cmp byte [eax + 0x74], 0
je 0x50a17d
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x288]
cmp byte [eax + 0x76], 0
je 0x50a17d
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x288]
cmp byte [eax + 0x31], 0
je 0x50a17d
xor ebx, ebx
xor esi, esi
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x288]
mov al, byte [eax + 0x75]
mov byte [ebp - 5], al
call sub.kernel32.dll_GetTickCount_1
sub eax, esi
cmp eax, 5
jbe 0x50a174
call sub.kernel32.dll_GetTickCount_1
mov esi, eax
add ebx, 0xa
xor eax, eax
mov al, byte [ebp - 5]
cmp ebx, eax
jle 0x50a165
mov ebx, eax
mov eax, dword [ebp - 4]
call fcn.0045960c
mov edx, ebx
call fcn.00511700
xor eax, eax
mov al, byte [ebp - 5]
cmp ebx, eax
jl 0x50a144
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x280]
mov dl, 1
call fcn.00431e70
mov eax, dword [ebp - 4]
mov dword [eax + 0x2a4], 0xffffffff
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x2a0]
mov eax, dword [eax + 8]
test eax, eax
jle 0x50a1fd
mov edi, eax
dec edi
test edi, edi
jl 0x50a1fd
inc edi
xor ebx, ebx
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x2a0]
mov edx, ebx
call fcn.00419cdc
mov esi, eax
mov eax, dword [esi + 0x18]
cmp byte [eax + 0x39], 0
je 0x50a1f9
mov eax, dword [esi + 0x18]
mov eax, dword [eax + 0x30]
mov edx, 0x50a210
call fcn.00404e74
je 0x50a1f9
mov byte [esi + 0x2f], 1
mov eax, dword [ebp - 4]
mov dword [eax + 0x2a4], ebx
mov dl, 1
mov eax, esi
call fcn.00504db4
jmp 0x50a1fd
inc ebx
dec edi
jne 0x50a1b4
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0x10