Function at 0x54d7d0
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 0x54d7f1
mov eax, dword [esi]
mov edx, dword [eax + 0xa8]
call edx
mov cl, byte [esi + 0x511]
test cl, cl
jne 0x54d832
cmp byte [esi + 0x5b8], cl
je 0x54d832
cmp byte [esi + 0x459], cl
jne 0x54d832
cmp byte [esi + 0x5b9], cl
jne 0x54d832
cmp byte [esi + 0x344], cl
je 0x54d82b
cmp byte [esi + 0x5c8], cl
je 0x54d832
cmp byte [esi + 0x5c9], cl
jne 0x54d832
mov byte [esp + 0x27], 1
jmp 0x54d837
mov byte [esp + 0x27], 0
cmp byte [esi + 0x5b8], 0
je 0x54d881
mov eax, dword [esi + 0x5b4]
mov dword [esp + 0x2c], eax
fild dword [esp + 0x2c]
mov edx, dword [esi + 0x454]
fld qword [0x687158]
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 0x54d897
fild dword [esi + 0x454]
fdiv qword [esi + 0x490]
fstp qword [esp + 0x38]
fld qword [0x665830]
test cl, cl
fstp qword [esp + 0x30]
je 0x54da3b
mov eax, dword [esi + 0x484]
cmp eax, dword [esi + 0x49c]
jl 0x54d8be
cmp byte [esi + 0x4a0], 0
je 0x54da10
cmp byte [esi + 0x430], 0
jne 0x54d8e5
cmp byte [esi + 0x4a1], 0
jne 0x54d8e5
mov edx, dword [esi]
mov eax, dword [edx + 0x100]
push 1
mov ecx, esi
mov byte [esi + 0x430], 1
call eax
test byte [0x6f427c], 1
mov ebx, dword [sym.imp.KERNEL32.dll_GetTickCount]
jne 0x54d902
or dword [0x6f427c], 1
call ebx
mov dword [0x6f4278], eax
mov ecx, dword [esi + 0x484]
cmp ecx, dword [esi + 0x49c]
jl 0x54d91d
cmp byte [esi + 0x4a0], 0
je 0x54da10
call fcn.00541340
mov edx, dword [esi]
mov eax, dword [edx + 0x24]
mov edi, dword [esi + 0x484]
mov ecx, esi
call eax
test al, al
je 0x54d9c3
fld qword [esp + 0x30]
push esi
fadd qword [esi + 0x460]
fsub qword [0x665830]
fstp qword [esi + 0x460]
call fcn.0054d660
fld qword [0x665830]
fcomp qword [esi + 0x460]
fnstsw ax
test ah, 0x41
jp 0x54d9a4
push esi
call fcn.0054ab00
mov edx, dword [esi]
mov eax, dword [edx + 0x24]
mov ecx, esi
call eax
test al, al
je 0x54d9a4
push esi
call fcn.0054d660
fld qword [esi + 0x460]
fld qword [0x665830]
fsub st(1), st(0)
fxch st(1)
fstp qword [esi + 0x460]
fcomp qword [esi + 0x460]
fnstsw ax
test ah, 0x41
jnp 0x54d968
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.0054d660
cmp edi, dword [esi + 0x484]
je 0x54dd42
call ebx
sub eax, dword [0x6f4278]
cmp eax, 0x3e8
jae 0x54d9eb
cmp byte [esi + 0x4a1], 0
je 0x54d902
mov byte [esi + 0x4a1], 0
call ebx
mov edx, dword [esi]
mov dword [0x6f4278], eax
mov eax, dword [edx + 0x174]
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 0x54da3b
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 + 0x104]
push 1
mov ecx, esi
call eax
cmp byte [esi + 0x498], 0
jne 0x54dd3c
fldz
fcomp qword [esi + 0x490]
fnstsw ax
test ah, 5
jp 0x54dd3c
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 0x54da7a
call fcn.0054d760
mov eax, dword [esi + 0x488]
mov edi, 1
cmp eax, edi
jne 0x54dbab
fld qword [esi + 0x490]
add dword [esi + 0x450], edi
fmul qword [0x686d10]
sub esp, 8
fstp qword [esp]
call fcn.00624b10
add esp, 8
call fcn.0062a660
cmp dword [esi + 0x450], eax
jl 0x54dac7
cmp byte [esi + 0x4fb], 0
jne 0x54dc99
test bl, bl
je 0x54daed
cmp byte [esi + 0x45a], 0
je 0x54db02
fld qword [esp + 0x38]
fmul qword [0x687018]
call fcn.0062a660
mov dword [esp + 0x30], eax
fild dword [esp + 0x30]
jmp 0x54daf1
fld qword [esp + 0x38]
fcomp qword [esi + 0x468]
fnstsw ax
test ah, 0x41
jp 0x54dc99
cmp byte [esi + 0x511], 0
jne 0x54db88
fld qword [0x665830]
fcomp qword [esi + 0x490]
fnstsw ax
test ah, 0x44
jp 0x54db88
mov ecx, dword [esi + 0x454]
lea eax, [ecx + 0x3e7]
cdq
idiv ecx
add dword [esi + 0x5c4], edi
mov edi, dword [esi + 0x5c4]
cmp edi, eax
jb 0x54db88
mov eax, dword [esp + 0x2c]
mov ecx, eax
sub ecx, dword [esi + 0x5c0]
cmp ecx, 0x320
ja 0x54db6e
add dword [esi + 0x5bc], 1
cmp dword [esi + 0x5bc], 3
jl 0x54db78
mov byte [esi + 0x5b9], 1
jmp 0x54db78
mov dword [esi + 0x5bc], 0
mov dword [esi + 0x5c0], eax
mov dword [esi + 0x5c4], 0
mov edx, dword [esi]
mov eax, dword [edx + 0x24]
mov ecx, esi
call eax
test al, al
je 0x54db9f
mov dword [esi + 0x488], 2
mov byte [esi + 0x45a], 1
jmp 0x54dd00
cmp eax, 2
jne 0x54dc99
fld qword [esp + 0x30]
mov dword [esi + 0x488], 3
fadd qword [esi + 0x460]
push esi
fsub qword [0x665830]
fstp qword [esi + 0x460]
call fcn.0054d660
fld qword [0x665830]
fcomp qword [esi + 0x460]
fnstsw ax
test ah, 0x41
jp 0x54dc32
lea ecx, [ecx]
push esi
call fcn.0054ab00
mov edx, dword [esi]
mov eax, dword [edx + 0x24]
add dword [esi + 0x450], edi
mov ecx, esi
call eax
test al, al
je 0x54dc32
push esi
call fcn.0054d660
fld qword [esi + 0x460]
fld qword [0x665830]
fsub st(1), st(0)
fxch st(1)
fstp qword [esi + 0x460]
fcomp qword [esi + 0x460]
fnstsw ax
test ah, 0x41
jnp 0x54dbf0
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.0054d660
fld qword [esi + 0x468]
test bl, bl
fsub qword [esp + 0x38]
je 0x54dc80
fsub qword [0x686e20]
fldz
fcom st(1)
fnstsw ax
test ah, 5
jnp 0x54dc76
fstp st(1)
fld st(0)
fxch st(1)
fxch st(1)
fstp qword [esi + 0x468]
jmp 0x54dc88
fstp qword [esi + 0x468]
fldz
cmp dword [esi + 0xb4], 0
jle 0x54dcfe
fstp qword [esi + 0x468]
jmp 0x54dd00
cmp byte [esi + 0x45a], 0
mov dword [esi + 0x488], 3
mov dword [esi + 0x450], 0
je 0x54dcc4
mov edx, dword [esi]
mov eax, dword [edx + 0x174]
mov ecx, esi
call eax
jmp 0x54dd00
fld qword [esp + 0x38]
fsub qword [esi + 0x468]
call fcn.0062a660
mov edi, eax
test edi, edi
jle 0x54dd00
cmp byte [ebp + 8], 0
jne 0x54dcea
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 0x54dd00
fstp st(0)
cmp byte [esi + 0x4fc], 0
je 0x54dd3c
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 0x54dd2b
mov eax, 0xfa
jmp 0x54dd2f
test eax, eax
jl 0x54dd3c
cmp byte [ebp + 8], 0
je 0x54dcdf
push eax
call dword [sym.imp.KERNEL32.dll_Sleep]
push esi
call fcn.0054d660
pop edi
pop esi
mov al, 1
pop ebx
mov esp, ebp
pop ebp
ret 4