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

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
cmp byte [0x101084b8], 0
push ebx
push esi
push edi
je 0x1006fea4
cmp byte [0x101084b9], 0
jne 0x1006fea4
mov esi, dword [ebp + 0x10]
mov ebx, dword [ebp + 0x14]
test esi, esi
je 0x1006fe25
test ebx, ebx
je 0x1006fe25
mov eax, dword [ebx]
imul eax, dword [ebp + 0xc]
push eax
push 0
push esi
call fcn.100a3330
add esp, 0xc
jmp 0x1006fe2f
xor eax, eax
test esi, esi
je 0x1006fe93
test ebx, ebx
je 0x1006fe99
xor eax, eax
cmp dword [ebx], eax
je 0x1006fe97
lea ecx, [esi + 8]
mov dword [ebp + 0x10], eax
mov dword [ebp + 0x14], ecx
mov edi, edi
mov edx, dword [ebp + 8]
cmp dword [edx + 0x1c], 0
je 0x1006fe97
mov esi, dword [edx + 0x18]
lea edi, [edx + 0x18]
mov esi, dword [esi]
mov eax, dword [esi + 0x10]
mov dword [ecx - 8], eax
mov dword [ecx - 4], 0
call dword [sym.imp.KERNEL32.dll_GetTickCount]
mov ecx, dword [ebp + 0x14]
push esi
mov dword [ecx], eax
mov ecx, edi
call fcn.10050ca0
push 0x18
push eax
call fcn.100a1a2e
mov eax, dword [ebp + 0x10]
add esp, 8
mov ecx, dword [ebp + 0x14]
inc eax
dec dword [ebx]
add ecx, 0x10
cmp dword [ebx], 0
mov dword [ebp + 0x10], eax
mov dword [ebp + 0x14], ecx
jne 0x1006fe40
test ebx, ebx
je 0x1006fe99
mov dword [ebx], eax
xor eax, eax
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0x14
mov edi, dword [ebp + 0x10]
mov esi, dword [ebp + 0x14]
test edi, edi
jne 0x1006fece
test esi, esi
je 0x1006fece
cmp dword [esi], 0xffffffff
mov ebx, dword [ebp + 8]
jne 0x1006fed1
push 0x100
lea eax, [ebx + 0x20]
push edi
push eax
call fcn.100a3330
add esp, 0xc
jmp 0x1006fed1
mov ebx, dword [ebp + 8]
push dword [ebp + 0x18]
mov eax, dword [ebx + 4]
push esi
push edi
push dword [ebp + 0xc]
mov ecx, dword [eax]
push eax
call dword [ecx + 0x28]
mov dword [ebp - 0x10], eax
cmp eax, 1
jne 0x1006ff09
push 0x100
lea ecx, [ebx + 0x20]
push 0
push ecx
call fcn.100a3330
mov eax, dword [ebp - 0x10]
add esp, 0xc
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0x14
test eax, eax
jne 0x100700f3
test edi, edi
je 0x100700f3
test esi, esi
je 0x100700f3
cmp dword [esi], eax
je 0x100700f3
test byte [ebp + 0x18], 1
jne 0x100700f3
xor al, al
mov byte [ebp + 0xf], al
call dword [sym.imp.KERNEL32.dll_GetTickCount]
cmp dword [esi], 0
mov dword [ebp - 0xc], eax
mov dword [ebp - 4], 0
jbe 0x100700f3
mov esi, edi
test byte [esi + 4], 0x80
je 0x10070014
mov ecx, dword [esi + 8]
cmp ecx, eax
ja 0x1006ff71
sub eax, ecx
cmp eax, 0x3e8
jae 0x10070014
mov eax, dword [esi]
mov byte [ebp + 0xf], 1
cmp eax, 0x100
jae 0x1006ff83
mov byte [eax + ebx + 0x20], 0xff
mov eax, dword [ebx + 0x18]
lea edx, [ebx + 0x18]
xor edi, edi
mov dword [ebp + 0x18], edx
mov dword [ebp - 8], eax
mov ecx, eax
mov ebx, dword [eax + 4]
cmp byte [ebx + 0xd], 0
jne 0x1006ffc0
mov edx, dword [esi]
mov eax, ebx
mov ebx, eax
cmp dword [eax + 0x10], edx
jae 0x1006ffae
mov eax, dword [eax + 8]
xor edi, edi
jmp 0x1006ffb7
mov ecx, eax
mov edi, 1
mov eax, dword [eax]
cmp byte [eax + 0xd], 0
je 0x1006ffa0
mov edx, dword [ebp + 0x18]
cmp byte [ecx + 0xd], 0
jne 0x1006ffcd
mov eax, dword [esi]
cmp eax, dword [ecx + 0x10]
jae 0x1007000b
cmp dword [edx + 4], 0xaaaaaaa
je 0x100700ff
push 0x18
call fcn.100a19fe
mov ecx, dword [esi]
add esp, 4
mov edx, dword [ebp - 8]
mov dword [eax + 0x10], ecx
mov ecx, dword [ebp + 0x18]
mov byte [eax + 0x14], 0
push eax
mov dword [eax], edx
mov dword [eax + 4], edx
push edi
mov dword [eax + 8], edx
push ebx
mov word [eax + 0xc], 0
call fcn.10050f60
mov ecx, eax
mov ebx, dword [ebp + 8]
mov byte [ecx + 0x14], 1
jmp 0x1007002b
mov eax, dword [esi]
cmp eax, 0x100
jae 0x10070022
mov byte [eax + ebx + 0x20], 0
push esi
lea ecx, [ebx + 0x18]
call fcn.100703b0
mov eax, dword [ebp - 4]
add esi, 0x10
mov ecx, dword [ebp + 0x14]
inc eax
mov dword [ebp - 4], eax
cmp eax, dword [ecx]
jae 0x10070044
mov eax, dword [ebp - 0xc]
jmp 0x1006ff53
cmp byte [ebp + 0xf], 0
je 0x100700f3
add ebx, 0x20
mov ecx, 0x10108480
push ebx
call fcn.1007c350
test al, al
je 0x100700c4
mov ecx, 0x10108484
call fcn.10070220
test al, al
mov edx, str.disable
mov esi, str.enable
cmove edx, esi
push edx
push str.Detected_hot_key_via_dinput7__buffered___now_requesting_overlay__s_n
call fcn.10081660
add esp, 8
mov ecx, 0x10108484
call fcn.10070220
mov ecx, dword [0x10118890]
lea edx, [ebp + 8]
mov dword [ebp + 8], 1
push 4
push edx
test al, al
jne 0x100700af
mov dword [ebp + 8], 0
mov eax, dword [ecx]
call dword [eax + 0xc]
push 0x100
push 0
push ebx
call fcn.100a3330
add esp, 0xc
push ebx
mov ecx, 0x10108480
call fcn.1007c490
test al, al
je 0x100700dd
push 0
call fcn.10092ee0
add esp, 4
push dword [ebp + 0x10]
mov ecx, 0x10108480
call fcn.1007c3e0
test al, al
je 0x100700f3
call fcn.10092f40
mov eax, dword [ebp - 0x10]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0x14
call fcn.10051250
int3