Function at 0x10008b80
Capabilities:
Check for time delay via gettickcount
Write 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 edi, ecx
mov esi, dword [edi + 0x2c]
mov eax, dword [ebp + 8]
mov dword [ebp - 0x30], eax
mov dword [ebp - 0x38], esi
lea eax, [esi + 8]
push eax
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov ecx, dword [ebp - 0x30]
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 - 0x34], eax
jne 0x10008d71
mov edx, dword [edi]
mov ecx, edi
mov edx, dword [edx + 0x68]
call edx
test al, al
jns 0x10008c18
cmp dword [edi + 0x5c], 0
jne 0x10008d71
call dword [sym.imp.KERNEL32.dll_GetTickCount]
sub eax, dword [ebp - 0x34]
cmp eax, dword [edi + 0xc]
ja 0x10008c7f
mov eax, dword [edi]
mov ecx, edi
mov eax, dword [eax + 0x68]
call eax
test al, al
js 0x10008bf3
mov eax, dword [edi]
mov ecx, edi
mov eax, dword [eax + 0x68]
call eax
mov byte [ebp - 0x34], al
mov eax, dword [ebp - 0x30]
push dword [eax + 0x28]
mov eax, dword [eax + 0x24]
push edi
push dword [ebp - 0x34]
call eax
add esp, 0xc
mov dword [ebp - 0x2c], eax
test eax, eax
jne 0x10008d78
mov ecx, dword [ebp - 0x30]
mov edx, dword [ecx + 0x10]
add edx, dword [ecx + 8]
adc eax, dword [ecx + 0xc]
test eax, eax
ja 0x10008c8b
jb 0x10008c58
cmp edx, dword [edi + 0x48]
ja 0x10008c8b
cmp dword [ecx + 0x10], 0x100
ja 0x10008c8b
movzx eax, byte [ecx + 0x10]
push 1
push 0x30
push ecx
push dword [ecx + 8]
mov dword [ebp - 0x34], 1
push eax
push ecx
mov ecx, edi
call fcn.10008db0
jmp 0x10008caa
mov dword [ebp - 0x2c], 7
jmp 0x10008d78
movzx eax, word [ecx + 0x10]
push 1
push 0x34
push ecx
push dword [ecx + 0xc]
mov dword [ebp - 0x34], 2
push dword [ecx + 8]
push eax
push ecx
mov ecx, edi
call fcn.10008df0
mov ecx, dword [ebp - 0x30]
xorps xmm0, xmm0
mov eax, dword [edi + 0x38]
mov dword [ebp - 0x28], eax
mov eax, dword [edi + 0x14]
mov edx, dword [ecx + 0x10]
mov dword [ebp - 0x24], eax
mov eax, dword [ecx + 0x18]
shl edx, 9
cmp dword [ecx], 0
mov dword [ebp - 0x18], eax
mov eax, dword [ecx + 0x1c]
mov dword [ebp - 0x20], edx
mov dword [ebp - 0x1c], 2
mov dword [ebp - 0x14], eax
mov dword [ebp - 0x4c], 0
movups xmmword [ebp - 0x48], xmm0
je 0x10008d00
mov eax, dword [edi + 0x38]
mov dword [ebp - 0x18], eax
mov eax, dword [ecx + 0x1c]
push edx
push dword [ecx]
push dword [edi + eax*4 + 0x3c]
call sub.VCRUNTIME140.dll_memcpy
add esp, 0xc
lea eax, [ebp - 0x4c]
push eax
push 0
push 0x18
lea eax, [ebp - 0x28]
push eax
push dword [edi + 0x50]
call dword [sym.imp.KERNEL32.dll_WriteFile]
cmp dword [edi + 0x5c], 0
mov ecx, 4
jne 0x10008d71
mov eax, dword [ebp - 0x28]
cmp eax, 1
jne 0x10008d43
mov eax, dword [edi + 0x84]
mov ecx, dword [ebp - 0x30]
mov dword [ebp - 0x2c], 0
mov eax, dword [eax + 4]
mov esi, dword [ebp - 0x38]
mov dword [ecx + 0x38], eax
jmp 0x10008d78
cmp eax, 2
jne 0x10008d62
push dword [ebp - 0x34]
mov dword [ebp - 0x2c], eax
mov ecx, edi
mov eax, dword [edi]
mov eax, dword [eax + 0x70]
call eax
mov ecx, dword [ebp - 0x30]
mov dword [ecx + 0x30], eax
mov dword [ecx + 0x34], edx
jmp 0x10008d78
test eax, eax
mov edx, 1
cmove ecx, edx
mov dword [ebp - 0x2c], ecx
jmp 0x10008d78
mov dword [ebp - 0x2c], 3
mov dword [ebp - 4], 5
mov ecx, esi
mov edx, dword [esi]
call dword [edx + 0x1c]
mov eax, dword [ebp - 0x2c]
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