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

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffdc
push ebx
push esi
push edi
mov dword [ebp - 4], ecx
mov esi, edx
mov ebx, eax
mov edi, dword [ebp + 8]
mov byte [ebp - 5], 0
cmp esi, 1
jl 0x530a77
cmp esi, 1
jl 0x530a77
mov eax, dword [0x5865d0]
mov eax, dword [eax]
call fcn.00511c88
mov dword [ebp - 0xc], eax
mov eax, dword [0x5865d0]
mov eax, dword [eax]
call fcn.00511cb0
mov dword [ebp - 0x10], eax
call fcn.004b9988
mov dword [ebp - 0x14], eax
cmp byte [ebx + 0xd4], 0
je 0x530984
cmp byte [ebp + 0xc], 0
jne 0x530984
mov eax, esi
and eax, 0x80000001
jns 0x53076c
dec eax
or eax, 0xfffffffe
inc eax
mov edx, dword [ebp - 4]
and edx, 0x80000001
jns 0x53077c
dec edx
or edx, 0xfffffffe
inc edx
cmp eax, edx
je 0x530783
inc dword [ebp - 4]
mov eax, dword [0x5865d0]
mov eax, dword [eax]
call fcn.005107bc
mov eax, dword [0x5865d0]
mov eax, dword [eax]
mov ecx, dword [ebp - 4]
mov edx, esi
call fcn.0050b7f8
xor eax, eax
mov dword [ebp - 0x18], eax
jmp 0x530946
mov eax, dword [ebx + 0x58]
push eax
call sub.kernel32.dll_Sleep_2
call fcn.004b9988
sub eax, dword [ebp - 0x14]
xor edx, edx
push edx
push eax
mov eax, dword [ebx + 0x58]
shl eax, 4
lea eax, [eax + eax*2]
cdq
cmp edx, dword [esp + 4]
jne 0x5307db
cmp eax, dword [esp]
pop edx
pop eax
jae 0x5307e3
jmp 0x530950
pop edx
pop eax
jl 0x530950
mov eax, dword [0x5865d0]
mov eax, dword [eax]
call fcn.00511c88
mov dword [ebp - 0x1c], eax
fild dword [ebp - 0x1c]
add esp, 0xfffffffc
fstp dword [esp]
wait
mov eax, dword [0x5865d0]
mov eax, dword [eax]
call fcn.00511cb0
mov dword [ebp - 0x20], eax
fild dword [ebp - 0x20]
add esp, 0xfffffffc
fstp dword [esp]
wait
mov dword [ebp - 0x24], esi
fild dword [ebp - 0x24]
add esp, 0xfffffffc
fstp dword [esp]
wait
fild dword [ebp - 4]
add esp, 0xfffffffc
fstp dword [esp]
wait
call fcn.004b7ec4
fcomp dword [0x530a84]
wait
fnstsw ax
sahf
ja 0x530846
mov byte [ebp - 5], 1
jmp 0x530950
mov eax, dword [0x5865d0]
mov eax, dword [eax]
call fcn.00511c88
cmp eax, dword [ebp - 0xc]
jne 0x530868
mov eax, dword [0x5865d0]
mov eax, dword [eax]
call fcn.00511cb0
cmp eax, dword [ebp - 0x10]
je 0x530871
mov byte [ebp - 5], 1
jmp 0x530950
test edi, edi
je 0x530890
mov eax, edi
call fcn.00524270
mov edx, dword [ebx + 0x88]
inc edx
cmp eax, edx
jg 0x530890
mov byte [ebp - 5], 1
jmp 0x530950
mov eax, dword [0x586404]
mov eax, dword [eax]
mov eax, dword [eax + 0x5d0]
dec eax
sub eax, 0xc7
jae 0x5308e7
call fcn.004b9988
sub eax, dword [ebp - 0x14]
mov ecx, 0x3e8
xor edx, edx
div ecx
xor edx, edx
push edx
push eax
mov eax, dword [ebp - 0x18]
cdq
cmp edx, dword [esp + 4]
jne 0x5308cd
cmp eax, dword [esp]
pop edx
pop eax
jae 0x530946
jmp 0x5308d1
pop edx
pop eax
jge 0x530946
mov eax, dword [0x5865d0]
mov eax, dword [eax]
mov ecx, dword [ebp - 4]
mov edx, esi
call fcn.0050b7f8
inc dword [ebp - 0x18]
jmp 0x530946
mov eax, dword [ebx + 0x58]
cdq
push edx
push eax
call fcn.004b9988
sub eax, dword [ebp - 0x14]
xor edx, edx
call fcn.00406430
push edx
push eax
mov eax, dword [ebp - 0x18]
cdq
cmp edx, dword [esp + 4]
jne 0x530911
cmp eax, dword [esp]
pop edx
pop eax
jae 0x530946
jmp 0x530915
pop edx
pop eax
jge 0x530946
inc dword [ebp - 0x18]
mov eax, dword [0x586404]
mov eax, dword [eax]
cmp byte [eax + 0x5cd], 0
je 0x530935
mov eax, dword [ebp - 0x18]
sar eax, 1
jns 0x530932
adc eax, 0
dec eax
je 0x530946
mov eax, dword [0x5865d0]
mov eax, dword [eax]
mov ecx, dword [ebp - 4]
mov edx, esi
call fcn.0050b7f8
cmp byte [ebx + 0xd], 0
je 0x5307aa
cmp byte [ebp - 5], 0
je 0x530975
mov eax, dword [0x586404]
mov eax, dword [eax]
cmp byte [eax + 0x5cd], 0
je 0x530975
push 0x1f4
call sub.kernel32.dll_Sleep_2
jmp 0x530a51
push 0xc8
call sub.kernel32.dll_Sleep_2
jmp 0x530a51
mov eax, dword [0x5865d0]
mov eax, dword [eax]
mov ecx, dword [ebp - 4]
mov edx, esi
call fcn.0050f220
jmp 0x530a47
push 0x64
call sub.kernel32.dll_Sleep_2
call fcn.004b9988
sub eax, dword [ebp - 0x14]
xor edx, edx
push edx
push eax
mov eax, dword [ebp + 0x10]
cdq
cmp edx, dword [esp + 4]
jne 0x5309c3
cmp eax, dword [esp]
pop edx
pop eax
jae 0x5309cb
jmp 0x530a51
pop edx
pop eax
jl 0x530a51
test edi, edi
je 0x5309e7
mov eax, edi
call fcn.00524270
mov edx, dword [ebx + 0x88]
inc edx
cmp eax, edx
jg 0x5309e7
mov byte [ebp - 5], 1
jmp 0x530a51
mov eax, dword [0x5865d0]
mov eax, dword [eax]
call fcn.00511c88
mov dword [ebp - 0x1c], eax
fild dword [ebp - 0x1c]
add esp, 0xfffffffc
fstp dword [esp]
wait
mov eax, dword [0x5865d0]
mov eax, dword [eax]
call fcn.00511cb0
mov dword [ebp - 0x20], eax
fild dword [ebp - 0x20]
add esp, 0xfffffffc
fstp dword [esp]
wait
mov dword [ebp - 0x24], esi
fild dword [ebp - 0x24]
add esp, 0xfffffffc
fstp dword [esp]
wait
fild dword [ebp - 4]
add esp, 0xfffffffc
fstp dword [esp]
wait
call fcn.004b7ec4
fcomp dword [0x530a84]
wait
fnstsw ax
sahf
ja 0x530a47
mov byte [ebp - 5], 1
jmp 0x530a51
cmp byte [ebx + 0xd], 0
je 0x53099a
mov eax, dword [0x5865d0]
mov eax, dword [eax]
call fcn.00511c88
cmp eax, dword [ebp - 0xc]
jne 0x530a73
mov eax, dword [0x5865d0]
mov eax, dword [eax]
call fcn.00511cb0
cmp eax, dword [ebp - 0x10]
je 0x530a77
mov byte [ebp - 5], 1
movzx eax, byte [ebp - 5]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0xc