Function at 0x1c78ab0
Capabilities:
Check for time delay via gettickcount
Set thread local storage value

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
and esp, 0xfffffff8
sub esp, 0x60
mov edi, ecx
mov eax, dword [0x1d01324]
xor eax, ebp
mov dword [esp + 0x58], eax
mov eax, dword [ecx]
push 0
push 1
call dword [eax + 4]
test al, al
je 0x1c790b8
call dword [sym.imp.KERNEL32.dll_GetTickCount]
mov dword [edi + 0x26ac], eax
mov edx, dword [edi + 0x2468]
cmp edx, 0xa
mov ecx, 0xa
cmovl ecx, edx
mov dword [edi + 0x2468], ecx
mov dword [esp + 0x14], eax
mov dword [edi + 0x26cc], eax
lea eax, [edi + 0x62cb8]
push eax
call fcn.01cc9731
add esp, 4
mov ecx, edi
push 0
call fcn.01c79710
test al, al
je 0x1c790b8
lea eax, [edi + 0x26b4]
mov dword [esp + 0xc], eax
mov ebx, dword [sym.imp.KERNEL32.dll_GetTickCount]
mov dword [esp + 4], edi
jmp 0x1c78b58
mov ecx, edi
push edx
call fcn.01c7a260
nop word cs:[eax + eax]
nop
test al, al
je case.default.0x1c78f90
cmp dword [edi + 0x5d0f8], 7
je 0x1c78b7e
cmp dword [edi + 0x26a8], 0
je 0x1c78b7e
call ebx
sub eax, dword [edi + 0x26ac]
cmp eax, dword [edi + 0x26a8]
ja 0x1c790ae
lea eax, [esp + 0x30]
xorpd xmm0, xmm0
movupd xmmword [eax + 0x10], xmm0
movupd xmmword [eax], xmm0
mov dword [eax + 0x24], 0
mov dword [eax + 0x20], 0
mov eax, dword [edi + 0x2464]
mov dword [esp + 0x2c], eax
mov eax, dword [edi + 0x26d8]
mov edi, dword [edi + 0x26dc]
sub edi, eax
test edi, edi
jle 0x1c79066
sar edi, 2
cmp edi, 0xb
mov ecx, 0xb
cmovge edi, ecx
cmp edi, 1
mov edx, 1
cmovg edx, edi
xor ecx, ecx
cmp edi, 2
jl 0x1c78c29
mov ebx, edx
and ebx, 0x7ffffffe
xor ecx, ecx
jmp 0x1c78bfb
mov dword [esp + ecx*4 + 0x34], esi
add ecx, 2
cmp ebx, ecx
je 0x1c78c20
mov edi, dword [eax + ecx*4]
mov esi, dword [edi + 0x10]
test esi, esi
jne 0x1c78c08
mov esi, dword [edi + 0xc]
mov dword [esp + ecx*4 + 0x30], esi
mov edi, dword [eax + ecx*4 + 4]
mov esi, dword [edi + 0x10]
test esi, esi
jne 0x1c78bf0
mov esi, dword [edi + 0xc]
jmp 0x1c78bf0
lea esi, [ecx - 1]
mov ebx, dword [sym.imp.KERNEL32.dll_GetTickCount]
test dl, 1
mov edi, dword [esp + 4]
je 0x1c78c45
mov edx, dword [eax + ecx*4]
mov eax, dword [edx + 0x10]
test eax, eax
jne 0x1c78c3f
mov eax, dword [edx + 0xc]
mov dword [esp + ecx*4 + 0x30], eax
mov esi, ecx
add esi, 2
push 0x1f4
push 0
lea eax, [esp + 0x34]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_WaitForMultipleObjects]
mov dword [esp + 0x10], eax
call ebx
mov esi, eax
sub esi, dword [esp + 0x14]
cmp esi, 0x1f3
jbe 0x1c78eaa
mov dword [esp + 0x14], eax
mov ebx, dword [edi + 0x26b8]
mov ecx, dword [edi + 0x26c0]
cmp ebx, dword [edi + 0x26bc]
je 0x1c78c9e
mov dword [ebx + 4], esi
mov dword [ebx], ecx
add ebx, 8
mov dword [edi + 0x26b8], ebx
jmp 0x1c78d6e
mov eax, dword [esp + 0xc]
sub ebx, dword [eax]
mov edi, ebx
sar edi, 3
lea eax, [edi + 1]
cmp eax, 0x20000000
jae 0x1c790cb
sar ebx, 2
cmp ebx, eax
cmovb ebx, eax
cmp edi, 0xfffffff
mov eax, 0x1fffffff
cmovae ebx, eax
test ebx, ebx
je 0x1c78cf9
mov dword [esp + 8], ecx
cmp ebx, 0x20000000
jae 0x1c790d4
lea eax, [ebx*8]
push eax
call fcn.01cb30d6
add esp, 4
mov edx, eax
mov ecx, dword [esp + 8]
jmp 0x1c78cfb
xor edx, edx
lea eax, [edx + edi*8]
mov dword [edx + edi*8 + 4], esi
mov esi, eax
mov dword [edx + edi*8], ecx
mov ecx, dword [esp + 4]
mov eax, dword [ecx + 0x26b4]
mov ecx, dword [ecx + 0x26b8]
sub ecx, eax
sub esi, ecx
test ecx, ecx
mov dword [esp + 8], esi
jle 0x1c78d38
push ecx
push eax
push esi
mov esi, edx
call fcn.01cb6be0
mov edx, esi
add esp, 0xc
mov eax, dword [esp + 0xc]
mov eax, dword [eax]
lea ecx, [edx + ebx*8]
lea ebx, [edx + edi*8]
add ebx, 8
mov esi, dword [esp + 4]
mov edx, dword [esp + 8]
mov dword [esi + 0x26b4], edx
mov dword [esi + 0x26b8], ebx
mov dword [esi + 0x26bc], ecx
test eax, eax
je 0x1c78d6e
push eax
call fcn.01cb3106
add esp, 4
mov ebx, dword [esi + 0x26b8]
mov eax, dword [esp + 0xc]
mov edi, dword [eax]
mov eax, ebx
sub eax, edi
sar eax, 3
cmp eax, 7
jb 0x1c78da0
lea eax, [edi + 8]
sub ebx, eax
je 0x1c78da4
push ebx
push eax
push edi
call fcn.01cb7160
add esp, 0xc
mov eax, dword [esp + 0xc]
mov eax, dword [eax]
jmp 0x1c78da6
mov eax, edi
jmp 0x1c78db4
mov eax, edi
add ebx, edi
mov ecx, dword [esp + 4]
mov dword [ecx + 0x26b8], ebx
mov edi, eax
mov ecx, ebx
sub ecx, edi
cmp ecx, 0x30
jne 0x1c78e96
sub edi, ebx
cmp edi, 0x30
mov ecx, 0x30
cmovle edi, ecx
shr edi, 3
lea ecx, [edi - 1]
mov dword [esp + 8], ecx
mov ecx, edi
and ecx, 3
xor esi, esi
mov ebx, 0
mov edx, 0
cmp dword [esp + 8], 3
jb 0x1c78e26
and edi, 0xffffffc
xor esi, esi
xor ebx, ebx
xor edx, edx
nop dword [eax]
add edx, dword [eax + esi*8 + 4]
add ebx, dword [eax + esi*8]
add edx, dword [eax + esi*8 + 0xc]
add ebx, dword [eax + esi*8 + 8]
add edx, dword [eax + esi*8 + 0x14]
add ebx, dword [eax + esi*8 + 0x10]
add edx, dword [eax + esi*8 + 0x1c]
add ebx, dword [eax + esi*8 + 0x18]
add esi, 4
cmp edi, esi
jne 0x1c78e00
test ecx, ecx
je 0x1c78e4e
lea eax, [eax + esi*8]
add eax, 4
xor esi, esi
nop word cs:[eax + eax]
nop dword [eax]
add edx, dword [eax + esi*8]
add ebx, dword [eax + esi*8 - 4]
add esi, 1
cmp ecx, esi
jne 0x1c78e40
movd xmm0, ebx
movq xmm2, qword [0x1ce0410]
por xmm0, xmm2
subsd xmm0, xmm2
movd xmm1, edx
por xmm1, xmm2
subsd xmm1, xmm2
divsd xmm0, xmm1
mulsd xmm0, qword [0x1ce0840]
movsd qword [esp + 0x18], xmm0
fld qword [esp + 0x18]
fisttp qword [esp + 0x18]
mov eax, dword [esp + 0x18]
mov ecx, dword [esp + 4]
mov dword [ecx + 0x26b0], eax
mov edi, dword [esp + 4]
mov dword [edi + 0x26c0], 0
mov ebx, dword [sym.imp.KERNEL32.dll_GetTickCount]
mov dword [esp + 0x24], 0xffffffff
mov dword [esp + 0x20], 0xffffffff
lea eax, [esp + 0x20]
push eax
call fcn.01cc9731
add esp, 4
mov eax, dword [esp + 0x20]
sub eax, dword [edi + 0x62cb8]
mov ecx, dword [esp + 0x24]
sbb ecx, dword [edi + 0x62cbc]
mov dword [edi + 0x62cc0], eax
mov dword [edi + 0x62cc4], ecx
mov eax, dword [edi + 0x26b0]
test eax, eax
je 0x1c78f20
mov ecx, dword [edi + 0x5d100]
mov edx, dword [edi + 0x5d104]
mov esi, ecx
and esi, edx
cmp esi, 0xffffffff
je 0x1c78f20
sub ecx, dword [edi + 0x5d110]
sbb edx, dword [edi + 0x5d114]
push 0
push eax
push edx
push ecx
call fcn.01cb3560
jmp 0x1c78f24
xor eax, eax
xor edx, edx
mov ecx, dword [esp + 0x10]
mov dword [edi + 0x62cc8], eax
mov dword [edi + 0x62ccc], edx
cmp ecx, 0x102
je 0x1c78fb0
test ecx, ecx
je 0x1c790a5
cmp ecx, 0xffffffff
je case.default.0x1c78f90
mov eax, dword [edi + 0x26d8]
mov esi, dword [eax + ecx*4 - 4]
call ebx
mov dword [edi + 0x26c4], eax
mov eax, dword [esi + 0x10]
test eax, eax
je 0x1c78f7d
push eax
call dword [sym.imp.KERNEL32.dll_CancelWaitableTimer]
push dword [esi + 0x10]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [esi + 0x10], 0
mov eax, dword [esi + 0x28]
cmp eax, 0xa
ja case.default.0x1c78f90
mov edx, dword [esp + 0x10]
add edx, 0xffffffff
jmp dword [eax*4 + 0x1cea174]
mov ecx, edi
push edx
call fcn.01c7a2f0
jmp 0x1c78b50
cmp dword [edi + 0x246c], 6
jne 0x1c78b58
call ebx
mov ecx, eax
sub ecx, dword [edi + 0x26a4]
cmp ecx, 0x3e9
jb 0x1c78b58
mov dword [edi + 0x26a4], eax
mov eax, dword [edi]
mov ecx, edi
push 0
push 6
call dword [eax + 4]
test al, al
jne 0x1c78b58
jmp 0x1c790b8
mov ecx, edi
push edx
call fcn.01c7a3c0
jmp 0x1c78b50
mov ecx, edi
push edx
call fcn.01c7a5b0
jmp 0x1c78b50
mov ecx, edi
push edx
call fcn.01c7ac40
jmp 0x1c78b50
mov ecx, edi
push edx
call fcn.01c7acd0
jmp 0x1c78b50
mov ecx, edi
push edx
call fcn.01c7adb0
jmp 0x1c78b50
mov ecx, edi
push edx
call fcn.01c7afa0
jmp 0x1c78b50
mov ecx, edi
push edx
call fcn.01c7b300
jmp 0x1c78b50
mov ecx, edi
push edx
call fcn.01c7b420
jmp 0x1c78b50
mov ecx, edi
push edx
call fcn.01c7b5a0
jmp 0x1c78b50
mov ecx, dword [esp + 4]
cmp byte [ecx + 0x26f0], 0
je 0x1c790b8
mov eax, dword [ecx + 0x5d110]
cmp eax, dword [ecx + 0x5d100]
mov eax, dword [ecx + 0x5d114]
sbb eax, dword [ecx + 0x5d104]
jae 0x1c790b8
mov dword [ecx + 0x5d0f8], 8
jmp 0x1c790b8
mov dword [edi + 0x5d0f8], 8
jmp 0x1c790b8
cmp dword [edi + 0x5d0f8], 7
je 0x1c790b8
mov dword [edi + 0x5d0f8], 9
mov ecx, dword [esp + 0x58]
xor ecx, ebp
call fcn.01cb3141
lea esp, [ebp - 0xc]
pop esi
pop edi
pop ebx
pop ebp
ret
mov ecx, dword [esp + 0xc]
call fcn.01c41eac
call fcn.01cc6b80
int3