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

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x1000ab5f
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 esi, ecx
mov ecx, dword [esi + 0x2c]
mov edi, dword [ebp + 8]
mov dword [ebp - 0x38], ecx
add ecx, 8
push ecx
mov dword [ebp - 0x34], edi
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov dword [ebp - 4], 0
mov dword [edi + 0x38], 0
call dword [sym.imp.KERNEL32.dll_GetTickCount]
cmp dword [esi + 0x5c], 0
mov dword [ebp - 0x30], eax
jne 0x10008b4c
mov edx, dword [esi]
mov ecx, esi
mov edx, dword [edx + 0x68]
call edx
test al, al
jns 0x100089a5
cmp dword [esi + 0x5c], 0
jne 0x10008b4c
call dword [sym.imp.KERNEL32.dll_GetTickCount]
sub eax, dword [ebp - 0x30]
cmp eax, dword [esi + 0xc]
ja 0x100089fe
mov eax, dword [esi]
mov ecx, esi
mov eax, dword [eax + 0x68]
call eax
test al, al
js 0x10008980
mov eax, dword [esi]
mov ecx, esi
mov eax, dword [eax + 0x68]
call eax
push dword [edi + 0x28]
mov byte [ebp - 0x30], al
mov eax, dword [edi + 0x24]
push esi
push dword [ebp - 0x30]
call eax
mov edi, eax
add esp, 0xc
test edi, edi
jne 0x10008b51
mov edi, dword [ebp - 0x34]
mov ecx, dword [edi + 0x10]
mov edx, ecx
add edx, dword [edi + 8]
adc eax, dword [edi + 0xc]
test eax, eax
ja 0x10008a33
jb 0x100089e3
cmp edx, dword [esi + 0x48]
ja 0x10008a33
cmp ecx, 0x100
ja 0x10008a33
mov eax, dword [edi + 0x20]
mov dword [ebp - 0x30], 1
cmp eax, 4
jne 0x10008a08
mov al, 0x21
jmp 0x10008a16
mov edi, 7
jmp 0x10008b51
cmp eax, 5
jne 0x10008a14
mov al, 0x22
cmp ecx, 1
je 0x10008a16
mov al, 0x20
push 0
mov byte [ebp - 0x2c], al
push dword [ebp - 0x2c]
mov byte [ebp - 0x25], al
push ecx
push dword [edi + 8]
movzx eax, cl
push eax
push ecx
mov ecx, esi
call fcn.10008db0
jmp 0x10008a55
push 0
push 0x24
push ecx
push dword [edi + 0xc]
movzx eax, cx
push dword [edi + 8]
mov dword [ebp - 0x30], 2
push eax
push ecx
mov ecx, esi
mov byte [ebp - 0x25], 0x24
call fcn.10008df0
mov eax, dword [esi + 0x38]
mov ecx, dword [edi + 0x10]
mov dword [ebp - 0x24], eax
mov eax, dword [esi + 0x14]
shl ecx, 9
cmp byte [ebp - 0x25], 0x22
mov dword [ebp - 0x20], eax
mov eax, dword [edi + 0x14]
mov dword [ebp - 0x2c], ecx
mov dword [ebp - 0x1c], ecx
mov dword [ebp - 0x18], 1
mov dword [ebp - 0x14], eax
jne 0x10008a8a
movzx eax, word [esi + 0x54]
lea eax, [ecx + eax*2]
mov dword [ebp - 0x1c], eax
lea eax, [ebp - 0x4c]
mov dword [ebp - 0x4c], 0
push eax
push 0
push 0x14
lea eax, [ebp - 0x24]
xorps xmm0, xmm0
push eax
push dword [esi + 0x50]
movups xmmword [ebp - 0x48], xmm0
call dword [sym.imp.KERNEL32.dll_ReadFile]
cmp dword [esi + 0x5c], 0
mov edi, 4
jne 0x10008b4c
mov eax, dword [ebp - 0x24]
cmp eax, 1
jne 0x10008aff
cmp byte [ebp - 0x25], 0x22
mov ecx, dword [ebp - 0x34]
mov edx, dword [ebp - 0x2c]
jne 0x10008ad8
lea edi, [eax + 4]
mov dword [ecx + 0x38], edx
jmp 0x10008ae6
mov eax, dword [esi + 0x84]
xor edi, edi
mov eax, dword [eax + 4]
mov dword [ecx + 0x38], eax
cmp dword [ecx], 0
je 0x10008b51
mov eax, dword [ecx + 0x14]
push edx
push dword [esi + eax*4 + 0x3c]
push dword [ecx]
call sub.VCRUNTIME140.dll_memcpy
add esp, 0xc
jmp 0x10008b51
cmp eax, 2
jne 0x10008b40
mov eax, dword [esi]
mov ecx, esi
push dword [ebp - 0x30]
mov eax, dword [eax + 0x70]
call eax
cmp byte [ebp - 0x25], 0x22
mov ecx, dword [ebp - 0x34]
mov dword [ecx + 0x30], eax
mov dword [ecx + 0x34], edx
je 0x10008b39
mov eax, dword [esi + 0x84]
mov edx, dword [ebp - 0x2c]
mov eax, dword [eax + 4]
mov dword [ecx + 0x38], eax
cmp eax, edx
jne 0x10008b39
mov edi, 6
jmp 0x10008ae6
mov edi, 2
jmp 0x10008b51
test eax, eax
mov ecx, 1
cmove edi, ecx
jmp 0x10008b51
mov edi, 3
mov dword [ebp - 4], 5
mov ecx, dword [ebp - 0x38]
mov edx, dword [ecx]
call dword [edx + 0x1c]
mov eax, edi
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