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

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffc4
push ebx
push esi
push edi
xor ebx, ebx
mov dword [ebp - 0x3c], ebx
mov dword [ebp - 4], ebx
mov esi, edx
lea edi, [ebp - 0x28]
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 dword [ebp - 8], ecx
mov ebx, eax
xor eax, eax
push ebp
push 0x54f06f
push dword fs:[eax]
mov dword fs:[eax], esp
mov byte [ebx + 0x2a2], 1
mov eax, ebx
call fcn.0054f604
mov esi, eax
mov dword [ebx + 0x290], esi
test esi, esi
je 0x54f051
cmp byte [esi + 0x38], 0
je 0x54f051
mov eax, dword [ebx + 0x290]
mov eax, dword [eax + 0x3c]
test eax, eax
je 0x54ec33
cmp byte [eax + 0x9c], 0
jne 0x54ec33
mov edx, dword [eax + 0x98]
cmp dword [edx + 4], 0xffffffff
jne 0x54ec37
xor edx, edx
jmp 0x54ec39
mov dl, 1
test dl, dl
je 0x54ec45
mov dword [ebx + 0x298], eax
jmp 0x54ec4d
xor eax, eax
mov dword [ebx + 0x298], eax
mov eax, dword [ebx + 0x298]
test eax, eax
je 0x54eca6
mov edi, dword [ebx + 0x250]
mov esi, dword [eax + 0x98]
mov eax, dword [ebx + 0x290]
cmp byte [eax + 0x4c], 0
je 0x54ec93
mov edx, dword [esi + 0x44]
mov eax, dword [edi + 0xc]
call fcn.0042e284
mov edx, dword [esi + 0x3c]
mov eax, dword [edi + 0xc]
call fcn.0042e2cc
movzx edx, byte [esi + 0x40]
mov eax, dword [edi + 0xc]
call fcn.0042e370
jmp 0x54ecbd
mov eax, dword [ebx + 0x290]
mov edx, dword [eax + 0x48]
mov eax, dword [edi + 0xc]
mov ecx, dword [eax]
call dword [ecx + 8]
jmp 0x54ecbd
mov esi, dword [ebx + 0x250]
mov eax, dword [ebx + 0x290]
mov edx, dword [eax + 0x48]
mov eax, dword [esi + 0xc]
mov ecx, dword [eax]
call dword [ecx + 8]
mov esi, dword [ebx + 0x290]
mov eax, dword [esi + 0x3c]
test eax, eax
je 0x54ece7
cmp dword [eax + 0x48], 0
je 0x54ece7
mov eax, dword [eax + 0x48]
movzx edx, byte [eax + 0x34]
mov eax, dword [ebx + 0x250]
mov eax, dword [eax + 0xc]
call fcn.0042e3e8
jmp 0x54ecff
mov eax, dword [esi + 0x48]
call fcn.0042e3e0
mov edx, eax
mov eax, dword [ebx + 0x250]
mov eax, dword [eax + 0xc]
call fcn.0042e3e8
lea eax, [ebp - 4]
mov edx, dword [ebp + 0x10]
call fcn.004053a4
lea edx, [ebp - 4]
mov eax, ebx
call fcn.0054ea54
mov edx, dword [ebp - 4]
mov eax, ebx
call fcn.00463ed0
mov eax, dword [ebp - 8]
push eax
mov eax, dword [ebp + 0xc]
push eax
mov eax, dword [ebp + 8]
push eax
lea eax, [ebp - 0xc]
push eax
lea eax, [ebp - 0x10]
push eax
lea edx, [ebp - 0x3c]
mov eax, ebx
call fcn.00463ea0
mov ecx, dword [ebp - 0x3c]
mov edx, dword [ebx + 0x250]
mov eax, ebx
call fcn.0054f080
mov eax, dword [ebp - 0x28]
add eax, dword [ebp - 0xc]
mov dword [ebp - 0x20], eax
mov eax, dword [ebp - 0x24]
add eax, dword [ebp - 0x10]
mov dword [ebp - 0x1c], eax
mov eax, dword [0x633b7c]
mov eax, dword [eax]
mov esi, dword [eax + 0x68]
test esi, esi
je 0x54edc3
mov eax, dword [0x633b7c]
mov eax, esi
call fcn.0046bfcc
lea ecx, [ebp - 0x38]
mov dl, 1
call fcn.0055a1d8
mov eax, dword [ebp - 0x20]
cmp eax, dword [ebp - 0x30]
jle 0x54ed9e
push 0
mov eax, dword [ebp - 0xc]
neg eax
sub eax, 2
push eax
lea eax, [ebp - 0x28]
push eax
call sub.user32.dll_OffsetRect
mov eax, dword [ebp - 0x1c]
cmp eax, dword [ebp - 0x2c]
jle 0x54ee76
mov eax, dword [ebp - 0x10]
neg eax
sub eax, 2
push eax
push 0
lea eax, [ebp - 0x28]
push eax
call sub.user32.dll_OffsetRect
jmp 0x54ee76
mov eax, dword [0x633788]
mov eax, dword [eax]
mov esi, dword [eax + 0x44]
test esi, esi
je 0x54ee2c
mov eax, dword [0x633788]
cmp byte [esi + 0x57], 0
je 0x54ee2c
mov eax, dword [0x633788]
mov eax, esi
call fcn.0046bfcc
lea ecx, [ebp - 0x38]
mov dl, 1
call fcn.0055a1d8
mov eax, dword [ebp - 0x20]
cmp eax, dword [ebp - 0x30]
jle 0x54ee0e
push 0
mov eax, dword [ebp - 0xc]
neg eax
sub eax, 2
push eax
lea eax, [ebp - 0x28]
push eax
call sub.user32.dll_OffsetRect
mov eax, dword [ebp - 0x1c]
cmp eax, dword [ebp - 0x2c]
jle 0x54ee76
mov eax, dword [ebp - 0x10]
neg eax
sub eax, 2
push eax
push 0
lea eax, [ebp - 0x28]
push eax
call sub.user32.dll_OffsetRect
jmp 0x54ee76
mov eax, dword [0x633b7c]
mov eax, dword [eax]
call fcn.00458e58
cmp eax, dword [ebp - 0x20]
jge 0x54ee51
push 0
mov eax, dword [ebp - 0xc]
neg eax
sub eax, 2
push eax
lea eax, [ebp - 0x28]
push eax
call sub.user32.dll_OffsetRect
mov eax, dword [0x633b7c]
mov eax, dword [eax]
call fcn.00458e4c
cmp eax, dword [ebp - 0x1c]
jge 0x54ee76
mov eax, dword [ebp - 0x10]
neg eax
sub eax, 2
push eax
push 0
lea eax, [ebp - 0x28]
push eax
call sub.user32.dll_OffsetRect
lea edx, [ebp - 0x28]
mov eax, ebx
call fcn.004637d8
call fcn.00553bdc
test al, al
je 0x54ef75
mov eax, dword [ebx + 0x290]
cmp byte [eax + 0x44], 0
je 0x54eec8
cmp byte [ebx + 0x2a0], 0
jne 0x54eec8
push 0xffffffffffffffec
mov eax, ebx
call fcn.0046bfcc
push eax
call sub.user32.dll_GetWindowLongA
or eax, 0x80000
push eax
push 0xffffffffffffffec
mov eax, ebx
call fcn.0046bfcc
push eax
call sub.user32.dll_SetWindowLongA
jmp 0x54ef01
mov eax, dword [ebx + 0x290]
cmp byte [eax + 0x44], 0
jne 0x54ef01
cmp byte [ebx + 0x2a0], 0
je 0x54ef01
push 0xffffffffffffffec
mov eax, ebx
call fcn.0046bfcc
push eax
call sub.user32.dll_GetWindowLongA
and eax, 0xfff7ffff
push eax
push 0xffffffffffffffec
mov eax, ebx
call fcn.0046bfcc
push eax
call sub.user32.dll_SetWindowLongA
mov eax, dword [ebx + 0x290]
movzx eax, byte [eax + 0x44]
mov byte [ebx + 0x2a0], al
mov eax, dword [ebx + 0x290]
cmp byte [eax + 0x44], 0
je 0x54ef31
cmp byte [eax + 0x46], 0
je 0x54ef31
mov eax, ebx
call fcn.0046bfcc
xor edx, edx
call fcn.00553c18
mov eax, dword [ebx + 0x290]
movzx edx, byte [eax + 0x45]
cmp dl, byte [ebx + 0x2a1]
je 0x54ef75
cmp byte [eax + 0x44], 0
je 0x54ef75
cmp byte [eax + 0x46], 0
jne 0x54ef65
mov eax, ebx
call fcn.0046bfcc
mov edx, dword [ebx + 0x290]
movzx edx, byte [edx + 0x45]
call fcn.00553c18
mov eax, dword [ebx + 0x290]
movzx eax, byte [eax + 0x45]
mov byte [ebx + 0x2a1], al
mov eax, ebx
call fcn.0054eae0
push 0x51
push 0
push 0
mov eax, dword [ebp - 0x24]
push eax
mov eax, dword [ebp - 0x28]
push eax
push 0xffffffffffffffff
mov eax, ebx
call fcn.0046bfcc
push eax
call sub.user32.dll_SetWindowPos
mov dl, 1
mov eax, ebx
call fcn.00463dc0
mov eax, ebx
mov edx, dword [eax]
call dword [edx + 0x84]
call fcn.00553bdc
test al, al
je 0x54f051
mov eax, dword [ebx + 0x290]
cmp byte [eax + 0x44], 0
je 0x54f051
mov eax, dword [ebx + 0x290]
cmp byte [eax + 0x46], 0
je 0x54f051
xor esi, esi
xor eax, eax
mov dword [ebp - 0x14], eax
mov eax, dword [ebx + 0x290]
movzx edi, byte [eax + 0x45]
mov eax, edi
mov ecx, 0xa
cdq
idiv ecx
mov dword [ebp - 0x18], eax
cmp dword [ebp - 0x18], 0
jne 0x54f000
mov dword [ebp - 0x18], 1
call sub.KERNEL32.DLL_GetTickCount_1
xor edx, edx
push edx
push eax
mov eax, dword [ebp - 0x14]
cdq
sub dword [esp], eax
sbb dword [esp + 4], edx
pop eax
pop edx
cmp edx, 0
jne 0x54f022
cmp eax, 3
jbe 0x54f04d
jmp 0x54f024
jle 0x54f04d
call sub.KERNEL32.DLL_GetTickCount_1
mov dword [ebp - 0x14], eax
add esi, dword [ebp - 0x18]
cmp edi, esi
jge 0x54f035
mov esi, edi
mov eax, ebx
mov edx, dword [eax]
call dword [edx + 0x84]
mov eax, ebx
call fcn.0046bfcc
mov edx, esi
call fcn.00553c18
cmp edi, esi
jg 0x54f000
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x54f076
lea eax, [ebp - 0x3c]
call fcn.0040530c
lea eax, [ebp - 4]
call fcn.0040530c
ret