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

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x4c
push ebx
push esi
mov esi, dword [ebp + 8]
push edi
mov dword [ebp - 0x10], ecx
push 3
mov ecx, esi
call fcn.01011830
mov ebx, dword [eax]
xor eax, eax
mov al, bl
xor edi, edi
inc edi
push 0x17
mov ecx, esi
mov dword [ebp - 0x20], ebx
and eax, edi
mov dword [ebp - 4], eax
call fcn.01011830
mov eax, dword [eax]
mov dword [ebp - 0x14], eax
mov eax, ebx
sar eax, 8
and eax, edi
mov dword [ebp - 0xc], eax
mov eax, ebx
sar eax, 9
and eax, edi
mov dword [ebp - 0x1c], eax
mov eax, ebx
sar eax, 0x10
push 0
mov ecx, esi
mov dword [ebp - 8], eax
call fcn.01011830
mov eax, dword [eax]
push edi
mov ecx, esi
mov dword [ebp - 0x30], eax
call fcn.01011830
mov ebx, dword [ebp + 0xc]
mov eax, dword [eax]
sub esp, 0x10
mov edi, esp
lea esi, [ebx + 0x130]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
sub esp, 0x10
mov edi, esp
mov dword [ebp - 0x2c], eax
mov eax, dword [ebx + 0xb4]
lea esi, [ebx + 0x140]
movsd dword es:[edi], dword [esi]
and eax, 1
push eax
movsd dword es:[edi], dword [esi]
lea eax, [ebp - 0x28]
push eax
lea eax, [ebp - 0x30]
movsd dword es:[edi], dword [esi]
push eax
lea eax, [ebx + 0xa4]
push eax
movsd dword es:[edi], dword [esi]
call fcn.0101136a
mov eax, dword [ebx]
lea ecx, [ebp - 0x18]
push ecx
mov ecx, ebx
call dword [eax + 4]
cmp dword [ebp - 0x18], 3
je 0x1013e10
cmp word [ebp - 8], 0x15
je 0x1014bda
cmp word [ebp - 8], 0x16
je 0x1014bda
mov edi, dword [ebp - 0x10]
push 0x14
pop eax
cmp word [edi + 0x158], ax
je 0x101529b
test byte [edi + 0x156], 1
jne 0x10124f0
mov esi, dword [ebp - 0x14]
cmp dword [ebp - 0x18], 3
je 0x1011824
cmp dword [ebp - 0xc], 0
jne 0x1014687
cmp word [edi + 0x158], 0xf
je 0x1011824
call dword [sym.imp.KERNEL32.dll_GetTickCount]
mov dword [ebp + 0xc], eax
xor eax, eax
cmp dword [ebp - 0xc], eax
jne 0x10146c1
mov ecx, dword [ebp - 0x28]
cmp ecx, dword [edi + 0x164]
je 0x101457b
xor ecx, ecx
mov cl, byte [edi + 0x154]
push 9
pop edx
and ecx, edx
sub ecx, eax
jne 0x101461c
mov ecx, dword [ebp - 4]
and ecx, edx
sub ecx, eax
jne 0x1014bf3
push dword [ebp + 0x10]
push esi
push dword [ebp - 0x24]
push dword [ebp - 0x28]
push ebx
push eax
call fcn.01014518
mov eax, dword [ebp - 0x28]
mov dword [edi + 0x164], eax
mov eax, dword [ebp - 0x24]
mov dword [edi + 0x168], eax
mov ax, word [ebp - 4]
mov word [edi + 0x154], ax
mov ax, word [ebp - 8]
mov word [edi + 0x158], ax
pop edi
pop esi
pop ebx
leave
ret 0xc
test byte [ebp - 4], 1
je 0x10152b1
jmp 0x1011785
mov edi, dword [ebp - 0x10]
jmp 0x1011778
mov ecx, dword [ebp - 0x24]
cmp ecx, dword [edi + 0x168]
jne 0x10117c9
mov cx, word [ebp - 4]
cmp cx, word [edi + 0x154]
jne 0x10117c9
jmp 0x1011824
dec ecx
jne 0x10152c5
mov ecx, dword [ebp - 4]
and ecx, edx
sub ecx, eax
je 0x1014781
dec ecx
jne 0x101531e
jmp 0x10117eb
cmp dword [ebp - 0x1c], 0
jne 0x101179c
cmp word [ebp - 8], 0xf
je 0x10148b3
cmp word [edi + 0x158], 0xf
jne 0x10117a6
mov eax, dword [edi + 0x164]
mov dword [ebp - 0x28], eax
mov eax, dword [edi + 0x168]
mov dword [ebp - 0x24], eax
jmp 0x10117a6
mov eax, dword [ebp + 8]
push dword [eax + 0x10]
lea eax, [ebp - 0x24]
push dword [ebp + 0x10]
mov ecx, edi
push esi
push eax
lea eax, [ebp - 0x28]
push eax
lea eax, [ebp - 4]
push eax
push dword [ebp + 0xc]
push dword [ebp - 0x20]
push ebx
call fcn.0101471f
test eax, eax
je 0x1014bd3
mov eax, dword [ebp - 0x28]
mov dword [edi + 0x164], eax
mov eax, dword [ebp - 0x24]
mov dword [edi + 0x168], eax
mov ax, word [ebp - 8]
mov word [edi + 0x158], ax
mov ax, word [ebp - 4]
mov word [edi + 0x154], ax
jmp 0x1011824
push dword [ebp + 0x10]
push esi
push dword [ebp - 0x24]
push dword [ebp - 0x28]
push ebx
push 4
jmp 0x10117f7
mov eax, dword [ebp - 0x28]
mov dword [edi + 0x164], eax
mov eax, dword [ebp - 0x24]
mov dword [edi + 0x168], eax
mov word [edi + 0x158], 0xf
jmp 0x1011824
xor eax, eax
jmp 0x10117ba
and dword [ebp - 0xc], 0
and dword [ebp - 8], 0
jmp 0x1011765
dec ecx
jne 0x10117fc
jmp 0x10117eb
dec ecx
jne 0x1015342
cmp dword [ebx + 0x23c], eax
push 2
pop ecx
jne 0x1015304
xor edx, edx
cmp dword [ebp + 0x10], eax
mov dword [ebp - 0x38], eax
setne dl
mov dword [ebp - 0x40], eax
mov dword [ebp - 0x4c], eax
mov eax, dword [ebp - 0x28]
mov dword [ebp - 0x48], eax
mov eax, dword [ebp - 0x24]
mov dword [ebp - 0x44], eax
push 0x1c
lea eax, [ebp - 0x4c]
or edx, ecx
and esi, 0xff
push eax
or edx, 0xc000
or esi, 0xff515700
push 1
mov dword [ebp - 0x3c], edx
mov dword [ebp - 0x34], esi
call dword [sym.imp.USER32.dll_SendInput]
mov eax, dword [ebp + 0xc]
mov dword [edi + 0x16c], eax
mov eax, dword [ebp - 0x28]
mov dword [edi + 0x170], eax
mov eax, dword [ebp - 0x24]
mov dword [edi + 0x174], eax
jmp 0x10117fc
test byte [ebp - 4], 1
je 0x1011778
or dword [ebp - 4], 8
mov dword [ebp - 8], eax
jmp 0x1011778
mov esi, dword [ebp - 0x14]
cmp dword [edi + 0x184], esi
jne 0x1011824
jmp 0x1011788
sub ecx, 7
je 0x10117de
dec ecx
jne 0x10117fc
mov ecx, dword [ebp - 4]
and ecx, edx
sub ecx, eax
je 0x101530c
dec ecx
je 0x10152eb
sub ecx, 7
je 0x101530c
jmp 0x1014be7
push dword [ebp + 0x10]
push esi
push dword [ebp - 0x24]
push dword [ebp - 0x28]
push ebx
push 0x10
call fcn.01014518
xor eax, eax
jmp 0x1014bfa
push 8
pop ecx
jmp 0x1014c09
push dword [ebp + 0x10]
push esi
push dword [ebp - 0x24]
push dword [ebp - 0x28]
push ebx
push 0x10
jmp 0x10117f7
sub ecx, 7
je 0x1014781
dec ecx
jne 0x10117fc
push dword [ebp + 0x10]
push esi
push dword [ebp - 0x24]
push dword [ebp - 0x28]
push ebx
push 4
call fcn.01014518
jmp 0x1015352
sub ecx, 7
je 0x10117eb
dec ecx
jne 0x10117fc
push dword [ebp + 0x10]
push esi
push dword [ebp - 0x24]
push dword [ebp - 0x28]
push ebx
push 8
jmp 0x10117f7