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

Disassembly:
push ebx
push esi
push edi
push ebp
add esp, 0xffffffd4
mov ebx, eax
call fcn.00409758
mov esi, eax
sub esi, dword [ebx + 0x48]
cmp esi, dword [0x54f604]
jb 0x52b578
mov ebp, dword [ebx + 0x50]
sub ebp, dword [ebx + 0x4c]
mov dword [esp + 0x10], ebp
xor eax, eax
mov dword [esp + 0x14], eax
fild qword [esp + 0x10]
mov dword [esp + 0x18], esi
xor eax, eax
mov dword [esp + 0x1c], eax
fild qword [esp + 0x18]
fdivp st(1)
fmul dword [0x52b778]
call fcn.00403588
mov edi, eax
mov eax, dword [ebx + 0x40]
mov dword [eax + 0x30], edi
test edi, edi
jbe 0x52b55c
mov eax, dword [ebx + 0x40]
cmp edi, dword [eax + 0x68]
jae 0x52b55c
mov eax, dword [ebx + 0x40]
mov dword [eax + 0x68], edi
mov eax, dword [ebx + 0x40]
mov edx, dword [eax + 0x30]
cmp edx, dword [eax + 0x64]
jbe 0x52b56a
mov dword [eax + 0x64], edx
call fcn.00409758
mov dword [ebx + 0x48], eax
mov eax, dword [ebx + 0x50]
mov dword [ebx + 0x4c], eax
call fcn.00409758
mov esi, eax
mov edi, dword [ebx + 0x40]
sub esi, dword [edi + 0x4c]
test esi, esi
jbe 0x52b5b8
mov eax, dword [ebx + 0x50]
mov dword [esp + 0x10], eax
xor eax, eax
mov dword [esp + 0x14], eax
fild qword [esp + 0x10]
mov dword [esp + 0x18], esi
xor eax, eax
mov dword [esp + 0x1c], eax
fild qword [esp + 0x18]
fdivp st(1)
fmul dword [0x52b778]
call fcn.00403588
mov dword [edi + 0x60], eax
mov eax, dword [ebx + 0x40]
mov esi, dword [eax + 0x48]
test esi, esi
jbe 0x52b5f3
mov eax, dword [ebx + 0x50]
mov dword [esp + 0x10], eax
xor eax, eax
mov dword [esp + 0x14], eax
fild qword [esp + 0x10]
mov dword [esp + 0x18], esi
xor eax, eax
mov dword [esp + 0x1c], eax
fild qword [esp + 0x18]
fdivp st(1)
fmul dword [0x52b77c]
call fcn.00403588
jmp 0x52b687
mov eax, dword [ebx + 0x40]
mov edx, dword [eax + 0x1c]
test edx, edx
jbe 0x52b685
cmp dword [eax + 0x2c], 0
jbe 0x52b685
mov ecx, dword [eax + 0x18]
mov dword [esp + 0x10], ecx
xor ecx, ecx
mov dword [esp + 0x14], ecx
fild qword [esp + 0x10]
mov dword [esp + 0x18], edx
xor edx, edx
mov dword [esp + 0x1c], edx
fild qword [esp + 0x18]
fdivp st(1)
fmul dword [0x52b77c]
fstp qword [esp]
wait
mov edx, dword [eax + 0x28]
mov dword [esp + 0x10], edx
xor edx, edx
mov dword [esp + 0x14], edx
fild qword [esp + 0x10]
mov eax, dword [eax + 0x2c]
mov dword [esp + 0x18], eax
xor eax, eax
mov dword [esp + 0x1c], eax
fild qword [esp + 0x18]
fdivp st(1)
fmul dword [0x52b77c]
mov eax, dword [ebx + 0x40]
mov eax, dword [eax + 0x1c]
mov dword [esp + 0x20], eax
xor eax, eax
mov dword [esp + 0x24], eax
fild qword [esp + 0x20]
fdivp st(1)
fstp qword [esp + 8]
wait
fld qword [esp]
fadd qword [esp + 8]
call fcn.00403588
jmp 0x52b687
xor eax, eax
mov edx, dword [ebx + 0x40]
cmp al, byte [edx + 0x3c]
jbe 0x52b692
mov byte [edx + 0x3c], al
mov eax, dword [ebx + 0x40]
cmp byte [eax + 0x3c], 0x64
jbe 0x52b69f
mov byte [eax + 0x3c], 0x64
call fcn.00409758
mov esi, dword [ebx + 0x40]
sub eax, dword [esi + 0x4c]
mov dword [esp + 0x10], eax
xor eax, eax
mov dword [esp + 0x14], eax
fild qword [esp + 0x10]
fdiv dword [0x52b778]
call fcn.00403594
mov dword [esi + 0x34], eax
mov dword [esi + 0x6c], eax
mov eax, dword [esi + 0x48]
test eax, eax
jbe 0x52b72c
mov edi, eax
sub edi, dword [ebx + 0x50]
mov eax, dword [esi + 0x30]
add eax, dword [esi + 0x60]
mov dword [esp + 0x10], eax
xor eax, eax
mov dword [esp + 0x14], eax
fild qword [esp + 0x10]
fdiv dword [0x52b780]
call fcn.00403588
mov esi, eax
test esi, esi
jbe 0x52b76d
mov dword [esp + 0x10], edi
xor eax, eax
mov dword [esp + 0x14], eax
fild qword [esp + 0x10]
mov dword [esp + 0x18], esi
xor eax, eax
mov dword [esp + 0x1c], eax
fild qword [esp + 0x18]
fdivp st(1)
add esp, 0xfffffff4
fstp xword [esp]
wait
call fcn.0045ab38
mov edx, dword [ebx + 0x40]
mov dword [edx + 0x38], eax
jmp 0x52b76d
movzx eax, byte [esi + 0x3c]
test al, al
jbe 0x52b76d
mov edx, dword [esi + 0x34]
mov dword [esp + 0x10], edx
xor edx, edx
mov dword [esp + 0x14], edx
fild qword [esp + 0x10]
movzx eax, al
mov dword [esp + 0x28], eax
fild dword [esp + 0x28]
fdivp st(1)
fmul dword [0x52b77c]
add esp, 0xfffffff4
fstp xword [esp]
wait
call fcn.0045ab38
mov edx, dword [ebx + 0x40]
sub eax, dword [edx + 0x34]
mov dword [edx + 0x38], eax
add esp, 0x2c
pop ebp
pop edi
pop esi
pop ebx
ret