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

Disassembly:
push 0xffffffffffffffff
push 0x10041338
mov eax, dword fs:[0]
push eax
sub esp, 0x1c
push ebx
push ebp
push esi
push edi
mov eax, dword [0x100532d0]
xor eax, esp
push eax
lea eax, [esp + 0x30]
mov dword fs:[0], eax
mov esi, ecx
cmp byte [esi + 0xa], 0
je 0x10019705
mov ecx, dword [esi + 0xc]
mov eax, dword [esp + 0x40]
mov dword [eax], ecx
mov edx, dword [esi + 0x10]
mov dword [eax + 4], edx
mov ecx, dword [esi + 0x14]
mov dword [eax + 8], ecx
mov edx, dword [esi + 0x18]
mov dword [eax + 0xc], edx
mov byte [esi + 0xa], 0
mov al, 1
jmp 0x100199e0
xor ebp, ebp
mov dword [esp + 0x1c], ebp
call sub.KERNEL32.dll_GetTickCount
mov dword [esp + 0x24], eax
mov dword [esp + 0x18], eax
lea eax, [esi + 0x5c]
mov dword [esp + 0x20], eax
mov edx, dword [esi]
mov eax, dword [edx + 0x28]
mov ecx, esi
call eax
mov ecx, dword [esp + 0x20]
or ebx, 0xffffffff
push ecx
mov dword [esp + 0x18], ebx
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov ecx, dword [esi + 0x50]
sub ecx, dword [esi + 0x4c]
mov eax, 0x2aaaaaab
imul ecx
sar edx, 2
mov eax, edx
shr eax, 0x1f
add eax, edx
mov dword [esp + 0x38], ebp
je 0x100198d8
jmp 0x10019760
mov edi, dword [esi + 0x4c]
cmp edi, dword [esi + 0x50]
jbe 0x1001976d
call fcn.1002927e
mov eax, dword [esi + 0x40]
cmp eax, ebp
jne 0x10019894
call fcn.1002927e
xor eax, eax
cmp edi, dword [eax + 0x10]
jb 0x10019789
call fcn.1002927e
mov ebx, dword [esp + 0x18]
cmp ebx, dword [edi + 4]
jb 0x100198a2
mov ebx, dword [esi + 0x4c]
cmp ebx, dword [esi + 0x50]
jbe 0x100197a3
call fcn.1002927e
mov eax, dword [esi + 0x40]
cmp eax, ebp
jne 0x1001989b
call fcn.1002927e
xor eax, eax
cmp ebx, dword [eax + 0x10]
jb 0x100197bf
call fcn.1002927e
mov ecx, dword [esi + 0x3c]
lea edi, [esi + 0x20]
inc ecx
cmp dword [edi + 0x14], ecx
ja 0x100197d4
push 1
mov ecx, edi
call fcn.10018cb0
mov ebp, dword [edi + 0x18]
add ebp, dword [edi + 0x1c]
mov eax, dword [edi + 0x14]
cmp eax, ebp
ja 0x100197e3
sub ebp, eax
mov edx, dword [edi + 0x10]
cmp dword [edx + ebp*4], 0
jne 0x100197fc
push 0x10
call fcn.1001e2d3
mov ecx, dword [edi + 0x10]
add esp, 4
mov dword [ecx + ebp*4], eax
mov edx, dword [edi + 0x10]
mov ebp, dword [edx + ebp*4]
test ebp, ebp
je 0x1001981e
mov eax, dword [ebx + 8]
mov dword [ebp], eax
mov ecx, dword [ebx + 0xc]
mov dword [ebp + 4], ecx
mov edx, dword [ebx + 0x10]
mov dword [ebp + 8], edx
mov eax, dword [ebx + 0x14]
mov dword [ebp + 0xc], eax
inc dword [edi + 0x1c]
mov edi, dword [esi + 0x50]
cmp dword [esi + 0x4c], edi
jbe 0x1001982e
call fcn.1002927e
mov ebp, dword [esi + 0x4c]
mov ebx, dword [esi + 0x40]
cmp ebp, dword [esi + 0x50]
jbe 0x1001983e
call fcn.1002927e
movzx ecx, byte [esi + 0x58]
mov eax, dword [esi + 0x40]
push ecx
push edi
push ebx
push ebp
push eax
call fcn.100189e0
mov edi, dword [esi + 0x50]
mov ecx, edi
sub ecx, dword [esi + 0x4c]
mov eax, 0x2aaaaaab
imul ecx
sar edx, 2
mov eax, edx
shr eax, 0x1f
add esp, 0x14
add eax, edx
je 0x10019873
add edi, 0xffffffe8
mov dword [esi + 0x50], edi
mov ecx, dword [esi + 0x50]
sub ecx, dword [esi + 0x4c]
mov eax, 0x2aaaaaab
imul ecx
sar edx, 2
mov ecx, edx
shr ecx, 0x1f
xor ebp, ebp
add ecx, edx
jne 0x10019760
jmp 0x100198d4
mov eax, dword [eax]
jmp 0x1001977f
mov eax, dword [eax]
jmp 0x100197b5
mov edi, dword [esi + 0x4c]
cmp edi, dword [esi + 0x50]
jbe 0x100198af
call fcn.1002927e
mov eax, dword [esi + 0x40]
cmp eax, ebp
jne 0x100199f6
call fcn.1002927e
xor eax, eax
cmp edi, dword [eax + 0x10]
jb 0x100198cb
call fcn.1002927e
mov eax, dword [edi + 4]
sub eax, ebx
mov dword [esp + 0x14], eax
mov ebx, dword [esp + 0x14]
cmp dword [esi + 0x3c], ebp
je 0x10019976
mov edi, dword [esi + 0x38]
mov edx, dword [esi + 0x3c]
add edx, edi
cmp edi, edx
jbe 0x100198f2
call fcn.1002927e
mov eax, dword [esi + 0x20]
lea ecx, [esp + 0x28]
mov dword [esp + 0x28], eax
mov dword [esp + 0x2c], edi
call fcn.10018210
mov ecx, dword [eax]
mov edi, dword [esp + 0x40]
mov dword [edi], ecx
mov edx, dword [eax + 4]
mov dword [edi + 4], edx
mov ecx, dword [eax + 8]
mov dword [edi + 8], ecx
mov edx, dword [eax + 0xc]
mov eax, edx
mov dword [edi + 0xc], edx
cmp eax, ebp
je 0x10019934
push eax
mov eax, dword [esp + 0x1c]
push eax
call fcn.10015350
add esp, 8
mov eax, dword [esi + 0x3c]
cmp eax, ebp
je 0x10019954
inc dword [esi + 0x38]
mov ecx, dword [esi + 0x38]
cmp dword [esi + 0x34], ecx
ja 0x10019949
mov dword [esi + 0x38], ebp
dec eax
mov dword [esi + 0x3c], eax
cmp eax, ebp
jne 0x10019954
mov dword [esi + 0x38], ebp
cmp dword [edi + 4], 0xfffffffe
jne 0x100199fd
mov ecx, dword [edi + 8]
cmp ecx, ebp
je 0x1001996d
mov edx, dword [ecx]
mov eax, dword [edx]
push 1
call eax
cmp dword [esi + 0x3c], ebp
jne 0x100198e1
mov ecx, dword [esp + 0x20]
push ecx
mov dword [esp + 0x3c], 0xffffffff
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
cmp byte [esi + 9], 0
jne 0x100199de
mov edi, dword [esp + 0x44]
cmp edi, 0xffffffff
je 0x100199ab
mov eax, edi
sub eax, dword [esp + 0x1c]
jns 0x100199a2
xor eax, eax
cmp ebx, 0xffffffff
je 0x100199ad
cmp ebx, eax
jge 0x100199ad
mov eax, ebx
mov ecx, dword [esi + 4]
mov edx, dword [ecx]
push 1
push eax
mov eax, dword [edx + 0xc]
call eax
call sub.KERNEL32.dll_GetTickCount
mov dword [esp + 0x18], eax
sub eax, dword [esp + 0x24]
mov dword [esp + 0x1c], eax
cmp edi, 0xffffffff
je 0x1001971f
mov ecx, edi
cmp eax, ecx
jl 0x1001971f
xor al, al
mov ecx, dword [esp + 0x30]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x28
ret 8
mov eax, dword [eax]
jmp 0x100198c1
mov edx, dword [esp + 0x20]
push edx
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
mov al, 1
jmp 0x100199e0