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

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x5f50fa
mov eax, dword fs:[0]
push eax
sub esp, 0x34
mov eax, dword [0x6baac0]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
cmp dword [esi + 0x348], 0x991144aa
mov eax, dword [ebp + 8]
mov ebx, dword [ebp + 0x14]
mov edi, dword [ebp + 0x18]
mov dword [ebp - 0x28], eax
mov dword [ebp - 0x40], ebx
je 0x47ecd2
push 0
call fcn.0040c4e0
add esp, 4
mov eax, dword [ebp + 0x10]
mov ecx, 1
test eax, eax
mov dword [esi + 0x850], 0
cmovne ecx, eax
cmp byte [esi + 0x84e], 0
mov dword [ebp - 0x3c], ecx
je 0x47ed12
mov dword [esi + 0x850], 3
mov ecx, edi
mov eax, dword [edi]
push str.Already_at_end_of_stream
call dword [eax + 0x14]
xor al, al
jmp 0x47f25f
lea ecx, [esi + 0x984]
call fcn.0040a680
test al, al
jne 0x47eebb
cmp dword [esi + 0x830], 0
jne 0x47eec8
push 0xd0
call sub.mfc140.dll_Ordinal_1507
add esp, 4
mov dword [ebp - 0x30], eax
mov dword [ebp - 4], 0
test eax, eax
je 0x47ed67
push 0xd0
push 0
push eax
call sub.VCRUNTIME140.dll_memset
mov ecx, dword [ebp - 0x30]
add esp, 0xc
call fcn.004819f0
jmp 0x47ed69
xor eax, eax
push edi
lea ecx, [esi + 0x984]
mov dword [ebp - 4], 0xffffffff
push ecx
mov ecx, eax
mov dword [esi + 0x830], eax
call fcn.00482550
test al, al
jne 0x47ed98
mov dword [esi + 0x850], 4
jmp 0x47f25f
mov ecx, dword [esi + 0x830]
push edi
call fcn.004824b0
mov ecx, eax
xorps xmm0, xmm0
mov eax, edx
mov dword [ebp - 0x30], ecx
mov dword [ebp - 0x2c], eax
movlpd qword [ebp - 0x38], xmm0
test eax, eax
jg 0x47edc0
jl 0x47ee17
test ecx, ecx
je 0x47ee17
mov edx, dword [esi + 0x3d8]
test edx, edx
jle 0x47ee5e
cmp dword [esi + 0x3dc], 0
jle 0x47ee5e
mov eax, dword [esi + 0x3dc]
imul edx
mov dword [ebp - 0x18], edx
mov edx, dword [ebp - 0x2c]
mov dword [ebp - 0x34], eax
cmp dword [ebp - 0x18], edx
jl 0x47edf7
jg 0x47ee17
cmp eax, ecx
jae 0x47ee17
mov ecx, dword [esi + 0x830]
push edi
push dword [ebp - 0x18]
push eax
call fcn.004a9d00
test al, al
jne 0x47ee69
mov eax, dword [edi]
mov ecx, edi
push str.Failed_to_skip_forward_to_source_file_part.
call dword [eax + 0x14]
mov ecx, dword [esi + 0x830]
mov byte [esi + 0x84e], 1
mov dword [esi + 0x838], 0
mov dword [esi + 0x83c], 0
test ecx, ecx
je 0x47ee43
mov eax, dword [ecx]
push 1
call dword [eax + 0x28]
mov dword [esi + 0x830], 0
xor al, al
mov dword [esi + 0x850], 3
jmp 0x47f25f
mov edx, dword [ebp - 0x34]
mov dword [ebp - 0x18], edx
mov edx, dword [ebp - 0x38]
jmp 0x47ee72
mov ecx, dword [ebp - 0x30]
mov eax, dword [ebp - 0x2c]
mov edx, dword [ebp - 0x34]
cmp dword [esi + 0x3dc], 0
jle 0x47eeaf
sub ecx, edx
sbb eax, dword [ebp - 0x18]
mov dword [ebp - 0x2c], eax
mov eax, dword [esi + 0x3dc]
cdq
mov dword [esi + 0x83c], edx
mov edx, dword [ebp - 0x2c]
mov dword [esi + 0x838], eax
cmp dword [esi + 0x83c], edx
jl 0x47eebb
jg 0x47eea7
cmp eax, ecx
jbe 0x47eebb
mov dword [esi + 0x83c], edx
jmp 0x47eeb5
mov dword [esi + 0x83c], eax
mov dword [esi + 0x838], ecx
cmp dword [esi + 0x830], 0
je 0x47eff9
cmp dword [esi + 0x83c], 0
mov eax, dword [ebp + 0xc]
mov dword [ebp - 0x2c], eax
jg 0x47eef3
jl 0x47eee1
cmp dword [esi + 0x838], eax
ja 0x47eef3
mov eax, dword [esi + 0x838]
mov byte [esi + 0x84e], 1
mov dword [ebp - 0x2c], eax
jmp 0x47eefa
mov byte [esi + 0x84e], 0
mov ecx, dword [ebp - 0x28]
call fcn.00401c90
mov ecx, eax
mov eax, dword [ebp - 0x2c]
mov dword [ebp - 0x30], ecx
add ecx, eax
push ecx
mov ecx, dword [ebp - 0x28]
call fcn.00414430
test al, al
jne 0x47ef28
mov dword [esi + 0x850], 5
jmp 0x47f25f
push dword [ebp - 0x30]
mov ecx, dword [ebp - 0x28]
call fcn.004148e0
mov ecx, dword [esi + 0x830]
mov edx, eax
push edi
push dword [ebp - 0x3c]
mov dword [ebp - 0x18], 0
push ebx
lea ebx, [ebp - 0x12]
mov byte [ebp - 0x12], 0
mov eax, dword [ecx]
push ebx
lea ebx, [ebp - 0x18]
push ebx
push dword [ebp - 0x2c]
mov eax, dword [eax + 4]
push edx
call eax
cmp byte [ebp - 0x12], 0
mov ebx, dword [ebp - 0x40]
mov byte [ebp - 0x11], al
je 0x47ef71
mov byte [esi + 0x84e], 1
mov edx, dword [ebp - 0x18]
test edx, edx
je 0x47efb9
sub dword [esi + 0x838], edx
mov eax, dword [ebp - 0x30]
sbb dword [esi + 0x83c], 0
add eax, edx
mov ecx, dword [ebp - 0x28]
push eax
call fcn.00415c90
mov eax, dword [ebp - 0x18]
add dword [esi + 0x3c8], eax
adc dword [esi + 0x3cc], 0
cmp byte [esi + 0x974], 0
jne 0x47efb9
add dword [esi + 0x3d0], eax
adc dword [esi + 0x3d4], 0
cmp byte [ebp - 0x11], 0
jne 0x47eff1
mov dword [esi + 0x850], 4
mov ecx, ebx
mov eax, dword [ebx]
push edi
mov eax, dword [eax + 0xc]
call eax
test al, al
je 0x47efe1
mov dword [esi + 0x850], 2
cmp byte [ebp - 0x12], 0
je 0x47eff1
mov dword [esi + 0x850], 3
mov al, byte [ebp - 0x11]
jmp 0x47f25f
mov eax, dword [esi + 0x844]
test eax, eax
je 0x47f12a
xorps xmm0, xmm0
mov dword [ebp - 0x1c], 0
push eax
lea ecx, [ebp - 0x24]
movq qword [ebp - 0x24], xmm0
call fcn.00411190
mov ecx, dword [ebp - 0x28]
mov dword [ebp - 4], 1
call fcn.00401c90
mov ecx, dword [esi + 0x844]
push edi
push ebx
push dword [ebp - 0x3c]
mov dword [ebp - 0x34], eax
mov eax, dword [ecx]
push dword [ebp + 0xc]
push dword [ebp - 0x28]
mov eax, dword [eax + 0xc]
call eax
mov ecx, dword [ebp - 0x28]
mov byte [ebp - 0x11], al
call fcn.00401c90
mov ecx, dword [ebp - 0x34]
cmp eax, ecx
jbe 0x47f080
sub eax, ecx
add dword [esi + 0x3c8], eax
adc dword [esi + 0x3cc], 0
cmp byte [esi + 0x974], 0
jne 0x47f080
add dword [esi + 0x3d0], eax
adc dword [esi + 0x3d4], 0
mov ecx, dword [esi + 0x844]
mov eax, dword [ecx]
mov eax, dword [eax + 0x18]
call eax
test al, al
je 0x47f0ad
cmp byte [edi + 0xad], 0
je 0x47f0a6
mov eax, dword [edi]
mov ecx, edi
push str.Reached_end_of_stream.
call dword [eax + 0x18]
mov byte [esi + 0x84e], 1
cmp byte [ebp - 0x11], 0
jne 0x47f11a
cmp byte [esi + 0x84e], 0
je 0x47f0c8
mov dword [esi + 0x850], 3
jmp 0x47f0ff
mov eax, dword [ebx]
mov ecx, ebx
mov eax, dword [eax + 0x10]
call eax
test al, al
je 0x47f0e1
mov dword [esi + 0x850], 1
jmp 0x47f0ff
mov eax, dword [ebx]
mov ecx, ebx
push edi
mov eax, dword [eax + 0xc]
call eax
xor ecx, ecx
test al, al
sete cl
lea ecx, [ecx*2 + 2]
mov dword [esi + 0x850], ecx
cmp byte [edi + 0xad], 0
je 0x47f11a
push dword [esi + 0x850]
mov ecx, edi
push str.readFailReason
call fcn.00431470
lea ecx, [ebp - 0x24]
call fcn.004112f0
mov al, byte [ebp - 0x11]
jmp 0x47f25f
lea eax, [esi + 0x7d8]
mov ecx, eax
mov dword [ebp - 0x30], eax
call fcn.0047fd00
mov ebx, eax
test ebx, ebx
jne 0x47f183
mov eax, 0xfa
cmp dword [ebp + 0x10], eax
cmovae eax, dword [ebp + 0x10]
mov dword [ebp - 0x3c], eax
call sub.KERNEL32.dll_GetTickCount
mov dword [ebp - 0x34], eax
push 2
call fcn.004308f0
add esp, 4
lea ecx, [esi + 0x7d8]
call fcn.0047fd00
mov ebx, eax
call sub.KERNEL32.dll_GetTickCount
sub eax, dword [ebp - 0x34]
cmp eax, dword [ebp - 0x3c]
ja 0x47f21e
test ebx, ebx
je 0x47f157
mov ecx, dword [ebp - 0x28]
mov byte [ebp - 0x11], 0
call fcn.00401c90
push edi
mov edi, dword [ebp - 0x28]
mov ecx, ebx
push edi
push dword [ebp + 0xc]
mov dword [ebp - 0x34], eax
lea eax, [ebp - 0x11]
push eax
push dword [ebp + 0x10]
call fcn.0047ffb0
mov ecx, ebx
mov byte [ebp - 0x12], al
call fcn.0047f8b0
test al, al
je 0x47f1bd
mov byte [esi + 0x84e], 1
mov ecx, edi
call fcn.00401c90
mov ecx, dword [ebp - 0x34]
cmp eax, ecx
jbe 0x47f1f0
sub eax, ecx
add dword [esi + 0x3c8], eax
adc dword [esi + 0x3cc], 0
cmp byte [esi + 0x974], 0
jne 0x47f1f0
add dword [esi + 0x3d0], eax
adc dword [esi + 0x3d4], 0
mov bl, byte [ebp - 0x12]
test bl, bl
jne 0x47f255
mov cl, byte [ebp - 0x11]
test cl, cl
je 0x47f209
mov ecx, dword [ebp - 0x40]
mov eax, dword [ecx]
call dword [eax + 0x18]
mov cl, byte [ebp - 0x11]
cmp byte [esi + 0x84e], 0
je 0x47f240
mov dword [esi + 0x850], 3
jmp 0x47f255
test ebx, ebx
jne 0x47f183
mov dword [esi + 0x850], 5
mov ecx, edi
mov eax, dword [edi]
push str.No_stream_source.
call dword [eax + 0x14]
xor al, al
jmp 0x47f25f
test cl, cl
mov eax, 4
mov ecx, 1
cmovne eax, ecx
mov dword [esi + 0x850], eax
mov ecx, dword [ebp - 0x30]
call fcn.0047fe50
mov al, bl
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.005ebe04
mov esp, ebp
pop ebp
ret 0x14