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

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x118
mov ebx, ebx
xor eax, eax
mov dword [ebp - 0x1c], eax
mov dword [ebp - 0x18], eax
mov dword [ebp - 0x14], eax
mov dword [ebp - 0x10], eax
mov dword [ebp - 0xc], eax
mov dword [ebp - 8], eax
mov dword [ebp - 4], eax
mov bl, bl
mov dword [ebp - 0x1c], 0
test ch, ch
cmp dword [ebp + 0xc], 9
je 0x1006c91d
cmp dword [ebp + 0xc], 0
jne 0x1006cc2f
cmp dword [ebp + 0x10], 0xffffffff
jne 0x1006c934
cmp dword [ebp + 0x14], 0xffffffff
jne 0x1006c934
cmp dword [ebp + 0xc], 9
je 0x1006c934
jmp 0x1006cd79
cmp dword [ebp + 0xc], 9
jne 0x1006cb5d
mov ecx, dword [ebp + 0x10]
mov dword [ebp - 0x18], ecx
mov ebp, ebp
mov edx, dword [ebp + 0x14]
mov dword [ebp - 0x14], edx
test eax, 0x6f90
mov dword [ebp - 0x30], 0
test eax, eax
mov dword [ebp - 0x20], 0
mov ebx, ebx
push 0
lea eax, [ebp - 0x30]
push eax
push 0
push 0x70
call dword [sym.imp.USER32.dll_SystemParametersInfoA]
mov edi, edi
test dh, dh
xor ecx, ecx
mov dword [ebp - 0x2c], ecx
mov dword [ebp - 0x28], ecx
mov dword [ebp - 0x24], ecx
mov eax, eax
push 0
lea edx, [ebp - 0x2c]
push edx
push 0
push 3
call dword [sym.imp.USER32.dll_SystemParametersInfoA]
test edx, edx
cmp dword [ebp - 0x2c], 0
jne 0x1006c9b3
cmp dword [ebp - 0x28], 0
jne 0x1006c9b3
cmp dword [ebp - 0x24], 0
jne 0x1006c9b3
mov dword [ebp - 0x20], 0
test ch, ch
jmp 0x1006c9bf
mov dword [ebp - 0x20], 1
test eax, 0x73a
test dh, dh
cmp dword [ebp - 0x20], 0
jne 0x1006cb58
cmp dword [ebp - 0x30], 1
jl 0x1006cb58
cmp dword [ebp - 0x30], 0x14
jg 0x1006cb58
fldz
fstp qword [ebp - 0xe8]
fld qword [0x10181c60]
fstp qword [ebp - 0xe0]
fld qword [0x10181c58]
fstp qword [ebp - 0xd8]
fld qword [0x10181c50]
fstp qword [ebp - 0xd0]
fld qword [0x10181c48]
fstp qword [ebp - 0xc8]
fld qword [0x10181c40]
fstp qword [ebp - 0xc0]
fld qword [0x10181b40]
fstp qword [ebp - 0xb8]
fld qword [0x10181c38]
fstp qword [ebp - 0xb0]
fld qword [0x10181c30]
fstp qword [ebp - 0xa8]
fld qword [0x10181c28]
fstp qword [ebp - 0xa0]
fld1
fstp qword [ebp - 0x98]
fld qword [0x10181c20]
fstp qword [ebp - 0x90]
fld qword [0x10181c18]
fstp qword [ebp - 0x88]
fld qword [0x10181c10]
fstp qword [ebp - 0x80]
fld qword [0x10181c08]
fstp qword [ebp - 0x78]
fld qword [0x10181c00]
fstp qword [ebp - 0x70]
fld qword [0x10181bf8]
fstp qword [ebp - 0x68]
fld qword [0x10181bf0]
fstp qword [ebp - 0x60]
fld qword [0x10181be8]
fstp qword [ebp - 0x58]
fld qword [0x10181be0]
fstp qword [ebp - 0x50]
fld qword [0x10181bd8]
fstp qword [ebp - 0x48]
test ch, ch
cmp dword [ebp - 0x20], 1
jne 0x1006cacd
fld1
fstp qword [ebp - 0x110]
jmp 0x1006cadd
mov eax, dword [ebp - 0x30]
fld qword [ebp + eax*8 - 0xe8]
fstp qword [ebp - 0x110]
fld qword [ebp - 0x110]
fstp qword [ebp - 0xf8]
nop
cmp dword [ebp - 0x20], 1
jne 0x1006cb01
fild dword [ebp - 0x30]
fmul qword [0x10181c48]
fstp qword [ebp - 0x118]
jmp 0x1006cb09
fld1
fstp qword [ebp - 0x118]
fld qword [ebp - 0x118]
fstp qword [ebp - 0x40]
mov edx, edx
fild dword [ebp + 0x10]
fdiv qword [ebp - 0xf8]
fdiv qword [ebp - 0x40]
fstp qword [ebp - 0x38]
push eax
pop eax
fild dword [ebp + 0x14]
fdiv qword [ebp - 0xf8]
fdiv qword [ebp - 0x40]
fstp qword [ebp - 0xf0]
test dh, dh
fld qword [ebp - 0x38]
call fcn.1011b720
mov dword [ebp - 0x18], eax
mov ah, ah
fld qword [ebp - 0xf0]
call fcn.1011b720
mov dword [ebp - 0x14], eax
mov eax, eax
test ecx, ecx
jmp 0x1006cc2d
mov ecx, dword [ebp - 0xc]
or ecx, 0x8000
mov dword [ebp - 0xc], ecx
mov dl, dl
mov edx, dword [ebp - 0xc]
or edx, 0x4000
mov dword [ebp - 0xc], edx
mov ebp, ebp
mov eax, dword [ebp + 8]
cmp dword [eax + 0x32d4], 2
jne 0x1006cbd7
test esi, esi
cmp dword [ebp + 0x18], 0xffffffff
jne 0x1006cba3
cmp dword [ebp + 0x1c], 0xffffffff
jne 0x1006cba3
lea ecx, [ebp - 0x100]
push ecx
call fcn.1006a750
test ch, ch
jmp 0x1006cbb9
mov edx, dword [ebp + 0x18]
mov dword [ebp - 0x100], edx
test al, al
mov eax, dword [ebp + 0x1c]
mov dword [ebp - 0xfc], eax
mov edi, edi
mov ecx, dword [ebp + 0x10]
sub ecx, dword [ebp - 0x100]
mov dword [ebp - 0x18], ecx
mov cl, cl
mov edx, dword [ebp + 0x14]
sub edx, dword [ebp - 0xfc]
mov dword [ebp - 0x14], edx
test bh, bh
jmp 0x1006cc2d
push 0x4e
call dword [sym.imp.USER32.dll_GetSystemMetrics]
sub eax, 1
mov dword [ebp - 0x104], eax
push edx
pop edx
push 0x4f
call dword [sym.imp.USER32.dll_GetSystemMetrics]
sub eax, 1
mov dword [ebp - 0x108], eax
test ebx, ebx
mov eax, dword [ebp + 0x10]
imul eax, eax, 0xffff
cdq
idiv dword [ebp - 0x104]
add eax, 1
mov dword [ebp - 0x18], eax
mov al, al
mov eax, dword [ebp + 0x14]
imul eax, eax, 0xffff
cdq
idiv dword [ebp - 0x108]
add eax, 1
mov dword [ebp - 0x14], eax
test dl, dl
jmp 0x1006cc3f
push 0
mov eax, dword [ebp + 8]
push eax
call fcn.10016620
add esp, 8
mov ah, ah
cmp dword [ebp + 0xc], 0
je 0x1006cc4b
cmp dword [ebp + 0xc], 9
jne 0x1006cc5b
mov ecx, dword [ebp - 0xc]
or ecx, 1
mov dword [ebp - 0xc], ecx
test eax, eax
jmp 0x1006cd43
cmp dword [ebp + 0xc], 1
jne 0x1006cc71
mov edx, dword [ebp - 0xc]
or edx, 2
mov dword [ebp - 0xc], edx
test ah, ah
jmp 0x1006cd43
cmp dword [ebp + 0xc], 2
jne 0x1006cc87
mov eax, dword [ebp - 0xc]
or eax, 4
mov dword [ebp - 0xc], eax
mov edx, edx
jmp 0x1006cd43
cmp dword [ebp + 0xc], 3
jne 0x1006cc9d
mov ecx, dword [ebp - 0xc]
or ecx, 8
mov dword [ebp - 0xc], ecx
xchg ebx, eax
xchg ebx, eax
jmp 0x1006cd43
cmp dword [ebp + 0xc], 4
jne 0x1006ccb3
mov edx, dword [ebp - 0xc]
or edx, 0x10
mov dword [ebp - 0xc], edx
xchg ebx, eax
xchg ebx, eax
jmp 0x1006cd43
cmp dword [ebp + 0xc], 5
jne 0x1006ccc6
mov eax, dword [ebp - 0xc]
or eax, 0x20
mov dword [ebp - 0xc], eax
push ecx
pop ecx
jmp 0x1006cd43
cmp dword [ebp + 0xc], 6
jne 0x1006ccd9
mov ecx, dword [ebp - 0xc]
or ecx, 0x40
mov dword [ebp - 0xc], ecx
test edx, edx
jmp 0x1006cd43
cmp dword [ebp + 0xc], 7
jne 0x1006cd0f
mov edx, dword [ebp - 0xc]
or edx, 0x800
mov dword [ebp - 0xc], edx
test ecx, ecx
mov eax, dword [ebp + 8]
cmp dword [eax + 0x32d4], 2
jne 0x1006cd04
mov dword [ebp - 0x10], 1
test al, al
jmp 0x1006cd0d
mov dword [ebp - 0x10], 0xffffff88
test ah, ah
jmp 0x1006cd43
cmp dword [ebp + 0xc], 8
jne 0x1006cd43
mov ecx, dword [ebp - 0xc]
or ecx, 0x800
mov dword [ebp - 0xc], ecx
mov ch, ch
mov edx, dword [ebp + 8]
cmp dword [edx + 0x32d4], 2
jne 0x1006cd3a
mov dword [ebp - 0x10], 0xffffffff
mov ebx, ebx
jmp 0x1006cd43
mov dword [ebp - 0x10], 0x78
test edx, edx
call dword [sym.imp.KERNEL32.dll_GetTickCount]
mov dword [ebp - 8], eax
test dl, dl
call dword [sym.imp.USER32.dll_GetMessageExtraInfo]
mov dword [ebp - 4], eax
test esi, esi
mov eax, dword [ebp + 0x1c]
push eax
mov ecx, dword [ebp + 0x18]
push ecx
push 0x1c
lea edx, [ebp - 0x1c]
push edx
mov ecx, 1
mov edx, dword [ebp + 8]
call fcn.1006bed0
add esp, 0x10
mov ebx, ebx
mov esp, ebp
pop ebp
ret