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

Disassembly:
push ebp
mov ebp, esp
and esp, 0xffffffc0
sub esp, 0x34
push ebx
push esi
mov esi, ecx
cmp byte [esi + 0x4fd], 0
push edi
je 0x451591
mov eax, dword [esi]
mov edx, dword [eax + 0xa8]
call edx
mov cl, byte [esi + 0x50d]
test cl, cl
jne 0x4515d2
cmp byte [esi + 0x5b0], cl
je 0x4515d2
cmp byte [esi + 0x459], cl
jne 0x4515d2
cmp byte [esi + 0x5b1], cl
jne 0x4515d2
cmp byte [esi + 0x344], cl
je 0x4515cb
cmp byte [esi + 0x5c0], cl
je 0x4515d2
cmp byte [esi + 0x5c1], cl
jne 0x4515d2
mov byte [esp + 0x27], 1
jmp 0x4515d7
mov byte [esp + 0x27], 0
cmp byte [esi + 0x5b0], 0
je 0x451621
mov eax, dword [esi + 0x5ac]
mov dword [esp + 0x2c], eax
fild dword [esp + 0x2c]
mov edx, dword [esi + 0x454]
fld qword [0x613f58]
imul edx, eax
fld st(0)
fdivrp st(2)
mov dword [esp + 0x2c], edx
fxch st(1)
fdiv qword [esi + 0x490]
fstp qword [esp + 0x38]
fild dword [esp + 0x2c]
fdivp st(1)
fstp dword [esp + 0x2c]
fld dword [esp + 0x2c]
jmp 0x451637
fild dword [esi + 0x454]
fdiv qword [esi + 0x490]
fstp qword [esp + 0x38]
fld qword [0x60bd40]
test cl, cl
fstp qword [esp + 0x30]
je 0x4517db
mov eax, dword [esi + 0x484]
cmp eax, dword [esi + 0x49c]
jl 0x45165e
cmp byte [esi + 0x4a0], 0
je 0x4517b0
cmp byte [esi + 0x430], 0
jne 0x451685
cmp byte [esi + 0x4a1], 0
jne 0x451685
mov edx, dword [esi]
mov eax, dword [edx + 0xf8]
push 1
mov ecx, esi
mov byte [esi + 0x430], 1
call eax
test byte [0x676500], 1
mov ebx, dword [sym.imp.KERNEL32.dll_GetTickCount]
jne 0x4516a2
or dword [0x676500], 1
call ebx
mov dword [0x6764fc], eax
mov ecx, dword [esi + 0x484]
cmp ecx, dword [esi + 0x49c]
jl 0x4516bd
cmp byte [esi + 0x4a0], 0
je 0x4517b0
call fcn.00446000
mov edx, dword [esi]
mov eax, dword [edx + 0x24]
mov edi, dword [esi + 0x484]
mov ecx, esi
call eax
test al, al
je 0x451763
fld qword [esp + 0x30]
push esi
fadd qword [esi + 0x460]
fsub qword [0x60bd40]
fstp qword [esi + 0x460]
call fcn.004513f0
fld qword [0x60bd40]
fcomp qword [esi + 0x460]
fnstsw ax
test ah, 0x41
jp 0x451744
push esi
call fcn.0044e880
mov edx, dword [esi]
mov eax, dword [edx + 0x24]
mov ecx, esi
call eax
test al, al
je 0x451744
push esi
call fcn.004513f0
fld qword [esi + 0x460]
fld qword [0x60bd40]
fsub st(1), st(0)
fxch st(1)
fstp qword [esi + 0x460]
fcomp qword [esi + 0x460]
fnstsw ax
test ah, 0x41
jnp 0x451708
fld qword [esp + 0x30]
mov edx, dword [esi]
mov eax, dword [edx + 0x28]
fstp dword [esp + 0x2c]
fld dword [esp + 0x2c]
push ecx
mov ecx, esi
fstp dword [esp]
call eax
push esi
call fcn.004513f0
cmp edi, dword [esi + 0x484]
je 0x451ae2
call ebx
sub eax, dword [0x6764fc]
cmp eax, 0x3e8
jae 0x45178b
cmp byte [esi + 0x4a1], 0
je 0x4516a2
mov byte [esi + 0x4a1], 0
call ebx
mov edx, dword [esi]
mov dword [0x6764fc], eax
mov eax, dword [edx + 0x168]
mov ecx, esi
call eax
mov al, 1
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4
cmp byte [esi + 0x430], 0
je 0x4517db
mov ecx, dword [esi + 0x4b4]
mov byte [esi + 0x430], 0
mov edx, dword [ecx]
mov eax, dword [edx + 0x3c]
call eax
mov edx, dword [esi]
mov eax, dword [edx + 0xfc]
push 1
mov ecx, esi
call eax
cmp byte [esi + 0x498], 0
jne 0x451adc
fldz
fcomp qword [esi + 0x490]
fnstsw ax
test ah, 5
jp 0x451adc
call dword [sym.imp.WINMM.dll_timeGetTime]
mov bl, byte [esp + 0x27]
test bl, bl
mov dword [esp + 0x2c], eax
mov dword [esp + 0x28], 0
jne 0x45181a
call fcn.004514f0
mov eax, dword [esi + 0x488]
mov edi, 1
cmp eax, edi
jne 0x45194b
fld qword [esi + 0x490]
add dword [esi + 0x450], edi
fmul qword [0x613e10]
sub esp, 8
fstp qword [esp]
call fcn.005b5e60
add esp, 8
call fcn.005b3030
cmp dword [esi + 0x450], eax
jl 0x451867
cmp byte [esi + 0x4fb], 0
jne 0x451a39
test bl, bl
je 0x45188d
cmp byte [esi + 0x45a], 0
je 0x4518a2
fld qword [esp + 0x38]
fmul qword [0x613f68]
call fcn.005b3030
mov dword [esp + 0x30], eax
fild dword [esp + 0x30]
jmp 0x451891
fld qword [esp + 0x38]
fcomp qword [esi + 0x468]
fnstsw ax
test ah, 0x41
jp 0x451a39
cmp byte [esi + 0x50d], 0
jne 0x451928
fld qword [0x60bd40]
fcomp qword [esi + 0x490]
fnstsw ax
test ah, 0x44
jp 0x451928
mov ecx, dword [esi + 0x454]
lea eax, [ecx + 0x3e7]
cdq
idiv ecx
add dword [esi + 0x5bc], edi
mov edi, dword [esi + 0x5bc]
cmp edi, eax
jb 0x451928
mov eax, dword [esp + 0x2c]
mov ecx, eax
sub ecx, dword [esi + 0x5b8]
cmp ecx, 0x320
ja 0x45190e
add dword [esi + 0x5b4], 1
cmp dword [esi + 0x5b4], 3
jl 0x451918
mov byte [esi + 0x5b1], 1
jmp 0x451918
mov dword [esi + 0x5b4], 0
mov dword [esi + 0x5b8], eax
mov dword [esi + 0x5bc], 0
mov edx, dword [esi]
mov eax, dword [edx + 0x24]
mov ecx, esi
call eax
test al, al
je 0x45193f
mov dword [esi + 0x488], 2
mov byte [esi + 0x45a], 1
jmp 0x451aa0
cmp eax, 2
jne 0x451a39
fld qword [esp + 0x30]
mov dword [esi + 0x488], 3
fadd qword [esi + 0x460]
push esi
fsub qword [0x60bd40]
fstp qword [esi + 0x460]
call fcn.004513f0
fld qword [0x60bd40]
fcomp qword [esi + 0x460]
fnstsw ax
test ah, 0x41
jp 0x4519d2
lea ecx, [ecx]
push esi
call fcn.0044e880
mov edx, dword [esi]
mov eax, dword [edx + 0x24]
add dword [esi + 0x450], edi
mov ecx, esi
call eax
test al, al
je 0x4519d2
push esi
call fcn.004513f0
fld qword [esi + 0x460]
fld qword [0x60bd40]
fsub st(1), st(0)
fxch st(1)
fstp qword [esi + 0x460]
fcomp qword [esi + 0x460]
fnstsw ax
test ah, 0x41
jnp 0x451990
fld qword [esp + 0x30]
mov edx, dword [esi]
mov eax, dword [edx + 0x28]
fstp dword [esp + 0x30]
fld dword [esp + 0x30]
push ecx
mov ecx, esi
fstp dword [esp]
call eax
push esi
call fcn.004513f0
fld qword [esi + 0x468]
test bl, bl
fsub qword [esp + 0x38]
je 0x451a20
fsub qword [0x613f60]
fldz
fcom st(1)
fnstsw ax
test ah, 5
jnp 0x451a16
fstp st(1)
fld st(0)
fxch st(1)
fxch st(1)
fstp qword [esi + 0x468]
jmp 0x451a28
fstp qword [esi + 0x468]
fldz
cmp dword [esi + 0xb4], 0
jle 0x451a9e
fstp qword [esi + 0x468]
jmp 0x451aa0
cmp byte [esi + 0x45a], 0
mov dword [esi + 0x488], 3
mov dword [esi + 0x450], 0
je 0x451a64
mov edx, dword [esi]
mov eax, dword [edx + 0x168]
mov ecx, esi
call eax
jmp 0x451aa0
fld qword [esp + 0x38]
fsub qword [esi + 0x468]
call fcn.005b3030
mov edi, eax
test edi, edi
jle 0x451aa0
cmp byte [ebp + 8], 0
jne 0x451a8a
xor al, al
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4
add dword [esi + 0x47c], 1
push edi
call dword [sym.imp.KERNEL32.dll_Sleep]
mov dword [esp + 0x28], edi
jmp 0x451aa0
fstp st(0)
cmp byte [esi + 0x4fc], 0
je 0x451adc
call dword [sym.imp.WINMM.dll_timeGetTime]
mov ecx, dword [esp + 0x28]
sub eax, ecx
sub eax, dword [esp + 0x2c]
add eax, eax
sub eax, ecx
cmp eax, 0xfa
jle 0x451acb
mov eax, 0xfa
jmp 0x451acf
test eax, eax
jl 0x451adc
cmp byte [ebp + 8], 0
je 0x451a7f
push eax
call dword [sym.imp.KERNEL32.dll_Sleep]
push esi
call fcn.004513f0
pop edi
pop esi
mov al, 1
pop ebx
mov esp, ebp
pop ebp
ret 4