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

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffe4
push ebx
push esi
push edi
mov dword [ebp - 8], ecx
mov dword [ebp - 4], edx
mov esi, eax
mov ebx, dword [ebp + 8]
mov dl, 1
mov eax, dword [0x4c368c]
call fcn.00403a18
mov edi, eax
mov eax, dword [ebp + 0xc]
dec eax
je 0x4ca712
dec eax
je 0x4ca762
dec eax
je 0x4ca7bd
dec eax
je 0x4ca80a
jmp 0x4ca860
fild dword [ebp + 0x14]
fild dword [0x4dd090]
fdivp st(1)
add esp, 0xfffffff4
fstp xword [esp]
wait
call fcn.00429a08
push eax
mov eax, dword [ebp + 0x10]
push eax
mov eax, dword [0x4dd090]
push eax
fild dword [ebp + 0x14]
fild dword [0x4dd090]
fdivp st(1)
add esp, 0xfffffff8
fstp qword [esp]
wait
push 0
push 0
mov eax, dword [ebp - 4]
push eax
mov eax, dword [ebp - 8]
push eax
xor ecx, ecx
xor edx, edx
mov eax, edi
call fcn.004c3c38
jmp 0x4ca860
fild dword [ebp + 0x14]
fild dword [0x4dd090]
fdivp st(1)
add esp, 0xfffffff4
fstp xword [esp]
wait
call fcn.00429a08
neg eax
push eax
mov eax, dword [ebp + 0x10]
push eax
mov eax, dword [0x4dd090]
push eax
mov eax, dword [ebp + 0x14]
neg eax
mov dword [ebp - 0xc], eax
fild dword [ebp - 0xc]
fild dword [0x4dd090]
fdivp st(1)
add esp, 0xfffffff8
fstp qword [esp]
wait
push 0
push 0
mov eax, dword [ebp - 4]
push eax
mov eax, dword [ebp - 8]
push eax
xor ecx, ecx
mov edx, dword [ebp + 0x14]
mov eax, edi
call fcn.004c3c38
jmp 0x4ca860
mov eax, dword [ebp + 0x14]
push eax
fild dword [ebp + 0x10]
fild dword [0x4dd090]
fdivp st(1)
add esp, 0xfffffff4
fstp xword [esp]
wait
call fcn.00429a08
push eax
mov eax, dword [0x4dd090]
push eax
push 0
push 0
fild dword [ebp + 0x10]
fild dword [0x4dd090]
fdivp st(1)
add esp, 0xfffffff8
fstp qword [esp]
wait
mov eax, dword [ebp - 4]
push eax
mov eax, dword [ebp - 8]
push eax
xor ecx, ecx
xor edx, edx
mov eax, edi
call fcn.004c3c38
jmp 0x4ca860
mov eax, dword [ebp + 0x14]
push eax
fild dword [ebp + 0x10]
fild dword [0x4dd090]
fdivp st(1)
add esp, 0xfffffff4
fstp xword [esp]
wait
call fcn.00429a08
neg eax
push eax
mov eax, dword [0x4dd090]
push eax
push 0
push 0
mov eax, dword [ebp + 0x10]
neg eax
mov dword [ebp - 0xc], eax
fild dword [ebp - 0xc]
fild dword [0x4dd090]
fdivp st(1)
add esp, 0xfffffff8
fstp qword [esp]
wait
mov eax, dword [ebp - 4]
push eax
mov eax, dword [ebp - 8]
push eax
mov ecx, dword [ebp + 0x10]
xor edx, edx
mov eax, edi
call fcn.004c3c38
call sub.KERNEL32.DLL_GetTickCount
mov dword [0x4e03f0], eax
jmp 0x4caa6c
push esi
push edi
lea eax, [edi + 0x58]
lea edi, [esi + 0x70]
mov esi, eax
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
pop edi
pop esi
push esi
push edi
lea eax, [edi + 0x48]
lea edi, [esi + 0x60]
mov esi, eax
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
pop edi
pop esi
push esi
push 0x4c43a0
mov eax, esi
call fcn.0041e364
mov eax, dword [ebp + 0xc]
dec eax
je 0x4ca8b8
dec eax
je 0x4ca915
dec eax
je 0x4ca973
dec eax
je 0x4ca9cf
jmp 0x4caa26
mov eax, dword [ebp + 0x10]
push eax
lea eax, [ebp - 0x1c]
push eax
fld qword [edi + 0x10]
call fcn.00402ca4
mov ecx, dword [ebp + 0x14]
xor edx, edx
call fcn.00406a1c
push esi
push edi
lea edi, [esi + 0x70]
lea esi, [ebp - 0x1c]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
pop edi
pop esi
mov eax, dword [ebp + 0x10]
push eax
lea eax, [ebp - 0x1c]
push eax
fld qword [edi + 0x10]
call fcn.00402ca4
inc eax
push eax
fld qword [edi + 0x10]
call fcn.00402ca4
xor edx, edx
pop ecx
call fcn.00406a1c
push esi
push edi
lea edi, [esi + 0x60]
lea esi, [ebp - 0x1c]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
pop edi
pop esi
jmp 0x4caa26
mov eax, dword [ebp + 0x10]
push eax
lea eax, [ebp - 0x1c]
push eax
fld qword [edi + 0x10]
call fcn.00402ca4
mov ecx, eax
xor edx, edx
xor eax, eax
call fcn.00406a1c
push esi
push edi
lea edi, [esi + 0x70]
lea esi, [ebp - 0x1c]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
pop edi
pop esi
mov eax, dword [ebp + 0x10]
push eax
lea eax, [ebp - 0x1c]
push eax
fld qword [edi + 0x10]
call fcn.00402ca4
inc eax
push eax
fld qword [edi + 0x10]
call fcn.00402ca4
xor edx, edx
pop ecx
call fcn.00406a1c
push esi
push edi
lea edi, [esi + 0x60]
lea esi, [ebp - 0x1c]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
pop edi
pop esi
jmp 0x4caa26
mov eax, dword [ebp + 0x10]
push eax
lea eax, [ebp - 0x1c]
push eax
fld qword [edi + 0x18]
call fcn.00402ca4
mov edx, eax
mov ecx, dword [ebp + 0x14]
xor eax, eax
call fcn.00406a1c
push esi
push edi
lea edi, [esi + 0x70]
lea esi, [ebp - 0x1c]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
pop edi
pop esi
fld qword [edi + 0x18]
call fcn.00402ca4
inc eax
push eax
lea eax, [ebp - 0x1c]
push eax
fld qword [edi + 0x18]
call fcn.00402ca4
mov edx, eax
mov ecx, dword [ebp + 0x14]
xor eax, eax
call fcn.00406a1c
push esi
push edi
lea edi, [esi + 0x60]
lea esi, [ebp - 0x1c]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
pop edi
pop esi
jmp 0x4caa26
fld qword [edi + 0x18]
call fcn.00402ca4
push eax
lea eax, [ebp - 0x1c]
push eax
mov ecx, dword [ebp + 0x14]
xor edx, edx
xor eax, eax
call fcn.00406a1c
push esi
push edi
lea edi, [esi + 0x70]
lea esi, [ebp - 0x1c]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
pop edi
pop esi
fld qword [edi + 0x18]
call fcn.00402ca4
inc eax
push eax
lea eax, [ebp - 0x1c]
push eax
fld qword [edi + 0x18]
call fcn.00402ca4
mov edx, eax
mov ecx, dword [ebp + 0x14]
xor eax, eax
call fcn.00406a1c
push esi
push edi
lea edi, [esi + 0x60]
lea esi, [ebp - 0x1c]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
pop edi
pop esi
push esi
push 0x4c43a0
mov eax, esi
call fcn.0041e364
mov edx, 1
mov eax, ebx
call fcn.00429b30
push eax
call sub.KERNEL32.DLL_Sleep
call sub.KERNEL32.DLL_GetTickCount
sub eax, dword [0x4e03f0]
cdq
xor eax, edx
sub eax, edx
cmp ebx, eax
jle 0x4caa62
cmp byte [0x4e03e8], 0
je 0x4caa33
call sub.KERNEL32.DLL_GetTickCount
mov dword [0x4e03f0], eax
mov eax, edi
call fcn.004c3a6c
test al, al
je 0x4caa84
cmp byte [0x4e03e8], 0
je 0x4ca86f
mov eax, edi
call fcn.00403a48
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0x10