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

Disassembly:
sub esp, 0x20
push ebx
push ebp
push esi
push edi
lea eax, [esp + 0x28]
push eax
mov byte [esp + 0x16], 0
mov byte [esp + 0x17], 0
mov byte [esp + 0x18], 0
mov byte [esp + 0x19], 0
mov byte [esp + 0x1a], 0
mov byte [esp + 0x1b], 0
call dword [sym.imp.KERNEL32.dll_QueryPerformanceCounter]
mov ecx, dword [esp + 0x2c]
mov edx, dword [esp + 0x28]
push 0
push 0x3e8
push ecx
push edx
call fcn.005d2e50
mov ecx, dword [0x647764]
push ecx
mov ecx, dword [0x647760]
push ecx
push edx
push eax
call fcn.005de0d0
mov ebx, dword [0x629b08]
mov ebp, eax
xor eax, eax
mov ecx, 0xd
mov edi, 0x6ad3d0
xor esi, esi
rep stosd dword es:[edi], eax
xor edi, edi
mov ecx, edi
call fcn.00493a50
movsx ecx, word [edi*2 + 0x6ab268]
inc esi
cmp edi, 0x66
ja case.0x491a15.1
movzx edx, byte [edi + 0x4924f8]
jmp dword [edx*4 + 0x4924dc]
mov ecx, dword [0x629af0]
cmp ecx, 0xffffffff
je 0x491a2f
cmp esi, ecx
jne 0x491b7b
test al, al
jbe 0x491a5e
mov edx, dword [0x629aec]
mov eax, ebp
sub eax, edx
cmp eax, 0x15e
jb 0x491b7b
mov byte [esp + 0x12], 1
mov dword [0x629aec], ebp
mov dword [0x629af0], esi
jmp 0x491b7b
mov dword [0x629aec], 0
mov dword [0x629af0], 0xffffffff
jmp 0x491b7b
mov ecx, dword [0x629af8]
cmp ecx, 0xffffffff
je 0x491a8a
cmp esi, ecx
jne 0x491b7b
test al, al
jbe 0x491aba
mov edx, dword [0x629af4]
mov ecx, ebp
sub ecx, edx
cmp ecx, 0x15e
jb 0x491b7b
mov byte [esp + 0x13], 1
mov dword [0x629af4], ebp
mov dword [0x629af8], esi
jmp 0x491b7b
mov dword [0x629af4], 0
mov dword [0x629af8], 0xffffffff
jmp 0x491b7b
mov ecx, dword [0x629b00]
cmp ecx, 0xffffffff
je 0x491ae6
cmp esi, ecx
jne 0x491b7b
test al, al
jbe 0x491b0f
mov ecx, dword [0x629afc]
mov edx, ebp
sub edx, ecx
cmp edx, 0x15e
jb 0x491b7b
mov byte [esp + 0x14], 1
mov dword [0x629afc], ebp
mov dword [0x629b00], esi
jmp 0x491b7b
mov dword [0x629afc], 0
mov dword [0x629b00], 0xffffffff
jmp 0x491b7b
cmp ebx, 0xffffffff
je 0x491b2e
cmp esi, ebx
jne 0x491b7b
test al, al
jbe 0x491b52
mov edx, dword [0x629b04]
mov eax, ebp
sub eax, edx
cmp eax, 0x15e
jb 0x491b7b
mov byte [esp + 0x15], 1
mov dword [0x629b04], ebp
mov ebx, esi
jmp 0x491b7b
mov dword [0x629b04], 0
or ebx, 0xffffffff
jmp 0x491b7b
sub ecx, 8
je case.0x491a15.56
dec ecx
jne 0x491b7b
cmp al, 1
jne 0x491b7b
mov byte [esp + 0x17], al
jmp 0x491b7b
cmp al, 1
jne 0x491b7b
mov byte [esp + 0x16], al
inc edi
cmp edi, 0x6d
jl 0x4919f5
mov dword [0x629b08], ebx
mov dword [esp + 0x18], 0
jmp 0x491ba0
mov edx, dword [esp + 0x18]
movsx edi, dx
mov ebx, dword [edi*4 + 0x64db50]
xor eax, eax
cmp ebx, 0xffffffff
mov dword [esp + 0x20], eax
je 0x491bc9
lea ecx, [ebx + ebx*8]
shl ecx, 6
mov ecx, dword [ecx + 0x64c908]
mov dword [esp + 0x20], ecx
cmp ebx, 0xffffffff
mov dword [esp + 0x24], eax
je 0x491be2
lea ecx, [ebx + ebx*8]
shl ecx, 6
mov ecx, dword [ecx + 0x64c904]
mov dword [esp + 0x24], ecx
cmp ebx, 0xffffffff
mov dword [esp + 0x28], eax
je 0x491bfb
lea ecx, [ebx + ebx*8]
shl ecx, 6
mov ecx, dword [ecx + 0x64c90c]
mov dword [esp + 0x28], ecx
cmp ebx, 0xffffffff
mov dword [esp + 0x1c], eax
je 0x491c26
mov al, byte [0x64c461]
test al, al
je 0x491c17
mov dword [esp + 0x1c], 0x64db60
jmp 0x491c26
lea eax, [edi + edi*4]
shl eax, 5
add eax, 0x64d8d0
mov dword [esp + 0x1c], eax
mov cx, word [edx*4 + 0x6ab45e]
cmp cx, 0xffff
je 0x491c64
cmp ebx, 0xffffffff
je 0x491c64
mov al, byte [0x64c461]
test al, al
je 0x491c49
mov eax, 0x64db60
jmp 0x491c56
lea eax, [edi + edi*4]
shl eax, 5
add eax, 0x64d8d0
je 0x491c64
movsx ecx, cx
cmp byte [ecx + eax], 1
jne 0x491c64
mov byte [esp + 0x16], 1
mov cx, word [edx*4 + 0x6ab460]
cmp cx, 0xffff
je 0x491ca2
cmp ebx, 0xffffffff
je 0x491ca2
mov al, byte [0x64c461]
test al, al
je 0x491c87
mov eax, 0x64db60
jmp 0x491c94
lea eax, [edi + edi*4]
shl eax, 5
add eax, 0x64d8d0
je 0x491ca2
movsx edx, cx
cmp byte [edx + eax], 1
jne 0x491ca2
mov byte [esp + 0x17], 1
mov eax, dword [esp + 0x20]
xor edi, edi
test eax, eax
jle 0x491e64
mov edx, dword [esp + 0x18]
shl edx, 6
add edx, 0x6ab35e
lea ecx, [ecx]
xor cl, cl
cmp ebx, 0xffffffff
je 0x491cef
mov al, byte [0x64c461]
test al, al
je 0x491cd7
mov eax, 0x64db60
jmp 0x491ce9
movsx eax, word [esp + 0x18]
lea eax, [eax + eax*4]
shl eax, 5
add eax, 0x64d8d0
je 0x491cef
movsx ecx, di
mov cl, byte [ecx + eax]
movsx eax, word [edx]
add eax, 0xffffffed
inc esi
cmp eax, 7
ja case.default.0x491cff
jmp dword [eax*4 + 0x492560]
mov eax, dword [0x629af0]
cmp eax, 0xffffffff
je 0x491d18
cmp esi, eax
jne case.default.0x491cff
test cl, cl
jbe 0x491d47
mov ecx, dword [0x629aec]
mov eax, ebp
sub eax, ecx
cmp eax, 0x15e
jb case.default.0x491cff
mov byte [esp + 0x12], 1
mov dword [0x629aec], ebp
mov dword [0x629af0], esi
jmp case.default.0x491cff
mov dword [0x629aec], 0
mov dword [0x629af0], 0xffffffff
jmp case.default.0x491cff
mov eax, dword [0x629af8]
cmp eax, 0xffffffff
je 0x491d72
cmp esi, eax
jne case.default.0x491cff
test cl, cl
jbe 0x491da1
mov eax, dword [0x629af4]
mov ecx, ebp
sub ecx, eax
cmp ecx, 0x15e
jb case.default.0x491cff
mov byte [esp + 0x13], 1
mov dword [0x629af4], ebp
mov dword [0x629af8], esi
jmp case.default.0x491cff
mov dword [0x629af4], 0
mov dword [0x629af8], 0xffffffff
jmp case.default.0x491cff
mov eax, dword [0x629b00]
cmp eax, 0xffffffff
je 0x491dcc
cmp esi, eax
jne case.default.0x491cff
test cl, cl
jbe 0x491df4
mov ecx, dword [0x629afc]
mov eax, ebp
sub eax, ecx
cmp eax, 0x15e
jb case.default.0x491cff
mov byte [esp + 0x14], 1
mov dword [0x629afc], ebp
mov dword [0x629b00], esi
jmp case.default.0x491cff
mov dword [0x629afc], 0
mov dword [0x629b00], 0xffffffff
jmp case.default.0x491cff
mov eax, dword [0x629b08]
cmp eax, 0xffffffff
je 0x491e18
cmp esi, eax
jne case.default.0x491cff
test cl, cl
jbe 0x491e40
mov eax, dword [0x629b04]
mov ecx, ebp
sub ecx, eax
cmp ecx, 0x15e
jb case.default.0x491cff
mov byte [esp + 0x15], 1
mov dword [0x629b04], ebp
mov dword [0x629b08], esi
jmp case.default.0x491cff
mov dword [0x629b04], 0
mov dword [0x629b08], 0xffffffff
mov eax, dword [esp + 0x20]
inc edi
add edx, 2
cmp edi, eax
jl 0x491cc0
mov eax, dword [esp + 0x24]
xor edx, edx
test eax, eax
jle 0x492042
mov eax, dword [esp + 0x1c]
mov ebx, dword [0x629b00]
mov edi, dword [0x629b08]
add eax, 0x20
mov dword [esp + 0x20], eax
lea esp, [esp]
mov ecx, dword [esp + 0x20]
movsx eax, word [ecx]
inc esi
test eax, eax
jge 0x491eb7
mov ecx, dword [esp + 0x18]
shl ecx, 5
add ecx, edx
movsx ecx, word [ecx*4 + 0x6ab470]
cmp eax, 0xfffff800
setle al
jmp 0x491ed6
jle case.default.0x491eee
mov ecx, dword [esp + 0x18]
shl ecx, 5
add ecx, edx
movsx ecx, word [ecx*4 + 0x6ab46e]
cmp eax, 0x800
setge al
cmp ecx, 0x7fff
je case.default.0x491eee
add ecx, 0xffffffed
cmp ecx, 7
ja case.default.0x491eee
jmp dword [ecx*4 + 0x492580]
mov ecx, dword [0x629af0]
cmp ecx, 0xffffffff
je 0x491f08
cmp esi, ecx
jne case.default.0x491eee
test al, al
je 0x491f37
mov ecx, dword [0x629aec]
mov eax, ebp
sub eax, ecx
cmp eax, 0x15e
jb case.default.0x491eee
mov byte [esp + 0x12], 1
mov dword [0x629aec], ebp
mov dword [0x629af0], esi
jmp case.default.0x491eee
mov dword [0x629aec], 0
mov dword [0x629af0], 0xffffffff
jmp case.default.0x491eee
mov ecx, dword [0x629af8]
cmp ecx, 0xffffffff
je 0x491f63
cmp esi, ecx
jne case.default.0x491eee
test al, al
je 0x491f92
mov eax, dword [0x629af4]
mov ecx, ebp
sub ecx, eax
cmp ecx, 0x15e
jb case.default.0x491eee
mov byte [esp + 0x13], 1
mov dword [0x629af4], ebp
mov dword [0x629af8], esi
jmp case.default.0x491eee
mov dword [0x629af4], 0
mov dword [0x629af8], 0xffffffff
jmp case.default.0x491eee
cmp ebx, 0xffffffff
je 0x491fb1
cmp esi, ebx
jne case.default.0x491eee
test al, al
je 0x491fd5
mov ecx, dword [0x629afc]
mov eax, ebp
sub eax, ecx
cmp eax, 0x15e
jb case.default.0x491eee
mov byte [esp + 0x14], 1
mov dword [0x629afc], ebp
mov ebx, esi
jmp case.default.0x491eee
mov dword [0x629afc], 0
or ebx, 0xffffffff
jmp case.default.0x491eee
cmp edi, 0xffffffff
je 0x491fed
cmp esi, edi
jne case.default.0x491eee
test al, al
je 0x492011
mov eax, dword [0x629b04]
mov ecx, ebp
sub ecx, eax
cmp ecx, 0x15e
jb case.default.0x491eee
mov byte [esp + 0x15], 1
mov dword [0x629b04], ebp
mov edi, esi
jmp case.default.0x491eee
mov dword [0x629b04], 0
or edi, 0xffffffff
mov ecx, dword [esp + 0x20]
mov eax, dword [esp + 0x24]
inc edx
add ecx, 2
cmp edx, eax
mov dword [esp + 0x20], ecx
jl 0x491e90
mov dword [0x629b08], edi
mov dword [0x629b00], ebx
mov ecx, dword [esp + 0x28]
test ecx, ecx
jle 0x49221c
mov eax, dword [esp + 0x18]
mov edx, dword [esp + 0x1c]
mov ebx, dword [0x629b00]
mov edi, dword [0x629b08]
shl eax, 8
add eax, 0x6ab66e
add edx, 0x60
mov dword [esp + 0x24], edx
mov dword [esp + 0x20], ecx
mov ecx, dword [esp + 0x24]
mov edx, dword [ecx]
mov dword [esp + 0x1c], edx
inc esi
xor edx, edx
mov dword [esp + 0x28], eax
jmp 0x492090
movsx ecx, word [eax]
cmp ecx, 0x7fff
je case.default.0x4920ab
add ecx, 0xffffffed
cmp ecx, 7
ja case.default.0x4920ab
jmp dword [ecx*4 + 0x4925a0]
mov eax, dword [0x629af0]
cmp eax, 0xffffffff
je 0x4920c4
cmp esi, eax
jne case.default.0x4920ab
cmp edx, dword [esp + 0x1c]
jne 0x4920f5
mov ecx, dword [0x629aec]
mov eax, ebp
sub eax, ecx
cmp eax, 0x15e
jb case.default.0x4920ab
mov byte [esp + 0x12], 1
mov dword [0x629aec], ebp
mov dword [0x629af0], esi
jmp case.default.0x4920ab
mov dword [0x629aec], 0
mov dword [0x629af0], 0xffffffff
jmp case.default.0x4920ab
mov eax, dword [0x629af8]
cmp eax, 0xffffffff
je 0x492120
cmp esi, eax
jne case.default.0x4920ab
cmp edx, dword [esp + 0x1c]
jne 0x492151
mov eax, dword [0x629af4]
mov ecx, ebp
sub ecx, eax
cmp ecx, 0x15e
jb case.default.0x4920ab
mov byte [esp + 0x13], 1
mov dword [0x629af4], ebp
mov dword [0x629af8], esi
jmp case.default.0x4920ab
mov dword [0x629af4], 0
mov dword [0x629af8], 0xffffffff
jmp case.default.0x4920ab
cmp ebx, 0xffffffff
je 0x492170
cmp esi, ebx
jne case.default.0x4920ab
cmp edx, dword [esp + 0x1c]
jne 0x492196
mov ecx, dword [0x629afc]
mov eax, ebp
sub eax, ecx
cmp eax, 0x15e
jb case.default.0x4920ab
mov byte [esp + 0x14], 1
mov dword [0x629afc], ebp
mov ebx, esi
jmp case.default.0x4920ab
mov dword [0x629afc], 0
or ebx, 0xffffffff
jmp case.default.0x4920ab
cmp edi, 0xffffffff
je 0x4921ae
cmp esi, edi
jne case.default.0x4920ab
cmp edx, dword [esp + 0x1c]
jne 0x4921d4
mov eax, dword [0x629b04]
mov ecx, ebp
sub ecx, eax
cmp ecx, 0x15e
jb case.default.0x4920ab
mov byte [esp + 0x15], 1
mov dword [0x629b04], ebp
mov edi, esi
jmp case.default.0x4920ab
mov dword [0x629b04], 0
or edi, 0xffffffff
mov eax, dword [esp + 0x28]
inc edx
add eax, 2
cmp edx, 8
mov dword [esp + 0x28], eax
jl 0x492090
mov edx, dword [esp + 0x24]
mov ecx, dword [esp + 0x20]
add edx, 4
dec ecx
mov dword [esp + 0x24], edx
mov dword [esp + 0x20], ecx
jne 0x492075
mov dword [0x629b08], edi
mov dword [0x629b00], ebx
mov eax, dword [esp + 0x18]
inc eax
cmp eax, 4
mov dword [esp + 0x18], eax
jl 0x491ba0
mov al, byte [esp + 0x12]
test al, al
mov ebx, 3
je 0x49225e
mov al, byte [0x6adc40]
test al, al
je 0x49225e
xor eax, eax
lea edi, [esp + 0x28]
mov word [esp + 0x28], bx
mov byte [esp + 0x2c], 8
mov byte [esp + 0x2d], 1
call fcn.00495230
mov al, byte [esp + 0x13]
test al, al
je 0x492289
mov al, byte [0x6adc40]
test al, al
je 0x492289
xor eax, eax
lea edi, [esp + 0x28]
mov word [esp + 0x28], bx
mov byte [esp + 0x2c], 9
mov byte [esp + 0x2d], 1
call fcn.00495230
mov al, byte [esp + 0x14]
test al, al
je 0x4922b4
mov al, byte [0x6adc40]
test al, al
je 0x4922b4
xor eax, eax
lea edi, [esp + 0x28]
mov word [esp + 0x28], bx
mov byte [esp + 0x2c], 0xa
mov byte [esp + 0x2d], 1
call fcn.00495230
mov al, byte [esp + 0x15]
test al, al
je 0x4922df
mov al, byte [0x6adc40]
test al, al
je 0x4922df
xor eax, eax
lea edi, [esp + 0x28]
mov word [esp + 0x28], bx
mov byte [esp + 0x2c], 0xb
mov byte [esp + 0x2d], 1
call fcn.00495230
mov al, byte [esp + 0x16]
test al, al
je 0x49230a
mov al, byte [0x6adc40]
test al, al
je 0x49230a
xor eax, eax
lea edi, [esp + 0x28]
mov word [esp + 0x28], bx
mov byte [esp + 0x2c], 0
mov byte [esp + 0x2d], 1
call fcn.00495230
mov al, byte [esp + 0x17]
test al, al
je 0x492335
mov al, byte [0x6adc40]
test al, al
je 0x492335
xor eax, eax
lea edi, [esp + 0x28]
mov word [esp + 0x28], bx
mov byte [esp + 0x2c], 0xd
mov byte [esp + 0x2d], 1
call fcn.00495230
mov ecx, 0x51
call fcn.00493a50
test al, al
je 0x49236e
mov al, byte [0x6adc40]
test al, al
je 0x49236e
mov ecx, 0x51
mov word [esp + 0x28], bx
mov byte [esp + 0x2c], bl
call fcn.00493a50
mov byte [esp + 0x2d], al
xor eax, eax
lea edi, [esp + 0x28]
call fcn.00495230
mov ecx, 0x54
call fcn.00493a50
test al, al
je 0x4923a8
mov al, byte [0x6adc40]
test al, al
je 0x4923a8
mov ecx, 0x54
mov word [esp + 0x28], bx
mov byte [esp + 0x2c], 2
call fcn.00493a50
mov byte [esp + 0x2d], al
xor eax, eax
lea edi, [esp + 0x28]
call fcn.00495230
mov eax, dword [0x64c66c]
test eax, eax
je 0x4923ed
mov al, byte [0x64c461]
test al, al
jne 0x4923ed
mov al, byte [0x64c680]
test al, al
je 0x4923ed
mov cl, byte [0x6adc40]
test cl, cl
je 0x4923ed
mov byte [esp + 0x2d], al
mov ebp, 4
xor eax, eax
lea edi, [esp + 0x28]
mov word [esp + 0x28], bp
mov byte [esp + 0x2c], 0
call fcn.00495230
jmp 0x4923f2
mov ebp, 4
call dword [sym.imp.USER32.dll_GetDoubleClickTime]
lea edx, [esp + 0x28]
push edx
mov esi, eax
call dword [sym.imp.KERNEL32.dll_QueryPerformanceCounter]
mov eax, dword [esp + 0x2c]
mov ecx, dword [esp + 0x28]
push 0
push 0x3e8
push eax
push ecx
call fcn.005d2e50
mov ecx, dword [0x647764]
push ecx
mov ecx, dword [0x647760]
push ecx
push edx
push eax
call fcn.005de0d0
mov ecx, dword [0x6adba8]
test ecx, ecx
je 0x492484
mov dl, byte [0x64c688]
test dl, dl
je 0x492472
mov al, byte [0x6adc40]
test al, al
je 0x492466
xor eax, eax
lea edi, [esp + 0x28]
mov word [esp + 0x28], bp
mov byte [esp + 0x2c], bl
mov byte [esp + 0x2d], 1
call fcn.00495230
mov dword [0x6adba8], 0
jmp 0x492493
sub eax, ecx
cmp eax, esi
jb 0x492493
mov dword [0x6adba8], 0
jmp 0x492493
mov cl, byte [0x64c688]
test cl, cl
je 0x492493
mov dword [0x6adba8], eax
mov eax, dword [0x64c66c]
test eax, eax
je 0x4924d1
mov al, byte [0x64c461]
test al, al
jne 0x4924d1
mov al, byte [0x64c682]
test al, al
je 0x4924d1
mov cl, byte [0x6adc40]
test cl, cl
je 0x4924d1
mov byte [esp + 0x2d], al
xor eax, eax
lea edi, [esp + 0x28]
mov word [esp + 0x28], bp
mov byte [esp + 0x2c], 2
call fcn.00495230
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x20
ret