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

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x5cfe5f
mov eax, dword fs:[0]
push eax
sub esp, 0x2c
mov eax, dword [0x692c00]
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 0x58f092
push 0
call fcn.00401520
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 0x58f0d2
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 0x58f62a
lea ecx, [esi + 0x9e4]
call fcn.00406ee0
test al, al
jne 0x58f279
cmp dword [esi + 0x890], 0
jne 0x58f286
push 0xd0
call fcn.005b34db
add esp, 4
mov dword [ebp - 0x28], eax
mov dword [ebp - 4], 0
test eax, eax
je 0x58f127
push 0xd0
push 0
push eax
call sub.VCRUNTIME140.dll_memset
mov ecx, dword [ebp - 0x28]
add esp, 0xc
call fcn.004b4a80
jmp 0x58f129
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.004b56c0
test al, al
jne 0x58f158
mov dword [esi + 0x8b0], 4
jmp 0x58f62a
mov ecx, dword [esi + 0x890]
push edi
call fcn.004b5620
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 0x58f180
jl 0x58f1dd
test ecx, ecx
je 0x58f1dd
mov edx, dword [esi + 0x338]
test edx, edx
jle 0x58f224
cmp dword [esi + 0x33c], 0
jle 0x58f224
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 0x58f1c2
jg 0x58f1e3
mov eax, dword [ebp - 0x1c]
cmp eax, dword [ebp - 0x34]
jb 0x58f1c5
jmp 0x58f1e3
mov eax, dword [ebp - 0x1c]
push edi
push edx
push eax
call fcn.004e5960
test al, al
jne 0x58f22f
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 0x58f209
mov eax, dword [ecx]
push 1
call dword [eax + 0x28]
mov dword [esi + 0x890], 0
xor al, al
mov dword [esi + 0x8b0], 3
jmp 0x58f62a
mov edx, dword [ebp - 0x1c]
mov dword [ebp - 0x28], edx
mov edx, dword [ebp - 0x20]
jmp 0x58f238
mov ecx, dword [ebp - 0x34]
mov eax, dword [ebp - 0x18]
mov edx, dword [ebp - 0x1c]
cmp dword [esi + 0x33c], 0
jle 0x58f26d
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 0x58f279
jg 0x58f26d
cmp dword [ebp - 0x28], ecx
jbe 0x58f279
mov dword [esi + 0x89c], eax
mov dword [esi + 0x898], ecx
cmp dword [esi + 0x890], 0
je 0x58f3af
cmp dword [esi + 0x89c], 0
mov eax, dword [ebp + 0xc]
mov ecx, dword [esi + 0x898]
mov dword [ebp - 0x1c], eax
jg 0x58f2a8
jl 0x58f2a1
cmp ecx, eax
ja 0x58f2a8
mov dword [ebp - 0x1c], ecx
mov al, 1
jmp 0x58f2aa
xor al, al
mov ecx, dword [ebp - 0x2c]
mov byte [esi + 0x8ae], al
call fcn.00402fb0
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.00438990
test al, al
jne 0x58f2de
mov dword [esi + 0x8b0], 5
jmp 0x58f62a
push dword [ebp - 0x28]
mov ecx, dword [ebp - 0x2c]
call fcn.00438e80
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 0x58f327
mov byte [esi + 0x8ae], 1
mov edx, dword [ebp - 0x18]
test edx, edx
je 0x58f36f
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.0043ac90
mov eax, dword [ebp - 0x18]
add dword [esi + 0x328], eax
adc dword [esi + 0x32c], 0
cmp byte [esi + 0x9d4], 0
jne 0x58f36f
add dword [esi + 0x330], eax
adc dword [esi + 0x334], 0
cmp byte [ebp - 0x11], 0
jne 0x58f3a7
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 0x58f397
mov dword [esi + 0x8b0], 2
cmp byte [ebp - 0x12], 0
je 0x58f3a7
mov dword [esi + 0x8b0], 3
mov al, byte [ebp - 0x11]
jmp 0x58f62a
mov eax, dword [esi + 0x8a4]
test eax, eax
je 0x58f4f5
xorps xmm0, xmm0
mov dword [ebp - 0x1c], 0
push eax
lea ecx, [ebp - 0x24]
movq qword [ebp - 0x24], xmm0
call fcn.0040aef0
mov ecx, dword [ebp - 0x2c]
mov dword [ebp - 4], 1
call fcn.00402fb0
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.00402fb0
mov ecx, dword [ebp - 0x38]
cmp eax, ecx
jbe 0x58f436
sub eax, ecx
add dword [esi + 0x328], eax
adc dword [esi + 0x32c], 0
cmp byte [esi + 0x9d4], 0
jne 0x58f436
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 0x58f463
cmp byte [edi + 0x129], 0
je 0x58f45c
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 0x58f4e5
cmp byte [esi + 0x8ae], 0
je 0x58f483
mov dword [esi + 0x8b0], 3
mov eax, 3
jmp 0x58f4cf
mov eax, dword [ebx]
mov ecx, ebx
mov eax, dword [eax + 0x10]
call eax
test al, al
je 0x58f4a1
mov dword [esi + 0x8b0], 1
mov eax, 1
jmp 0x58f4cf
mov eax, dword [ebx]
mov ecx, ebx
push edi
mov eax, dword [eax + 0xc]
call eax
test al, al
je 0x58f4c0
mov dword [esi + 0x8b0], 2
mov eax, 2
jmp 0x58f4cf
mov dword [esi + 0x8b0], 4
mov eax, 4
cmp byte [edi + 0x129], 0
je 0x58f4e5
push eax
push str.readFailReason
mov ecx, edi
call fcn.00448a10
lea ecx, [ebp - 0x24]
call fcn.0040b050
mov al, byte [ebp - 0x11]
jmp 0x58f62a
lea eax, [esi + 0x838]
mov ecx, eax
mov dword [ebp - 0x34], eax
call fcn.00590560
mov ebx, eax
test ebx, ebx
jne 0x58f54e
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.00447e20
add esp, 4
lea ecx, [esi + 0x838]
call fcn.00590560
mov ebx, eax
call sub.KERNEL32.DLL_GetTickCount
sub eax, dword [ebp - 0x30]
cmp eax, dword [ebp - 0x28]
ja 0x58f5e9
test ebx, ebx
je 0x58f522
mov ecx, dword [ebp - 0x2c]
mov byte [ebp - 0x11], 0
call fcn.00402fb0
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.00590b40
mov ecx, ebx
mov byte [ebp - 0x12], al
call fcn.00590270
test al, al
je 0x58f588
mov byte [esi + 0x8ae], 1
mov ecx, edi
call fcn.00402fb0
mov ecx, dword [ebp - 0x30]
cmp eax, ecx
jbe 0x58f5bb
sub eax, ecx
add dword [esi + 0x328], eax
adc dword [esi + 0x32c], 0
cmp byte [esi + 0x9d4], 0
jne 0x58f5bb
add dword [esi + 0x330], eax
adc dword [esi + 0x334], 0
mov bl, byte [ebp - 0x12]
test bl, bl
jne 0x58f620
mov cl, byte [ebp - 0x11]
test cl, cl
je 0x58f5d4
mov ecx, dword [ebp - 0x38]
mov eax, dword [ecx]
call dword [eax + 0x18]
mov cl, byte [ebp - 0x11]
cmp byte [esi + 0x8ae], 0
je 0x58f60b
mov dword [esi + 0x8b0], 3
jmp 0x58f620
test ebx, ebx
jne 0x58f54e
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 0x58f62a
test cl, cl
mov eax, 4
mov ecx, 1
cmovne eax, ecx
mov dword [esi + 0x8b0], eax
mov ecx, dword [ebp - 0x34]
call fcn.00590850
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.005b34c8
mov esp, ebp
pop ebp
ret 0x14