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

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffea8
push ebx
mov edx, dword [ebp + 8]
mov eax, dword [ebp + 0x18]
mov ecx, dword [ebp + 8]
add eax, dword [edx + 8]
dec eax
cdq
idiv dword [ecx + 8]
mov edx, dword [ebp + 8]
mov ecx, eax
mov eax, dword [ebp + 0x1c]
add eax, dword [edx + 8]
mov edx, dword [ebp + 8]
dec eax
mov ebx, dword [edx + 8]
cdq
idiv ebx
imul ecx, eax
push ecx
mov eax, dword [ebp + 8]
push eax
call fcn.00422530
add esp, 8
call sub.KERNEL32.dll_GetTickCount
mov dword [ebp - 0x50], eax
mov eax, dword [ebp + 0x18]
mov edx, dword [ebp + 8]
add eax, dword [edx + 8]
dec eax
mov ecx, dword [ebp + 8]
cdq
idiv dword [ecx + 8]
cmp eax, 0xc8
jle 0x42300b
mov eax, 0xc8
jmp 0x42301c
mov eax, dword [ebp + 0x18]
mov edx, dword [ebp + 8]
add eax, dword [edx + 8]
dec eax
mov ecx, dword [ebp + 8]
cdq
idiv dword [ecx + 8]
mov dword [ebp - 0x20], eax
mov ecx, dword [ebp + 8]
mov eax, dword [ebp + 0x1c]
mov edx, dword [ebp + 8]
add eax, dword [ecx + 8]
dec eax
mov ecx, dword [edx + 8]
cdq
idiv ecx
cmp eax, 0xc8
jle 0x423040
mov eax, 0xc8
jmp 0x423051
mov eax, dword [ebp + 0x1c]
mov edx, dword [ebp + 8]
add eax, dword [edx + 8]
dec eax
mov ecx, dword [ebp + 8]
cdq
idiv dword [ecx + 8]
mov dword [ebp - 0x24], eax
mov eax, dword [ebp - 0x20]
imul dword [ebp - 0x24]
mov dword [ebp - 0x14], eax
mov ecx, dword [ebp + 8]
mov eax, dword [ecx + 8]
imul dword [ebp - 0x20]
mov dword [ebp - 0x18], eax
mov edx, dword [ebp + 8]
mov ecx, dword [edx + 8]
imul ecx, dword [ebp - 0x24]
mov dword [ebp - 0x1c], ecx
mov eax, dword [ebp - 0x14]
shl eax, 2
push eax
call fcn.0040b3fc
pop ecx
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0
jne 0x423096
mov eax, 0xe
jmp 0x42329d
xor edx, edx
mov dword [ebp - 8], edx
mov ecx, dword [ebp - 4]
mov eax, ecx
mov dword [ebp - 0x58], eax
mov edx, dword [ebp - 8]
cmp edx, dword [ebp - 0x14]
jge 0x4230c2
mov ecx, dword [ebp - 0x58]
mov eax, dword [ebp - 8]
mov dword [ecx], eax
inc dword [ebp - 8]
add dword [ebp - 0x58], 4
mov edx, dword [ebp - 8]
cmp edx, dword [ebp - 0x14]
jl 0x4230ab
mov ecx, dword [ebp + 0x10]
add ecx, dword [ebp + 0x18]
mov dword [ebp - 0x28], ecx
mov eax, dword [ebp + 0x14]
add eax, dword [ebp + 0x1c]
mov dword [ebp - 0x2c], eax
mov edx, dword [ebp - 0x2c]
mov dword [ebp - 0x3c], edx
mov ecx, dword [ebp - 4]
mov eax, dword [ebp - 0x14]
lea edx, [ecx + eax*4]
mov dword [ebp - 0x58], edx
jmp 0x42322d
mov ecx, dword [ebp - 0x3c]
cmp ecx, dword [ebp - 0x2c]
jl 0x42318a
cmp dword [ebp - 0x14], 0
jg 0x42310e
mov eax, dword [ebp - 4]
push eax
call fcn.0040b2e8
pop ecx
xor eax, eax
jmp 0x42329d
cmp dword [ebp - 0x14], 0
je 0x42311f
call fcn.00408e48
cdq
idiv dword [ebp - 0x14]
jmp 0x423121
xor edx, edx
mov dword [ebp - 0xc], edx
mov eax, dword [ebp - 4]
mov ecx, dword [ebp - 0xc]
mov eax, dword [eax + ecx*4]
mov dword [ebp - 0x10], eax
dec dword [ebp - 0x14]
add dword [ebp - 0x58], 0xfffffffc
mov eax, dword [ebp - 0x58]
mov edx, dword [ebp - 4]
mov ecx, dword [ebp - 0xc]
mov eax, dword [eax]
mov dword [edx + ecx*4], eax
mov eax, dword [ebp - 0x10]
mov ecx, dword [ebp + 8]
cdq
idiv dword [ebp - 0x20]
imul edx, dword [ecx + 8]
mov dword [ebp - 0x30], edx
mov eax, dword [ebp - 0x10]
mov ecx, dword [ebp + 8]
cdq
idiv dword [ebp - 0x20]
imul dword [ecx + 8]
mov dword [ebp - 0x34], eax
mov eax, dword [ebp + 0x10]
add eax, dword [ebp - 0x30]
mov dword [ebp - 0x38], eax
mov edx, dword [ebp + 0x24]
add edx, dword [ebp - 0x30]
mov dword [ebp - 0x40], edx
mov ecx, dword [ebp + 0x14]
add ecx, dword [ebp - 0x34]
mov dword [ebp - 0x3c], ecx
mov eax, dword [ebp + 0x28]
add eax, dword [ebp - 0x34]
mov dword [ebp - 0x44], eax
mov edx, dword [ebp - 0x28]
mov ecx, dword [ebp + 8]
sub edx, dword [ebp - 0x38]
cmp edx, dword [ecx + 8]
jle 0x4231a0
mov eax, dword [ebp + 8]
mov edx, dword [eax + 8]
jmp 0x4231a6
mov edx, dword [ebp - 0x28]
sub edx, dword [ebp - 0x38]
mov dword [ebp - 0x48], edx
mov eax, dword [ebp - 0x2c]
mov ecx, dword [ebp + 8]
sub eax, dword [ebp - 0x3c]
cmp eax, dword [ecx + 8]
jle 0x4231bf
mov eax, dword [ebp + 8]
mov edx, dword [eax + 8]
jmp 0x4231c5
mov edx, dword [ebp - 0x2c]
sub edx, dword [ebp - 0x3c]
mov dword [ebp - 0x4c], edx
mov eax, dword [ebp + 0x2c]
push eax
mov ecx, dword [ebp - 0x44]
push ecx
mov eax, dword [ebp - 0x40]
push eax
mov edx, dword [ebp + 0x20]
push edx
mov ecx, dword [ebp - 0x4c]
push ecx
mov eax, dword [ebp - 0x48]
push eax
mov edx, dword [ebp - 0x3c]
push edx
mov ecx, dword [ebp - 0x38]
push ecx
mov eax, dword [ebp + 0xc]
push eax
call sub.GDI32.dll_BitBlt
mov edx, dword [ebp - 0x18]
add dword [ebp - 0x38], edx
mov ecx, dword [ebp - 0x18]
add dword [ebp - 0x40], ecx
mov eax, dword [ebp - 0x38]
cmp eax, dword [ebp - 0x28]
jl 0x423223
mov edx, dword [ebp + 0x10]
add edx, dword [ebp - 0x30]
mov dword [ebp - 0x38], edx
mov ecx, dword [ebp + 0x24]
add ecx, dword [ebp - 0x30]
mov dword [ebp - 0x40], ecx
mov eax, dword [ebp - 0x1c]
add dword [ebp - 0x3c], eax
mov edx, dword [ebp - 0x1c]
add dword [ebp - 0x44], edx
mov ecx, dword [ebp + 8]
push ecx
call fcn.00422598
pop ecx
push 0
mov eax, dword [ebp + 8]
mov edx, dword [eax + 0x14]
push edx
call sub.KERNEL32.dll_WaitForSingleObject
test eax, eax
je 0x423255
cmp dword [ebp - 0x14], 0
jg 0x4230eb
mov ecx, dword [ebp - 0x3c]
cmp ecx, dword [ebp - 0x2c]
jl 0x4230eb
mov eax, dword [ebp - 4]
push eax
call fcn.0040b2e8
pop ecx
call sub.KERNEL32.dll_GetTickCount
mov dword [ebp - 0x54], eax
lea ecx, [ebp - 0x158]
mov edx, dword [ebp - 0x54]
sub edx, dword [ebp - 0x50]
push edx
push 0x450780
push ecx
call fcn.00405ce0
add esp, 0xc
push 0
mov eax, dword [ebp + 8]
mov edx, dword [eax + 0x14]
push edx
call sub.KERNEL32.dll_WaitForSingleObject
test eax, eax
jne 0x42329b
mov eax, 0x16
jmp 0x42329d
xor eax, eax
pop ebx
mov esp, ebp
pop ebp
ret