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

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffff88
push ebx
push esi
push edi
mov byte [ebp - 9], cl
mov dword [ebp - 8], edx
mov dword [ebp - 4], eax
lea esi, [ebp - 4]
mov eax, dword [esi]
mov edx, dword [eax]
call dword [edx + 0x10c]
test al, al
je 0x651845
mov eax, dword [esi]
cmp byte [eax + 0x420], 0
je 0x651845
mov byte [ebp - 0x3d], 0
mov eax, dword [esi]
mov eax, dword [eax + 0x5d4]
mov eax, dword [eax + 8]
dec eax
test eax, eax
jl 0x6517ae
inc eax
mov dword [ebp - 0x48], eax
mov dword [ebp - 0x10], 0
mov eax, dword [esi]
mov eax, dword [eax + 0x5d4]
mov edx, dword [ebp - 0x10]
call fcn.004120b8
mov dword [ebp - 0x14], eax
mov ebx, dword [ebp - 0x14]
cmp byte [ebx + 0x34], 0
je 0x6517a2
cmp byte [ebx + 0x14], 0
je 0x650f87
mov byte [ebp - 0x3d], 1
cmp byte [ebx + 0x14], 0
je 0x650fec
mov eax, dword [esi]
cmp byte [eax + 0x518], 0
jne 0x650fec
mov eax, dword [esi]
cmp byte [eax + 0x516], 0
jne 0x650fec
mov eax, dword [esi]
cmp byte [eax + 0x519], 0
jne 0x650fec
mov eax, dword [ebp - 8]
mov edx, dword [0x458d14]
call fcn.00403308
test al, al
je 0x650fec
mov eax, dword [esi]
cmp byte [eax + 0x51a], 0
jne 0x650fec
mov eax, dword [esi]
cmp dword [eax + 0x51c], 0
jge 0x650fec
inc dword [ebx + 0x18]
cmp dword [ebx + 0x18], 0xa
jl 0x650fe4
xor eax, eax
mov dword [ebx + 0x18], eax
mov eax, dword [esi]
inc dword [eax + 0x27c]
lea edx, [ebp - 0x5c]
mov eax, dword [ebx + 0x20]
call fcn.0041d540
cmp dword [ebp - 0x5c], 0
jne 0x65100f
cmp dword [ebp - 0x58], 0
jne 0x65100f
cmp dword [ebp - 0x54], 0
jne 0x65100f
cmp dword [ebp - 0x50], 0
je 0x651013
xor eax, eax
jmp 0x651015
mov al, 1
test al, al
jne 0x6517a2
mov eax, dword [esi]
cmp dword [eax + 0x4c0], 0
jne 0x6517a2
mov eax, dword [ebx + 0x20]
cmp dword [eax + 0x50], 0
je 0x65103f
cmp byte [ebp - 9], 0
jne 0x6517a2
mov eax, dword [esi]
cmp byte [eax + 0x5c2], 0
jne 0x6517a2
cmp byte [ebx + 0x35], 0
je 0x651296
mov edx, dword [ebx + 4]
mov eax, dword [ebx]
call fcn.00654c94
test al, al
je 0x651296
mov eax, dword [esi]
cmp byte [eax + 0x518], 0
jne 0x651296
mov eax, dword [esi]
cmp dword [eax + 0x51c], 0xffffffff
jne 0x651296
push 1
push 1
mov ecx, dword [ebx + 0x20]
mov dl, 1
mov eax, dword [0x65b9ac]
call fcn.0065c194
mov dword [ebp - 0x44], eax
mov eax, dword [esi]
mov dl, byte [eax + 0x59c]
mov eax, dword [ebp - 0x44]
mov eax, dword [eax + 0x1c]
call fcn.0065d21c
mov eax, dword [esi]
mov edx, dword [eax + 0x598]
mov eax, dword [ebp - 0x44]
mov eax, dword [eax + 0x1c]
call fcn.0065d1dc
mov eax, dword [esi]
mov edx, dword [eax + 0x594]
mov eax, dword [ebp - 0x44]
mov eax, dword [eax + 0x10]
call fcn.0065cea4
mov dword [ebp - 0x30], 0x989680
mov eax, dword [ebp - 0x30]
mov dword [ebp - 0x34], eax
mov dword [ebp - 0x3c], 0xfff0bdc0
mov eax, dword [ebp - 0x3c]
mov dword [ebp - 0x38], eax
mov eax, dword [ebx + 4]
dec eax
test eax, eax
jl 0x6511a7
inc eax
mov dword [ebp - 0x4c], eax
xor edi, edi
mov eax, dword [ebx]
cmp dword [eax + edi*8], 0xfffff
je 0x65119d
mov eax, dword [esi]
call fcn.00655478
mov edx, dword [ebx]
mov edx, dword [edx + edi*8]
call fcn.006562f8
mov dword [ebp - 0x18], eax
mov eax, dword [esi]
call fcn.00655478
mov edx, dword [ebx]
mov edx, dword [edx + edi*8 + 4]
call fcn.00656378
mov dword [ebp - 0x1c], eax
push ebp
mov eax, dword [esi]
mov eax, dword [eax + 0x5a0]
mov edx, eax
add edx, dword [ebp - 0x18]
push edx
mov edx, eax
add edx, dword [ebp - 0x1c]
push edx
mov edx, dword [ebp - 0x1c]
sub edx, eax
push edx
mov edx, dword [ebp - 0x18]
sub edx, eax
mov eax, dword [ebp - 0x44]
pop ecx
call fcn.00650ec8
pop ecx
mov eax, dword [ebp - 0x18]
cmp eax, dword [ebp - 0x30]
jge 0x651173
mov eax, dword [ebp - 0x18]
mov dword [ebp - 0x30], eax
mov eax, dword [ebp - 0x1c]
cmp eax, dword [ebp - 0x34]
jge 0x651181
mov eax, dword [ebp - 0x1c]
mov dword [ebp - 0x34], eax
mov eax, dword [ebp - 0x18]
cmp eax, dword [ebp - 0x38]
jle 0x65118f
mov eax, dword [ebp - 0x18]
mov dword [ebp - 0x38], eax
mov eax, dword [ebp - 0x1c]
cmp eax, dword [ebp - 0x3c]
jle 0x65119d
mov eax, dword [ebp - 0x1c]
mov dword [ebp - 0x3c], eax
inc edi
dec dword [ebp - 0x4c]
jne 0x651103
mov eax, dword [esi]
cmp byte [eax + 0x5a5], 0
je 0x651276
mov eax, dword [ebp - 0x38]
add eax, dword [ebp - 0x30]
sar eax, 1
jns 0x6511c3
adc eax, 0
mov dword [ebp - 0x18], eax
mov eax, dword [ebp - 0x3c]
add eax, dword [ebp - 0x34]
sar eax, 1
jns 0x6511d3
adc eax, 0
mov dword [ebp - 0x1c], eax
push ebp
mov eax, dword [esi]
mov eax, dword [eax + 0x5a0]
mov edx, eax
add edx, dword [ebp - 0x18]
push edx
mov edx, eax
add edx, dword [ebp - 0x34]
push edx
mov ecx, dword [ebp - 0x34]
sub ecx, eax
mov edx, dword [ebp - 0x18]
sub edx, eax
mov eax, dword [ebp - 0x44]
call fcn.00650ec8
pop ecx
push ebp
mov eax, dword [esi]
mov eax, dword [eax + 0x5a0]
mov edx, eax
add edx, dword [ebp - 0x30]
push edx
mov edx, eax
add edx, dword [ebp - 0x1c]
push edx
mov ecx, dword [ebp - 0x1c]
sub ecx, eax
mov edx, dword [ebp - 0x30]
sub edx, eax
mov eax, dword [ebp - 0x44]
call fcn.00650ec8
pop ecx
push ebp
mov eax, dword [esi]
mov eax, dword [eax + 0x5a0]
mov edx, eax
add edx, dword [ebp - 0x38]
push edx
mov edx, eax
add edx, dword [ebp - 0x1c]
push edx
mov ecx, dword [ebp - 0x1c]
sub ecx, eax
mov edx, dword [ebp - 0x38]
sub edx, eax
mov eax, dword [ebp - 0x44]
call fcn.00650ec8
pop ecx
push ebp
mov eax, dword [esi]
mov eax, dword [eax + 0x5a0]
mov edx, eax
add edx, dword [ebp - 0x18]
push edx
mov edx, eax
add edx, dword [ebp - 0x3c]
push edx
mov ecx, dword [ebp - 0x3c]
sub ecx, eax
mov edx, dword [ebp - 0x18]
sub edx, eax
mov eax, dword [ebp - 0x44]
call fcn.00650ec8
pop ecx
mov eax, dword [ebp - 0x44]
call fcn.00403170
mov eax, dword [ebp - 0x38]
push eax
mov eax, dword [ebp - 0x3c]
push eax
mov ecx, dword [ebp - 0x34]
mov edx, dword [ebp - 0x30]
mov eax, dword [esi]
mov edi, dword [eax]
call dword [edi + 0x140]
mov eax, dword [esi]
mov eax, dword [eax + 0x550]
cmp eax, dword [ebp - 0x14]
jne 0x6513ff
mov eax, dword [esi]
mov eax, dword [eax + 0x580]
call fcn.006822c8
test al, al
jne 0x6513ff
mov eax, dword [esi]
cmp byte [eax + 0x51a], 0
jne 0x6513ff
mov eax, dword [esi]
cmp byte [eax + 0x518], 0
jne 0x6513ff
mov eax, dword [esi]
cmp byte [eax + 0x519], 0
jne 0x6513ff
mov eax, dword [esi]
cmp byte [eax + 0x516], 0
jne 0x6513ff
mov eax, dword [esi]
cmp byte [eax + 0x2ba], 0
jne 0x6513ff
mov eax, dword [esi]
cmp byte [eax + 0x2a0], 0
je 0x651321
mov eax, dword [esi]
cmp dword [eax + 0x474], 0
jne 0x6517a2
call sub.kernel32.dll_GetTickCount
mov edi, eax
mov eax, dword [esi]
call fcn.00655478
add eax, 0x78
mov edx, dword [eax + 4]
push edx
mov edx, dword [eax + 8]
push edx
mov edx, dword [eax + 0xc]
push edx
mov edx, dword [eax + 0x10]
push edx
mov edx, dword [eax + 0x14]
push edx
mov edx, dword [eax + 0x18]
push edx
mov edx, dword [eax + 0x1c]
push edx
mov edx, dword [esi]
mov edx, dword [edx + 0x27c]
push edx
mov edx, dword [esi]
mov edx, dword [edx + 0x58c]
push edx
mov edx, dword [esi]
mov edx, dword [edx + 0x590]
push edx
mov edx, dword [esi]
add edx, 0x2f4
push edx
mov ecx, dword [eax]
mov eax, dword [esi]
mov eax, dword [eax + 0x580]
mov edx, dword [ebx + 0x20]
call fcn.00680cec
call sub.kernel32.dll_GetTickCount
sub eax, edi
mov edi, eax
mov eax, dword [esi]
cmp dword [eax + 0x308], 0
jge 0x6517a2
mov eax, dword [esi]
cmp dword [eax + 4], 0
jne 0x6513b3
mov eax, dword [esi]
cmp dword [eax + 0x164], 0
je 0x6517a2
mov eax, dword [esi]
call fcn.0064b99c
imul eax, edi, 0x64
mov dword [ebp - 0x64], eax
xor eax, eax
mov dword [ebp - 0x60], eax
fild qword [ebp - 0x64]
mov eax, dword [esi]
mov eax, dword [eax + 0x308]
neg eax
mov dword [ebp - 0x68], eax
fild dword [ebp - 0x68]
fdivp st(1)
call fcn.00402c40
mov edx, eax
mov eax, 0xd2
call fcn.006a0774
mov edx, eax
mov eax, dword [esi]
mov eax, dword [eax + 0x5d8]
call fcn.0045b28c
jmp 0x6517a2
mov eax, dword [ebx + 0x18]
mov dword [ebx + 0x1c], eax
mov eax, dword [ebx + 0x20]
mov eax, dword [eax + 0x10]
mov dl, 4
call fcn.0041c5dc
mov edi, dword [ebx + 4]
test edi, edi
jle 0x6517a2
mov edx, edi
mov eax, dword [ebx]
call fcn.00654c94
test al, al
je 0x6515b4
mov eax, dword [esi]
call fcn.00655478
mov edx, dword [ebx]
mov edx, dword [edx]
call fcn.006562f8
mov dword [ebp - 0x18], eax
mov eax, dword [esi]
call fcn.00655478
mov edx, dword [ebx]
mov edx, dword [edx + 4]
call fcn.00656378
mov dword [ebp - 0x1c], eax
mov eax, dword [esi]
call fcn.00655478
mov edx, dword [ebx]
mov edx, dword [edx + 0x10]
call fcn.006562f8
dec eax
mov dword [ebp - 0x20], eax
mov eax, dword [esi]
call fcn.00655478
mov edx, dword [ebx]
mov edx, dword [edx + 0x14]
call fcn.00656378
dec eax
mov dword [ebp - 0x24], eax
mov eax, dword [ebp - 0x24]
push eax
lea eax, [ebp - 0x78]
push eax
mov ecx, dword [ebp - 0x20]
mov edx, dword [ebp - 0x1c]
mov eax, dword [ebp - 0x18]
call fcn.00411450
mov eax, dword [esi]
push esi
lea esi, [ebp - 0x78]
lea edi, [eax + 0x2f4]
mov ecx, 4
rep movsd dword es:[edi], dword [esi]
pop esi
mov edi, dword [ebp - 0x14]
push edi
push 0x650e34
mov eax, dword [ebp - 0x1c]
push eax
mov eax, dword [ebp - 0x20]
push eax
mov eax, dword [ebp - 0x1c]
push eax
mov eax, dword [ebp - 0x18]
push eax
call sub.gdi32.dll_LineDDA
mov eax, dword [ebx + 0x20]
push eax
mov eax, dword [ebp - 0x20]
push eax
mov eax, dword [ebp - 0x1c]
push eax
mov ecx, 1
mov edx, dword [ebp - 0x10]
mov eax, dword [esi]
call fcn.00650cd0
push edi
push 0x650e34
mov eax, dword [ebp - 0x24]
push eax
mov eax, dword [ebp - 0x20]
push eax
mov eax, dword [ebp - 0x1c]
push eax
mov eax, dword [ebp - 0x20]
push eax
call sub.gdi32.dll_LineDDA
mov eax, dword [ebx + 0x20]
push eax
mov eax, dword [ebp - 0x20]
push eax
mov eax, dword [ebp - 0x24]
push eax
mov ecx, 2
mov edx, dword [ebp - 0x10]
mov eax, dword [esi]
call fcn.00650cd0
push edi
push 0x650e34
mov eax, dword [ebp - 0x24]
push eax
mov eax, dword [ebp - 0x18]
push eax
mov eax, dword [ebp - 0x24]
push eax
mov eax, dword [ebp - 0x20]
push eax
call sub.gdi32.dll_LineDDA
mov eax, dword [ebx + 0x20]
push eax
mov eax, dword [ebp - 0x18]
push eax
mov eax, dword [ebp - 0x24]
push eax
mov ecx, 3
mov edx, dword [ebp - 0x10]
mov eax, dword [esi]
call fcn.00650cd0
push edi
push 0x650e34
mov eax, dword [ebp - 0x24]
push eax
mov eax, dword [ebp - 0x18]
push eax
mov eax, dword [ebp - 0x1c]
push eax
mov eax, dword [ebp - 0x18]
push eax
call sub.gdi32.dll_LineDDA
mov eax, dword [esi]
cmp byte [eax + 0x518], 0
jne 0x65157f
mov eax, dword [esi]
cmp byte [eax + 0x2ba], 0
je 0x651597
mov eax, dword [ebp - 0x20]
push eax
mov eax, dword [ebp - 0x24]
push eax
mov ecx, dword [ebp - 0x1c]
mov edx, dword [ebp - 0x18]
mov eax, dword [esi]
mov edi, dword [eax]
call dword [edi + 0x140]
mov eax, dword [ebx + 0x20]
push eax
mov eax, dword [ebp - 0x18]
push eax
mov eax, dword [ebp - 0x1c]
push eax
xor ecx, ecx
mov edx, dword [ebp - 0x10]
mov eax, dword [esi]
call fcn.00650cd0
jmp 0x6517a2
mov eax, dword [ebx]
mov edx, dword [eax]
mov dword [ebp - 0x2c], edx
mov edx, dword [eax + 4]
mov dword [ebp - 0x28], edx
mov edi, 1
jmp 0x6516ff
mov eax, dword [ebx]
cmp dword [eax + edi*8], 0xfffff
jne 0x651674
mov eax, dword [esi]
call fcn.00655478
mov edx, dword [ebx]
mov edx, dword [edx + edi*8 - 8]
call fcn.006562f8
mov dword [ebp - 0x18], eax
mov eax, dword [esi]
call fcn.00655478
mov edx, dword [ebx]
mov edx, dword [edx + edi*8 - 4]
call fcn.00656378
mov dword [ebp - 0x1c], eax
mov eax, dword [esi]
call fcn.00655478
mov edx, dword [ebp - 0x2c]
call fcn.006562f8
mov dword [ebp - 0x20], eax
mov eax, dword [esi]
call fcn.00655478
mov edx, dword [ebp - 0x28]
call fcn.00656378
mov dword [ebp - 0x24], eax
mov eax, dword [ebp - 0x14]
push eax
push 0x650e34
mov eax, dword [ebp - 0x24]
push eax
mov eax, dword [ebp - 0x20]
push eax
mov eax, dword [ebp - 0x1c]
push eax
mov eax, dword [ebp - 0x18]
push eax
call sub.gdi32.dll_LineDDA
mov eax, dword [ebx + 0x20]
push eax
mov eax, dword [ebp - 0x18]
push eax
mov eax, dword [ebp - 0x1c]
push eax
mov ecx, edi
dec ecx
mov edx, dword [ebp - 0x10]
mov eax, dword [esi]
call fcn.00650cd0
inc edi
mov eax, dword [ebx]
mov edx, dword [eax + edi*8]
mov dword [ebp - 0x2c], edx
mov edx, dword [eax + edi*8 + 4]
mov dword [ebp - 0x28], edx
jmp 0x6516fe
mov eax, dword [esi]
call fcn.00655478
mov edx, dword [ebx]
mov edx, dword [edx + edi*8 - 8]
call fcn.006562f8
mov dword [ebp - 0x18], eax
mov eax, dword [esi]
call fcn.00655478
mov edx, dword [ebx]
mov edx, dword [edx + edi*8 - 4]
call fcn.00656378
mov dword [ebp - 0x1c], eax
mov eax, dword [esi]
call fcn.00655478
mov edx, dword [ebx]
mov edx, dword [edx + edi*8]
call fcn.006562f8
mov dword [ebp - 0x20], eax
mov eax, dword [esi]
call fcn.00655478
mov edx, dword [ebx]
mov edx, dword [edx + edi*8 + 4]
call fcn.00656378
mov dword [ebp - 0x24], eax
mov eax, dword [ebp - 0x14]
push eax
push 0x650e34
mov eax, dword [ebp - 0x24]
push eax
mov eax, dword [ebp - 0x20]
push eax
mov eax, dword [ebp - 0x1c]
push eax
mov eax, dword [ebp - 0x18]
push eax
call sub.gdi32.dll_LineDDA
mov eax, dword [ebx + 0x20]
push eax
mov eax, dword [ebp - 0x18]
push eax
mov eax, dword [ebp - 0x1c]
push eax
mov ecx, edi
dec ecx
mov edx, dword [ebp - 0x10]
mov eax, dword [esi]
call fcn.00650cd0
inc edi
cmp edi, dword [ebx + 4]
jl 0x6515cb
mov eax, dword [esi]
cmp byte [eax + 0x516], 0
jne 0x6517a2
mov eax, dword [esi]
call fcn.00655478
mov edx, dword [ebx]
mov ecx, dword [ebx + 4]
mov edx, dword [edx + ecx*8 - 8]
call fcn.006562f8
mov dword [ebp - 0x18], eax
mov eax, dword [esi]
call fcn.00655478
mov edx, dword [ebx]
mov ecx, dword [ebx + 4]
mov edx, dword [edx + ecx*8 - 4]
call fcn.00656378
mov dword [ebp - 0x1c], eax
mov eax, dword [esi]
call fcn.00655478
mov edx, dword [ebp - 0x2c]
call fcn.006562f8
mov dword [ebp - 0x20], eax
mov eax, dword [esi]
call fcn.00655478
mov edx, dword [ebp - 0x28]
call fcn.00656378
mov dword [ebp - 0x24], eax
mov eax, dword [ebp - 0x14]
push eax
push 0x650e34
mov eax, dword [ebp - 0x24]
push eax
mov eax, dword [ebp - 0x20]
push eax
mov eax, dword [ebp - 0x1c]
push eax
mov eax, dword [ebp - 0x18]
push eax
call sub.gdi32.dll_LineDDA
mov eax, dword [ebx + 0x20]
push eax
mov eax, dword [ebp - 0x18]
push eax
mov eax, dword [ebp - 0x1c]
push eax
mov ecx, edi
dec ecx
mov edx, dword [ebp - 0x10]
mov eax, dword [esi]
call fcn.00650cd0
inc dword [ebp - 0x10]
dec dword [ebp - 0x48]
jne 0x650f5d
mov eax, dword [esi]
cmp dword [eax + 4], 0
jne 0x6517c1
mov eax, dword [esi]
cmp dword [eax + 0x164], 0
je 0x65180a
mov eax, dword [esi]
call fcn.0064b99c
mov eax, dword [esi]
cmp dword [eax + 0x470], 0
jne 0x6517f5
mov eax, dword [esi]
cmp dword [eax + 0x474], 0
jne 0x6517f5
cmp byte [ebp - 0x3d], 0
jne 0x6517f5
mov eax, dword [esi]
mov eax, dword [eax + 0x5d8]
xor edx, edx
call fcn.0045b27c
jmp 0x65180a
mov eax, dword [esi]
mov eax, dword [eax + 0x5d8]
cmp byte [eax + 0x38], 0
jne 0x65180a
mov dl, 1
call fcn.0045b27c
mov eax, dword [esi]
cmp dword [eax + 0x470], 0
jle 0x651832
mov eax, dword [esi]
dec dword [eax + 0x470]
mov eax, dword [esi]
cmp dword [eax + 0x470], 0
jne 0x651832
mov eax, dword [esi]
mov edx, dword [eax]
call dword [edx + 0x80]
mov eax, dword [esi]
cmp dword [eax + 0x474], 0
jle 0x651845
mov eax, dword [esi]
dec dword [eax + 0x474]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret