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

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x44
push esi
mov byte [ebp - 1], 1
call fcn.10018dc0
movzx eax, al
cmp eax, 1
jne 0x10019900
mov al, byte [ebp - 1]
jmp 0x10019c35
mov byte [ebp - 2], 0
call fcn.10018570
mov dword [ebp - 0x3c], eax
mov dword [ebp - 0x2c], 0
push 4
push 0x2d64ca8
call fcn.10003990
test eax, eax
jne 0x1001992c
mov ecx, dword [0x2d64ca8]
mov dword [ebp - 0x2c], ecx
mov edx, dword [ebp - 0x2c]
mov dword [ebp - 0x24], edx
cmp dword [ebp - 0x24], 0
jbe 0x10019c23
mov dword [ebp - 0x28], 0
mov dword [ebp - 8], 0
mov dword [ebp - 0x10], 0
mov dword [ebp - 0xc], 0
mov dword [ebp - 8], 0
jmp 0x1001996a
mov eax, dword [ebp - 8]
add eax, 1
mov dword [ebp - 8], eax
cmp dword [ebp - 8], 0x14f
jg 0x10019c13
call fcn.10018a80
movzx ecx, al
cmp ecx, 1
jne 0x1001998c
mov al, byte [ebp - 1]
jmp 0x10019c35
call fcn.10018a90
mov edx, dword [0x1006be60]
cmp dword [edx + 0xa4], 0
jne 0x100199aa
jmp 0x10019c28
call fcn.100183a0
imul eax, dword [ebp - 8], 0x48
add eax, dword [ebp - 0x3c]
mov dword [ebp - 0x14], eax
mov ecx, dword [ebp - 8]
add ecx, 1
mov eax, dword [ebp - 8]
add eax, 1
cdq
mov esi, 0xe
idiv esi
sub ecx, edx
mov eax, ecx
cdq
mov ecx, 0xe
idiv ecx
mov dword [ebp - 0x10], eax
mov eax, dword [ebp - 8]
add eax, 1
cdq
mov ecx, 0xe
idiv ecx
test edx, edx
jle 0x100199f7
mov edx, dword [ebp - 0x10]
add edx, 1
mov dword [ebp - 0x10], edx
mov eax, dword [ebp - 8]
add eax, 1
cdq
mov ecx, 0xe
idiv ecx
mov dword [ebp - 0xc], edx
cmp dword [ebp - 0xc], 0
jne 0x10019a15
mov dword [ebp - 0xc], 0xe
mov dword [ebp - 0x30], 0
push 1
mov edx, dword [ebp - 0x14]
push edx
call fcn.10003990
test eax, eax
jne 0x10019a5b
lea eax, [ebp - 0x30]
mov dword [ebp - 0x40], eax
mov dword [ebp - 0x1c], 0
jmp 0x10019a43
mov ecx, dword [ebp - 0x1c]
add ecx, 1
mov dword [ebp - 0x1c], ecx
cmp dword [ebp - 0x1c], 1
jge 0x10019a5b
mov edx, dword [ebp - 0x40]
add edx, dword [ebp - 0x1c]
mov eax, dword [ebp - 0x14]
add eax, dword [ebp - 0x1c]
mov cl, byte [eax]
mov byte [edx], cl
jmp 0x10019a3a
cmp dword [ebp - 0x30], 1
jne 0x10019c0e
mov edx, dword [ebp - 0x14]
push edx
call fcn.10018f60
add esp, 4
mov dword [ebp - 0x18], eax
cmp dword [ebp - 0x18], 0
jle 0x10019c0e
cmp dword [ebp - 0x18], 0xa
je 0x10019c0e
mov eax, dword [ebp - 0x14]
add eax, 0x2c
mov dword [ebp - 0x34], eax
mov dword [ebp - 0x38], 0
push 1
mov ecx, dword [ebp - 0x34]
push ecx
call fcn.10003990
test eax, eax
jne 0x10019ad7
lea edx, [ebp - 0x38]
mov dword [ebp - 0x44], edx
mov dword [ebp - 0x20], 0
jmp 0x10019abf
mov eax, dword [ebp - 0x20]
add eax, 1
mov dword [ebp - 0x20], eax
cmp dword [ebp - 0x20], 1
jge 0x10019ad7
mov ecx, dword [ebp - 0x44]
add ecx, dword [ebp - 0x20]
mov edx, dword [ebp - 0x34]
add edx, dword [ebp - 0x20]
mov al, byte [edx]
mov byte [ecx], al
jmp 0x10019ab6
cmp dword [ebp - 0x38], 0
jne 0x10019c0e
mov ecx, dword [ebp - 0xc]
shl ecx, 5
add ecx, 0x20
push ecx
mov edx, dword [ebp - 0x10]
shl edx, 5
add edx, 0x80
push edx
call fcn.10005ab0
add esp, 8
mov eax, dword [ebp - 0x28]
add eax, 1
mov dword [ebp - 0x28], eax
call dword [sym.imp.KERNEL32.dll_GetTickCount]
mov dword [0x1006bd94], eax
call dword [sym.imp.KERNEL32.dll_GetTickCount]
mov dword [0x1006bde4], eax
movzx ecx, byte [ebp - 2]
test ecx, ecx
jne 0x10019b75
mov byte [ebp - 2], 1
cmp dword [0x1006bda8], 0
jle 0x10019b60
call dword [sym.imp.KERNEL32.dll_GetTickCount]
sub eax, dword [0x1006bda8]
cmp eax, 0x15f90
jbe 0x10019b5e
call dword [sym.imp.KERNEL32.dll_GetTickCount]
mov dword [0x1006bda0], eax
mov edx, dword [0x1006bda0]
mov dword [0x1006bda8], edx
jmp 0x10019b75
call dword [sym.imp.KERNEL32.dll_GetTickCount]
mov dword [0x1006bda0], eax
mov eax, dword [0x1006bda0]
mov dword [0x1006bda8], eax
push 0x64
push 0xa
call fcn.100194e0
add esp, 8
push 0x64
push 0xa
call fcn.10019370
add esp, 8
mov ecx, dword [ebp - 0x18]
push ecx
call fcn.100184e0
add esp, 4
push 1
call fcn.10018a00
add esp, 4
cmp dword [ebp - 0x18], 4
je 0x10019bda
mov edx, dword [ebp - 0xc]
shl edx, 5
add edx, 0x20
push edx
mov eax, dword [ebp - 0x10]
shl eax, 5
add eax, 0x80
push eax
mov ecx, dword [ebp - 0x24]
push ecx
mov edx, dword [ebp - 0x14]
push edx
mov eax, dword [ebp - 0x18]
push eax
push 0x190
call fcn.10019650
add esp, 0x18
jmp 0x10019c0a
mov ecx, dword [ebp - 0xc]
shl ecx, 5
add ecx, 0x20
push ecx
mov edx, dword [ebp - 0x10]
shl edx, 5
add edx, 0x80
push edx
mov eax, dword [ebp - 0x24]
push eax
mov ecx, dword [ebp - 0x14]
push ecx
mov edx, dword [ebp - 0x18]
push edx
push 0x258
call fcn.10019650
add esp, 0x18
mov byte [ebp - 1], 0
jmp 0x10019961
cmp dword [ebp - 0x28], 1
jne 0x10019c23
push 0
call fcn.100184e0
add esp, 4
mov al, byte [ebp - 1]
jmp 0x10019c35
push 0
call fcn.100184e0
add esp, 4
mov al, byte [ebp - 1]
pop esi
mov esp, ebp
pop ebp
ret