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

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x12c
mov eax, dword [0x1020204]
xor eax, ebp
mov dword [ebp - 4], eax
mov edx, dword [ebp + 0x10]
and dword [ebp - 0x128], 0
mov ecx, dword [ebp + 0xc]
push esi
mov eax, 0x400
mov esi, edx
and esi, eax
sub esi, eax
neg esi
sbb esi, esi
inc esi
cmp dword [0x1020a6c], 0
push edi
mov edi, dword [ebp + 8]
jne 0x1006aa5
mov eax, dword [0x1021138]
mov dword [0x102208c], 0x106
mov byte [0x1021f80], 0
mov dword [0x1022088], eax
mov dword [0x1020a6c], 1
test edi, edi
je 0x1006e6f
test ecx, ecx
push ebx
jne 0x1006b8e
push dword [edi]
call fcn.01008da0
push eax
mov ebx, 0x104
push ebx
push 0x10221c0
mov dword [ebp - 0x124], eax
call fcn.0101627b
add esp, 0xc
push dword [ebp - 0x124]
push dword [edi]
call fcn.01008e39
push dword [edi + 4]
call fcn.01008da0
push eax
push ebx
push 0x10220a0
mov dword [ebp - 0x124], eax
call fcn.0101627b
add esp, 0xc
push dword [ebp - 0x124]
push dword [edi + 4]
call fcn.01008e39
push 1
call fcn.0100db6b
push 0
push 0x10058f6
push dword [0x1021df0]
push 0x1001720
push dword [0x1021dd8]
call dword [sym.imp.USER32.dll_DialogBoxParamA]
push 0
mov ebx, eax
call fcn.0100db6b
test ebx, ebx
je 0x1006e6e
mov ebx, 0x1021f80
push ebx
call dword [sym.imp.KERNEL32.dll_lstrlenA]
test eax, eax
jne 0x1006b81
push 1
call fcn.0100db6b
push 0x10
push 0x1001574
push 0x29a
call fcn.0100e6ab
push eax
push dword [0x1021df0]
call dword [sym.imp.USER32.dll_MessageBoxA]
push 0
call fcn.0100db6b
push ebx
call dword [sym.imp.KERNEL32.dll_lstrlenA]
test eax, eax
je 0x1006b0f
jmp 0x1006ba7
push ecx
push 0x104
push 0x1021f80
mov dword [0x102208c], edx
call fcn.0101627b
add esp, 0xc
call dword [sym.imp.KERNEL32.dll_GetTickCount]
mov ebx, 0x100
test dword [0x102208c], ebx
mov dword [0x1020854], eax
je 0x1006bc3
push dword [edi]
jmp 0x1006bc6
push dword [edi + 4]
call fcn.01009327
test eax, eax
je 0x1006e6e
mov eax, dword [0x1022084]
push dword [edi + 8]
mov dword [ebp - 0x12c], eax
call fcn.010182e3
test eax, eax
mov dword [ebp - 0x120], eax
je 0x1006dad
jmp 0x1006bfb
mov ebx, 0x100
cmp dword [0x1021dcc], 0
jne 0x1006dad
cmp dword [0x1022088], 0
je 0x1006c24
push dword [ebp - 0x120]
call fcn.01003665
test eax, eax
jne 0x1006d55
push dword [ebp - 0x120]
call fcn.010079b3
cmp eax, 1
mov ecx, dword [0x102208c]
jne 0x1006c43
test cl, 1
je 0x1006d55
cmp eax, 4
jne 0x1006c51
test cl, 2
je 0x1006d55
cmp eax, 5
jne 0x1006c5d
test cx, 0x200
jmp 0x1006c64
cmp eax, 6
jne 0x1006c73
test ebx, ecx
jne 0x1006d55
test cl, 0xc
je 0x1006d55
test ebx, ecx
push dword [ebp - 0x120]
je 0x1006c84
call fcn.0100a9c5
jmp 0x1006c89
call fcn.0100b8e5
push eax
call fcn.0100a9c5
push dword [ebp - 0x12c]
mov ebx, eax
push esi
push 0x1021f80
push ebx
call fcn.010098ee
test eax, eax
jne 0x1006d15
push ebx
call fcn.01008ed3
push eax
push 0x29b
mov dword [ebp - 0x124], eax
call fcn.0100e6ab
push eax
lea eax, [ebp - 0x11c]
push 0x118
push eax
call fcn.010161e1
add esp, 0x10
push dword [ebp - 0x124]
push ebx
call fcn.01008f31
push 1
call fcn.0100db6b
push 1
lea eax, [ebp - 0x11c]
push eax
push dword [0x1021df0]
call fcn.01018e26
push 0
mov dword [0x1021148], eax
call fcn.0100db6b
cmp dword [0x1021148], 0
je 0x1006dad
jmp 0x1006d1b
inc dword [ebp - 0x128]
push dword [ebp - 0x128]
push 0x29c
call fcn.0100e6ab
push eax
lea eax, [ebp - 0x11c]
push 0x118
push eax
call fcn.010161e1
add esp, 0x10
lea eax, [ebp - 0x11c]
push eax
call fcn.0100dec5
call fcn.0100dd75
test eax, eax
jne 0x1006d70
push dword [ebp - 0x120]
call fcn.01018340
test eax, eax
mov dword [ebp - 0x120], eax
jne 0x1006bf6
jmp 0x1006dad
call dword [sym.imp.KERNEL32.dll_GetTickCount]
sub eax, dword [0x1020854]
push 1
mov dword [0x1020854], eax
call fcn.0100db6b
push 0x40
push 0x100145c
push 0x29d
call fcn.0100e6ab
push eax
push dword [0x1021df0]
call dword [sym.imp.USER32.dll_MessageBoxA]
push 0
call fcn.0100db6b
push dword [ebp - 0x128]
push 0x2d0
call fcn.0100e6ab
push eax
mov ebx, 0x118
lea eax, [ebp - 0x11c]
push ebx
push eax
call fcn.010161e1
add esp, 0x10
lea eax, [ebp - 0x11c]
push eax
call fcn.0100dec5
test word [0x102208c], 0x100
je 0x1006dee
push dword [edi]
jmp 0x1006df1
push dword [edi + 4]
call fcn.01009339
mov esi, eax
call dword [sym.imp.KERNEL32.dll_GetTickCount]
sub eax, dword [0x1020854]
test esi, esi
mov dword [0x1020854], eax
jge 0x1006e17
neg esi
push esi
push 0x29e
jmp 0x1006e1d
push esi
push 0x29f
call fcn.0100e6ab
push eax
lea eax, [ebp - 0x11c]
push ebx
push eax
call fcn.010161e1
add esp, 0x10
push 1
call fcn.0100db6b
push 0x40
push 0x100145c
lea eax, [ebp - 0x11c]
push eax
push dword [0x1021df0]
call dword [sym.imp.USER32.dll_MessageBoxA]
push 0
call fcn.0100db6b
lea eax, [ebp - 0x11c]
push eax
mov byte [ebp - 0x11c], 0
call fcn.0100dec5
pop ebx
mov ecx, dword [ebp - 4]
pop edi
xor ecx, ebp
pop esi
call fcn.01015dd4
leave
ret 0xc