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

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x24
cmp byte [0x1018c17d], 0
push esi
push edi
je 0x100708b6
mov esi, dword [ebp + 8]
mov ecx, 0x10188580
push 0
push 0xee
push esi
call fcn.10077cc0
test al, al
je 0x10070897
mov al, byte [0x10186d56]
movzx ecx, word [0x10186d54]
mov byte [ebp - 0x1e], al
mov edx, ecx
mov al, byte [0x10186d57]
mov byte [ebp - 0x1d], al
mov al, byte [0x10186d58]
mov byte [ebp - 0x1c], al
mov al, byte [0x10186d5a]
mov byte [ebp - 0x1b], al
mov al, byte [0x10186d5b]
mov byte [ebp - 0x1a], al
mov al, byte [0x10186d5c]
mov byte [ebp - 0x19], al
mov al, byte [0x10186d5d]
mov esi, dword [0x10186d98]
mov byte [ebp - 0x18], al
mov al, byte [0x10186d5e]
mov byte [ebp - 0x17], al
mov al, byte [0x10186d5f]
mov byte [ebp - 0x16], al
mov al, byte [0x10186d60]
shl edx, 4
add edx, dword [0x10186d8c]
mov byte [ebp - 0x15], al
mov eax, 0x200
mov word [ebp - 0x20], cx
cwde
movzx ecx, byte [edx + 1]
movsx ecx, cx
imul ecx, eax
movzx eax, byte [edx + 2]
mov dword [ebp - 0x24], 0x17ff16c1
add cx, ax
mov eax, dword [0x10186d9c]
sub eax, esi
movzx edi, cx
sar eax, 3
xor ecx, ecx
test eax, eax
je 0x100707ee
mov edx, esi
movsx edi, di
cmp edi, dword [esi + ecx*8]
je 0x10070879
mov eax, dword [0x10186d9c]
mov edx, esi
sub eax, edx
inc ecx
sar eax, 3
cmp ecx, eax
jb 0x100707d4
xor al, al
mov byte [ebp - 0x14], al
lea ecx, [ebp - 0x24]
mov al, byte [0x10186d61]
mov edx, 0x16
mov byte [ebp - 0x13], al
mov al, byte [0x10186d62]
mov byte [ebp - 0x12], al
mov al, byte [0x10186d63]
mov byte [ebp - 0x11], al
mov al, byte [0x10186d64]
mov byte [ebp - 0x10], al
mov al, byte [0x10186d65]
mov byte [ebp - 0xf], al
call fcn.100c3740
pop edi
mov byte [0x1018c17d], 0
mov byte [0x1018b7fd], 0
mov word [0x10186d50], 0
mov dword [0x10186d52], 0
mov dword [0x10186d56], 0x100
mov dword [0x10186d5a], 0
mov dword [0x10186d5e], 0
mov dword [0x10186d62], 1
pop esi
mov esp, ebp
pop ebp
ret 4
movzx eax, byte [0x10186d59]
add eax, edx
mov al, byte [eax + ecx*8 + 3]
test al, al
jne 0x100707f0
mov al, byte [edx + ecx*8 + 5]
jmp 0x100707f0
push 0
push 0xef
push esi
mov ecx, 0x10188580
call fcn.10077cc0
test al, al
je 0x10070f6e
jmp 0x10070828
cmp byte [0x1018b7fd], 0
je 0x10070f6e
mov esi, dword [sym.imp.KERNEL32.dll_GetTickCount]
call esi
sub eax, dword [0x1018b7f8]
cmp eax, 0x32
jb 0x10070f6e
call esi
mov esi, dword [ebp + 8]
mov dword [0x1018b7f8], eax
mov al, byte [0x10186d50]
test al, al
jne 0x10070926
xor eax, eax
mov dword [ebp + 8], eax
push 0
add eax, 0xc9
mov ecx, 0x10188580
push eax
push esi
call fcn.10077cc0
test al, al
mov eax, dword [ebp + 8]
je 0x10070918
mov byte [0x10186d51], al
mov byte [0x10186d50], 1
inc eax
mov dword [ebp + 8], eax
cmp eax, 7
jl 0x100708f2
jmp 0x10070ee7
cmp al, 1
jne 0x10070964
xor eax, eax
mov dword [ebp + 8], eax
nop
push 0
add eax, 0xc9
mov ecx, 0x10188580
push eax
push esi
call fcn.10077cc0
test al, al
mov eax, dword [ebp + 8]
je 0x10070956
mov byte [0x10186d52], al
mov byte [0x10186d50], 2
inc eax
mov dword [ebp + 8], eax
cmp eax, 9
jl 0x10070930
jmp 0x10070ee7
cmp al, 2
jne 0x10070b12
mov eax, dword [0x10186d90]
xor ecx, ecx
mov edx, dword [0x10186d8c]
xor edi, edi
sub eax, edx
mov dword [ebp - 4], ecx
sar eax, 4
test eax, eax
je 0x10070a35
mov dword [ebp - 8], ecx
nop
mov esi, dword [ebp - 8]
mov al, byte [0x10186d51]
cmp al, byte [esi + edx]
mov esi, dword [ebp + 8]
jne 0x10070a1b
mov eax, dword [ebp - 8]
movzx eax, byte [eax + edx + 1]
cmp eax, 0xd
ja 0x100709bc
mov ecx, eax
call fcn.10070f80
mov ecx, dword [ebp - 4]
mov dword [ebp - 0xc], eax
jmp 0x100709c3
mov dword [ebp - 0xc], 0xffffffff
movzx eax, byte [0x10186d52]
cmp eax, dword [ebp - 0xc]
jne 0x10070a1b
movzx eax, byte [0x10186d53]
lea ecx, [eax + eax*4]
add ecx, ecx
cmp edi, ecx
jl 0x10070a17
lea eax, [ecx + 0xa]
cmp edi, eax
jge 0x10070a17
mov eax, edi
sub eax, ecx
mov ecx, 0x10188580
push 0
add eax, 0xc9
push eax
push esi
call fcn.10077cc0
mov edx, dword [0x10186d8c]
test al, al
je 0x10070a17
mov eax, dword [ebp - 4]
mov word [0x10186d54], ax
mov byte [0x10186d50], 3
mov ecx, dword [ebp - 4]
inc edi
mov eax, dword [0x10186d90]
inc ecx
add dword [ebp - 8], 0x10
sub eax, edx
sar eax, 4
mov dword [ebp - 4], ecx
cmp ecx, eax
jb 0x10070990
push 0
push 0xd3
push esi
mov ecx, 0x10188580
call fcn.10077cc0
test al, al
je 0x10070a5b
mov al, byte [0x10186d53]
test al, al
je 0x10070a5b
dec al
mov byte [0x10186d53], al
push 0
push 0xd4
push esi
mov ecx, 0x10188580
call fcn.10077cc0
test al, al
je 0x10070ee7
mov edx, dword [0x10186d90]
xor ecx, ecx
mov eax, edx
mov dword [ebp + 8], ecx
sub eax, dword [0x10186d8c]
sar eax, 4
test eax, eax
je 0x10070ae3
mov eax, dword [0x10186d8c]
xor edi, edi
sub edx, eax
sar edx, 4
nop dword [eax + eax]
mov cl, byte [0x10186d51]
cmp cl, byte [eax + edi]
mov ecx, dword [ebp + 8]
jne 0x10070adb
movzx ecx, byte [eax + edi + 1]
cmp ecx, 0xd
ja 0x10070ac1
call fcn.10070f80
mov ecx, eax
jmp 0x10070ac4
or ecx, 0xffffffff
movzx eax, byte [0x10186d52]
cmp eax, ecx
mov ecx, dword [ebp + 8]
mov eax, dword [0x10186d8c]
jne 0x10070adb
inc ecx
mov dword [ebp + 8], ecx
add edi, 0x10
sub edx, 1
jne 0x10070aa0
mov eax, 0x66666667
imul ecx
sar edx, 2
mov ecx, edx
shr ecx, 0x1f
add ecx, edx
mov dl, byte [0x10186d53]
movzx eax, dl
cmp eax, ecx
jge 0x10070ee7
inc dl
mov byte [0x10186d53], dl
jmp 0x10070ee7
cmp al, 3
jne 0x10070ee7
push 0
push 0xe5
push esi
mov ecx, 0x10188580
call fcn.10077cc0
test al, al
je 0x10070b44
mov al, byte [0x10186d56]
cmp al, byte [0x10186d68]
jae 0x10070b44
inc al
mov byte [0x10186d56], al
push 0
push 0xe6
push esi
mov ecx, 0x10188580
call fcn.10077cc0
test al, al
je 0x10070b6a
mov al, byte [0x10186d56]
test al, al
je 0x10070b6a
dec al
mov byte [0x10186d56], al
push 0
push 0xe9
push esi
mov ecx, 0x10188580
call fcn.10077cc0
test al, al
je 0x10070b90
mov al, byte [0x10186d58]
cmp al, 7
jae 0x10070b90
inc al
mov byte [0x10186d58], al
push 0
push 0xea
push esi
mov ecx, 0x10188580
call fcn.10077cc0
test al, al
je 0x10070bb6
mov al, byte [0x10186d58]
test al, al
je 0x10070bb6
dec al
mov byte [0x10186d58], al
push 0
push 0xeb
push esi
mov ecx, 0x10188580
call fcn.10077cc0
test al, al
je 0x10070be0
mov al, byte [0x10186d57]
cmp al, byte [0x10186d69]
jae 0x10070be0
inc al
mov byte [0x10186d57], al
push 0
push 0xec
push esi
mov ecx, 0x10188580
call fcn.10077cc0
test al, al
je 0x10070c06
mov al, byte [0x10186d57]
test al, al
je 0x10070c06
dec al
mov byte [0x10186d57], al
push 0
push 0xd9
push esi
mov ecx, 0x10188580
call fcn.10077cc0
test al, al
je 0x10070c2a
cmp byte [0x10186d5a], 0
sete byte [0x10186d5a]
cmp byte [0x10186d59], 0
jne 0x10070ec3
push 0
push 0xda
push esi
mov ecx, 0x10188580
call fcn.10077cc0
test al, al
je 0x10070c62
cmp byte [0x10186d5b], 0
mov byte [0x10186d59], 0
sete byte [0x10186d5b]
push 0
push 0xdb
push esi
mov ecx, 0x10188580
call fcn.10077cc0
test al, al
je 0x10070c8d
cmp byte [0x10186d5c], 0
mov byte [0x10186d59], 0
sete byte [0x10186d5c]
push 0
push 0xdc
push esi
mov ecx, 0x10188580
call fcn.10077cc0
test al, al
je 0x10070cb8
cmp byte [0x10186d5d], 0
mov byte [0x10186d59], 0
sete byte [0x10186d5d]
push 0
push 0xdd
push esi
mov ecx, 0x10188580
call fcn.10077cc0
test al, al
je 0x10070ce3
cmp byte [0x10186d5e], 0
mov byte [0x10186d59], 0
sete byte [0x10186d5e]
push 0
push 0xde
push esi
mov ecx, 0x10188580
call fcn.10077cc0
test al, al
je 0x10070d0e
cmp byte [0x10186d5f], 0
mov byte [0x10186d59], 0
sete byte [0x10186d5f]
push 0
push 0xdf
push esi
mov ecx, 0x10188580
call fcn.10077cc0
test al, al
je 0x10070d39
cmp byte [0x10186d60], 0
mov byte [0x10186d59], 0
sete byte [0x10186d60]
push 0
push 0xe0
push esi
mov ecx, 0x10188580
call fcn.10077cc0
test al, al
je 0x10070d9a
mov al, byte [0x10186d62]
test al, al
sete byte [0x10186d62]
test al, al
jne 0x10070d71
mov word [0x10186d63], 0
mov byte [0x10186d65], al
jmp 0x10070d8c
cmp byte [0x10186d63], 0
jne 0x10070d93
cmp byte [0x10186d64], 0
jne 0x10070d93
cmp byte [0x10186d65], 0
jne 0x10070d93
mov byte [0x10186d62], 1
mov byte [0x10186d59], 0
push 0
push 0xe1
push esi
mov ecx, 0x10188580
call fcn.10077cc0
mov edi, 1
test al, al
je 0x10070dfd
mov al, byte [0x10186d63]
test al, al
sete byte [0x10186d63]
test al, al
jne 0x10070dd7
mov byte [0x10186d62], al
mov word [0x10186d64], 0
jmp 0x10070df6
cmp byte [0x10186d64], 0
jne 0x10070df6
movzx eax, byte [0x10186d62]
cmp byte [0x10186d65], 0
cmove eax, edi
mov byte [0x10186d62], al
mov byte [0x10186d59], 0
push 0
push 0xe2
push esi
mov ecx, 0x10188580
call fcn.10077cc0
test al, al
je 0x10070e5f
mov al, byte [0x10186d64]
test al, al
sete byte [0x10186d64]
test al, al
jne 0x10070e35
mov word [0x10186d62], 0
mov byte [0x10186d65], al
jmp 0x10070e58
cmp byte [0x10186d63], 0
jne 0x10070e58
test al, al
je 0x10070e58
movzx eax, byte [0x10186d62]
cmp byte [0x10186d65], 0
cmove eax, edi
mov byte [0x10186d62], al
mov byte [0x10186d59], 0
push 0
push 0xe3
push esi
mov ecx, 0x10188580
call fcn.10077cc0
test al, al
je 0x10070ec3
mov cl, byte [0x10186d65]
test cl, cl
sete byte [0x10186d65]
test cl, cl
jne 0x10070e99
mov word [0x10186d62], 0
mov byte [0x10186d64], cl
jmp 0x10070ebc
cmp byte [0x10186d63], 0
jne 0x10070ebc
cmp byte [0x10186d64], 0
jne 0x10070ebc
movzx eax, byte [0x10186d62]
test cl, cl
cmovne eax, edi
mov byte [0x10186d62], al
mov byte [0x10186d59], 0
push 0
push 0xe4
push esi
mov ecx, 0x10188580
call fcn.10077cc0
test al, al
je 0x10070ee7
cmp byte [0x10186d61], 0
sete byte [0x10186d61]
cmp byte [0x10186d50], 3
mov ecx, 0x10188580
push 0
jne 0x10070f31
push 0xe7
push esi
call fcn.10077cc0
test al, al
je 0x10070f0c
dec byte [0x10186d50]
push 0
push 0xe8
push esi
mov ecx, 0x10188580
call fcn.10077cc0
test al, al
je 0x10070f6e
pop edi
mov byte [0x1018c17d], 1
pop esi
mov esp, ebp
pop ebp
ret 4
push 0xc8
push esi
call fcn.10077cc0
test al, al
je 0x10070f6e
mov al, byte [0x10186d50]
test al, al
jne 0x10070f60
mov ecx, 0x10186d50
mov byte [0x1018b7fd], al
call fcn.100711a0
pop edi
pop esi
mov esp, ebp
pop ebp
ret 4
dec al
mov byte [0x10186d53], 0
mov byte [0x10186d50], al
pop edi
pop esi
mov esp, ebp
pop ebp
ret 4