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

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x59c313
mov eax, dword fs:[0]
push eax
sub esp, 0x1c
push ebx
push esi
push edi
mov eax, dword [0x676664]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
cmp dword [esi + 0x2ac], 0x991144aa
je 0x408300
push 0
call fcn.00464950
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 0x408319
mov dword [ebp - 0x14], 1
cmp byte [esi + 0x8a6], 0
je 0x408340
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 0x4088f8
lea ebx, [esi + 0x9dc]
mov ecx, ebx
call fcn.0040dfd0
test al, al
jne 0x408512
cmp dword [esi + 0x888], edi
jne 0x408512
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 0x408381
mov ecx, eax
call fcn.00465e00
jmp 0x408383
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.004664f0
test al, al
jne 0x4083af
mov dword [esi + 0x8a8], 4
jmp 0x4088f8
mov ecx, dword [esi + 0x888]
push edi
call fcn.004659d0
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 0x408410
jl 0x4083d3
cmp ecx, eax
ja 0x408410
mov ecx, dword [esi + 0x888]
mov byte [esi + 0x8a6], 1
mov dword [esi + 0x890], eax
mov dword [esi + 0x894], eax
cmp ecx, eax
je 0x4083fb
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 0x4088f8
mov edx, dword [esi + 0x338]
cmp edx, eax
jle 0x4084e0
mov eax, dword [esi + 0x33c]
test eax, eax
jle 0x4084e0
imul edx
mov ebx, edx
mov dword [ebp - 0x1c], eax
cmp ebx, edi
jl 0x40847c
jg 0x40843d
cmp eax, ecx
jb 0x40847c
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 0x4083fb
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 0x4088f8
mov ecx, dword [ebp + 0x18]
push ecx
mov ecx, dword [esi + 0x888]
push ebx
push eax
call fcn.00464640
test al, al
jne 0x4084dd
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 0x4084c8
mov edx, dword [ecx]
mov eax, dword [edx + 0x28]
push 1
call eax
mov dword [esi + 0x888], edi
mov dword [esi + 0x8a8], 3
jmp 0x4088f8
mov ecx, dword [ebp - 0x24]
mov eax, dword [esi + 0x33c]
test eax, eax
jle 0x408506
sub ecx, dword [ebp - 0x1c]
cdq
sbb edi, ebx
mov dword [esi + 0x890], eax
mov dword [esi + 0x894], edx
cmp edx, edi
jl 0x408512
jg 0x408506
cmp eax, ecx
jbe 0x408512
mov dword [esi + 0x894], edi
mov dword [esi + 0x890], ecx
cmp dword [esi + 0x888], 0
je 0x40865c
mov ecx, dword [ebp + 0xc]
xor eax, eax
mov dword [ebp + 0xc], ecx
cmp dword [esi + 0x894], eax
jg 0x40854b
jl 0x408539
cmp dword [esi + 0x890], ecx
ja 0x40854b
mov ecx, dword [esi + 0x890]
mov byte [esi + 0x8a6], 1
mov dword [ebp + 0xc], ecx
jmp 0x408551
mov byte [esi + 0x8a6], al
mov edi, dword [ebp + 8]
mov ecx, edi
call fcn.00410b60
mov edx, dword [ebp + 0xc]
mov ebx, eax
lea eax, [ebx + edx]
push eax
mov ecx, edi
mov dword [ebp - 0x18], ebx
call fcn.004156b0
test al, al
jne 0x408581
mov dword [esi + 0x8a8], 5
jmp 0x4088f8
push ebx
mov ecx, edi
call fcn.00410bd0
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 0x4085c8
mov byte [esi + 0x8a6], 1
mov eax, dword [ebp + 0x10]
test eax, eax
je 0x40860c
sub dword [esi + 0x890], eax
mov ecx, edi
sbb dword [esi + 0x894], 0
add eax, dword [ebp - 0x18]
push eax
call fcn.00410de0
mov eax, dword [ebp + 0x10]
xor ecx, ecx
add dword [esi + 0x328], eax
adc dword [esi + 0x32c], ecx
cmp byte [esi + 0x9cc], cl
jne 0x40860c
add dword [esi + 0x330], eax
adc dword [esi + 0x334], ecx
test bl, bl
jne 0x408646
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 0x408636
mov dword [esi + 0x8a8], 2
cmp byte [ebp + 0xb], 0
je 0x408646
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 0x40879c
push eax
lea ecx, [ebp - 0x28]
call fcn.00402740
mov edi, dword [ebp + 8]
mov ecx, edi
mov dword [ebp - 4], 1
call fcn.00410b60
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.00410b60
cmp eax, ebx
jbe 0x4086d6
sub eax, ebx
xor ecx, ecx
add dword [esi + 0x328], eax
adc dword [esi + 0x32c], ecx
cmp byte [esi + 0x9cc], cl
jne 0x4086d6
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 0x408708
cmp byte [ebx + 0x125], 0
je 0x408701
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 0x408776
cmp byte [esi + 0x8a6], 0
je 0x408723
mov dword [esi + 0x8a8], 3
jmp 0x40875a
mov edi, dword [ebp + 0x14]
mov edx, dword [edi]
mov eax, dword [edx + 0x10]
mov ecx, edi
call eax
test al, al
je 0x40873f
mov dword [esi + 0x8a8], 1
jmp 0x40875a
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 0x408776
mov edx, dword [esi + 0x8a8]
push edx
push str.readFailReason
mov ecx, ebx
call fcn.0044e8c0
lea ecx, [ebp - 0x28]
mov dword [ebp - 4], 0xffffffff
call fcn.00402ad0
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.00407580
mov edi, eax
test edi, edi
jne 0x4087f6
mov ebx, dword [ebp + 0x10]
cmp ebx, 0xfa
jae 0x4087c0
mov ebx, 0xfa
call sub.KERNEL32.dll_GetTickCount
mov dword [ebp - 0x18], eax
push 2
call fcn.00441780
mov ecx, dword [ebp - 0x14]
add esp, 4
call fcn.00407580
mov edi, eax
call sub.KERNEL32.dll_GetTickCount
sub eax, dword [ebp - 0x18]
cmp eax, ebx
ja 0x4087ee
test edi, edi
je 0x4087c8
jmp 0x4087f6
test edi, edi
je 0x4088df
mov ebx, dword [ebp + 8]
mov ecx, ebx
mov byte [ebp - 0xd], 0
call fcn.00410b60
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.00407b90
mov ecx, edi
mov byte [ebp + 0xb], al
call fcn.00407da0
test al, al
je 0x408834
mov byte [esi + 0x8a6], 1
mov ecx, ebx
call fcn.00410b60
mov ecx, dword [ebp - 0x18]
cmp eax, ecx
jbe 0x408866
sub eax, ecx
xor ecx, ecx
add dword [esi + 0x328], eax
adc dword [esi + 0x32c], ecx
cmp byte [esi + 0x9cc], cl
jne 0x408866
add dword [esi + 0x330], eax
adc dword [esi + 0x334], ecx
mov bl, byte [ebp + 0xb]
test bl, bl
jne 0x4088c1
cmp byte [ebp - 0xd], bl
je 0x40887c
mov ecx, dword [ebp + 0x14]
mov edx, dword [ecx]
mov eax, dword [edx + 0x18]
call eax
cmp byte [esi + 0x8a6], 0
je 0x4088ad
mov ecx, dword [ebp - 0x14]
mov dword [esi + 0x8a8], 3
call fcn.00407630
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.00407630
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