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

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x5cbd5f
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 0x58b292
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 0x58b2d2
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 0x58b82a
lea ecx, [esi + 0x9e4]
call fcn.00406eb0
test al, al
jne 0x58b479
cmp dword [esi + 0x890], 0
jne 0x58b486
push 0xd0
call fcn.005af62b
add esp, 4
mov dword [ebp - 0x28], eax
mov dword [ebp - 4], 0
test eax, eax
je 0x58b327
push 0xd0
push 0
push eax
call sub.VCRUNTIME140.dll_memset
mov ecx, dword [ebp - 0x28]
add esp, 0xc
call fcn.004b3e80
jmp 0x58b329
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.004b4ac0
test al, al
jne 0x58b358
mov dword [esi + 0x8b0], 4
jmp 0x58b82a
mov ecx, dword [esi + 0x890]
push edi
call fcn.004b4a20
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 0x58b380
jl 0x58b3dd
test ecx, ecx
je 0x58b3dd
mov edx, dword [esi + 0x338]
test edx, edx
jle 0x58b424
cmp dword [esi + 0x33c], 0
jle 0x58b424
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 0x58b3c2
jg 0x58b3e3
mov eax, dword [ebp - 0x1c]
cmp eax, dword [ebp - 0x34]
jb 0x58b3c5
jmp 0x58b3e3
mov eax, dword [ebp - 0x1c]
push edi
push edx
push eax
call fcn.004cd610
test al, al
jne 0x58b42f
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 0x58b409
mov eax, dword [ecx]
push 1
call dword [eax + 0x28]
mov dword [esi + 0x890], 0
xor al, al
mov dword [esi + 0x8b0], 3
jmp 0x58b82a
mov edx, dword [ebp - 0x1c]
mov dword [ebp - 0x28], edx
mov edx, dword [ebp - 0x20]
jmp 0x58b438
mov ecx, dword [ebp - 0x34]
mov eax, dword [ebp - 0x18]
mov edx, dword [ebp - 0x1c]
cmp dword [esi + 0x33c], 0
jle 0x58b46d
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 0x58b479
jg 0x58b46d
cmp dword [ebp - 0x28], ecx
jbe 0x58b479
mov dword [esi + 0x89c], eax
mov dword [esi + 0x898], ecx
cmp dword [esi + 0x890], 0
je 0x58b5af
cmp dword [esi + 0x89c], 0
mov eax, dword [ebp + 0xc]
mov ecx, dword [esi + 0x898]
mov dword [ebp - 0x1c], eax
jg 0x58b4a8
jl 0x58b4a1
cmp ecx, eax
ja 0x58b4a8
mov dword [ebp - 0x1c], ecx
mov al, 1
jmp 0x58b4aa
xor al, al
mov ecx, dword [ebp - 0x2c]
mov byte [esi + 0x8ae], al
call fcn.00402f80
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.004386f0
test al, al
jne 0x58b4de
mov dword [esi + 0x8b0], 5
jmp 0x58b82a
push dword [ebp - 0x28]
mov ecx, dword [ebp - 0x2c]
call fcn.00438be0
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 0x58b527
mov byte [esi + 0x8ae], 1
mov edx, dword [ebp - 0x18]
test edx, edx
je 0x58b56f
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.0043a9f0
mov eax, dword [ebp - 0x18]
add dword [esi + 0x328], eax
adc dword [esi + 0x32c], 0
cmp byte [esi + 0x9d4], 0
jne 0x58b56f
add dword [esi + 0x330], eax
adc dword [esi + 0x334], 0
cmp byte [ebp - 0x11], 0
jne 0x58b5a7
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 0x58b597
mov dword [esi + 0x8b0], 2
cmp byte [ebp - 0x12], 0
je 0x58b5a7
mov dword [esi + 0x8b0], 3
mov al, byte [ebp - 0x11]
jmp 0x58b82a
mov eax, dword [esi + 0x8a4]
test eax, eax
je 0x58b6f5
xorps xmm0, xmm0
mov dword [ebp - 0x1c], 0
push eax
lea ecx, [ebp - 0x24]
movq qword [ebp - 0x24], xmm0
call fcn.0040adc0
mov ecx, dword [ebp - 0x2c]
mov dword [ebp - 4], 1
call fcn.00402f80
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.00402f80
mov ecx, dword [ebp - 0x38]
cmp eax, ecx
jbe 0x58b636
sub eax, ecx
add dword [esi + 0x328], eax
adc dword [esi + 0x32c], 0
cmp byte [esi + 0x9d4], 0
jne 0x58b636
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 0x58b663
cmp byte [edi + 0x129], 0
je 0x58b65c
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 0x58b6e5
cmp byte [esi + 0x8ae], 0
je 0x58b683
mov dword [esi + 0x8b0], 3
mov eax, 3
jmp 0x58b6cf
mov eax, dword [ebx]
mov ecx, ebx
mov eax, dword [eax + 0x10]
call eax
test al, al
je 0x58b6a1
mov dword [esi + 0x8b0], 1
mov eax, 1
jmp 0x58b6cf
mov eax, dword [ebx]
mov ecx, ebx
push edi
mov eax, dword [eax + 0xc]
call eax
test al, al
je 0x58b6c0
mov dword [esi + 0x8b0], 2
mov eax, 2
jmp 0x58b6cf
mov dword [esi + 0x8b0], 4
mov eax, 4
cmp byte [edi + 0x129], 0
je 0x58b6e5
push eax
push str.readFailReason
mov ecx, edi
call fcn.00448770
lea ecx, [ebp - 0x24]
call fcn.0040af20
mov al, byte [ebp - 0x11]
jmp 0x58b82a
lea eax, [esi + 0x838]
mov ecx, eax
mov dword [ebp - 0x34], eax
call fcn.0058c6b0
mov ebx, eax
test ebx, ebx
jne 0x58b74e
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.00447b80
add esp, 4
lea ecx, [esi + 0x838]
call fcn.0058c6b0
mov ebx, eax
call sub.KERNEL32.DLL_GetTickCount
sub eax, dword [ebp - 0x30]
cmp eax, dword [ebp - 0x28]
ja 0x58b7e9
test ebx, ebx
je 0x58b722
mov ecx, dword [ebp - 0x2c]
mov byte [ebp - 0x11], 0
call fcn.00402f80
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.0058cc90
mov ecx, ebx
mov byte [ebp - 0x12], al
call fcn.0058c3c0
test al, al
je 0x58b788
mov byte [esi + 0x8ae], 1
mov ecx, edi
call fcn.00402f80
mov ecx, dword [ebp - 0x30]
cmp eax, ecx
jbe 0x58b7bb
sub eax, ecx
add dword [esi + 0x328], eax
adc dword [esi + 0x32c], 0
cmp byte [esi + 0x9d4], 0
jne 0x58b7bb
add dword [esi + 0x330], eax
adc dword [esi + 0x334], 0
mov bl, byte [ebp - 0x12]
test bl, bl
jne 0x58b820
mov cl, byte [ebp - 0x11]
test cl, cl
je 0x58b7d4
mov ecx, dword [ebp - 0x38]
mov eax, dword [ecx]
call dword [eax + 0x18]
mov cl, byte [ebp - 0x11]
cmp byte [esi + 0x8ae], 0
je 0x58b80b
mov dword [esi + 0x8b0], 3
jmp 0x58b820
test ebx, ebx
jne 0x58b74e
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 0x58b82a
test cl, cl
mov eax, 4
mov ecx, 1
cmovne eax, ecx
mov dword [esi + 0x8b0], eax
mov ecx, dword [ebp - 0x34]
call fcn.0058c9a0
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.005af618
mov esp, ebp
pop ebp
ret 0x14