Function at 0x102c1978
Capabilities:
Check for time delay via gettickcount
Get thread local storage value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x24
push ebx
push esi
push edi
mov esi, ecx
call dword [sym.imp.KERNEL32.dll_GetTickCount]
xor ebx, ebx
push esi
mov dword [ebp - 4], eax
mov dword [ebp - 0x24], ebx
mov dword [ebp - 0x20], ebx
mov dword [ebp - 0x1c], ebx
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
push dword [0x1039deb8]
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
mov edi, dword [esi + 0x20]
mov dword [ebp - 0x10], eax
cmp edi, ebx
je 0x102c19b9
add edi, 0xfffffff8
jmp 0x102c1a15
xor edi, edi
jmp 0x102c1a15
mov eax, dword [edi + 8]
cmp eax, ebx
je 0x102c19cc
add eax, 0xfffffff8
mov dword [ebp - 8], eax
jmp 0x102c19cf
mov dword [ebp - 8], ebx
mov eax, dword [ebp - 0x10]
cmp dword [edi + 0x10], eax
jne 0x102c1a12
lea eax, [ebp - 0x14]
push eax
lea eax, [ebp - 0xc]
push eax
push dword [ebp - 4]
mov ecx, edi
call fcn.102cd165
cmp dword [ebp - 0xc], ebx
je 0x102c1a12
push edi
lea ecx, [esi + 0x20]
call fcn.102c16aa
fldz
or dword [edi + 0x48], 1
fstp dword [edi + 0x18]
mov eax, dword [ebp - 4]
lea ecx, [esi + 0x1c]
mov dword [edi + 0x40], eax
push edi
mov dword [edi + 0x34], ecx
call fcn.102c1700
mov edi, dword [ebp - 8]
cmp edi, ebx
jne 0x102c19bd
mov edi, dword [esi + 0x1c]
cmp edi, ebx
je 0x102c1a28
add edi, 0xfffffff8
jmp 0x102c1aef
xor edi, edi
jmp 0x102c1aef
mov eax, dword [edi + 8]
cmp eax, ebx
je 0x102c1a3e
add eax, 0xfffffff8
mov dword [ebp - 0x18], eax
jmp 0x102c1a41
mov dword [ebp - 0x18], ebx
mov eax, dword [ebp - 0x10]
cmp dword [edi + 0x10], eax
jne 0x102c1aec
lea eax, [ebp - 0x14]
push eax
lea eax, [ebp - 0xc]
push eax
push dword [ebp - 4]
mov ecx, edi
call fcn.102cd165
cmp dword [ebp - 0x14], ebx
je 0x102c1a7a
xor ecx, ecx
lea eax, [edi + 4]
inc ecx
lock xadd dword [eax], ecx
lea eax, [ebp - 8]
push eax
lea ecx, [ebp - 0x24]
call fcn.1029e1e2
cmp dword [ebp - 0xc], ebx
je 0x102c1aec
push edi
lea ecx, [esi + 0x1c]
mov dword [edi + 0x34], ebx
call fcn.102c16aa
mov ecx, edi
call fcn.102cd21b
mov ecx, edi
cmp dword [edi + 0x24], ebx
jne 0x102c1aa4
or dword [edi + 0x48], 8
call fcn.1026238c
jmp 0x102c1aec
call fcn.102c1631
push ecx
fstp dword [esp]
call fcn.102c1613
movzx eax, al
mov dword [ebp - 8], eax
cmp eax, ebx
je 0x102c1ac7
mov eax, dword [ebp - 4]
mov dword [edi + 0x40], eax
lea ebx, [esi + 0x1c]
jmp 0x102c1ad5
push ebx
push dword [ebp - 4]
mov ecx, edi
call fcn.102c1674
lea ebx, [esi + 0x20]
push dword [ebp - 8]
mov ecx, edi
call fcn.102c1656
push edi
mov ecx, ebx
mov dword [edi + 0x34], ebx
call fcn.102c1700
xor ebx, ebx
mov edi, dword [ebp - 0x18]
mov dword [ebp - 8], edi
cmp edi, ebx
jne 0x102c1a2f
push dword [ebp - 4]
mov ecx, esi
call fcn.102c1797
mov edi, dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
push esi
mov dword [ebp - 8], eax
call edi
or byte [esi + 0x24], 4
push 1
lea eax, [ebp - 0x24]
push eax
call fcn.102c16c5
call dword [sym.imp.KERNEL32.dll_GetTickCount]
mov ebx, eax
sub ebx, dword [ebp - 4]
test byte [esi + 0x24], 2
je 0x102c1b4b
push esi
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
push dword [ebp - 4]
mov ecx, esi
call fcn.102c1797
push esi
mov dword [ebp - 8], eax
call edi
and byte [esi + 0x24], 0xfd
cmp ebx, dword [ebp - 8]
jae 0x102c1b55
sub dword [ebp - 8], ebx
jmp 0x102c1b59
and dword [ebp - 8], 0
and byte [esi + 0x24], 0xfb
lea ecx, [ebp - 0x24]
call fcn.1029d8b6
mov eax, dword [ebp - 8]
pop edi
pop esi
pop ebx
leave
ret