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

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1c
cmp byte [0x101d9085], 0
push ebx
push esi
push edi
je 0x10066360
mov esi, dword [ebp + 8]
mov ecx, 0x101d5490
push 0
push 0xed
push esi
call fcn.1006d330
test al, al
je 0x10066341
mov al, byte [0x101d3f56]
movzx ecx, word [0x101d3f54]
mov byte [ebp - 0x16], al
mov edx, ecx
mov al, byte [0x101d3f57]
mov byte [ebp - 0x15], al
mov al, byte [0x101d3f58]
mov byte [ebp - 0x14], al
mov al, byte [0x101d3f5a]
mov byte [ebp - 0x13], al
mov al, byte [0x101d3f5b]
mov byte [ebp - 0x12], al
mov al, byte [0x101d3f5c]
mov byte [ebp - 0x11], al
mov al, byte [0x101d3f5d]
mov ebx, dword [0x101d3f9c]
mov esi, dword [0x101d3f98]
mov byte [ebp - 0x10], al
mov al, byte [0x101d3f5e]
mov byte [ebp - 0xf], al
mov al, byte [0x101d3f5f]
mov byte [ebp - 0xe], al
mov al, byte [0x101d3f60]
shl edx, 4
add edx, dword [0x101d3f8c]
mov byte [ebp - 0xd], al
mov eax, 0x200
mov word [ebp - 0x18], cx
cwde
movzx ecx, byte [edx + 1]
movsx ecx, cx
imul ecx, eax
movzx eax, byte [edx + 2]
mov dword [ebp - 0x1c], 0x17ff16c1
add cx, ax
mov eax, ebx
sub eax, esi
movzx edi, cx
sar eax, 3
xor ecx, ecx
test eax, eax
je 0x10066297
mov edx, esi
movsx edi, di
nop dword [eax + eax]
cmp edi, dword [esi + ecx*8]
je 0x10066323
mov edx, esi
mov eax, ebx
sub eax, edx
inc ecx
sar eax, 3
cmp ecx, eax
jb 0x10066280
xor al, al
mov byte [ebp - 0xc], al
lea ecx, [ebp - 0x1c]
mov al, byte [0x101d3f61]
mov edx, 0x16
mov byte [ebp - 0xb], al
mov al, byte [0x101d3f62]
mov byte [ebp - 0xa], al
mov al, byte [0x101d3f63]
mov byte [ebp - 9], al
mov al, byte [0x101d3f64]
mov byte [ebp - 8], al
mov al, byte [0x101d3f65]
mov byte [ebp - 7], al
call fcn.100acac0
pop edi
pop esi
mov byte [0x101d9085], 0
mov byte [0x101d8705], 0
mov word [0x101d3f50], 0
mov dword [0x101d3f52], 0
mov dword [0x101d3f56], 0x100
mov dword [0x101d3f5a], 0
mov dword [0x101d3f5e], 0
mov dword [0x101d3f62], 1
pop ebx
mov esp, ebp
pop ebp
ret 4
movzx eax, byte [0x101d3f59]
add eax, edx
mov al, byte [eax + ecx*8 + 3]
test al, al
jne 0x10066299
mov al, byte [edx + ecx*8 + 5]
jmp 0x10066299
push 0
push 0xee
push esi
mov ecx, 0x101d5490
call fcn.1006d330
test al, al
je 0x100669e0
jmp 0x100662d1
cmp byte [0x101d8705], 0
je 0x100669e0
mov esi, dword [sym.imp.KERNEL32.dll_GetTickCount]
call esi
sub eax, dword [0x101d8700]
cmp eax, 0x32
jb 0x100669e0
call esi
mov esi, dword [ebp + 8]
mov dword [0x101d8700], eax
mov al, byte [0x101d3f50]
test al, al
jne 0x100663d0
xor ebx, ebx
nop dword [eax]
push 0
lea eax, [ebx + 0xc8]
mov ecx, 0x101d5490
push eax
push esi
call fcn.1006d330
test al, al
je 0x100663c5
mov byte [0x101d3f51], bl
mov byte [0x101d3f50], 1
inc ebx
cmp ebx, 7
jl 0x100663a0
jmp 0x10066957
cmp al, 1
jne 0x10066410
xor ebx, ebx
nop word [eax + eax]
push 0
lea eax, [ebx + 0xc8]
mov ecx, 0x101d5490
push eax
push esi
call fcn.1006d330
test al, al
je 0x10066405
mov byte [0x101d3f52], bl
mov byte [0x101d3f50], 2
inc ebx
cmp ebx, 9
jl 0x100663e0
jmp 0x10066957
cmp al, 2
jne 0x10066582
mov eax, dword [0x101d3f90]
xor edi, edi
mov edx, dword [0x101d3f8c]
xor ebx, ebx
sub eax, edx
sar eax, 4
test eax, eax
je 0x100664be
xor eax, eax
mov dword [ebp - 4], eax
nop dword [eax]
lea ecx, [eax + edx]
mov al, byte [0x101d3f51]
cmp al, byte [ecx]
jne 0x100664a8
movzx eax, byte [ecx + 1]
push eax
call fcn.100669f0
movzx ecx, byte [0x101d3f52]
cmp ecx, eax
jne 0x100664a8
movzx eax, byte [0x101d3f53]
lea ecx, [eax + eax*4]
add ecx, ecx
cmp edi, ecx
jl 0x100664a7
lea eax, [ecx + 0xa]
cmp edi, eax
jge 0x100664a7
mov eax, edi
sub eax, ecx
mov ecx, 0x101d5490
push 0
add eax, 0xc8
push eax
push esi
call fcn.1006d330
mov edx, dword [0x101d3f8c]
test al, al
je 0x100664a7
mov word [0x101d3f54], bx
mov byte [0x101d3f50], 3
inc edi
mov eax, dword [0x101d3f90]
inc ebx
add dword [ebp - 4], 0x10
sub eax, edx
sar eax, 4
cmp ebx, eax
mov eax, dword [ebp - 4]
jb 0x10066440
push 0
push 0xd2
push esi
mov ecx, 0x101d5490
call fcn.1006d330
test al, al
je 0x100664e4
mov al, byte [0x101d3f53]
test al, al
je 0x100664e4
dec al
mov byte [0x101d3f53], al
push 0
push 0xd3
push esi
mov ecx, 0x101d5490
call fcn.1006d330
test al, al
je 0x10066957
mov edx, dword [0x101d3f90]
xor ebx, ebx
mov eax, edx
sub eax, dword [0x101d3f8c]
sar eax, 4
test eax, eax
je 0x10066553
mov esi, dword [0x101d3f8c]
xor edi, edi
mov al, byte [0x101d3f51]
sub edx, esi
sar edx, 4
cmp al, byte [esi + edi]
jne 0x10066548
movzx eax, byte [esi + edi + 1]
push eax
call fcn.100669f0
movzx ecx, byte [0x101d3f52]
cmp ecx, eax
mov al, byte [0x101d3f51]
jne 0x10066548
inc ebx
add edi, 0x10
sub edx, 1
jne 0x10066527
mov esi, dword [ebp + 8]
mov eax, 0x66666667
imul ebx
sar edx, 2
mov ecx, edx
shr ecx, 0x1f
add ecx, edx
mov dl, byte [0x101d3f53]
movzx eax, dl
cmp eax, ecx
jge 0x10066957
inc dl
mov byte [0x101d3f53], dl
jmp 0x10066957
cmp al, 3
jne 0x10066957
push 0
push 0xe4
push esi
mov ecx, 0x101d5490
call fcn.1006d330
test al, al
je 0x100665b4
mov al, byte [0x101d3f56]
cmp al, byte [0x101d3f68]
jae 0x100665b4
inc al
mov byte [0x101d3f56], al
push 0
push 0xe5
push esi
mov ecx, 0x101d5490
call fcn.1006d330
test al, al
je 0x100665da
mov al, byte [0x101d3f56]
test al, al
je 0x100665da
dec al
mov byte [0x101d3f56], al
push 0
push 0xe8
push esi
mov ecx, 0x101d5490
call fcn.1006d330
test al, al
je 0x10066600
mov al, byte [0x101d3f58]
cmp al, 7
jae 0x10066600
inc al
mov byte [0x101d3f58], al
push 0
push 0xe9
push esi
mov ecx, 0x101d5490
call fcn.1006d330
test al, al
je 0x10066626
mov al, byte [0x101d3f58]
test al, al
je 0x10066626
dec al
mov byte [0x101d3f58], al
push 0
push 0xea
push esi
mov ecx, 0x101d5490
call fcn.1006d330
test al, al
je 0x10066650
mov al, byte [0x101d3f57]
cmp al, byte [0x101d3f69]
jae 0x10066650
inc al
mov byte [0x101d3f57], al
push 0
push 0xeb
push esi
mov ecx, 0x101d5490
call fcn.1006d330
test al, al
je 0x10066676
mov al, byte [0x101d3f57]
test al, al
je 0x10066676
dec al
mov byte [0x101d3f57], al
push 0
push 0xd8
push esi
mov ecx, 0x101d5490
call fcn.1006d330
test al, al
je 0x1006669a
cmp byte [0x101d3f5a], 0
sete byte [0x101d3f5a]
cmp byte [0x101d3f59], 0
jne 0x10066933
push 0
push 0xd9
push esi
mov ecx, 0x101d5490
call fcn.1006d330
test al, al
je 0x100666d2
cmp byte [0x101d3f5b], 0
mov byte [0x101d3f59], 0
sete byte [0x101d3f5b]
push 0
push 0xda
push esi
mov ecx, 0x101d5490
call fcn.1006d330
test al, al
je 0x100666fd
cmp byte [0x101d3f5c], 0
mov byte [0x101d3f59], 0
sete byte [0x101d3f5c]
push 0
push 0xdb
push esi
mov ecx, 0x101d5490
call fcn.1006d330
test al, al
je 0x10066728
cmp byte [0x101d3f5d], 0
mov byte [0x101d3f59], 0
sete byte [0x101d3f5d]
push 0
push 0xdc
push esi
mov ecx, 0x101d5490
call fcn.1006d330
test al, al
je 0x10066753
cmp byte [0x101d3f5e], 0
mov byte [0x101d3f59], 0
sete byte [0x101d3f5e]
push 0
push 0xdd
push esi
mov ecx, 0x101d5490
call fcn.1006d330
test al, al
je 0x1006677e
cmp byte [0x101d3f5f], 0
mov byte [0x101d3f59], 0
sete byte [0x101d3f5f]
push 0
push 0xde
push esi
mov ecx, 0x101d5490
call fcn.1006d330
test al, al
je 0x100667a9
cmp byte [0x101d3f60], 0
mov byte [0x101d3f59], 0
sete byte [0x101d3f60]
push 0
push 0xdf
push esi
mov ecx, 0x101d5490
call fcn.1006d330
test al, al
je 0x1006680a
mov al, byte [0x101d3f62]
test al, al
sete byte [0x101d3f62]
test al, al
jne 0x100667e1
mov word [0x101d3f63], 0
mov byte [0x101d3f65], al
jmp 0x100667fc
cmp byte [0x101d3f63], 0
jne 0x10066803
cmp byte [0x101d3f64], 0
jne 0x10066803
cmp byte [0x101d3f65], 0
jne 0x10066803
mov byte [0x101d3f62], 1
mov byte [0x101d3f59], 0
push 0
push 0xe0
push esi
mov ecx, 0x101d5490
call fcn.1006d330
mov edi, 1
test al, al
je 0x1006686d
mov al, byte [0x101d3f63]
test al, al
sete byte [0x101d3f63]
test al, al
jne 0x10066847
mov byte [0x101d3f62], al
mov word [0x101d3f64], 0
jmp 0x10066866
cmp byte [0x101d3f64], 0
jne 0x10066866
movzx eax, byte [0x101d3f62]
cmp byte [0x101d3f65], 0
cmove eax, edi
mov byte [0x101d3f62], al
mov byte [0x101d3f59], 0
push 0
push 0xe1
push esi
mov ecx, 0x101d5490
call fcn.1006d330
test al, al
je 0x100668cf
mov al, byte [0x101d3f64]
test al, al
sete byte [0x101d3f64]
test al, al
jne 0x100668a5
mov word [0x101d3f62], 0
mov byte [0x101d3f65], al
jmp 0x100668c8
cmp byte [0x101d3f63], 0
jne 0x100668c8
test al, al
je 0x100668c8
movzx eax, byte [0x101d3f62]
cmp byte [0x101d3f65], 0
cmove eax, edi
mov byte [0x101d3f62], al
mov byte [0x101d3f59], 0
push 0
push 0xe2
push esi
mov ecx, 0x101d5490
call fcn.1006d330
test al, al
je 0x10066933
mov cl, byte [0x101d3f65]
test cl, cl
sete byte [0x101d3f65]
test cl, cl
jne 0x10066909
mov word [0x101d3f62], 0
mov byte [0x101d3f64], cl
jmp 0x1006692c
cmp byte [0x101d3f63], 0
jne 0x1006692c
cmp byte [0x101d3f64], 0
jne 0x1006692c
movzx eax, byte [0x101d3f62]
test cl, cl
cmovne eax, edi
mov byte [0x101d3f62], al
mov byte [0x101d3f59], 0
push 0
push 0xe3
push esi
mov ecx, 0x101d5490
call fcn.1006d330
test al, al
je 0x10066957
cmp byte [0x101d3f61], 0
sete byte [0x101d3f61]
cmp byte [0x101d3f50], 3
mov ecx, 0x101d5490
push 0
jne 0x100669a2
push 0xe6
push esi
call fcn.1006d330
test al, al
je 0x1006697c
dec byte [0x101d3f50]
push 0
push 0xe7
push esi
mov ecx, 0x101d5490
call fcn.1006d330
test al, al
je 0x100669e0
pop edi
pop esi
mov byte [0x101d9085], 1
pop ebx
mov esp, ebp
pop ebp
ret 4
push 0xc7
push esi
call fcn.1006d330
test al, al
je 0x100669e0
mov al, byte [0x101d3f50]
test al, al
jne 0x100669d2
mov ecx, 0x101d3f50
mov byte [0x101d8705], al
call fcn.10066c30
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4
dec al
mov byte [0x101d3f53], 0
mov byte [0x101d3f50], al
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4