Function at 0x470570
Capabilities:
Check for time delay via queryperformancecounter

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffb8
push ebx
xor edx, edx
mov dword [ebp - 0x10], edx
mov dword [ebp - 0x28], edx
mov dword [ebp - 4], eax
xor eax, eax
push ebp
push 0x470890
push dword fs:[eax]
mov dword fs:[eax], esp
xor eax, eax
push ebp
push 0x47085f
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [0x4d3f24]
cmp dword [eax], 2
jne 0x4705ae
mov byte [ebp - 7], 2
jmp 0x4705b2
mov byte [ebp - 7], 3
push 0
call sub.user32.dll_GetDC
mov dword [ebp - 0x14], eax
mov dl, 1
mov eax, dword [0x4668f4]
call fcn.0046c564
mov dword [ebp - 0x24], eax
push 8
mov eax, dword [ebp - 0x14]
push eax
call sub.gdi32.dll_GetDeviceCaps
mov word [ebp - 0x16], ax
push 0xa
mov eax, dword [ebp - 0x14]
push eax
call sub.gdi32.dll_GetDeviceCaps
test eax, eax
jns 0x4705ec
add eax, 7
sar eax, 3
mov word [ebp - 0x18], ax
movzx edx, word [ebp - 0x16]
mov eax, dword [ebp - 0x24]
mov ecx, dword [eax]
call dword [ecx + 0x40]
movzx edx, word [ebp - 0x18]
mov eax, dword [ebp - 0x24]
mov ecx, dword [eax]
call dword [ecx + 0x34]
mov eax, dword [ebp - 0x24]
mov byte [eax + 0x30], 0
push 4
lea eax, [ebp - 0x10]
mov ecx, 1
mov edx, dword [0x470510]
call fcn.00406528
add esp, 4
mov byte [ebp - 5], 0
push 0xc8
call sub.kernel32.dll_Sleep_1
mov eax, dword [ebp - 0x24]
call fcn.0046cb34
call fcn.004684a8
mov al, byte [ebp - 7]
cmp al, 5
ja 0x47079b
mov byte [ebp - 6], al
mov al, byte [ebp - 6]
call fcn.0046ff94
mov byte [ebp - 8], al
mov dl, byte [ebp - 8]
mov eax, dword [ebp - 0x24]
call fcn.0046dae4
lea eax, [ebp - 0x30]
push eax
call sub.kernel32.dll_QueryPerformanceCounter_1
push 0xcc0020
push 0
push 0
mov eax, dword [ebp - 0x14]
push eax
movzx eax, word [ebp - 0x18]
push eax
movzx eax, word [ebp - 0x16]
push eax
push 0
push 0
mov eax, dword [ebp - 0x24]
call fcn.0046cb34
call fcn.0046876c
push eax
call sub.gdi32.dll_BitBlt
lea eax, [ebp - 0x38]
push eax
call sub.kernel32.dll_QueryPerformanceCounter_1
mov al, byte [ebp - 8]
call fcn.0046fe98
and eax, 0xff
movzx edx, word [ebp - 0x16]
imul edx
add eax, 0x1f
and eax, 0xffffffe0
test eax, eax
jns 0x4706c9
add eax, 7
sar eax, 3
mov word [ebp - 0x1a], ax
movzx eax, word [ebp - 0x18]
movzx edx, word [ebp - 0x1a]
imul edx
mov dword [ebp - 0x20], eax
xor edx, edx
mov eax, dword [ebp - 0x24]
call fcn.0046cca4
movzx edx, word [ebp - 0x1a]
add eax, edx
sub eax, dword [ebp - 0x20]
mov dword [ebp - 0xc], eax
push 1
call sub.kernel32.dll_Sleep_1
lea eax, [ebp - 0x40]
push eax
call sub.kernel32.dll_QueryPerformanceCounter_1
push 1
push 1
fild dword [ebp - 0x20]
fdiv dword [0x47089c]
call fcn.00403034
mov edx, eax
lea ecx, [ebp - 0x28]
mov eax, dword [ebp - 0xc]
call fcn.0043b82c
lea eax, [ebp - 0x48]
push eax
call sub.kernel32.dll_QueryPerformanceCounter_1
mov al, byte [ebp - 6]
call fcn.0046ff94
xor edx, edx
mov dl, byte [ebp - 5]
mov ecx, edx
shl edx, 4
add edx, ecx
mov ecx, dword [ebp - 0x10]
mov byte [ecx + edx], al
mov eax, dword [ebp - 0x38]
mov edx, dword [ebp - 0x34]
sub eax, dword [ebp - 0x30]
sbb edx, dword [ebp - 0x2c]
xor ecx, ecx
mov cl, byte [ebp - 5]
mov ebx, ecx
shl ecx, 4
add ecx, ebx
mov ebx, dword [ebp - 0x10]
mov dword [ebx + ecx + 1], eax
mov dword [ebx + ecx + 5], edx
mov eax, dword [ebp - 0x48]
mov edx, dword [ebp - 0x44]
sub eax, dword [ebp - 0x40]
sbb edx, dword [ebp - 0x3c]
xor ecx, ecx
mov cl, byte [ebp - 5]
mov ebx, ecx
shl ecx, 4
add ecx, ebx
mov ebx, dword [ebp - 0x10]
mov dword [ebx + ecx + 9], eax
mov dword [ebx + ecx + 0xd], edx
inc byte [ebp - 5]
inc byte [ebp - 6]
cmp byte [ebp - 6], 6
jne 0x470653
mov eax, dword [ebp - 0x24]
call fcn.0046cb34
call fcn.00468664
mov eax, dword [ebp - 0x10]
call fcn.00406354
mov edx, eax
mov eax, dword [ebp - 0x10]
call fcn.0046ffe8
mov eax, dword [ebp - 0x10]
mov al, byte [eax]
call fcn.0046fe98
mov edx, dword [ebp - 4]
mov byte [edx + 1], al
mov byte [ebp - 5], 0
xor eax, eax
mov al, byte [ebp - 5]
mov edx, eax
shl eax, 4
add eax, edx
mov edx, dword [ebp - 0x10]
mov al, byte [edx + eax]
add al, 0xfb
sub al, 3
jae 0x470805
xor eax, eax
mov al, byte [ebp - 5]
mov edx, eax
shl eax, 4
add eax, edx
mov edx, dword [ebp - 0x10]
mov al, byte [edx + eax]
call fcn.0046fe98
mov edx, dword [ebp - 4]
mov byte [edx + 2], al
jmp 0x47080e
inc byte [ebp - 5]
cmp byte [ebp - 5], 4
jne 0x4707ce
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x470866
push 0
lea eax, [ebp - 0x10]
mov ecx, 1
mov edx, dword [0x470510]
call fcn.00406528
add esp, 4
push 0
lea eax, [ebp - 0x28]
mov ecx, 1
mov edx, dword [0x470540]
call fcn.00406528
add esp, 4
mov eax, dword [ebp - 0x14]
push eax
push 0
call sub.user32.dll_ReleaseDC
mov eax, dword [ebp - 0x24]
call fcn.00404214
ret