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

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x5c10c0
mov eax, dword fs:[0]
push eax
sub esp, 0x1c
mov eax, dword [0x692c00]
xor eax, ebp
mov dword [ebp - 0x14], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x10], esp
mov edi, ecx
cmp dword [edi + 4], 0x62cb09e3
mov eax, dword [ebp + 0x10]
mov dword [ebp - 0x24], edi
mov dword [ebp - 0x20], eax
je 0x4a8de9
xor al, al
jmp 0x4a8fae
mov ecx, dword [ebp + 0xc]
test ecx, ecx
jg 0x4a8e04
jl 0x4a8df9
mov ebx, dword [ebp + 8]
test ebx, ebx
jae 0x4a8e07
xorps xmm0, xmm0
movlpd qword [ebp + 8], xmm0
mov ecx, dword [ebp + 0xc]
mov ebx, dword [ebp + 8]
cmp byte [0x694c55], 0
je 0x4a8e35
cmp byte [edi + 0x94], 0
jne 0x4a8e35
cmp dword [edi + 0x74], 0
jl 0x4a8e35
jg 0x4a8e27
cmp dword [edi + 0x70], 0
jbe 0x4a8e35
push ecx
push ebx
push str.consumeProgress
mov ecx, eax
call fcn.004489a0
mov al, byte [edi + 0x94]
mov byte [ebp - 0x15], 0
mov dl, al
mov dword [ebp - 0x1c], 0
mov byte [ebp - 0x16], dl
test al, al
jne 0x4a8efc
cmp dword [edi + 0x74], 0
mov ecx, dword [edi + 0x70]
mov byte [ebp - 0x16], dl
jl 0x4a8efc
jg 0x4a8e6d
test ecx, ecx
je 0x4a8efc
push dword [edi + 0x74]
mov esi, dword [edi + 0x7c]
mov eax, dword [edi + 0x78]
push ecx
push esi
push eax
mov ecx, edi
call fcn.004a9470
mov ecx, dword [edi + 0x78]
add ecx, ebx
mov dword [ebp - 0x1c], eax
mov al, byte [edi + 0x94]
adc esi, dword [ebp + 0xc]
mov dl, al
mov dword [edi + 0x78], ecx
mov dword [edi + 0x7c], esi
mov byte [ebp - 0x16], dl
cmp esi, dword [edi + 0x74]
jl 0x4a8efc
jg 0x4a8ea8
cmp ecx, dword [edi + 0x70]
jbe 0x4a8efc
cmp byte [0x694c55], 0
mov byte [ebp - 0x16], al
je 0x4a8ef0
mov ebx, dword [ebp - 0x20]
mov ecx, ebx
push str.Amount_consumed_is_greater_than_the_total.
mov eax, dword [ebx]
call dword [eax + 0x14]
push dword [edi + 0x7c]
mov ecx, ebx
push dword [edi + 0x78]
push str.m_consumed64
call fcn.004489a0
push dword [edi + 0x74]
mov ecx, ebx
push dword [edi + 0x70]
push str.m_totalAmount64
call fcn.004489a0
mov dl, byte [edi + 0x94]
mov byte [ebp - 0x16], dl
mov eax, dword [edi + 0x70]
mov ecx, dword [edi + 0x74]
mov dword [edi + 0x78], eax
mov dword [edi + 0x7c], ecx
xor esi, esi
test dl, dl
jne 0x4a8f26
mov ecx, dword [edi + 0x74]
mov eax, dword [edi + 0x70]
test ecx, ecx
jl 0x4a8f26
jg 0x4a8f12
test eax, eax
je 0x4a8f26
push ecx
push eax
push dword [edi + 0x7c]
mov ecx, edi
push dword [edi + 0x78]
call fcn.004a9470
mov dl, byte [ebp - 0x16]
mov esi, eax
cmp dword [edi + 0x64], 0
je 0x4a8fab
test dl, dl
jne 0x4a8fcc
cmp esi, dword [ebp - 0x1c]
jbe 0x4a8fcc
cmp esi, dword [edi + 0x60]
jbe 0x4a8fcc
call sub.KERNEL32.DLL_GetTickCount
cmp byte [edi + 0x96], 0
mov dword [edi + 0x6c], eax
je 0x4a8f5f
cmp esi, dword [edi + 0x8c]
je 0x4a8fa1
mov dword [edi + 0x60], esi
cmp byte [0x694c55], 0
je 0x4a8f79
mov ecx, dword [ebp - 0x20]
push esi
push str.percentDoneCB
call fcn.00448a10
mov ecx, dword [edi + 0x64]
mov dword [ebp - 4], 0
cmp dword [ecx + 8], 0x77109acd
jne 0x4a8fa1
mov eax, dword [ecx]
lea edx, [ebp - 0x15]
push edx
push esi
call dword [eax + 8]
jmp 0x4a8fa1
cmp byte [ebp - 0x15], 0
je 0x4a8fab
mov byte [edi + 0x69], 1
mov al, byte [edi + 0x69]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x14]
xor ecx, ebp
call fcn.005b34c8
mov esp, ebp
pop ebp
ret 0xc
cmp byte [edi + 0x95], 0
jne 0x4a8fab
cmp dword [edi + 0x88], 0
je 0x4a8fab
call sub.KERNEL32.DLL_GetTickCount
mov edx, eax
mov esi, 0x12c
mov eax, dword [edi + 0x88]
mov ecx, edx
sub ecx, dword [edi + 0x6c]
test eax, eax
cmove eax, esi
cmp ecx, eax
jbe 0x4a8fab
mov ecx, dword [edi + 0x64]
mov dword [edi + 0x90], edx
mov dword [edi + 0x6c], edx
mov dword [ebp - 4], 2
cmp dword [ecx + 8], 0x77109acd
jne 0x4a8fa1
mov eax, dword [ecx]
lea edx, [ebp - 0x15]
push edx
call dword [eax + 0xc]
jmp 0x4a8fa1