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

Disassembly:
push ebx
push esi
push edi
push ebp
add esp, 0xffffffc4
mov dword [esp + 4], edx
mov dword [esp], eax
call sub.kernel32.dll_GetTickCount_1
mov edx, dword [esp]
mov edx, dword [edx + 0x5a878]
add edx, 0x12c
cmp eax, edx
jbe 0x522299
call sub.kernel32.dll_GetTickCount_1
mov edx, dword [esp]
mov dword [edx + 0x5a878], eax
mov eax, dword [esp]
movzx eax, byte [eax + 0x5a87c]
xor al, 1
mov edx, dword [esp]
mov byte [edx + 0x5a87c], al
mov eax, dword [0x553058]
cmp dword [eax], 0
jl 0x52251d
mov edx, dword [0x553058]
mov edx, dword [edx]
mov eax, dword [0x5537d8]
mov eax, dword [eax]
call fcn.004db7c4
mov ebx, eax
test ebx, ebx
je 0x52251d
mov eax, dword [0x55359c]
mov eax, dword [eax]
mov edi, dword [eax + 8]
shl edi, 4
lea edi, [edi + edi*2]
test edi, edi
jns 0x5222dc
add edi, 0x1f
sar edi, 5
mov eax, dword [0x55359c]
mov eax, dword [eax]
mov ebp, dword [eax + 0xc]
shl ebp, 5
test ebp, ebp
jns 0x5222f3
add ebp, 0x1f
sar ebp, 5
mov edx, edi
sub edx, 0x3c
xor eax, eax
call fcn.004d0670
mov dword [esp + 0x1c], eax
mov edx, ebp
sub edx, 0x3c
xor eax, eax
call fcn.004d0670
mov dword [esp + 0x20], eax
lea edx, [esp + 0x2c]
mov eax, ebx
call fcn.004d6110
mov eax, dword [esp + 0x34]
mov edx, dword [esp + 0x1c]
add edx, 0x78
call fcn.004d0668
mov dword [esp + 0x24], eax
lea edx, [esp + 0x2c]
mov eax, ebx
call fcn.004d6110
mov eax, dword [esp + 0x38]
mov edx, dword [esp + 0x20]
add edx, 0x78
call fcn.004d0668
mov dword [esp + 0x28], eax
mov eax, dword [0x5533d0]
cmp dword [eax], 1
jne 0x522381
push ebx
mov eax, dword [esp + 0x20]
push eax
mov eax, dword [esp + 0x28]
push eax
push 0x78
push 0x78
push 0
xor ecx, ecx
mov edx, 0x2a8
mov eax, dword [esp + 0x1c]
call fcn.00526a48
jmp 0x522399
lea eax, [esp + 0x1c]
push eax
push ebx
push 0
xor ecx, ecx
mov edx, 0x2a8
mov eax, dword [esp + 0x10]
call fcn.004d5d54
mov eax, dword [esp]
cmp byte [eax + 0x5a87c], 0
je 0x52251d
mov eax, dword [0x55359c]
mov eax, dword [eax]
mov edi, dword [eax + 8]
shl edi, 4
lea edi, [edi + edi*2]
test edi, edi
jns 0x5223c0
add edi, 0x1f
sar edi, 5
add edi, 0x2a8
sub edi, dword [esp + 0x1c]
mov eax, dword [0x55359c]
mov eax, dword [eax]
mov ebp, dword [eax + 0xc]
shl ebp, 5
test ebp, ebp
jns 0x5223e1
add ebp, 0x1f
sar ebp, 5
sub ebp, dword [esp + 0x20]
push 0xffffff
mov ecx, ebp
mov edx, edi
mov eax, dword [esp + 8]
call fcn.004d6898
mov eax, dword [0x55359c]
mov eax, dword [eax]
mov eax, dword [eax + 8]
mov edx, eax
sub edx, 0xa
mov ecx, dword [0x55359c]
add eax, 0xa
sub eax, edx
jl 0x52251d
inc eax
mov dword [esp + 0x14], eax
mov dword [esp + 8], edx
mov eax, dword [0x55359c]
mov eax, dword [eax]
mov eax, dword [eax + 0xc]
mov edx, eax
sub edx, 0xa
mov ecx, dword [0x55359c]
add eax, 0xa
sub eax, edx
jl 0x52250f
inc eax
mov dword [esp + 0x18], eax
mov dword [esp + 0xc], edx
mov ecx, dword [esp + 0xc]
mov edx, dword [esp + 8]
mov eax, dword [esp]
call fcn.0052563c
test eax, eax
je 0x522501
mov edx, dword [0x55359c]
cmp eax, dword [edx]
je 0x522501
cmp byte [eax + 0x2c], 0
jne 0x522501
mov edi, dword [eax + 8]
shl edi, 4
lea edi, [edi + edi*2]
test edi, edi
jns 0x52248c
add edi, 0x1f
sar edi, 5
add edi, 0x2a8
sub edi, dword [esp + 0x1c]
mov ebp, dword [eax + 0xc]
shl ebp, 5
test ebp, ebp
jns 0x5224a6
add ebp, 0x1f
sar ebp, 5
sub ebp, dword [esp + 0x20]
movzx eax, byte [eax + 0x12]
sub al, 1
jb 0x5224cb
sub al, 0xb
je 0x5224c1
sub al, 0x21
je 0x5224c1
sub al, 5
jne 0x5224d5
mov dword [esp + 0x10], 0xffff00
jmp 0x5224dd
mov dword [esp + 0x10], 0xff
jmp 0x5224dd
mov dword [esp + 0x10], 0xff0000
xor esi, esi
xor ebx, ebx
mov eax, dword [esp + 0x10]
push eax
lea ecx, [ebx + ebp]
lea edx, [esi + edi]
mov eax, dword [esp + 8]
call fcn.004d6898
inc ebx
cmp ebx, 2
jne 0x5224e1
inc esi
cmp esi, 2
jne 0x5224df
inc dword [esp + 0xc]
dec dword [esp + 0x18]
jne 0x52244c
inc dword [esp + 8]
dec dword [esp + 0x14]
jne 0x522423
add esp, 0x3c
pop ebp
pop edi
pop esi
pop ebx
ret