Function at 0x10008450
Capabilities:
Check for time delay via gettickcount
Read file on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x1000ab1f
mov eax, dword fs:[0]
push eax
sub esp, 0x40
mov eax, dword [0x1000f014]
xor eax, ebp
mov dword [ebp - 0x10], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, ecx
mov esi, dword [edi + 0x2c]
mov eax, dword [ebp + 8]
mov dword [ebp - 0x2c], eax
mov dword [ebp - 0x34], esi
lea eax, [esi + 8]
push eax
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov ecx, dword [ebp - 0x2c]
mov dword [ebp - 4], 0
mov dword [ecx + 0x38], 0
call dword [sym.imp.KERNEL32.dll_GetTickCount]
cmp dword [edi + 0x5c], 0
mov dword [ebp - 0x30], eax
jne 0x1000866c
mov edx, dword [edi]
mov ecx, edi
mov edx, dword [edx + 0x68]
call edx
test al, al
jns 0x100084e8
cmp dword [edi + 0x5c], 0
jne 0x1000866c
call dword [sym.imp.KERNEL32.dll_GetTickCount]
sub eax, dword [ebp - 0x30]
cmp eax, dword [edi + 0xc]
ja 0x10008559
mov eax, dword [edi]
mov ecx, edi
mov eax, dword [eax + 0x68]
call eax
test al, al
js 0x100084c3
mov eax, dword [edi]
mov ecx, edi
mov eax, dword [eax + 0x68]
call eax
mov byte [ebp - 0x30], al
mov eax, dword [ebp - 0x2c]
push dword [eax + 0x28]
mov eax, dword [eax + 0x24]
push edi
push dword [ebp - 0x30]
call eax
add esp, 0xc
mov dword [ebp - 0x28], eax
test eax, eax
jne 0x10008673
mov ecx, dword [ebp - 0x2c]
mov dword [edi + 0x64], 1
mov edx, dword [ecx + 0x10]
add edx, dword [ecx + 8]
adc eax, dword [ecx + 0xc]
test eax, eax
ja 0x10008565
jb 0x1000852f
cmp edx, dword [edi + 0x48]
ja 0x10008565
cmp dword [ecx + 0x10], 0x100
ja 0x10008565
movzx eax, byte [ecx + 0x10]
push 0
push 0xc8
push ecx
push dword [ecx + 8]
mov dword [ebp - 0x30], 1
push eax
push ecx
mov ecx, edi
call fcn.10008db0
jmp 0x10008584
mov dword [ebp - 0x28], 7
jmp 0x10008673
movzx eax, word [ecx + 0x10]
push 0
push 0x25
push ecx
push dword [ecx + 0xc]
mov dword [ebp - 0x30], 2
push dword [ecx + 8]
push eax
push ecx
mov ecx, edi
call fcn.10008df0
mov ecx, dword [ebp - 0x2c]
xorps xmm0, xmm0
mov eax, dword [edi + 0x38]
mov dword [ebp - 0x24], eax
mov eax, dword [edi + 0x44]
mov edx, dword [ecx + 0x10]
mov dword [ebp - 0x20], eax
mov eax, dword [ecx + 0x14]
mov dword [ebp - 0x14], eax
lea eax, [ebp - 0x4c]
push eax
push 0
push 0x14
lea eax, [ebp - 0x24]
shl edx, 9
push eax
push dword [edi + 0x50]
mov dword [ebp - 0x38], edx
mov dword [ebp - 0x1c], edx
mov dword [ebp - 0x18], 2
mov dword [ebp - 0x4c], 0
movups xmmword [ebp - 0x48], xmm0
call dword [sym.imp.KERNEL32.dll_ReadFile]
cmp dword [edi + 0x5c], 0
mov ecx, 4
je 0x100085ed
mov dword [ebp - 0x28], 3
mov dword [edi + 0x64], 0
jmp 0x10008673
mov eax, dword [ebp - 0x24]
cmp eax, 1
jne 0x10008630
mov eax, dword [edi + 0x84]
mov ecx, dword [ebp - 0x2c]
mov dword [ebp - 0x28], 0
mov eax, dword [eax + 4]
mov edx, dword [ecx]
mov dword [ecx + 0x38], eax
test edx, edx
je 0x10008624
mov eax, dword [ecx + 0x14]
push dword [ebp - 0x38]
push dword [edi + eax*4 + 0x3c]
push edx
call sub.VCRUNTIME140.dll_memcpy
add esp, 0xc
mov esi, dword [ebp - 0x34]
mov dword [edi + 0x64], 0
jmp 0x10008673
cmp eax, 2
jne 0x10008656
push dword [ebp - 0x30]
mov dword [ebp - 0x28], eax
mov ecx, edi
mov eax, dword [edi]
mov eax, dword [eax + 0x70]
call eax
mov ecx, dword [ebp - 0x2c]
mov dword [ecx + 0x30], eax
mov dword [ecx + 0x34], edx
mov dword [edi + 0x64], 0
jmp 0x10008673
test eax, eax
mov dword [edi + 0x64], 0
mov edx, 1
cmove ecx, edx
mov dword [ebp - 0x28], ecx
jmp 0x10008673
mov dword [ebp - 0x28], 3
mov dword [ebp - 4], 5
mov ecx, esi
mov edx, dword [esi]
call dword [edx + 0x1c]
mov eax, dword [ebp - 0x28]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.100091f8
mov esp, ebp
pop ebp
ret 4