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

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x70
push esi
mov esi, ecx
call dword [sym.imp.KERNEL32.dll_GetTickCount]
mov ecx, dword [esi + 0x58]
cmp eax, ecx
mov dword [esi + 0x5c], eax
jl 0x45697c
mov edx, dword [esi + 0x50]
push ebx
push edi
lea edi, [edx + ecx]
xor ebx, ebx
cmp eax, edi
jl 0x45690a
add edx, ecx
add edx, dword [esi + 0x54]
lea ecx, [esi + 4]
cmp eax, edx
jge 0x4568f1
mov edi, dword [esi + 0x60]
call fcn.0045f0be
mov ecx, eax
lea eax, [edi + 1]
cdq
idiv ecx
push edi
mov ecx, esi
mov ebx, edx
call fcn.004566af
push ebx
mov ecx, esi
mov dword [ebp - 4], eax
call fcn.004566af
xor ebx, ebx
mov dword [ebp - 8], eax
cmp dword [ebp - 4], ebx
je 0x45697a
cmp eax, ebx
je 0x45697a
mov eax, dword [esi + 0x5c]
sub eax, dword [esi + 0x50]
push ecx
sub eax, dword [esi + 0x58]
push ecx
mov dword [ebp + 0xc], eax
fild dword [ebp + 0xc]
fidiv dword [esi + 0x54]
fld1
fsub st(1), st(0)
fld st(1)
fmulp st(2)
fsubrp st(1)
fstp qword [esp]
call int.0047b404
mov edi, dword [esi + 0x48]
mov dword [ebp + 0xc], edi
fimul dword [ebp + 0xc]
pop ecx
pop ecx
call fcn.0047b080
mov dword [ebp + 0xc], eax
mov eax, dword [esi + 0x38]
add edi, eax
mov dword [ebp - 0x28], eax
mov eax, dword [esi + 0x44]
mov edx, edi
mov dword [ebp - 0x40], edi
mov dword [ebp - 0x1c], eax
mov dword [ebp - 0x3c], eax
xor eax, eax
mov dword [ebp - 0x58], ebx
lea edi, [ebp - 0x54]
stosd dword es:[edi], eax
stosd dword es:[edi], eax
sub edx, dword [ebp + 0xc]
stosd dword es:[edi], eax
mov ecx, dword [esi + 0x3c]
xor eax, eax
mov dword [ebp - 0x70], ebx
lea edi, [ebp - 0x6c]
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
mov edi, dword [sym.imp.GDI32.dll_GetObjectW]
lea eax, [ebp - 0x70]
push eax
push 0x18
push dword [ebp - 4]
mov dword [ebp - 0x24], ecx
mov dword [ebp - 0x20], edx
mov dword [ebp - 0x48], edx
mov dword [ebp - 0x44], ecx
call edi
mov eax, dword [esi + 0x38]
add eax, dword [ebp + 0xc]
mov dword [ebp - 0x14], ebx
mov dword [ebp - 0x18], eax
mov eax, dword [ebp - 0x6c]
mov dword [ebp - 0x10], eax
mov eax, dword [ebp - 0x68]
mov dword [ebp - 0xc], eax
lea eax, [ebp - 0x70]
push eax
push 0x18
push dword [ebp - 8]
call edi
mov eax, dword [esi + 0x38]
push ebx
mov dword [ebp - 0x38], eax
mov eax, dword [ebp + 0xc]
push ebx
mov dword [ebp - 0x30], eax
mov eax, dword [ebp - 0x68]
push ebx
mov dword [ebp - 0x34], ebx
mov dword [ebp - 0x2c], eax
push ebx
mov esi, 0xff
push esi
push 1
lea eax, [ebp - 0x58]
push eax
lea eax, [ebp - 0x18]
push eax
push dword [ebp + 0x10]
lea eax, [ebp - 0x28]
push eax
push dword [ebp - 4]
push dword [ebp + 8]
call fcn.00431c9e
push ebx
push ebx
push ebx
push ebx
push esi
push 1
lea eax, [ebp - 0x58]
push eax
lea eax, [ebp - 0x38]
push eax
push dword [ebp + 0x10]
lea eax, [ebp - 0x48]
push eax
push dword [ebp - 8]
push dword [ebp + 8]
call fcn.00431c9e
add esp, 0x60
jmp 0x45697a
inc dword [esi + 0x60]
call fcn.0045f0be
cmp dword [esi + 0x60], eax
jl 0x456901
mov dword [esi + 0x60], ebx
call dword [sym.imp.KERNEL32.dll_GetTickCount]
mov dword [esi + 0x58], eax
push dword [esi + 0x60]
mov dword [ebp - 0x70], ebx
xor eax, eax
lea edi, [ebp - 0x6c]
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
mov ecx, esi
stosd dword es:[edi], eax
call fcn.004566af
mov esi, eax
cmp esi, ebx
je 0x45697a
lea eax, [ebp - 0x70]
push eax
push 0x18
push esi
call dword [sym.imp.GDI32.dll_GetObjectW]
test eax, eax
je 0x45697a
mov eax, dword [ebp - 0x6c]
mov dword [ebp - 0x40], eax
mov eax, dword [ebp - 0x68]
push ebx
mov dword [ebp - 0x3c], eax
push ebx
xor eax, eax
push ebx
mov dword [ebp - 0x58], ebx
lea edi, [ebp - 0x54]
stosd dword es:[edi], eax
push ebx
stosd dword es:[edi], eax
push 0xff
push 1
stosd dword es:[edi], eax
lea eax, [ebp - 0x58]
push eax
lea eax, [ebp - 0x48]
push eax
push dword [ebp + 0x10]
mov dword [ebp - 0x48], ebx
push dword [ebp + 0xc]
mov dword [ebp - 0x44], ebx
push esi
push dword [ebp + 8]
call fcn.00431c9e
add esp, 0x30
pop edi
pop ebx
pop esi
leave
ret 0xc