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

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x5cbd0f
mov eax, dword fs:[0]
push eax
sub esp, 0x2c
mov eax, dword [0x68cc00]
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 + 0x2b0], 0x991144aa
mov eax, dword [ebp + 8]
mov ebx, dword [ebp + 0x14]
mov edi, dword [ebp + 0x18]
mov dword [ebp - 0x2c], eax
mov dword [ebp - 0x38], ebx
je 0x58b222
push 0
call fcn.004014f0
add esp, 4
mov eax, dword [ebp + 0x10]
mov ecx, 1
test eax, eax
mov dword [esi + 0x8b0], 0
cmovne ecx, eax
cmp byte [esi + 0x8ae], 0
mov dword [ebp - 0x30], ecx
je 0x58b262
mov dword [esi + 0x8b0], 3
mov ecx, edi
mov eax, dword [edi]
push str.Already_at_end_of_stream
call dword [eax + 0x14]
xor al, al
jmp 0x58b7ba
lea ecx, [esi + 0x9e4]
call fcn.00406e40
test al, al
jne 0x58b409
cmp dword [esi + 0x890], 0
jne 0x58b416
push 0xd0
call fcn.005af5bb
add esp, 4
mov dword [ebp - 0x28], eax
mov dword [ebp - 4], 0
test eax, eax
je 0x58b2b7
push 0xd0
push 0
push eax
call sub.VCRUNTIME140.dll_memset
mov ecx, dword [ebp - 0x28]
add esp, 0xc
call fcn.004b3e50
jmp 0x58b2b9
xor eax, eax
push edi
lea ecx, [esi + 0x9e4]
mov dword [ebp - 4], 0xffffffff
push ecx
mov ecx, eax
mov dword [esi + 0x890], eax
call fcn.004b4a90
test al, al
jne 0x58b2e8
mov dword [esi + 0x8b0], 4
jmp 0x58b7ba
mov ecx, dword [esi + 0x890]
push edi
call fcn.004b49f0
mov ecx, eax
xorps xmm0, xmm0
mov eax, edx
mov dword [ebp - 0x34], ecx
mov dword [ebp - 0x18], eax
movlpd qword [ebp - 0x20], xmm0
test eax, eax
jg 0x58b310
jl 0x58b36d
test ecx, ecx
je 0x58b36d
mov edx, dword [esi + 0x338]
test edx, edx
jle 0x58b3b4
cmp dword [esi + 0x33c], 0
jle 0x58b3b4
mov eax, dword [esi + 0x33c]
mov ecx, dword [esi + 0x890]
imul edx
mov dword [ebp - 0x1c], eax
mov eax, dword [ebp - 0x18]
mov dword [ebp - 0x28], edx
cmp edx, eax
jl 0x58b352
jg 0x58b373
mov eax, dword [ebp - 0x1c]
cmp eax, dword [ebp - 0x34]
jb 0x58b355
jmp 0x58b373
mov eax, dword [ebp - 0x1c]
push edi
push edx
push eax
call fcn.004cd5a0
test al, al
jne 0x58b3bf
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 + 0x890]
mov dword [esi + 0x89c], 0
mov dword [esi + 0x898], 0
mov byte [esi + 0x8ae], 1
test ecx, ecx
je 0x58b399
mov eax, dword [ecx]
push 1
call dword [eax + 0x28]
mov dword [esi + 0x890], 0
xor al, al
mov dword [esi + 0x8b0], 3
jmp 0x58b7ba
mov edx, dword [ebp - 0x1c]
mov dword [ebp - 0x28], edx
mov edx, dword [ebp - 0x20]
jmp 0x58b3c8
mov ecx, dword [ebp - 0x34]
mov eax, dword [ebp - 0x18]
mov edx, dword [ebp - 0x1c]
cmp dword [esi + 0x33c], 0
jle 0x58b3fd
sub ecx, edx
sbb eax, dword [ebp - 0x28]
mov dword [ebp - 0x18], eax
mov eax, dword [esi + 0x33c]
cdq
mov dword [ebp - 0x28], eax
mov dword [esi + 0x898], eax
mov eax, dword [ebp - 0x18]
mov dword [esi + 0x89c], edx
cmp edx, eax
jl 0x58b409
jg 0x58b3fd
cmp dword [ebp - 0x28], ecx
jbe 0x58b409
mov dword [esi + 0x89c], eax
mov dword [esi + 0x898], ecx
cmp dword [esi + 0x890], 0
je 0x58b53f
cmp dword [esi + 0x89c], 0
mov eax, dword [ebp + 0xc]
mov ecx, dword [esi + 0x898]
mov dword [ebp - 0x1c], eax
jg 0x58b438
jl 0x58b431
cmp ecx, eax
ja 0x58b438
mov dword [ebp - 0x1c], ecx
mov al, 1
jmp 0x58b43a
xor al, al
mov ecx, dword [ebp - 0x2c]
mov byte [esi + 0x8ae], al
call fcn.00402f10
mov ecx, eax
mov eax, dword [ebp - 0x1c]
mov dword [ebp - 0x28], ecx
add ecx, eax
push ecx
mov ecx, dword [ebp - 0x2c]
call fcn.00438680
test al, al
jne 0x58b46e
mov dword [esi + 0x8b0], 5
jmp 0x58b7ba
push dword [ebp - 0x28]
mov ecx, dword [ebp - 0x2c]
call fcn.00438b70
mov ecx, dword [esi + 0x890]
mov edx, eax
push edi
push dword [ebp - 0x30]
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 - 0x1c]
mov eax, dword [eax + 4]
push edx
call eax
cmp byte [ebp - 0x12], 0
mov ebx, dword [ebp - 0x38]
mov byte [ebp - 0x11], al
je 0x58b4b7
mov byte [esi + 0x8ae], 1
mov edx, dword [ebp - 0x18]
test edx, edx
je 0x58b4ff
sub dword [esi + 0x898], edx
mov eax, dword [ebp - 0x28]
sbb dword [esi + 0x89c], 0
add eax, edx
mov ecx, dword [ebp - 0x2c]
push eax
call fcn.0043a980
mov eax, dword [ebp - 0x18]
add dword [esi + 0x328], eax
adc dword [esi + 0x32c], 0
cmp byte [esi + 0x9d4], 0
jne 0x58b4ff
add dword [esi + 0x330], eax
adc dword [esi + 0x334], 0
cmp byte [ebp - 0x11], 0
jne 0x58b537
mov dword [esi + 0x8b0], 4
mov ecx, ebx
mov eax, dword [ebx]
push edi
mov eax, dword [eax + 0xc]
call eax
test al, al
je 0x58b527
mov dword [esi + 0x8b0], 2
cmp byte [ebp - 0x12], 0
je 0x58b537
mov dword [esi + 0x8b0], 3
mov al, byte [ebp - 0x11]
jmp 0x58b7ba
mov eax, dword [esi + 0x8a4]
test eax, eax
je 0x58b685
xorps xmm0, xmm0
mov dword [ebp - 0x1c], 0
push eax
lea ecx, [ebp - 0x24]
movq qword [ebp - 0x24], xmm0
call fcn.0040ad50
mov ecx, dword [ebp - 0x2c]
mov dword [ebp - 4], 1
call fcn.00402f10
mov ecx, dword [esi + 0x8a4]
push edi
push ebx
push dword [ebp - 0x30]
mov dword [ebp - 0x38], eax
mov eax, dword [ecx]
push dword [ebp + 0xc]
push dword [ebp - 0x2c]
mov eax, dword [eax + 0xc]
call eax
mov ecx, dword [ebp - 0x2c]
mov byte [ebp - 0x11], al
call fcn.00402f10
mov ecx, dword [ebp - 0x38]
cmp eax, ecx
jbe 0x58b5c6
sub eax, ecx
add dword [esi + 0x328], eax
adc dword [esi + 0x32c], 0
cmp byte [esi + 0x9d4], 0
jne 0x58b5c6
add dword [esi + 0x330], eax
adc dword [esi + 0x334], 0
mov ecx, dword [esi + 0x8a4]
mov eax, dword [ecx]
mov eax, dword [eax + 0x18]
call eax
test al, al
je 0x58b5f3
cmp byte [edi + 0x129], 0
je 0x58b5ec
mov eax, dword [edi]
mov ecx, edi
push str.Reached_end_of_stream.
call dword [eax + 0x18]
mov byte [esi + 0x8ae], 1
cmp byte [ebp - 0x11], 0
jne 0x58b675
cmp byte [esi + 0x8ae], 0
je 0x58b613
mov dword [esi + 0x8b0], 3
mov eax, 3
jmp 0x58b65f
mov eax, dword [ebx]
mov ecx, ebx
mov eax, dword [eax + 0x10]
call eax
test al, al
je 0x58b631
mov dword [esi + 0x8b0], 1
mov eax, 1
jmp 0x58b65f
mov eax, dword [ebx]
mov ecx, ebx
push edi
mov eax, dword [eax + 0xc]
call eax
test al, al
je 0x58b650
mov dword [esi + 0x8b0], 2
mov eax, 2
jmp 0x58b65f
mov dword [esi + 0x8b0], 4
mov eax, 4
cmp byte [edi + 0x129], 0
je 0x58b675
push eax
push str.readFailReason
mov ecx, edi
call fcn.00448710
lea ecx, [ebp - 0x24]
call fcn.0040aeb0
mov al, byte [ebp - 0x11]
jmp 0x58b7ba
lea eax, [esi + 0x838]
mov ecx, eax
mov dword [ebp - 0x34], eax
call fcn.0058c640
mov ebx, eax
test ebx, ebx
jne 0x58b6de
mov eax, 0xfa
cmp dword [ebp + 0x10], eax
cmovae eax, dword [ebp + 0x10]
mov dword [ebp - 0x28], eax
call sub.KERNEL32.DLL_GetTickCount
mov dword [ebp - 0x30], eax
push 2
call fcn.00447b20
add esp, 4
lea ecx, [esi + 0x838]
call fcn.0058c640
mov ebx, eax
call sub.KERNEL32.DLL_GetTickCount
sub eax, dword [ebp - 0x30]
cmp eax, dword [ebp - 0x28]
ja 0x58b779
test ebx, ebx
je 0x58b6b2
mov ecx, dword [ebp - 0x2c]
mov byte [ebp - 0x11], 0
call fcn.00402f10
push edi
mov edi, dword [ebp - 0x2c]
mov ecx, ebx
push edi
push dword [ebp + 0xc]
mov dword [ebp - 0x30], eax
lea eax, [ebp - 0x11]
push eax
push dword [ebp + 0x10]
call fcn.0058cc20
mov ecx, ebx
mov byte [ebp - 0x12], al
call fcn.0058c350
test al, al
je 0x58b718
mov byte [esi + 0x8ae], 1
mov ecx, edi
call fcn.00402f10
mov ecx, dword [ebp - 0x30]
cmp eax, ecx
jbe 0x58b74b
sub eax, ecx
add dword [esi + 0x328], eax
adc dword [esi + 0x32c], 0
cmp byte [esi + 0x9d4], 0
jne 0x58b74b
add dword [esi + 0x330], eax
adc dword [esi + 0x334], 0
mov bl, byte [ebp - 0x12]
test bl, bl
jne 0x58b7b0
mov cl, byte [ebp - 0x11]
test cl, cl
je 0x58b764
mov ecx, dword [ebp - 0x38]
mov eax, dword [ecx]
call dword [eax + 0x18]
mov cl, byte [ebp - 0x11]
cmp byte [esi + 0x8ae], 0
je 0x58b79b
mov dword [esi + 0x8b0], 3
jmp 0x58b7b0
test ebx, ebx
jne 0x58b6de
mov dword [esi + 0x8b0], 5
mov ecx, edi
mov eax, dword [edi]
push str.No_stream_source.
call dword [eax + 0x14]
xor al, al
jmp 0x58b7ba
test cl, cl
mov eax, 4
mov ecx, 1
cmovne eax, ecx
mov dword [esi + 0x8b0], eax
mov ecx, dword [ebp - 0x34]
call fcn.0058c930
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.005af5a8
mov esp, ebp
pop ebp
ret 0x14