Function at 0x40eb30
Capabilities:
Check for time delay via gettickcount

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x5a8313
mov eax, dword fs:[0]
push eax
sub esp, 0x1c
push ebx
push esi
push edi
mov eax, dword [0x68683c]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
cmp dword [esi + 0x2ac], 0x991144aa
je 0x40eb70
push 0
call fcn.0040b200
add esp, 4
mov eax, dword [ebp + 0x10]
xor edi, edi
mov dword [esi + 0x8a8], edi
mov dword [ebp - 0x14], eax
cmp eax, edi
jne 0x40eb89
mov dword [ebp - 0x14], 1
cmp byte [esi + 0x8a6], 0
je 0x40ebb0
mov ecx, dword [ebp + 0x18]
mov dword [esi + 0x8a8], 3
mov eax, dword [ecx]
mov edx, dword [eax + 0x14]
push str.Already_at_end_of_stream
call edx
jmp 0x40f168
lea ebx, [esi + 0x9dc]
mov ecx, ebx
call fcn.00414eb0
test al, al
jne 0x40ed82
cmp dword [esi + 0x888], edi
jne 0x40ed82
push 0xd0
call sub.MSVCR100.dll_void____cdecl_operator_new_unsigned_int_
add esp, 4
mov dword [ebp - 0x18], eax
mov dword [ebp - 4], edi
cmp eax, edi
je 0x40ebf1
mov ecx, eax
call fcn.00471330
jmp 0x40ebf3
xor eax, eax
mov edi, dword [ebp + 0x18]
push edi
push ebx
mov ecx, eax
mov dword [ebp - 4], 0xffffffff
mov dword [esi + 0x888], eax
call fcn.00471a20
test al, al
jne 0x40ec1f
mov dword [esi + 0x8a8], 4
jmp 0x40f168
mov ecx, dword [esi + 0x888]
push edi
call fcn.00470f00
mov ecx, eax
mov edi, edx
xor ebx, ebx
xor eax, eax
mov dword [ebp - 0x24], ecx
mov dword [ebp - 0x1c], ebx
cmp edi, eax
jg 0x40ec80
jl 0x40ec43
cmp ecx, eax
ja 0x40ec80
mov ecx, dword [esi + 0x888]
mov byte [esi + 0x8a6], 1
mov dword [esi + 0x890], eax
mov dword [esi + 0x894], eax
cmp ecx, eax
je 0x40ec6b
mov eax, dword [ecx]
mov edx, dword [eax + 0x28]
push 1
call edx
xor eax, eax
mov dword [esi + 0x888], eax
mov dword [esi + 0x8a8], 3
jmp 0x40f168
mov edx, dword [esi + 0x338]
cmp edx, eax
jle 0x40ed50
mov eax, dword [esi + 0x33c]
test eax, eax
jle 0x40ed50
imul edx
mov ebx, edx
mov dword [ebp - 0x1c], eax
cmp ebx, edi
jl 0x40ecec
jg 0x40ecad
cmp eax, ecx
jb 0x40ecec
mov ecx, dword [esi + 0x888]
xor eax, eax
mov byte [esi + 0x8a6], 1
mov dword [esi + 0x890], eax
mov dword [esi + 0x894], eax
cmp ecx, eax
je 0x40ec6b
mov eax, dword [ecx]
mov edx, dword [eax + 0x28]
push 1
call edx
xor eax, eax
mov dword [esi + 0x888], eax
mov dword [esi + 0x8a8], 3
jmp 0x40f168
mov ecx, dword [ebp + 0x18]
push ecx
mov ecx, dword [esi + 0x888]
push ebx
push eax
call fcn.0046fb80
test al, al
jne 0x40ed4d
mov ecx, dword [ebp + 0x18]
mov edx, dword [ecx]
mov eax, dword [edx + 0x14]
push str.Failed_to_skip_forward_to_source_file_part.
call eax
mov ecx, dword [esi + 0x888]
xor edi, edi
mov byte [esi + 0x8a6], 1
mov dword [esi + 0x890], edi
mov dword [esi + 0x894], edi
cmp ecx, edi
je 0x40ed38
mov edx, dword [ecx]
mov eax, dword [edx + 0x28]
push 1
call eax
mov dword [esi + 0x888], edi
mov dword [esi + 0x8a8], 3
jmp 0x40f168
mov ecx, dword [ebp - 0x24]
mov eax, dword [esi + 0x33c]
test eax, eax
jle 0x40ed76
sub ecx, dword [ebp - 0x1c]
cdq
sbb edi, ebx
mov dword [esi + 0x890], eax
mov dword [esi + 0x894], edx
cmp edx, edi
jl 0x40ed82
jg 0x40ed76
cmp eax, ecx
jbe 0x40ed82
mov dword [esi + 0x894], edi
mov dword [esi + 0x890], ecx
cmp dword [esi + 0x888], 0
je 0x40eecc
mov ecx, dword [ebp + 0xc]
xor eax, eax
mov dword [ebp + 0xc], ecx
cmp dword [esi + 0x894], eax
jg 0x40edbb
jl 0x40eda9
cmp dword [esi + 0x890], ecx
ja 0x40edbb
mov ecx, dword [esi + 0x890]
mov byte [esi + 0x8a6], 1
mov dword [ebp + 0xc], ecx
jmp 0x40edc1
mov byte [esi + 0x8a6], al
mov edi, dword [ebp + 8]
mov ecx, edi
call fcn.004078c0
mov edx, dword [ebp + 0xc]
mov ebx, eax
lea eax, [ebx + edx]
push eax
mov ecx, edi
mov dword [ebp - 0x18], ebx
call fcn.00420200
test al, al
jne 0x40edf1
mov dword [esi + 0x8a8], 5
jmp 0x40f168
push ebx
mov ecx, edi
call fcn.0041b720
mov ebx, dword [ebp + 0x18]
mov ecx, dword [esi + 0x888]
push ebx
push dword [ebp - 0x14]
mov ebx, dword [ebp + 0x14]
push ebx
lea ebx, [ebp + 0xb]
push ebx
lea ebx, [ebp + 0x10]
push ebx
mov ebx, dword [ebp + 0xc]
mov dword [ebp + 0x10], 0
mov byte [ebp + 0xb], 0
mov edx, dword [ecx]
push ebx
push eax
mov eax, dword [edx + 4]
call eax
cmp byte [ebp + 0xb], 0
mov bl, al
je 0x40ee38
mov byte [esi + 0x8a6], 1
mov eax, dword [ebp + 0x10]
test eax, eax
je 0x40ee7c
sub dword [esi + 0x890], eax
mov ecx, edi
sbb dword [esi + 0x894], 0
add eax, dword [ebp - 0x18]
push eax
call fcn.0041b930
mov eax, dword [ebp + 0x10]
xor ecx, ecx
add dword [esi + 0x328], eax
adc dword [esi + 0x32c], ecx
cmp byte [esi + 0x9cc], cl
jne 0x40ee7c
add dword [esi + 0x330], eax
adc dword [esi + 0x334], ecx
test bl, bl
jne 0x40eeb6
mov ecx, dword [ebp + 0x14]
mov eax, dword [ebp + 0x18]
mov dword [esi + 0x8a8], 4
mov edx, dword [ecx]
mov edx, dword [edx + 0xc]
push eax
call edx
test al, al
je 0x40eea6
mov dword [esi + 0x8a8], 2
cmp byte [ebp + 0xb], 0
je 0x40eeb6
mov dword [esi + 0x8a8], 3
mov al, bl
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0x14
mov eax, dword [esi + 0x89c]
test eax, eax
je 0x40f00c
push eax
lea ecx, [ebp - 0x28]
call fcn.00408d30
mov edi, dword [ebp + 8]
mov ecx, edi
mov dword [ebp - 4], 1
call fcn.004078c0
mov edx, dword [ebp + 0x18]
mov ecx, dword [esi + 0x89c]
push edx
mov edx, dword [ebp + 0x14]
push edx
mov edx, dword [ebp - 0x14]
push edx
mov edx, dword [ebp + 0xc]
mov ebx, eax
mov eax, dword [ecx]
mov eax, dword [eax + 0xc]
push edx
push edi
call eax
mov ecx, edi
mov byte [ebp + 0xb], al
call fcn.004078c0
cmp eax, ebx
jbe 0x40ef46
sub eax, ebx
xor ecx, ecx
add dword [esi + 0x328], eax
adc dword [esi + 0x32c], ecx
cmp byte [esi + 0x9cc], cl
jne 0x40ef46
add dword [esi + 0x330], eax
adc dword [esi + 0x334], ecx
mov ecx, dword [esi + 0x89c]
mov edx, dword [ecx]
mov eax, dword [edx + 0x18]
call eax
mov ebx, dword [ebp + 0x18]
test al, al
je 0x40ef78
cmp byte [ebx + 0x125], 0
je 0x40ef71
mov edx, dword [ebx]
mov eax, dword [edx + 0x18]
push str.Reached_end_of_stream.
mov ecx, ebx
call eax
mov byte [esi + 0x8a6], 1
cmp byte [ebp + 0xb], 0
jne 0x40efe6
cmp byte [esi + 0x8a6], 0
je 0x40ef93
mov dword [esi + 0x8a8], 3
jmp 0x40efca
mov edi, dword [ebp + 0x14]
mov edx, dword [edi]
mov eax, dword [edx + 0x10]
mov ecx, edi
call eax
test al, al
je 0x40efaf
mov dword [esi + 0x8a8], 1
jmp 0x40efca
mov edx, dword [edi]
mov eax, dword [edx + 0xc]
push ebx
mov ecx, edi
call eax
xor ecx, ecx
test al, al
sete cl
lea ecx, [ecx + ecx + 2]
mov dword [esi + 0x8a8], ecx
cmp byte [ebx + 0x125], 0
je 0x40efe6
mov edx, dword [esi + 0x8a8]
push edx
push str.readFailReason
mov ecx, ebx
call fcn.00459e10
lea ecx, [ebp - 0x28]
mov dword [ebp - 4], 0xffffffff
call fcn.004090c0
mov al, byte [ebp + 0xb]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0x14
lea ecx, [esi + 0x830]
mov dword [ebp - 0x14], ecx
call fcn.0040ddf0
mov edi, eax
test edi, edi
jne 0x40f066
mov ebx, dword [ebp + 0x10]
cmp ebx, 0xfa
jae 0x40f030
mov ebx, 0xfa
call sub.KERNEL32.dll_GetTickCount
mov dword [ebp - 0x18], eax
push 2
call fcn.0044cc90
mov ecx, dword [ebp - 0x14]
add esp, 4
call fcn.0040ddf0
mov edi, eax
call sub.KERNEL32.dll_GetTickCount
sub eax, dword [ebp - 0x18]
cmp eax, ebx
ja 0x40f05e
test edi, edi
je 0x40f038
jmp 0x40f066
test edi, edi
je 0x40f14f
mov ebx, dword [ebp + 8]
mov ecx, ebx
mov byte [ebp - 0xd], 0
call fcn.004078c0
mov ecx, dword [ebp + 0xc]
mov dword [ebp - 0x18], eax
mov eax, dword [ebp + 0x18]
push eax
mov eax, dword [ebp + 0x10]
push ebx
push ecx
lea edx, [ebp - 0xd]
push edx
push eax
mov ecx, edi
call fcn.0040e400
mov ecx, edi
mov byte [ebp + 0xb], al
call fcn.0040e610
test al, al
je 0x40f0a4
mov byte [esi + 0x8a6], 1
mov ecx, ebx
call fcn.004078c0
mov ecx, dword [ebp - 0x18]
cmp eax, ecx
jbe 0x40f0d6
sub eax, ecx
xor ecx, ecx
add dword [esi + 0x328], eax
adc dword [esi + 0x32c], ecx
cmp byte [esi + 0x9cc], cl
jne 0x40f0d6
add dword [esi + 0x330], eax
adc dword [esi + 0x334], ecx
mov bl, byte [ebp + 0xb]
test bl, bl
jne 0x40f131
cmp byte [ebp - 0xd], bl
je 0x40f0ec
mov ecx, dword [ebp + 0x14]
mov edx, dword [ecx]
mov eax, dword [edx + 0x18]
call eax
cmp byte [esi + 0x8a6], 0
je 0x40f11d
mov ecx, dword [ebp - 0x14]
mov dword [esi + 0x8a8], 3
call fcn.0040dea0
mov al, bl
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0x14
movzx ecx, byte [ebp - 0xd]
neg ecx
sbb ecx, ecx
and ecx, 0xfffffffd
add ecx, 4
mov dword [esi + 0x8a8], ecx
mov ecx, dword [ebp - 0x14]
call fcn.0040dea0
mov al, bl
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0x14
mov ecx, dword [ebp + 0x18]
mov dword [esi + 0x8a8], 5
mov edx, dword [ecx]
mov eax, dword [edx + 0x14]
push str.No_stream_source.
call eax
xor al, al
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0x14