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

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x18
mov dword [ebp - 4], 0
push dword [ebp + 8]
call fcn.0053cd4f
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0
je 0x53cd3f
cmp dword [ebp + 0xc], 3
jne 0x53caca
call fcn.0053cdef
mov dword [0xd778fa], 0
jmp 0x53cce4
cmp dword [ebp + 0xc], 1
jne 0x53cc0a
mov ebx, dword [0xd778ee]
call fcn.00512a62
push ebx
push ecx
mov eax, dword [ebp - 4]
dec eax
jns 0x53caf4
push 4
call fcn.00756bfa
add esp, 4
pop ecx
pop ebx
cmp eax, ecx
jl 0x53cb07
push 1
call fcn.00756bfa
add esp, 4
shl eax, 2
add ebx, eax
mov ebx, dword [ebx]
add ebx, 0x1c
mov dword [ebp - 8], ebx
mov ebx, dword [ebp - 8]
cmp dword [ebx], 0
jne 0x53cb72
mov eax, dword [ebp + 0x10]
cmp dword [0xd778fe], eax
jne 0x53cb39
mov eax, 0
jmp 0x53cd49
mov eax, dword [ebp + 0x10]
mov dword [0xd778fe], eax
call fcn.0053cdef
mov eax, dword [ebp - 4]
mov dword [0xd778fa], eax
mov eax, dword [ebp + 8]
mov dword [0xd77902], eax
push 0
mov ebx, 0x308
call sub.kernel32.dll_GetTickCount
add esp, 4
mov dword [0xd77906], eax
jmp 0x53cc05
mov ebx, dword [0xd778ee]
call fcn.00512a62
push ebx
push ecx
mov eax, dword [ebp - 4]
dec eax
jns 0x53cb92
push 4
call fcn.00756bfa
add esp, 4
pop ecx
pop ebx
cmp eax, ecx
jl 0x53cba5
push 1
call fcn.00756bfa
add esp, 4
shl eax, 2
add ebx, eax
mov ebx, dword [ebx]
add ebx, 0x1c
mov dword [ebp - 8], ebx
mov ebx, dword [ebp - 8]
cmp dword [ebx], 2
jne 0x53cc05
mov eax, dword [ebp + 0x10]
cmp dword [0xd778fe], eax
jne 0x53cbd7
mov eax, 0
jmp 0x53cd49
mov eax, dword [ebp + 0x10]
mov dword [0xd778fe], eax
cmp dword [0xd7790a], 0
je 0x53cc05
call fcn.0053cdef
mov dword [0xd778fa], 0
mov dword [0xd77902], 0
jmp 0x53cce4
cmp dword [ebp + 0xc], 2
jne 0x53cce4
mov ebx, dword [0xd778ee]
call fcn.00512a62
push ebx
push ecx
mov eax, dword [ebp - 4]
dec eax
jns 0x53cc34
push 4
call fcn.00756bfa
add esp, 4
pop ecx
pop ebx
cmp eax, ecx
jl 0x53cc47
push 1
call fcn.00756bfa
add esp, 4
shl eax, 2
add ebx, eax
mov ebx, dword [ebx]
add ebx, 0x1c
mov dword [ebp - 8], ebx
mov ebx, dword [ebp - 8]
cmp dword [ebx], 1
je 0x53ccb0
mov ebx, dword [0xd778ee]
call fcn.00512a62
push ebx
push ecx
mov eax, dword [ebp - 4]
dec eax
jns 0x53cc80
push 4
call fcn.00756bfa
add esp, 4
pop ecx
pop ebx
cmp eax, ecx
jl 0x53cc93
push 1
call fcn.00756bfa
add esp, 4
shl eax, 2
add ebx, eax
mov ebx, dword [ebx]
add ebx, 0x1c
mov dword [ebp - 0x10], ebx
mov ebx, dword [ebp - 0x10]
cmp dword [ebx], 2
je 0x53ccb0
xor eax, eax
jmp 0x53ccb5
mov eax, 1
test eax, eax
je 0x53cce4
mov eax, dword [ebp - 4]
mov dword [0xd778fa], eax
mov eax, dword [ebp + 8]
mov dword [0xd77902], eax
push 0
mov ebx, 0x308
call sub.kernel32.dll_GetTickCount
add esp, 4
mov dword [0xd77906], eax
mov ebx, dword [0xd778ee]
call fcn.00512a62
push ebx
push ecx
mov eax, dword [ebp - 4]
dec eax
jns 0x53cd04
push 4
call fcn.00756bfa
add esp, 4
pop ecx
pop ebx
cmp eax, ecx
jl 0x53cd17
push 1
call fcn.00756bfa
add esp, 4
shl eax, 2
add ebx, eax
mov ebx, dword [ebx]
add ebx, 8
mov dword [ebp - 8], ebx
push dword [ebp + 0x14]
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
mov ebx, dword [ebp - 8]
push dword [ebx]
call fcn.005194f5
jmp 0x53cd49
mov eax, 0
jmp 0x53cd49
mov esp, ebp
pop ebp
ret 0x10