Function at 0x451290
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 0x4512b1
mov eax, dword [esi]
mov edx, dword [eax + 0xa8]
call edx
mov cl, byte [esi + 0x50d]
test cl, cl
jne 0x4512f2
cmp byte [esi + 0x5b0], cl
je 0x4512f2
cmp byte [esi + 0x459], cl
jne 0x4512f2
cmp byte [esi + 0x5b1], cl
jne 0x4512f2
cmp byte [esi + 0x344], cl
je 0x4512eb
cmp byte [esi + 0x5c0], cl
je 0x4512f2
cmp byte [esi + 0x5c1], cl
jne 0x4512f2
mov byte [esp + 0x27], 1
jmp 0x4512f7
mov byte [esp + 0x27], 0
cmp byte [esi + 0x5b0], 0
je 0x451341
mov eax, dword [esi + 0x5ac]
mov dword [esp + 0x2c], eax
fild dword [esp + 0x2c]
mov edx, dword [esi + 0x454]
fld qword [0x5ba928]
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 0x451357
fild dword [esi + 0x454]
fdiv qword [esi + 0x490]
fstp qword [esp + 0x38]
fld qword [0x5aa7f0]
test cl, cl
fstp qword [esp + 0x30]
je 0x451505
mov eax, dword [esi + 0x484]
cmp eax, dword [esi + 0x49c]
jl 0x45137e
cmp byte [esi + 0x4a0], 0
je 0x4514da
cmp byte [esi + 0x430], 0
jne 0x4513a5
cmp byte [esi + 0x4a1], 0
jne 0x4513a5
mov edx, dword [esi]
mov eax, dword [edx + 0xf8]
push 1
mov ecx, esi
mov byte [esi + 0x430], 1
call eax
test byte [0x612c90], 1
mov ebx, dword [sym.imp.KERNEL32.dll_GetTickCount]
jne 0x4513c2
or dword [0x612c90], 1
call ebx
mov dword [0x612c8c], eax
mov ecx, dword [esi + 0x484]
cmp ecx, dword [esi + 0x49c]
jl 0x4513dd
cmp byte [esi + 0x4a0], 0
je 0x4514da
call fcn.00445ce0
mov edx, dword [esi]
mov eax, dword [edx + 0x24]
mov edi, dword [esi + 0x484]
mov ecx, esi
call eax
test al, al
je 0x45148d
fld qword [esp + 0x30]
mov ecx, esi
fadd qword [esi + 0x460]
fsub qword [0x5aa7f0]
fstp qword [esi + 0x460]
call fcn.00451100
fld qword [0x5aa7f0]
fcomp qword [esi + 0x460]
fnstsw ax
test ah, 0x41
jp 0x45146d
lea esp, [esp]
push esi
call fcn.0044e590
mov edx, dword [esi]
mov eax, dword [edx + 0x24]
mov ecx, esi
call eax
test al, al
je 0x45146d
mov ecx, esi
call fcn.00451100
fld qword [esi + 0x460]
fld qword [0x5aa7f0]
fsub st(1), st(0)
fxch st(1)
fstp qword [esi + 0x460]
fcomp qword [esi + 0x460]
fnstsw ax
test ah, 0x41
jnp 0x451430
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
mov ecx, esi
call fcn.00451100
cmp edi, dword [esi + 0x484]
je 0x451809
call ebx
sub eax, dword [0x612c8c]
cmp eax, 0x3e8
jae 0x4514b5
cmp byte [esi + 0x4a1], 0
je 0x4513c2
mov byte [esi + 0x4a1], 0
call ebx
mov edx, dword [esi]
mov dword [0x612c8c], 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 0x451505
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 0x451802
fldz
fcomp qword [esi + 0x490]
fnstsw ax
test ah, 5
jp 0x451802
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 0x451544
call fcn.00451210
mov eax, dword [esi + 0x488]
mov edi, 1
cmp eax, edi
jne 0x451671
fld qword [esi + 0x490]
add dword [esi + 0x450], edi
fmul qword [0x5ba7e0]
sub esp, 8
fstp qword [esp]
call fcn.0056cb50
add esp, 8
call fcn.005690a0
cmp dword [esi + 0x450], eax
jl 0x451591
cmp byte [esi + 0x4fb], 0
jne 0x45175f
test bl, bl
je 0x4515b7
cmp byte [esi + 0x45a], 0
je 0x4515cc
fld qword [esp + 0x38]
fmul qword [0x5ba938]
call fcn.005690a0
mov dword [esp + 0x30], eax
fild dword [esp + 0x30]
jmp 0x4515bb
fld qword [esp + 0x38]
fcomp qword [esi + 0x468]
fnstsw ax
test ah, 0x41
jp 0x45175f
cmp byte [esi + 0x50d], 0
jne 0x45164e
fld qword [0x5aa7f0]
fcomp qword [esi + 0x490]
fnstsw ax
test ah, 0x44
jp 0x45164e
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 0x45164e
mov eax, dword [esp + 0x2c]
mov ecx, eax
sub ecx, dword [esi + 0x5b8]
cmp ecx, 0x320
ja 0x451634
add dword [esi + 0x5b4], 1
cmp dword [esi + 0x5b4], 3
jl 0x45163e
mov byte [esi + 0x5b1], 1
jmp 0x45163e
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 0x451665
mov dword [esi + 0x488], 2
mov byte [esi + 0x45a], 1
jmp 0x4517c6
cmp eax, 2
jne 0x45175f
fld qword [esp + 0x30]
mov dword [esi + 0x488], 3
fadd qword [esi + 0x460]
mov ecx, esi
fsub qword [0x5aa7f0]
fstp qword [esi + 0x460]
call fcn.00451100
fld qword [0x5aa7f0]
fcomp qword [esi + 0x460]
fnstsw ax
test ah, 0x41
jp 0x4516f7
push esi
call fcn.0044e590
mov edx, dword [esi]
mov eax, dword [edx + 0x24]
add dword [esi + 0x450], edi
mov ecx, esi
call eax
test al, al
je 0x4516f7
mov ecx, esi
call fcn.00451100
fld qword [esi + 0x460]
fld qword [0x5aa7f0]
fsub st(1), st(0)
fxch st(1)
fstp qword [esi + 0x460]
fcomp qword [esi + 0x460]
fnstsw ax
test ah, 0x41
jnp 0x4516b4
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
mov ecx, esi
call fcn.00451100
fld qword [esi + 0x468]
test bl, bl
fsub qword [esp + 0x38]
je 0x451746
fsub qword [0x5ba930]
fldz
fcom st(1)
fnstsw ax
test ah, 5
jnp 0x45173c
fstp st(1)
fld st(0)
fxch st(1)
fxch st(1)
fstp qword [esi + 0x468]
jmp 0x45174e
fstp qword [esi + 0x468]
fldz
cmp dword [esi + 0xb4], 0
jle 0x4517c4
fstp qword [esi + 0x468]
jmp 0x4517c6
cmp byte [esi + 0x45a], 0
mov dword [esi + 0x488], 3
mov dword [esi + 0x450], 0
je 0x45178a
mov edx, dword [esi]
mov eax, dword [edx + 0x168]
mov ecx, esi
call eax
jmp 0x4517c6
fld qword [esp + 0x38]
fsub qword [esi + 0x468]
call fcn.005690a0
mov edi, eax
test edi, edi
jle 0x4517c6
cmp byte [ebp + 8], 0
jne 0x4517b0
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 0x4517c6
fstp st(0)
cmp byte [esi + 0x4fc], 0
je 0x451802
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 0x4517f1
mov eax, 0xfa
jmp 0x4517f5
test eax, eax
jl 0x451802
cmp byte [ebp + 8], 0
je 0x4517a5
push eax
call dword [sym.imp.KERNEL32.dll_Sleep]
mov ecx, esi
call fcn.00451100
pop edi
pop esi
mov al, 1
pop ebx
mov esp, ebp
pop ebp
ret 4