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

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x50
push ebx
push esi
mov esi, dword [ebp + 8]
push edi
mov dword [ebp - 0x14], ecx
push 3
mov ecx, esi
call fcn.0101b0fc
mov ebx, dword [eax]
xor eax, eax
mov al, bl
xor edi, edi
inc edi
push 0x17
mov ecx, esi
mov dword [ebp - 0x24], ebx
and eax, edi
mov dword [ebp - 8], eax
call fcn.0101b0fc
mov eax, dword [eax]
mov dword [ebp - 0x18], eax
mov eax, ebx
sar eax, 8
and eax, edi
mov dword [ebp - 0x10], eax
mov eax, ebx
sar eax, 9
and eax, edi
mov dword [ebp - 0x20], eax
mov eax, ebx
sar eax, 0x10
push 0
mov ecx, esi
mov dword [ebp - 0xc], eax
call fcn.0101b0fc
mov eax, dword [eax]
push edi
mov ecx, esi
mov dword [ebp - 0x2c], eax
call fcn.0101b0fc
mov ebx, dword [ebp + 0xc]
mov eax, dword [eax]
sub esp, 0x10
mov edi, esp
lea esi, [ebx + 0x118]
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 - 0x28], eax
mov eax, dword [ebx + 0x9c]
lea esi, [ebx + 0x128]
movsd dword es:[edi], dword [esi]
and eax, 1
push eax
movsd dword es:[edi], dword [esi]
lea eax, [ebp - 0x34]
push eax
lea eax, [ebp - 0x2c]
movsd dword es:[edi], dword [esi]
push eax
lea eax, [ebx + 0x8c]
push eax
movsd dword es:[edi], dword [esi]
call fcn.0101deea
mov eax, dword [ebp - 0x34]
mov dword [ebp + 0xc], eax
mov eax, dword [ebp - 0x30]
lea ecx, [ebp - 0x1c]
mov dword [ebp - 4], eax
mov eax, dword [ebx]
push ecx
mov ecx, ebx
call dword [eax + 4]
cmp dword [ebp - 0x1c], 3
je 0x1005954
cmp word [ebp - 0xc], 0x15
je 0x100592e
cmp word [ebp - 0xc], 0x16
jne 0x1005936
and dword [ebp - 0x10], 0
and dword [ebp - 0xc], 0
mov edi, dword [ebp - 0x14]
push 0x14
pop eax
cmp word [edi + 0x154], ax
jne 0x1005957
test byte [ebp - 8], 1
je 0x1005957
or dword [ebp - 8], 8
mov dword [ebp - 0xc], eax
jmp 0x1005957
mov edi, dword [ebp - 0x14]
test byte [edi + 0x152], 1
je 0x1005977
test byte [ebp - 8], 1
jne 0x1005977
mov esi, dword [ebp - 0x18]
cmp dword [edi + 0x178], esi
jne 0x1005aec
jmp 0x100597a
mov esi, dword [ebp - 0x18]
cmp dword [ebp - 0x1c], 3
je 0x1005aec
cmp dword [ebp - 0x10], 0
je 0x10059d5
cmp dword [ebp - 0x20], 0
jne 0x10059d5
cmp word [ebp - 0xc], 0xf
jne 0x10059b7
mov eax, dword [ebp + 0xc]
mov dword [edi + 0x15c], eax
mov eax, dword [ebp - 4]
mov dword [edi + 0x160], eax
mov word [edi + 0x154], 0xf
jmp 0x1005aec
cmp word [edi + 0x154], 0xf
jne 0x10059e3
mov eax, dword [edi + 0x15c]
mov dword [ebp + 0xc], eax
mov eax, dword [edi + 0x160]
mov dword [ebp - 4], eax
jmp 0x10059e3
cmp word [edi + 0x154], 0xf
je 0x1005aec
call dword [sym.imp.KERNEL32.dll_GetTickCount]
mov dword [ebp - 0x14], eax
xor eax, eax
cmp dword [ebp - 0x10], eax
je 0x1005a4a
mov eax, dword [ebp + 8]
push dword [eax + 0x10]
lea eax, [ebp - 4]
push dword [ebp + 0x10]
mov ecx, edi
push esi
push eax
lea eax, [ebp + 0xc]
push eax
lea eax, [ebp - 8]
push eax
push dword [ebp - 0x14]
push dword [ebp - 0x24]
push ebx
call fcn.010054a2
test eax, eax
je 0x1005a48
mov eax, dword [ebp + 0xc]
mov dword [edi + 0x15c], eax
mov eax, dword [ebp - 4]
mov dword [edi + 0x160], eax
mov ax, word [ebp - 0xc]
mov word [edi + 0x154], ax
mov ax, word [ebp - 8]
mov word [edi + 0x150], ax
jmp 0x1005aec
xor eax, eax
mov ecx, dword [ebp + 0xc]
cmp ecx, dword [edi + 0x15c]
jne 0x1005a6d
mov ecx, dword [ebp - 4]
cmp ecx, dword [edi + 0x160]
jne 0x1005a6d
mov cx, word [ebp - 8]
cmp word [edi + 0x150], cx
je 0x1005aec
xor ecx, ecx
mov cl, byte [edi + 0x150]
push 9
pop edx
and ecx, edx
sub ecx, eax
je 0x1005c2c
dec ecx
je 0x1005be8
sub ecx, 7
je 0x1005b7c
dec ecx
jne 0x1005ac4
mov ecx, dword [ebp - 8]
and ecx, edx
sub ecx, eax
je 0x1005b6a
dec ecx
je 0x1005af3
sub ecx, 7
je 0x1005b6a
dec ecx
jne 0x1005ac4
push dword [ebp + 0x10]
push esi
push dword [ebp - 4]
push dword [ebp + 0xc]
push ebx
push eax
mov ecx, edi
call fcn.01004c67
mov ax, word [ebp - 8]
mov word [edi + 0x150], ax
mov eax, dword [ebp + 0xc]
mov dword [edi + 0x15c], eax
mov eax, dword [ebp - 4]
mov dword [edi + 0x160], eax
mov ax, word [ebp - 0xc]
mov word [edi + 0x154], ax
pop edi
pop esi
pop ebx
leave
ret 0xc
push dword [ebp + 0x10]
mov ecx, edi
push esi
push dword [ebp - 4]
push dword [ebp + 0xc]
push ebx
push 0x10
call fcn.01004c67
xor eax, eax
cmp dword [ebx + 0x224], eax
push 2
pop ecx
je 0x1005b17
push 8
pop ecx
xor edx, edx
cmp dword [ebp + 0x10], eax
mov dword [ebp - 0x50], eax
setne dl
mov dword [ebp - 0x44], eax
mov dword [ebp - 0x3c], eax
mov eax, dword [ebp + 0xc]
mov dword [ebp - 0x4c], eax
mov eax, dword [ebp - 4]
mov dword [ebp - 0x48], eax
push 0x1c
lea eax, [ebp - 0x50]
or edx, ecx
and esi, 0xff
push eax
or edx, 0xc000
or esi, 0xff515700
push 1
mov dword [ebp - 0x40], edx
mov dword [ebp - 0x38], esi
call dword [sym.imp.USER32.dll_SendInput]
mov eax, dword [ebp - 0x14]
mov dword [edi + 0x14c], eax
jmp 0x1005ac4
push dword [ebp + 0x10]
push esi
push dword [ebp - 4]
push dword [ebp + 0xc]
push ebx
push 0x10
jmp 0x1005abd
mov ecx, dword [ebp - 8]
and ecx, edx
sub ecx, eax
je 0x1005ab1
dec ecx
jne 0x1005c40
cmp dword [ebx + 0x224], eax
push 2
pop ecx
je 0x1005b9e
push 8
pop ecx
xor edx, edx
cmp dword [ebp + 0x10], eax
mov dword [ebp - 0x50], eax
setne dl
mov dword [ebp - 0x44], eax
mov dword [ebp - 0x3c], eax
mov eax, dword [ebp + 0xc]
mov dword [ebp - 0x4c], eax
mov eax, dword [ebp - 4]
mov dword [ebp - 0x48], eax
push 0x1c
lea eax, [ebp - 0x50]
or edx, ecx
and esi, 0xff
push eax
or edx, 0xc000
or esi, 0xff515700
push 1
mov dword [ebp - 0x40], edx
mov dword [ebp - 0x38], esi
call dword [sym.imp.USER32.dll_SendInput]
jmp 0x1005ac4
mov ecx, dword [ebp - 8]
and ecx, edx
sub ecx, eax
je 0x1005c1a
dec ecx
je 0x1005ab1
sub ecx, 7
je 0x1005c1a
dec ecx
jne 0x1005ac4
push dword [ebp + 0x10]
mov ecx, edi
push esi
push dword [ebp - 4]
push dword [ebp + 0xc]
push ebx
push 4
call fcn.01004c67
jmp 0x1005c50
push dword [ebp + 0x10]
push esi
push dword [ebp - 4]
push dword [ebp + 0xc]
push ebx
push 4
jmp 0x1005abd
mov ecx, dword [ebp - 8]
and ecx, edx
sub ecx, eax
je 0x1005ab1
dec ecx
je 0x1005b09
sub ecx, 7
je 0x1005ab1
dec ecx
jne 0x1005ac4
push dword [ebp + 0x10]
push esi
push dword [ebp - 4]
push dword [ebp + 0xc]
push ebx
push 8
jmp 0x1005abd