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

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x24
cmp byte [0x1019117d], 0
push esi
push edi
je 0x100712d6
mov esi, dword [ebp + 8]
mov ecx, 0x1018d580
push 0
push 0xee
push esi
call fcn.100784a0
test al, al
je 0x100712b7
mov al, byte [0x1018bd56]
movzx ecx, word [0x1018bd54]
mov byte [ebp - 0x1e], al
mov edx, ecx
mov al, byte [0x1018bd57]
mov byte [ebp - 0x1d], al
mov al, byte [0x1018bd58]
mov byte [ebp - 0x1c], al
mov al, byte [0x1018bd5a]
mov byte [ebp - 0x1b], al
mov al, byte [0x1018bd5b]
mov byte [ebp - 0x1a], al
mov al, byte [0x1018bd5c]
mov byte [ebp - 0x19], al
mov al, byte [0x1018bd5d]
mov esi, dword [0x1018bd98]
mov byte [ebp - 0x18], al
mov al, byte [0x1018bd5e]
mov byte [ebp - 0x17], al
mov al, byte [0x1018bd5f]
mov byte [ebp - 0x16], al
mov al, byte [0x1018bd60]
shl edx, 4
add edx, dword [0x1018bd8c]
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 [0x1018bd9c]
sub eax, esi
movzx edi, cx
sar eax, 3
xor ecx, ecx
test eax, eax
je 0x1007120e
mov edx, esi
movsx edi, di
cmp edi, dword [esi + ecx*8]
je 0x10071299
mov eax, dword [0x1018bd9c]
mov edx, esi
sub eax, edx
inc ecx
sar eax, 3
cmp ecx, eax
jb 0x100711f4
xor al, al
mov byte [ebp - 0x14], al
lea ecx, [ebp - 0x24]
mov al, byte [0x1018bd61]
mov edx, 0x16
mov byte [ebp - 0x13], al
mov al, byte [0x1018bd62]
mov byte [ebp - 0x12], al
mov al, byte [0x1018bd63]
mov byte [ebp - 0x11], al
mov al, byte [0x1018bd64]
mov byte [ebp - 0x10], al
mov al, byte [0x1018bd65]
mov byte [ebp - 0xf], al
call fcn.100c7820
pop edi
mov byte [0x1019117d], 0
mov byte [0x101907fd], 0
mov word [0x1018bd50], 0
mov dword [0x1018bd52], 0
mov dword [0x1018bd56], 0x100
mov dword [0x1018bd5a], 0
mov dword [0x1018bd5e], 0
mov dword [0x1018bd62], 1
pop esi
mov esp, ebp
pop ebp
ret 4
movzx eax, byte [0x1018bd59]
add eax, edx
mov al, byte [eax + ecx*8 + 3]
test al, al
jne 0x10071210
mov al, byte [edx + ecx*8 + 5]
jmp 0x10071210
push 0
push 0xef
push esi
mov ecx, 0x1018d580
call fcn.100784a0
test al, al
je 0x1007198e
jmp 0x10071248
cmp byte [0x101907fd], 0
je 0x1007198e
mov esi, dword [sym.imp.KERNEL32.dll_GetTickCount]
call esi
sub eax, dword [0x101907f8]
cmp eax, 0x32
jb 0x1007198e
call esi
mov esi, dword [ebp + 8]
mov dword [0x101907f8], eax
mov al, byte [0x1018bd50]
test al, al
jne 0x10071346
xor eax, eax
mov dword [ebp + 8], eax
push 0
add eax, 0xc9
mov ecx, 0x1018d580
push eax
push esi
call fcn.100784a0
test al, al
mov eax, dword [ebp + 8]
je 0x10071338
mov byte [0x1018bd51], al
mov byte [0x1018bd50], 1
inc eax
mov dword [ebp + 8], eax
cmp eax, 7
jl 0x10071312
jmp 0x10071907
cmp al, 1
jne 0x10071384
xor eax, eax
mov dword [ebp + 8], eax
nop
push 0
add eax, 0xc9
mov ecx, 0x1018d580
push eax
push esi
call fcn.100784a0
test al, al
mov eax, dword [ebp + 8]
je 0x10071376
mov byte [0x1018bd52], al
mov byte [0x1018bd50], 2
inc eax
mov dword [ebp + 8], eax
cmp eax, 9
jl 0x10071350
jmp 0x10071907
cmp al, 2
jne 0x10071532
mov eax, dword [0x1018bd90]
xor ecx, ecx
mov edx, dword [0x1018bd8c]
xor edi, edi
sub eax, edx
mov dword [ebp - 4], ecx
sar eax, 4
test eax, eax
je 0x10071455
mov dword [ebp - 8], ecx
nop
mov esi, dword [ebp - 8]
mov al, byte [0x1018bd51]
cmp al, byte [esi + edx]
mov esi, dword [ebp + 8]
jne 0x1007143b
mov eax, dword [ebp - 8]
movzx eax, byte [eax + edx + 1]
cmp eax, 0xd
ja 0x100713dc
mov ecx, eax
call fcn.100719a0
mov ecx, dword [ebp - 4]
mov dword [ebp - 0xc], eax
jmp 0x100713e3
mov dword [ebp - 0xc], 0xffffffff
movzx eax, byte [0x1018bd52]
cmp eax, dword [ebp - 0xc]
jne 0x1007143b
movzx eax, byte [0x1018bd53]
lea ecx, [eax + eax*4]
add ecx, ecx
cmp edi, ecx
jl 0x10071437
lea eax, [ecx + 0xa]
cmp edi, eax
jge 0x10071437
mov eax, edi
sub eax, ecx
mov ecx, 0x1018d580
push 0
add eax, 0xc9
push eax
push esi
call fcn.100784a0
mov edx, dword [0x1018bd8c]
test al, al
je 0x10071437
mov eax, dword [ebp - 4]
mov word [0x1018bd54], ax
mov byte [0x1018bd50], 3
mov ecx, dword [ebp - 4]
inc edi
mov eax, dword [0x1018bd90]
inc ecx
add dword [ebp - 8], 0x10
sub eax, edx
sar eax, 4
mov dword [ebp - 4], ecx
cmp ecx, eax
jb 0x100713b0
push 0
push 0xd3
push esi
mov ecx, 0x1018d580
call fcn.100784a0
test al, al
je 0x1007147b
mov al, byte [0x1018bd53]
test al, al
je 0x1007147b
dec al
mov byte [0x1018bd53], al
push 0
push 0xd4
push esi
mov ecx, 0x1018d580
call fcn.100784a0
test al, al
je 0x10071907
mov edx, dword [0x1018bd90]
xor ecx, ecx
mov eax, edx
mov dword [ebp + 8], ecx
sub eax, dword [0x1018bd8c]
sar eax, 4
test eax, eax
je 0x10071503
mov eax, dword [0x1018bd8c]
xor edi, edi
sub edx, eax
sar edx, 4
nop dword [eax + eax]
mov cl, byte [0x1018bd51]
cmp cl, byte [eax + edi]
mov ecx, dword [ebp + 8]
jne 0x100714fb
movzx ecx, byte [eax + edi + 1]
cmp ecx, 0xd
ja 0x100714e1
call fcn.100719a0
mov ecx, eax
jmp 0x100714e4
or ecx, 0xffffffff
movzx eax, byte [0x1018bd52]
cmp eax, ecx
mov ecx, dword [ebp + 8]
mov eax, dword [0x1018bd8c]
jne 0x100714fb
inc ecx
mov dword [ebp + 8], ecx
add edi, 0x10
sub edx, 1
jne 0x100714c0
mov eax, 0x66666667
imul ecx
sar edx, 2
mov ecx, edx
shr ecx, 0x1f
add ecx, edx
mov dl, byte [0x1018bd53]
movzx eax, dl
cmp eax, ecx
jge 0x10071907
inc dl
mov byte [0x1018bd53], dl
jmp 0x10071907
cmp al, 3
jne 0x10071907
push 0
push 0xe5
push esi
mov ecx, 0x1018d580
call fcn.100784a0
test al, al
je 0x10071564
mov al, byte [0x1018bd56]
cmp al, byte [0x1018bd68]
jae 0x10071564
inc al
mov byte [0x1018bd56], al
push 0
push 0xe6
push esi
mov ecx, 0x1018d580
call fcn.100784a0
test al, al
je 0x1007158a
mov al, byte [0x1018bd56]
test al, al
je 0x1007158a
dec al
mov byte [0x1018bd56], al
push 0
push 0xe9
push esi
mov ecx, 0x1018d580
call fcn.100784a0
test al, al
je 0x100715b0
mov al, byte [0x1018bd58]
cmp al, 7
jae 0x100715b0
inc al
mov byte [0x1018bd58], al
push 0
push 0xea
push esi
mov ecx, 0x1018d580
call fcn.100784a0
test al, al
je 0x100715d6
mov al, byte [0x1018bd58]
test al, al
je 0x100715d6
dec al
mov byte [0x1018bd58], al
push 0
push 0xeb
push esi
mov ecx, 0x1018d580
call fcn.100784a0
test al, al
je 0x10071600
mov al, byte [0x1018bd57]
cmp al, byte [0x1018bd69]
jae 0x10071600
inc al
mov byte [0x1018bd57], al
push 0
push 0xec
push esi
mov ecx, 0x1018d580
call fcn.100784a0
test al, al
je 0x10071626
mov al, byte [0x1018bd57]
test al, al
je 0x10071626
dec al
mov byte [0x1018bd57], al
push 0
push 0xd9
push esi
mov ecx, 0x1018d580
call fcn.100784a0
test al, al
je 0x1007164a
cmp byte [0x1018bd5a], 0
sete byte [0x1018bd5a]
cmp byte [0x1018bd59], 0
jne 0x100718e3
push 0
push 0xda
push esi
mov ecx, 0x1018d580
call fcn.100784a0
test al, al
je 0x10071682
cmp byte [0x1018bd5b], 0
mov byte [0x1018bd59], 0
sete byte [0x1018bd5b]
push 0
push 0xdb
push esi
mov ecx, 0x1018d580
call fcn.100784a0
test al, al
je 0x100716ad
cmp byte [0x1018bd5c], 0
mov byte [0x1018bd59], 0
sete byte [0x1018bd5c]
push 0
push 0xdc
push esi
mov ecx, 0x1018d580
call fcn.100784a0
test al, al
je 0x100716d8
cmp byte [0x1018bd5d], 0
mov byte [0x1018bd59], 0
sete byte [0x1018bd5d]
push 0
push 0xdd
push esi
mov ecx, 0x1018d580
call fcn.100784a0
test al, al
je 0x10071703
cmp byte [0x1018bd5e], 0
mov byte [0x1018bd59], 0
sete byte [0x1018bd5e]
push 0
push 0xde
push esi
mov ecx, 0x1018d580
call fcn.100784a0
test al, al
je 0x1007172e
cmp byte [0x1018bd5f], 0
mov byte [0x1018bd59], 0
sete byte [0x1018bd5f]
push 0
push 0xdf
push esi
mov ecx, 0x1018d580
call fcn.100784a0
test al, al
je 0x10071759
cmp byte [0x1018bd60], 0
mov byte [0x1018bd59], 0
sete byte [0x1018bd60]
push 0
push 0xe0
push esi
mov ecx, 0x1018d580
call fcn.100784a0
test al, al
je 0x100717ba
mov al, byte [0x1018bd62]
test al, al
sete byte [0x1018bd62]
test al, al
jne 0x10071791
mov word [0x1018bd63], 0
mov byte [0x1018bd65], al
jmp 0x100717ac
cmp byte [0x1018bd63], 0
jne 0x100717b3
cmp byte [0x1018bd64], 0
jne 0x100717b3
cmp byte [0x1018bd65], 0
jne 0x100717b3
mov byte [0x1018bd62], 1
mov byte [0x1018bd59], 0
push 0
push 0xe1
push esi
mov ecx, 0x1018d580
call fcn.100784a0
mov edi, 1
test al, al
je 0x1007181d
mov al, byte [0x1018bd63]
test al, al
sete byte [0x1018bd63]
test al, al
jne 0x100717f7
mov byte [0x1018bd62], al
mov word [0x1018bd64], 0
jmp 0x10071816
cmp byte [0x1018bd64], 0
jne 0x10071816
movzx eax, byte [0x1018bd62]
cmp byte [0x1018bd65], 0
cmove eax, edi
mov byte [0x1018bd62], al
mov byte [0x1018bd59], 0
push 0
push 0xe2
push esi
mov ecx, 0x1018d580
call fcn.100784a0
test al, al
je 0x1007187f
mov al, byte [0x1018bd64]
test al, al
sete byte [0x1018bd64]
test al, al
jne 0x10071855
mov word [0x1018bd62], 0
mov byte [0x1018bd65], al
jmp 0x10071878
cmp byte [0x1018bd63], 0
jne 0x10071878
test al, al
je 0x10071878
movzx eax, byte [0x1018bd62]
cmp byte [0x1018bd65], 0
cmove eax, edi
mov byte [0x1018bd62], al
mov byte [0x1018bd59], 0
push 0
push 0xe3
push esi
mov ecx, 0x1018d580
call fcn.100784a0
test al, al
je 0x100718e3
mov cl, byte [0x1018bd65]
test cl, cl
sete byte [0x1018bd65]
test cl, cl
jne 0x100718b9
mov word [0x1018bd62], 0
mov byte [0x1018bd64], cl
jmp 0x100718dc
cmp byte [0x1018bd63], 0
jne 0x100718dc
cmp byte [0x1018bd64], 0
jne 0x100718dc
movzx eax, byte [0x1018bd62]
test cl, cl
cmovne eax, edi
mov byte [0x1018bd62], al
mov byte [0x1018bd59], 0
push 0
push 0xe4
push esi
mov ecx, 0x1018d580
call fcn.100784a0
test al, al
je 0x10071907
cmp byte [0x1018bd61], 0
sete byte [0x1018bd61]
cmp byte [0x1018bd50], 3
mov ecx, 0x1018d580
push 0
jne 0x10071951
push 0xe7
push esi
call fcn.100784a0
test al, al
je 0x1007192c
dec byte [0x1018bd50]
push 0
push 0xe8
push esi
mov ecx, 0x1018d580
call fcn.100784a0
test al, al
je 0x1007198e
pop edi
mov byte [0x1019117d], 1
pop esi
mov esp, ebp
pop ebp
ret 4
push 0xc8
push esi
call fcn.100784a0
test al, al
je 0x1007198e
mov al, byte [0x1018bd50]
test al, al
jne 0x10071980
mov ecx, 0x1018bd50
mov byte [0x101907fd], al
call fcn.10071bf0
pop edi
pop esi
mov esp, ebp
pop ebp
ret 4
dec al
mov byte [0x1018bd53], 0
mov byte [0x1018bd50], al
pop edi
pop esi
mov esp, ebp
pop ebp
ret 4