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

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffb8
push ebx
push esi
push edi
xor eax, eax
mov dword [ebp - 0x48], eax
mov dword [ebp - 0x3c], eax
mov dword [ebp - 0x34], eax
mov dword [ebp - 0x38], eax
mov dword [ebp - 0x30], eax
mov dword [ebp - 0x2c], eax
mov dword [ebp - 4], eax
mov ecx, 7
lea eax, [ebp - 0x20]
mov edx, dword [0x4012b8]
call fcn.0040979c
xor eax, eax
push ebp
push 0x650e15
push dword fs:[eax]
mov dword fs:[eax], esp
cmp byte [0x66b55c], 0
je 0x6504e1
xor eax, eax
call fcn.006473f4
mov byte [ebp - 0x21], 0
mov eax, dword [0x662388]
mov eax, dword [eax]
shr eax, 0x10
cmp eax, 0x600
mov eax, dword [0x661ecc]
setae byte [eax]
xor edx, edx
push ebp
push 0x650d56
push dword fs:[edx]
mov dword fs:[edx], esp
cmp dword [0x66b56c], 0
je 0x65051f
mov dl, 1
mov eax, dword [0x66b56c]
call fcn.00601b40
cmp byte [0x66b55a], 0
je 0x65058c
xor eax, eax
push ebp
push 0x65055f
push dword fs:[eax]
mov dword fs:[eax], esp
cmp dword [0x66b560], 0
jne 0x65054b
mov eax, 0x650e30
call fcn.0060267c
jmp 0x650555
mov eax, dword [0x66b560]
call fcn.00602860
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
jmp 0x65058c
mov eax, 0x650e98
call fcn.006028c8
lea eax, [ebp - 0x2c]
mov ecx, dword [0x66b544]
mov edx, 0x650f28
call fcn.00408f70
mov eax, dword [ebp - 0x2c]
call fcn.006028c8
lea eax, [ebp - 0x30]
mov ecx, dword [0x66b548]
mov edx, 0x650f68
call fcn.00408f70
mov eax, dword [ebp - 0x30]
call fcn.006028c8
lea eax, [ebp - 0x38]
call fcn.0059acb0
mov ecx, dword [ebp - 0x38]
lea eax, [ebp - 0x34]
mov edx, 0x650f94
call fcn.00408f70
mov eax, dword [ebp - 0x34]
call fcn.006028c8
call fcn.006475b8
xor eax, eax
call fcn.0064fdb0
mov dword [0x66b550], eax
mov dl, 1
mov eax, dword [0x64f050]
call fcn.0061f850
mov dword [0x661e74], eax
mov ecx, dword [0x66b548]
mov edx, dword [0x66b550]
mov eax, dword [0x661e74]
call fcn.0062248c
lea ecx, [ebp - 0x3c]
mov eax, dword [0x661e74]
mov edx, dword [eax + 0x18]
mov al, 0xc7
call fcn.005a1474
mov edx, dword [ebp - 0x3c]
mov eax, 0x66b554
call fcn.00408038
mov eax, dword [0x661e74]
test byte [eax + 0x1d], 0x20
je 0x650687
mov eax, dword [0x662034]
cmp byte [eax], 0
jne 0x650687
push 1
push 1
mov eax, dword [0x66b554]
call fcn.00408d1c
push eax
mov eax, dword [0x6624b4]
mov eax, dword [eax + 0x354]
call fcn.00408d1c
mov ecx, 0x30
pop edx
call fcn.00647ea0
call fcn.00427c74
mov eax, dword [0x661e74]
test byte [eax + 0x1d], 1
je 0x6506cb
mov eax, dword [0x6622b0]
cmp byte [eax], 0
jne 0x6506cb
push 1
push 1
mov eax, dword [0x66b554]
call fcn.00408d1c
push eax
mov eax, dword [0x6624b4]
mov eax, dword [eax + 0x1f8]
call fcn.00408d1c
mov ecx, 0x30
pop edx
call fcn.00647ea0
call fcn.00427c74
mov eax, dword [0x66b550]
xor edx, edx
mov dword [0x66b550], edx
call fcn.004060a0
mov al, 2
call fcn.0064fdb0
mov dword [0x66b550], eax
lea eax, [ebp - 0x20]
push eax
push 6
mov ecx, 0x86000503
mov dx, 0x20
mov eax, dword [0x661e74]
call fcn.0061fd2c
test al, al
jne 0x650710
mov eax, 0x650fd4
call fcn.005f2f38
cmp dword [0x66b56c], 0
je 0x65072b
lea eax, [ebp - 4]
mov edx, dword [0x662324]
mov edx, dword [edx]
call fcn.0040811c
jmp 0x650736
lea edx, [ebp - 4]
mov eax, dword [ebp - 0x20]
call fcn.00650430
mov eax, dword [0x661e74]
test byte [eax + 0x1d], 0x80
setne al
call fcn.006484dc
mov eax, dword [0x661e74]
cmp byte [eax + 0x10], 0
je 0x65076f
mov eax, dword [0x662034]
cmp byte [eax], 0
jne 0x650766
mov eax, 0x65106c
call fcn.005f2f38
mov al, 1
call fcn.00648604
jmp 0x650776
xor eax, eax
call fcn.00648604
call fcn.006455dc
cmp dword [ebp - 4], 0
je 0x6508b2
call fcn.00644f4c
call fcn.00645918
mov eax, dword [0x661ef4]
mov edx, dword [0x66b544]
call fcn.00408038
mov eax, dword [0x6623e4]
mov edx, dword [0x661e74]
mov edx, dword [edx + 0x14]
call fcn.00408038
movzx eax, byte [0x66b55b]
or al, byte [0x66b55c]
mov edx, dword [0x6620ec]
mov byte [edx], al
mov eax, dword [0x6626a0]
mov edx, dword [ebp - 0x18]
call fcn.00408038
mov eax, dword [0x662240]
mov edx, dword [ebp - 0x14]
call fcn.00408038
mov eax, dword [0x662050]
mov edx, dword [ebp - 0x10]
call fcn.00408038
mov eax, dword [0x662118]
mov edx, dword [ebp - 0xc]
call fcn.00408038
mov eax, dword [ebp - 8]
test eax, eax
je 0x650807
sub eax, 4
mov eax, dword [eax]
mov edx, eax
add edx, edx
mov eax, dword [ebp - 8]
call fcn.00650378
mov dl, 1
mov eax, dword [0x63adf4]
call fcn.0063bf40
mov edx, dword [0x662150]
mov dword [edx], eax
mov eax, dword [0x662150]
mov eax, dword [eax]
add eax, 4
mov edx, 0x651100
call fcn.00408038
mov eax, 0x646e3c
mov edx, dword [0x662150]
mov edx, dword [edx]
mov dword [edx + 0x10], eax
mov eax, 0x646e48
mov edx, dword [0x662150]
mov edx, dword [edx]
mov dword [edx + 0x14], eax
mov eax, 0x646e54
mov edx, dword [0x662150]
mov edx, dword [edx]
mov dword [edx + 0x18], eax
mov eax, 0x647074
mov edx, dword [0x662150]
mov edx, dword [edx]
mov dword [edx + 0x1c], eax
mov eax, 0x647090
mov edx, dword [0x662150]
mov edx, dword [edx]
mov dword [edx + 0x20], eax
mov eax, 0x6470a0
mov edx, dword [0x662150]
mov edx, dword [edx]
mov dword [edx + 0x24], eax
mov ecx, dword [0x6621f8]
mov ecx, dword [ecx]
mov eax, dword [0x662150]
mov eax, dword [eax]
mov edx, dword [ebp - 4]
call fcn.0063c03c
xor edx, edx
push ebp
push 0x650d02
push dword fs:[edx]
mov dword fs:[edx], esp
xor edx, edx
push ebp
push 0x650c35
push dword fs:[edx]
mov dword fs:[edx], esp
mov eax, dword [0x662150]
cmp dword [eax], 0
je 0x650943
xor edx, edx
push ebp
push 0x650917
push dword fs:[edx]
mov dword fs:[edx], esp
push 0
push 2
push 0
push 1
xor eax, eax
mov dword [ebp - 0x44], eax
mov byte [ebp - 0x40], 0x11
lea ecx, [ebp - 0x44]
mov eax, dword [0x662150]
mov eax, dword [eax]
mov edx, 0x651118
call fcn.0063c6b4
pop dword fs:[0]
add esp, 8
jmp 0x650930
test al, al
jne 0x650943
mov eax, 0x6511a8
call fcn.006028c8
call fcn.00427c74
cmp byte [0x66b55b], 0
jne 0x65097d
cmp byte [0x66b55c], 0
jne 0x65097d
push 0x124
push 1
push 6
mov eax, dword [0x661e74]
mov edx, dword [eax + 0x18]
mov ecx, dword [0x66b554]
mov al, 0x2c
call fcn.0064f4e4
cmp eax, 6
je 0x65097d
call fcn.00427c74
xor edx, edx
xor eax, eax
call fcn.0064fc24
jmp 0x6509ab
push 0x31
push 1
push 2
mov eax, dword [0x661e74]
mov edx, dword [eax + 0x18]
mov ecx, dword [0x66b554]
mov al, 0xd3
call fcn.0064f4e4
dec eax
je 0x6509ab
call fcn.00427c74
mov eax, dword [0x661e74]
call fcn.0061fd80
test al, al
jne 0x650988
jmp 0x6509ce
push 0xa
call sub.kernel32.dll_Sleep_2
mov eax, dword [0x6624a0]
mov eax, dword [eax]
call fcn.0058f3ac
mov eax, dword [0x66273c]
cmp byte [eax], 0
jne 0x6509bb
mov eax, dword [0x661ecc]
mov byte [eax], 0
lea ecx, [ebp - 0x48]
mov eax, dword [0x661e74]
mov edx, dword [eax + 0x18]
mov al, 0xb7
call fcn.005a1474
mov edx, dword [ebp - 0x48]
mov eax, dword [0x6624a0]
mov eax, dword [eax]
mov eax, dword [eax + 0x178]
call fcn.0059c624
call fcn.0064f314
xor edx, edx
mov al, 1
call fcn.0064fc24
call sub.kernel32.dll_GetTickCount_1
mov dword [ebp - 0x28], eax
mov eax, dword [0x661e74]
mov edx, dword [ebp - 0x28]
mov dword [eax + 0x24], edx
mov ecx, 0x64f76c
mov dl, 1
mov eax, dword [0x661e74]
call fcn.00620b54
mov byte [ebp - 0x22], al
movzx eax, byte [ebp - 0x22]
mov edx, dword [0x66237c]
mov eax, dword [edx + eax*4]
mov dword [ebp - 0x44], eax
mov byte [ebp - 0x40], 0x11
lea edx, [ebp - 0x44]
xor ecx, ecx
mov eax, 0x651210
call fcn.00602b4c
mov eax, dword [0x661e74]
cmp byte [eax + 0x1c], 0
jne 0x650a79
mov eax, dword [0x661e74]
test byte [eax + 0x1d], 8
jne 0x650a79
xor eax, eax
jmp 0x650a7b
mov al, 1
mov byte [ebp - 0x23], al
mov eax, dword [0x662150]
cmp dword [eax], 0
je 0x650b1d
mov eax, dword [0x662150]
mov eax, dword [eax]
mov cl, 1
mov edx, 0x65123c
call fcn.0063c29c
test al, al
je 0x650b1d
cmp byte [ebp - 0x23], 0
jne 0x650b13
xor eax, eax
push ebp
push 0x650af8
push dword fs:[eax]
mov dword fs:[eax], esp
push 0
push 1
push 0
push 0
xor eax, eax
mov dword [ebp - 0x44], eax
mov byte [ebp - 0x40], 0x11
lea ecx, [ebp - 0x44]
mov eax, dword [0x662150]
mov eax, dword [eax]
mov edx, 0x65123c
call fcn.0063c6b4
test al, al
je 0x650aee
mov byte [ebp - 0x23], 1
mov eax, 0x651260
call fcn.006028c8
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
jmp 0x650b1d
mov eax, 0x651340
call fcn.006028c8
movzx eax, byte [ebp - 0x23]
mov edx, dword [0x66237c]
mov eax, dword [edx + eax*4]
mov dword [ebp - 0x44], eax
mov byte [ebp - 0x40], 0x11
lea edx, [ebp - 0x44]
xor ecx, ecx
mov eax, 0x6513f8
call fcn.00602b4c
cmp byte [0x66b55c], 0
jne 0x650b78
mov eax, dword [0x6624a0]
mov eax, dword [eax]
call fcn.0058f3ac
call sub.kernel32.dll_GetTickCount_1
sub eax, dword [ebp - 0x28]
cmp eax, 0x3e8
jae 0x650b78
push 0x4ff
push 0xa
push 0
push 0
push 0
call sub.user32.dll_MsgWaitForMultipleObjects
jmp 0x650b49
mov eax, dword [0x662068]
mov eax, dword [eax]
mov edx, dword [0x662068]
xor ecx, ecx
mov dword [edx], ecx
call fcn.004060a0
mov dl, 1
mov al, 2
call fcn.0064fc24
cmp byte [ebp - 0x23], 0
jne 0x650bd9
cmp byte [0x66b55b], 0
jne 0x650c22
cmp byte [0x66b55c], 0
jne 0x650c22
push 0x10040
push 1
push 1
movzx eax, byte [ebp - 0x22]
movzx eax, byte [eax + 0x661e80]
mov edx, dword [0x661e74]
mov edx, dword [edx + 0x18]
mov ecx, dword [0x66b554]
call fcn.0064f4e4
jmp 0x650c22
cmp byte [0x66b55d], 0
jne 0x650c12
cmp byte [0x66b55c], 0
jne 0x650c0e
push 0x10024
push 1
push 6
mov eax, dword [0x661e74]
mov edx, dword [eax + 0x18]
mov ecx, dword [0x66b554]
mov al, 0xd1
call fcn.0064f4e4
cmp eax, 6
jne 0x650c12
mov byte [ebp - 0x21], 1
cmp byte [ebp - 0x21], 0
jne 0x650c22
mov eax, 0x65143c
call fcn.006028c8
mov dl, 1
mov al, 3
call fcn.0064fc24
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
jmp 0x650c49
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x650d0c
xor edx, edx
push ebp
push 0x650c84
push dword fs:[edx]
mov dword fs:[edx], esp
mov eax, dword [0x662068]
mov eax, dword [eax]
mov edx, dword [0x662068]
xor ecx, ecx
mov dword [edx], ecx
call fcn.004060a0
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
jmp 0x650c93
mov eax, dword [0x662150]
cmp dword [eax], 0
je 0x650cef
xor eax, eax
push ebp
push 0x650cd6
push dword fs:[eax]
mov dword fs:[eax], esp
push 0
push 0
xor eax, eax
mov dword [ebp - 0x44], eax
mov byte [ebp - 0x40], 0x11
lea ecx, [ebp - 0x44]
mov eax, dword [0x662150]
mov eax, dword [eax]
mov edx, 0x651498
call fcn.0063c44c
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
jmp 0x650cef
mov eax, dword [0x6624a0]
mov eax, dword [eax]
mov eax, dword [eax + 0x178]
call fcn.0059c6b8
ret