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

Disassembly:
push ebx
push esi
push edi
push ebp
add esp, 0xfffffff0
mov edi, eax
xor ebx, ebx
cmp dword [edi + 0x440], 0
je 0x53a592
call sub.kernel32.dll_GetTickCount_1
sub eax, dword [edi + 0x440]
mov edx, dword [edi + 0x2ac]
cmp eax, dword [edx + 0x44]
jbe 0x53a592
cmp dword [edi + 0x44c], 0
je 0x53a4fb
mov esi, dword [edi + 0x2a0]
mov eax, dword [esi + 0x290]
push eax
mov ecx, dword [esi + 0x294]
mov edx, dword [edi + 0x454]
mov eax, dword [edi + 0x444]
call fcn.0053a448
test al, al
jne 0x53a530
cmp dword [edi + 0x450], 0
je 0x53a592
mov ebp, dword [edi + 0x29c]
mov eax, dword [ebp + 0x290]
push eax
mov ecx, dword [ebp + 0x294]
mov edx, dword [edi + 0x458]
mov eax, dword [edi + 0x448]
call fcn.0053a448
test al, al
je 0x53a592
cmp dword [edi + 0x44c], 0
je 0x53a561
xor ecx, ecx
mov edx, dword [edi + 0x454]
mov eax, dword [edi + 0x2a0]
call fcn.005160f8
xor eax, eax
mov dword [edi + 0x44c], eax
mov bl, 1
mov eax, dword [edi + 0x2a0]
call fcn.00513740
cmp dword [edi + 0x450], 0
je 0x53a592
xor ecx, ecx
mov edx, dword [edi + 0x458]
mov eax, dword [edi + 0x29c]
call fcn.005160f8
xor eax, eax
mov dword [edi + 0x450], eax
mov bl, 1
mov eax, dword [edi + 0x29c]
call fcn.00513740
mov esi, dword [edi + 0x44c]
test esi, esi
je 0x53a630
mov edx, dword [edi + 0x2a0]
mov eax, dword [edx + 0x294]
cmp eax, dword [edi + 0x454]
je 0x53a630
mov ebx, eax
add eax, esi
xor ecx, ecx
xchg edx, eax
call fcn.005160f8
cmp dword [edi + 0x44c], 0
jle 0x53a5dd
mov eax, dword [edi + 0x2a0]
mov eax, dword [eax + 0x294]
cmp eax, dword [edi + 0x454]
jge 0x53a608
cmp dword [edi + 0x44c], 0
jge 0x53a5fa
mov eax, dword [edi + 0x2a0]
mov eax, dword [eax + 0x294]
cmp eax, dword [edi + 0x454]
jle 0x53a608
mov eax, dword [edi + 0x2a0]
cmp ebx, dword [eax + 0x294]
jne 0x53a623
xor ecx, ecx
mov edx, dword [edi + 0x454]
mov eax, dword [edi + 0x2a0]
call fcn.005160f8
xor eax, eax
mov dword [edi + 0x44c], eax
mov bl, 1
mov eax, dword [edi + 0x2a0]
call fcn.00513740
mov esi, dword [edi + 0x450]
test esi, esi
je 0x53a6ce
mov edx, dword [edi + 0x29c]
mov eax, dword [edx + 0x294]
cmp eax, dword [edi + 0x458]
je 0x53a6ce
mov ebx, eax
add eax, esi
xor ecx, ecx
xchg edx, eax
call fcn.005160f8
cmp dword [edi + 0x450], 0
jle 0x53a67b
mov eax, dword [edi + 0x29c]
mov eax, dword [eax + 0x294]
cmp eax, dword [edi + 0x458]
jge 0x53a6a6
cmp dword [edi + 0x450], 0
jge 0x53a698
mov eax, dword [edi + 0x29c]
mov eax, dword [eax + 0x294]
cmp eax, dword [edi + 0x458]
jle 0x53a6a6
mov eax, dword [edi + 0x29c]
cmp ebx, dword [eax + 0x294]
jne 0x53a6c1
xor ecx, ecx
mov edx, dword [edi + 0x458]
mov eax, dword [edi + 0x29c]
call fcn.005160f8
xor eax, eax
mov dword [edi + 0x450], eax
mov bl, 1
mov eax, dword [edi + 0x29c]
call fcn.00513740
test bl, bl
je 0x53a6dc
mov eax, edi
mov edx, dword [eax]
call dword [edx + 0x80]
cmp dword [edi + 0x440], 0
jne 0x53a6f1
call sub.kernel32.dll_GetTickCount_1
inc eax
mov dword [edi + 0x440], eax
cmp dword [edi + 0x44c], 0
jne 0x53a7a8
cmp dword [edi + 0x450], 0
jne 0x53a7a8
push 1
mov eax, dword [edi + 0x24c]
push eax
call sub.user32.dll_KillTimer
xor eax, eax
mov dword [edi + 0x440], eax
mov edx, esp
mov eax, dword [0x5d4ca4]
mov eax, dword [eax]
call fcn.004963f8
lea ecx, [esp + 8]
mov edx, esp
mov eax, edi
call fcn.00487f6c
mov eax, dword [esp + 8]
mov dword [esp], eax
mov eax, dword [esp + 0xc]
mov dword [esp + 4], eax
mov eax, dword [esp + 4]
push eax
mov ecx, dword [esp + 4]
movzx edx, byte [0x53a7b0]
mov eax, edi
mov si, 0xffd4
call fcn.004040c8
mov ebx, dword [edi + 0x480]
test ebx, ebx
je 0x53a787
push 0xffffffffffffffff
push 0
mov eax, ebx
call fcn.00529bc8
mov edx, eax
or ecx, 0xffffffff
mov eax, edi
call fcn.00537df4
mov ebx, dword [edi + 0x484]
test ebx, ebx
je 0x53a7a8
push 0xffffffffffffffff
push 0
mov eax, ebx
call fcn.00529bc8
mov edx, eax
or ecx, 0xffffffff
mov eax, edi
call fcn.00537df4
add esp, 0x10
pop ebp
pop edi
pop esi
pop ebx
ret