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

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff0
push ebx
push esi
push edi
mov dword [ebp - 4], eax
lea edi, [ebp - 4]
mov eax, dword [edi]
mov eax, dword [eax + 0x17c]
cmp eax, 0xb
je 0x530c1f
cmp eax, 9
je 0x530c1f
cmp eax, 0xd
je 0x530c1f
cmp eax, 0x1392
je 0x530c1f
cmp eax, 6
je 0x530c1f
cmp eax, 7
je 0x530c1f
mov eax, dword [edi]
mov byte [eax + 0x220], 0
mov eax, dword [0x55359c]
mov eax, dword [eax]
cmp eax, dword [edi]
je 0x530892
mov eax, dword [edi]
mov eax, dword [eax + 0x25c]
cmp dword [eax + 8], 2
jl 0x530892
mov eax, dword [edi]
mov byte [eax + 0x220], 1
mov eax, dword [edi]
mov edx, dword [eax + 0x1f4]
mov eax, dword [edi]
sub edx, dword [eax + 0x1ec]
mov eax, dword [edi]
mov si, 0xfff8
call fcn.004045d4
mov eax, dword [edi]
mov edx, dword [eax + 0x1f4]
mov eax, dword [edi]
sub edx, dword [eax + 0x1ec]
mov eax, dword [edi]
mov si, 0xfff7
call fcn.004045d4
mov eax, dword [edi]
mov ebx, dword [eax + 0x1f4]
mov eax, dword [edi]
cmp dword [eax + 0x17c], 0
je 0x530b99
mov edx, dword [edi]
mov edx, dword [edx + 0x1ec]
mov eax, dword [edi]
mov eax, dword [eax + 0x1f4]
cmp edx, eax
jg 0x5308fd
mov ecx, dword [edi]
cmp eax, dword [ecx + 0x1f0]
jle 0x530905
mov eax, dword [edi]
mov dword [eax + 0x1f4], edx
mov eax, dword [0x55359c]
mov eax, dword [eax]
cmp eax, dword [edi]
je 0x53093f
mov eax, dword [edi]
cmp byte [eax + 0x120], 0
je 0x53093f
mov eax, dword [edi]
mov eax, dword [eax + 0x20c]
mov dword [ebp - 0x10], eax
xor eax, eax
mov dword [ebp - 0xc], eax
fild qword [ebp - 0x10]
fld xword [0x530c28]
fdivp st(1)
call fcn.004035cc
mov esi, eax
jmp 0x530976
mov eax, dword [edi]
cmp byte [eax + 0x220], 0
je 0x53096e
mov eax, dword [edi]
mov eax, dword [eax + 0x20c]
add eax, eax
mov dword [ebp - 0x10], eax
xor eax, eax
mov dword [ebp - 0xc], eax
fild qword [ebp - 0x10]
fdiv dword [0x530c34]
call fcn.004035cc
mov esi, eax
jmp 0x530976
mov eax, dword [edi]
mov esi, dword [eax + 0x20c]
call sub.kernel32.dll_GetTickCount_1
mov edx, dword [edi]
sub eax, dword [edx + 0x210]
cmp esi, eax
jae 0x530b60
mov eax, dword [edi]
mov eax, dword [eax + 0x1f4]
mov edx, dword [edi]
cmp eax, dword [edx + 0x1f0]
jge 0x530a59
mov eax, dword [edi]
cmp byte [eax + 0x120], 0
je 0x530a42
mov eax, dword [edi]
mov eax, dword [eax + 0x138]
mov edx, dword [edi]
mov edx, dword [edx + 0x13c]
sub edx, 2
cmp eax, edx
je 0x5309d2
push ebp
call fcn.005307bc
pop ecx
test al, al
je 0x530a0e
mov eax, dword [edi]
cmp dword [eax + 0x140], 0
jge 0x5309ec
push ebp
call fcn.005307bc
pop ecx
test al, al
je 0x530ac0
mov eax, dword [edi]
inc dword [eax + 0x1f4]
mov eax, dword [edi]
inc dword [eax + 0x138]
call sub.kernel32.dll_GetTickCount_1
mov edx, dword [edi]
mov dword [edx + 0x210], eax
jmp 0x530ac0
mov eax, dword [edi]
mov eax, dword [eax + 0x1f4]
mov edx, dword [edi]
mov edx, dword [edx + 0x1f0]
dec edx
cmp eax, edx
jge 0x530a2b
mov eax, dword [edi]
inc dword [eax + 0x1f4]
mov eax, dword [edi]
inc dword [eax + 0x138]
call sub.kernel32.dll_GetTickCount_1
mov edx, dword [edi]
mov dword [edx + 0x210], eax
jmp 0x530ac0
mov eax, dword [edi]
inc dword [eax + 0x1f4]
call sub.kernel32.dll_GetTickCount_1
mov edx, dword [edi]
mov dword [edx + 0x210], eax
jmp 0x530ac0
mov eax, dword [edi]
cmp byte [eax + 0x2f], 0
je 0x530a67
mov eax, dword [edi]
mov byte [eax + 0x2e], 1
mov eax, dword [0x55359c]
mov eax, dword [eax]
cmp eax, dword [edi]
jne 0x530aa2
mov eax, dword [0x553488]
mov eax, dword [eax]
call fcn.0053d38c
test al, al
je 0x530ac0
mov eax, dword [edi]
mov si, 0xfff6
call fcn.004045d4
mov eax, dword [edi]
xor edx, edx
mov dword [eax + 0x17c], edx
mov eax, dword [edi]
mov byte [eax + 0x120], 0
jmp 0x530ac0
mov eax, dword [edi]
mov si, 0xfff6
call fcn.004045d4
mov eax, dword [edi]
xor edx, edx
mov dword [eax + 0x17c], edx
mov eax, dword [edi]
mov byte [eax + 0x120], 0
mov eax, dword [edi]
cmp byte [eax + 0x120], 0
je 0x530b60
mov eax, dword [edi]
mov eax, dword [eax + 0x138]
mov edx, dword [edi]
mov edx, dword [edx + 0x13c]
dec edx
cmp eax, edx
jne 0x530b60
mov eax, dword [edi]
cmp dword [eax + 0x140], 0
jle 0x530b56
mov eax, dword [edi]
add eax, 0x140
mov edx, dword [eax + 0x10]
push edx
mov edx, dword [edi]
mov edx, dword [edx + 8]
push edx
mov edx, dword [edi]
mov edx, dword [edx + 0xc]
push edx
mov edx, dword [eax + 0x14]
push edx
mov edx, dword [eax + 0x18]
push edx
mov edx, dword [eax + 8]
push edx
movzx edx, byte [eax + 0xc]
push edx
movzx edx, byte [eax + 0x1c]
push edx
mov edx, dword [eax + 0x20]
push edx
lea edx, [ebp - 5]
push edx
mov ecx, dword [eax]
mov eax, dword [0x5530d0]
mov eax, dword [eax]
mov edx, dword [edi]
call fcn.0052423c
cmp byte [ebp - 5], 0
je 0x530b49
mov eax, dword [edi]
mov eax, dword [eax + 0x1dc]
call fcn.005178fc
jmp 0x530b56
mov eax, dword [edi]
mov eax, dword [eax + 0x1e0]
call fcn.005178fc
mov eax, dword [edi]
xor edx, edx
mov dword [eax + 0x140], edx
mov eax, dword [edi]
movzx eax, word [eax + 0x1a]
sub ax, 2
jb 0x530b72
sub ax, 0x29
jne 0x530b80
mov eax, dword [edi]
mov dword [eax + 0x228], 0xfffffff6
jmp 0x530b8a
mov eax, dword [edi]
xor edx, edx
mov dword [eax + 0x228], edx
call sub.kernel32.dll_GetTickCount_1
mov edx, dword [edi]
mov dword [edx + 0x22c], eax
jmp 0x530bfd
call sub.kernel32.dll_GetTickCount_1
mov edx, dword [edi]
sub eax, dword [edx + 0x238]
cmp eax, 0xc8
jbe 0x530bfd
call sub.kernel32.dll_GetTickCount_1
mov edx, dword [edi]
sub eax, dword [edx + 0x22c]
cmp eax, 0x1f4
jbe 0x530bf2
call sub.kernel32.dll_GetTickCount_1
mov edx, dword [edi]
mov dword [edx + 0x22c], eax
mov eax, dword [edi]
inc dword [eax + 0x228]
mov eax, dword [edi]
mov eax, dword [eax + 0x228]
mov edx, dword [edi]
cmp eax, dword [edx + 0x230]
jl 0x530bf2
mov eax, dword [edi]
xor edx, edx
mov dword [eax + 0x228], edx
mov eax, dword [edi]
mov si, 0xfffe
call fcn.004045d4
mov eax, dword [edi]
cmp ebx, dword [eax + 0x1f4]
je 0x530c1f
call sub.kernel32.dll_GetTickCount_1
mov edx, dword [edi]
mov dword [edx + 0x240], eax
mov eax, dword [edi]
mov si, 0xfff3
call fcn.004045d4
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret