Function at 0x10009a90
Capabilities:
Check for time delay via gettickcount
Check if file exists
Get file attributes
Read file on windows

Disassembly:
sub esp, 0x3a0
push ebx
push ebp
push esi
xor ebp, ebp
push edi
mov dword [0x10025c34], ebp
call dword [sym.imp.KERNEL32.dll_GetTickCount]
mov esi, dword [esp + 0x3b4]
mov edi, dword [sym.imp.USER32.dll_wsprintfA]
push esi
lea eax, [esp + 0x64]
push 0x10009dd0
push eax
call edi
mov ebx, dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
add esp, 0xc
lea ecx, [esp + 0x60]
push ecx
call ebx
cmp eax, 0xffffffff
je 0x10009d05
push ebp
push esi
lea edx, [esp + 0xb8]
push 0x10008f30
push edx
mov dword [esp + 0x2c], ebp
call edi
add esp, 0x10
lea eax, [esp + 0xb0]
push eax
call ebx
cmp eax, 0xffffffff
je 0x10009b2a
inc ebp
push ebp
push esi
lea ecx, [esp + 0xb8]
push 0x10008f30
push ecx
call edi
add esp, 0x10
lea edx, [esp + 0xb0]
push edx
call ebx
cmp eax, 0xffffffff
jne 0x10009b02
mov dword [esp + 0x1c], ebp
xor ebx, ebx
test ebp, ebp
jle 0x10009d43
jmp 0x10009b3c
mov edi, dword [sym.imp.USER32.dll_wsprintfA]
push ebx
push esi
lea eax, [esp + 0xb8]
push 0x10008f30
push eax
call edi
add esp, 0x10
push 0
push 0x8000000
push 3
push 0
push 1
push 0x80000000
lea ecx, [esp + 0xc8]
push ecx
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov edi, eax
cmp edi, 0xffffffff
je 0x10009d43
mov ebp, dword [sym.imp.KERNEL32.dll_ReadFile]
push 0
lea edx, [esp + 0x14]
push edx
push 0xe
lea eax, [esp + 0x34]
push eax
push edi
call ebp
cmp dword [esp + 0x10], 0xe
je 0x10009ba1
or ebp, 0xffffffff
jmp 0x10009cc4
cmp word [esp + 0x28], 0x4d42
je 0x10009bb4
mov ebp, 0xfffffffe
jmp 0x10009cc4
mov ecx, dword [esp + 0x32]
push 0
lea edx, [esp + 0x14]
push edx
push 0x28
lea eax, [esp + 0x44]
push eax
push edi
mov dword [esp + 0x38], ecx
call ebp
mov eax, dword [esp + 0x40]
test eax, eax
mov ecx, dword [esp + 0x3c]
mov ebp, ecx
mov dword [esp + 0x14], eax
mov dword [esp + 0x20], ebp
jge 0x10009be9
neg eax
mov dword [esp + 0x14], eax
imul ecx, dword [esp + 0x14]
test ebx, ebx
mov dword [esp + 0x18], ecx
push 1
jne 0x10009c00
call dword [0x100102f8]
jmp 0x10009c07
push ebx
call dword [0x1001031c]
push ebx
call dword [0x100102dc]
mov ecx, dword [esp + 0x14]
mov esi, eax
mov eax, dword [esp + 0x18]
lea edx, [ebx + ebx*4]
shl edx, 2
push eax
mov dword [esi + 4], ebp
mov dword [esi + 8], ecx
mov dword [esi + 0xc], ebp
mov dword [esi], edx
call dword [0x10010318]
push 1
push 0
push 0x400
mov ebp, eax
push edi
mov dword [esi + 0x10], ebp
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
mov ecx, dword [esp + 0x24]
cmp ecx, eax
je 0x10009c77
push 0
lea edx, [esp + 0x14]
push edx
sub ecx, eax
push ecx
lea eax, [esp + 0x1bc]
push eax
push edi
call dword [sym.imp.KERNEL32.dll_ReadFile]
mov eax, dword [esp + 0x10]
test eax, eax
jbe 0x10009c77
mov ecx, dword [esp + 0x1b0]
mov dword [esi], ecx
mov eax, dword [esp + 0x18]
push 0
lea edx, [esp + 0x14]
push edx
push eax
push ebp
push edi
call dword [sym.imp.KERNEL32.dll_ReadFile]
mov eax, dword [esp + 0x40]
test eax, eax
jle 0x10009ca4
mov eax, dword [esp + 0x20]
mov ecx, dword [esp + 0x14]
push eax
push ecx
push eax
push ebp
call fcn.1000cc90
mov eax, dword [0x10025c34]
mov edx, dword [esp + 0x18]
add eax, edx
mov dword [0x10025c34], eax
mov dword [esi + 0x14], 1
mov esi, dword [esp + 0x3b4]
xor ebp, ebp
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push ebx
call dword [0x1001030c]
test ebp, ebp
jne 0x10009d43
mov eax, dword [esp + 0x3b8]
test eax, eax
je 0x10009cf6
mov ecx, dword [esp + 0x1c]
mov edx, dword [esp + 0x3bc]
push ecx
push ebx
push edx
call eax
cmp eax, 0xffffffff
je 0x10009d43
mov eax, dword [esp + 0x1c]
inc ebx
cmp ebx, eax
jl 0x10009b36
jmp 0x10009d43
push esi
lea eax, [esp + 0x64]
push 0x100093a0
push eax
call edi
add esp, 0xc
lea ecx, [esp + 0x60]
push ecx
call ebx
cmp eax, 0xffffffff
je 0x10009dbc
mov edx, dword [esp + 0x3c0]
mov eax, dword [esp + 0x3bc]
mov ecx, dword [esp + 0x3b8]
push edx
push eax
push ecx
push esi
call fcn.10009900
or ecx, 0xffffffff
xor eax, eax
mov edi, esi
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov eax, ecx
shr ecx, 2
mov esi, edi
lea edx, [esp + 0x60]
mov edi, edx
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
or ecx, 0xffffffff
xor eax, eax
mov edi, 0x100097c0
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov ebx, ecx
or ecx, 0xffffffff
mov esi, edi
lea edx, [esp + 0x60]
mov edi, edx
repne scasb al, byte es:[edi]
mov ecx, ebx
shr ecx, 2
dec edi
rep movsd dword es:[edi], dword [esi]
mov ecx, ebx
lea eax, [esp + 0x60]
and ecx, 3
push eax
rep movsb byte es:[edi], byte [esi]
call dword [0x10010320]
push 0
call dword [0x1001030c]
call dword [sym.imp.KERNEL32.dll_GetTickCount]
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
add esp, 0x3a0
ret 0x10
pop edi
pop esi
pop ebp
or eax, 0xffffffff
pop ebx
add esp, 0x3a0
ret 0x10