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

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x4a289b
mov eax, dword fs:[0]
push eax
sub esp, 0x30
push ebx
push esi
push edi
mov eax, dword [0x4d4684]
xor eax, esp
push eax
lea eax, [esp + 0x40]
mov dword fs:[0], eax
mov esi, ecx
xor ebx, ebx
mov dword [esp + 0x1c], ebx
call fcn.0046c34c
push eax
lea ecx, [esp + 0x18]
call fcn.00401764
mov dword [esp + 0x48], ebx
fldz
lea edi, [esi + 0x3e4]
fst qword [esp + 0x24]
cmp dword [edi], ebx
fstp qword [esp + 0x2c]
mov ebx, dword [sym.imp.KERNEL32.dll_GetTickCount]
jne 0x427fbb
call ebx
mov dword [edi], eax
cmp dword [esi + 0x118], 0
je 0x427fda
lea eax, [esp + 0x14]
push 0x4b377c
push eax
call fcn.00401a35
pop ecx
pop ecx
jmp 0x428414
cmp dword [esi + 0x2dc], 0
je 0x428046
call fcn.0046c34c
push eax
lea ecx, [esp + 0x1c]
call fcn.00401764
lea eax, [esp + 0x1c]
push 0x198
push eax
mov byte [esp + 0x50], 1
call fcn.0045f91d
pop ecx
pop ecx
push eax
lea ecx, [esp + 0x1c]
mov byte [esp + 0x4c], 2
call fcn.004018c1
mov byte [esp + 0x48], 1
mov ecx, dword [esp + 0x1c]
add ecx, 0xfffffff0
call fcn.0040174a
mov ecx, dword [ebp + 8]
lea eax, [esp + 0x18]
push eax
call fcn.00401a17
mov ecx, dword [esp + 0x18]
add ecx, 0xfffffff0
call fcn.0040174a
jmp 0x428421
call ebx
sub eax, dword [esi + 0x3e0]
mov edx, dword [esi + 0x160]
mov ecx, dword [esi + 0x164]
mov edi, edx
sub edi, dword [esi + 0x2c8]
mov dword [esp + 0x18], eax
sbb ecx, dword [esi + 0x2cc]
mov dword [esp + 0x1c], edi
mov edi, dword [esi + 0x1a4]
mov dword [esp + 0x20], ecx
mov ecx, dword [esi + 0x1a0]
sub ecx, dword [esi + 0x1b0]
sbb edi, dword [esi + 0x1b4]
test eax, eax
mov dword [esp + 0x34], ecx
mov dword [esp + 0x38], edi
jne 0x4280a0
mov dword [esp + 0x18], 1
fild dword [esp + 0x18]
mov eax, dword [esi + 0x168]
mov ecx, dword [esi + 0x16c]
mov edi, eax
fdiv qword [0x4bb568]
add edi, dword [esi + 0x180]
mov ebx, ecx
adc ebx, dword [esi + 0x184]
add eax, edx
adc ecx, dword [esi + 0x164]
fild qword [esp + 0x1c]
fld qword [0x4bb540]
fmul st(1), st(0)
fxch st(1)
fdiv st(2)
fild qword [esp + 0x34]
mov dword [esp + 0x34], edi
mov dword [esp + 0x38], ebx
xor edi, edi
cmp dword [esi + 0x3dc], edi
fmul st(2)
fdivrp st(3)
fild qword [esp + 0x34]
mov dword [esp + 0x34], eax
mov dword [esp + 0x38], ecx
fmul st(2)
fild qword [esp + 0x34]
fmulp st(3)
fsubrp st(2)
fxch st(1)
fstp qword [esp + 0x34]
jne 0x42811a
mov dword [esi + 0x3d8], edi
mov eax, dword [esi + 0x3d8]
fstp qword [esi + eax*8 + 0x2e8]
mov eax, dword [esi + 0x3d8]
push 0xf
fstp qword [esi + eax*8 + 0x360]
mov eax, dword [esi + 0x3d8]
inc eax
pop ebx
cdq
mov ecx, ebx
idiv ecx
mov eax, dword [esi + 0x3dc]
cmp eax, ebx
mov dword [esi + 0x3d8], edx
jge 0x4281aa
inc eax
cmp eax, edi
mov dword [esp + 0x1c], eax
mov dword [esi + 0x3dc], eax
jle 0x42817a
lea ecx, [esi + 0x2e8]
mov edx, eax
fld qword [esp + 0x24]
fadd qword [ecx]
add ecx, 8
dec edx
fstp qword [esp + 0x24]
jne 0x42816a
cmp eax, edi
fild dword [esp + 0x1c]
fld qword [esp + 0x24]
fdiv st(1)
fstp qword [esp + 0x24]
jle 0x4281ec
mov ecx, dword [esi + 0x3dc]
lea eax, [esi + 0x360]
fld qword [eax]
add eax, 8
dec ecx
fadd qword [esp + 0x2c]
fstp qword [esp + 0x2c]
jne 0x428198
jmp 0x4281ec
lea eax, [esi + 0x2e8]
mov ecx, ebx
fld qword [eax]
add eax, 8
dec ecx
fadd qword [esp + 0x24]
fstp qword [esp + 0x24]
jne 0x4281b2
fld qword [esp + 0x24]
lea eax, [esi + 0x360]
fld qword [0x4bb560]
mov ecx, ebx
fdiv st(1), st(0)
fxch st(1)
fstp qword [esp + 0x24]
fld qword [eax]
add eax, 8
dec ecx
fadd qword [esp + 0x2c]
fstp qword [esp + 0x2c]
jne 0x4281dc
fdivr qword [esp + 0x2c]
fldz
fcom qword [esp + 0x24]
fnstsw ax
test ah, 0x41
jne 0x42823c
fcom st(1)
fnstsw ax
test ah, 0x41
jne 0x42822d
fstp st(1)
mov dword [esi + 0x3dc], edi
fst qword [esp + 0x24]
lea eax, [esi + 0x360]
fld st(0)
mov ecx, ebx
jmp 0x428220
fxch st(1)
fxch st(1)
fst qword [eax - 0x78]
fst qword [eax]
add eax, 8
dec ecx
jne 0x42821e
fcom qword [esp + 0x24]
fnstsw ax
test ah, 0x41
jne 0x42823c
fst qword [esp + 0x24]
fcom st(1)
fnstsw ax
test ah, 0x41
jne 0x428249
fstp st(1)
jmp 0x42824b
fstp st(0)
fld qword [esp + 0x24]
fstp qword [esi + 0x1c8]
fst qword [esi + 0x1d0]
fld qword [esi + 0x1d8]
fcomp qword [esp + 0x24]
fnstsw ax
fld qword [0x4bb520]
test ah, 5
fld qword [0x4bb518]
jp 0x42828c
fld qword [esi + 0x1d8]
fmul st(2)
fadd qword [esp + 0x24]
fmul st(1)
fstp qword [esi + 0x1d8]
fld qword [esi + 0x1e0]
fcomp st(3)
fnstsw ax
test ah, 5
jp 0x4282b1
fld qword [esi + 0x1e0]
fmulp st(2)
fxch st(1)
faddp st(2)
fmulp st(1)
fstp qword [esi + 0x1e0]
jmp 0x4282b7
fstp st(1)
fstp st(0)
fstp st(0)
call fcn.0043d481
fld qword [esi + 0x1c8]
call fcn.0048c2d0
fldz
mov edx, dword [esi + 0x20c]
fcom qword [esp + 0x24]
mov ecx, dword [esi + 0x274]
mov dword [ecx + edx*4 + 0x220], eax
xor eax, eax
inc eax
mov dword [ecx + 0xc], eax
mov dword [0x4d9140], eax
mov dword [0x4d9144], eax
fnstsw ax
test ah, 0x44
jp 0x4282ff
mov dword [esi + 0x3dc], edi
jmp 0x42830e
fld qword [esp + 0x34]
fdiv qword [esp + 0x24]
call fcn.0048c2d0
mov edi, eax
fcomp qword [esp + 0x24]
mov dword [esi + 0x208], edi
fnstsw ax
test ah, 1
je 0x428398
mov eax, dword [esi + 0x2c8]
cmp eax, dword [esi + 0x160]
jne 0x42833b
mov eax, dword [esi + 0x2cc]
cmp eax, dword [esi + 0x164]
je 0x428398
mov eax, dword [esi + 0x180]
or eax, dword [esi + 0x184]
je 0x428398
lea eax, [esp + 0x1c]
push 0x17a
push eax
call fcn.0045f91d
push 0x3c
mov byte [esp + 0x54], 3
mov ecx, dword [eax]
pop ebx
mov eax, edi
cdq
idiv ebx
push edx
cdq
idiv ebx
mov eax, edi
mov edi, 0xe10
push edx
cdq
idiv edi
push eax
push ecx
lea eax, [esp + 0x2c]
push eax
call fcn.00401a35
mov byte [esp + 0x64], 0
mov ecx, dword [esp + 0x38]
add esp, 0x1c
add ecx, 0xfffffff0
call fcn.0040174a
jmp 0x4283a9
lea eax, [esp + 0x14]
push str._:__:__
push eax
call fcn.00401a35
pop ecx
pop ecx
lea eax, [esp + 0x14]
lea ecx, [esi + 0x3e8]
push eax
call fcn.004018c1
call fcn.00487a05
push 0xa
cdq
pop ecx
idiv ecx
test edx, edx
jne 0x4283d8
mov edi, dword [esi + 0x274]
lea eax, [esp + 0x14]
push eax
call fcn.0040b223
mov eax, dword [esi + 0x160]
mov dword [esi + 0x2c8], eax
mov eax, dword [esi + 0x164]
mov dword [esi + 0x2cc], eax
mov eax, dword [esi + 0x1a0]
mov dword [esi + 0x1b0], eax
mov eax, dword [esi + 0x1a4]
mov dword [esi + 0x1b4], eax
call dword [sym.imp.KERNEL32.dll_GetTickCount]
mov dword [esi + 0x3e0], eax
mov ecx, dword [ebp + 8]
lea eax, [esp + 0x14]
push eax
call fcn.00401a17
mov ecx, dword [esp + 0x14]
add ecx, 0xfffffff0
call fcn.0040174a
mov eax, dword [ebp + 8]
mov ecx, dword [esp + 0x40]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4