Function at 0x537527
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.005377ef
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0
je 0x5377df
cmp dword [ebp + 0xc], 3
jne 0x53756a
call fcn.0053788f
mov dword [0xc957aa], 0
jmp 0x537784
cmp dword [ebp + 0xc], 1
jne 0x5376aa
mov ebx, dword [0xc9579e]
call fcn.0050d502
push ebx
push ecx
mov eax, dword [ebp - 4]
dec eax
jns 0x537594
push 4
call fcn.0075169a
add esp, 4
pop ecx
pop ebx
cmp eax, ecx
jl 0x5375a7
push 1
call fcn.0075169a
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 0x537612
mov eax, dword [ebp + 0x10]
cmp dword [0xc957ae], eax
jne 0x5375d9
mov eax, 0
jmp 0x5377e9
mov eax, dword [ebp + 0x10]
mov dword [0xc957ae], eax
call fcn.0053788f
mov eax, dword [ebp - 4]
mov dword [0xc957aa], eax
mov eax, dword [ebp + 8]
mov dword [0xc957b2], eax
push 0
mov ebx, 0x308
call sub.kernel32.dll_GetTickCount
add esp, 4
mov dword [0xc957b6], eax
jmp 0x5376a5
mov ebx, dword [0xc9579e]
call fcn.0050d502
push ebx
push ecx
mov eax, dword [ebp - 4]
dec eax
jns 0x537632
push 4
call fcn.0075169a
add esp, 4
pop ecx
pop ebx
cmp eax, ecx
jl 0x537645
push 1
call fcn.0075169a
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 0x5376a5
mov eax, dword [ebp + 0x10]
cmp dword [0xc957ae], eax
jne 0x537677
mov eax, 0
jmp 0x5377e9
mov eax, dword [ebp + 0x10]
mov dword [0xc957ae], eax
cmp dword [0xc957ba], 0
je 0x5376a5
call fcn.0053788f
mov dword [0xc957aa], 0
mov dword [0xc957b2], 0
jmp 0x537784
cmp dword [ebp + 0xc], 2
jne 0x537784
mov ebx, dword [0xc9579e]
call fcn.0050d502
push ebx
push ecx
mov eax, dword [ebp - 4]
dec eax
jns 0x5376d4
push 4
call fcn.0075169a
add esp, 4
pop ecx
pop ebx
cmp eax, ecx
jl 0x5376e7
push 1
call fcn.0075169a
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 0x537750
mov ebx, dword [0xc9579e]
call fcn.0050d502
push ebx
push ecx
mov eax, dword [ebp - 4]
dec eax
jns 0x537720
push 4
call fcn.0075169a
add esp, 4
pop ecx
pop ebx
cmp eax, ecx
jl 0x537733
push 1
call fcn.0075169a
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 0x537750
xor eax, eax
jmp 0x537755
mov eax, 1
test eax, eax
je 0x537784
mov eax, dword [ebp - 4]
mov dword [0xc957aa], eax
mov eax, dword [ebp + 8]
mov dword [0xc957b2], eax
push 0
mov ebx, 0x308
call sub.kernel32.dll_GetTickCount
add esp, 4
mov dword [0xc957b6], eax
mov ebx, dword [0xc9579e]
call fcn.0050d502
push ebx
push ecx
mov eax, dword [ebp - 4]
dec eax
jns 0x5377a4
push 4
call fcn.0075169a
add esp, 4
pop ecx
pop ebx
cmp eax, ecx
jl 0x5377b7
push 1
call fcn.0075169a
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.00513f95
jmp 0x5377e9
mov eax, 0
jmp 0x5377e9
mov esp, ebp
pop ebp
ret 0x10