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

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x5f5290
mov eax, dword fs:[0]
push eax
sub esp, 0x18
mov eax, dword [0x6baac0]
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 ebx, ecx
cmp dword [ebx + 4], 0x62cb09e3
mov edi, dword [ebp + 0x10]
mov dword [ebp - 0x24], ebx
mov dword [ebp - 0x1c], edi
je 0x480a69
xor al, al
jmp 0x480c11
mov ecx, dword [ebp + 0xc]
test ecx, ecx
jg 0x480a84
jl 0x480a79
mov eax, dword [ebp + 8]
test eax, eax
jae 0x480a87
xorps xmm0, xmm0
movlpd qword [ebp + 8], xmm0
mov ecx, dword [ebp + 0xc]
mov eax, dword [ebp + 8]
cmp byte [edi + 0xb2], 0
je 0x480ab5
cmp byte [ebx + 0x94], 0
jne 0x480ab5
cmp dword [ebx + 0x74], 0
jl 0x480ab5
jg 0x480aa7
cmp dword [ebx + 0x70], 0
jbe 0x480ab5
push ecx
push eax
push str.consumeProgress
mov ecx, edi
call fcn.00431400
cmp byte [ebx + 0x94], 0
mov byte [ebp - 0x15], 0
mov dword [ebp - 0x20], 0
jne 0x480b56
mov ecx, dword [ebx + 0x74]
mov eax, dword [ebx + 0x70]
test ecx, ecx
jl 0x480b56
jg 0x480add
test eax, eax
je 0x480b56
mov esi, dword [ebx + 0x7c]
mov edi, dword [ebx + 0x78]
push ecx
push eax
push esi
push edi
mov ecx, ebx
call fcn.00480fc0
add edi, dword [ebp + 8]
mov dword [ebp - 0x20], eax
adc esi, dword [ebp + 0xc]
mov dword [ebx + 0x78], edi
mov dword [ebx + 0x7c], esi
cmp esi, dword [ebx + 0x74]
jl 0x480b53
jg 0x480b09
cmp edi, dword [ebx + 0x70]
jbe 0x480b53
mov edi, dword [ebp - 0x1c]
cmp byte [edi + 0xb2], 0
je 0x480b45
mov eax, dword [edi]
mov ecx, edi
push str.Amount_consumed_is_greater_than_the_total.
call dword [eax + 0x14]
push dword [ebx + 0x7c]
mov ecx, edi
push dword [ebx + 0x78]
push str.m_consumed64
call fcn.00431400
push dword [ebx + 0x74]
mov ecx, edi
push dword [ebx + 0x70]
push str.m_totalAmount64
call fcn.00431400
mov eax, dword [ebx + 0x70]
mov dword [ebx + 0x78], eax
mov eax, dword [ebx + 0x74]
mov dword [ebx + 0x7c], eax
jmp 0x480b56
mov edi, dword [ebp - 0x1c]
mov cl, byte [ebx + 0x94]
xor esi, esi
test cl, cl
jne 0x480b89
mov edx, dword [ebx + 0x74]
mov eax, dword [ebx + 0x70]
test edx, edx
jl 0x480b89
jg 0x480b72
test eax, eax
je 0x480b89
push edx
push eax
push dword [ebx + 0x7c]
mov ecx, ebx
push dword [ebx + 0x78]
call fcn.00480fc0
mov cl, byte [ebx + 0x94]
mov esi, eax
mov eax, dword [ebx + 0x64]
test eax, eax
je 0x480c0e
test cl, cl
jne 0x480c2f
cmp esi, dword [ebp - 0x20]
jbe 0x480c2f
cmp esi, dword [ebx + 0x60]
jbe 0x480c2f
call sub.KERNEL32.dll_GetTickCount
cmp byte [ebx + 0x96], 0
mov dword [ebx + 0x6c], eax
je 0x480bc3
cmp esi, dword [ebx + 0x8c]
je 0x480c04
mov dword [ebx + 0x60], esi
cmp byte [edi + 0xb2], 0
je 0x480bdc
push esi
push str.percentDoneCB
mov ecx, edi
call fcn.00431470
mov ecx, dword [ebx + 0x64]
mov dword [ebp - 4], 0
cmp dword [ecx + 8], 0x77109acd
jne 0x480c04
mov eax, dword [ecx]
lea edx, [ebp - 0x15]
push edx
push esi
call dword [eax + 8]
jmp 0x480c04
cmp byte [ebp - 0x15], 0
je 0x480c0e
mov byte [ebx + 0x69], 1
mov al, byte [ebx + 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.005ebe04
mov esp, ebp
pop ebp
ret 0xc
test eax, eax
je 0x480c0e
cmp byte [ebx + 0x95], 0
jne 0x480c0e
cmp dword [ebx + 0x88], 0
je 0x480c0e
call sub.KERNEL32.dll_GetTickCount
mov edx, eax
mov esi, 0x12c
mov eax, dword [ebx + 0x88]
mov ecx, edx
sub ecx, dword [ebx + 0x6c]
test eax, eax
cmove eax, esi
cmp ecx, eax
jbe 0x480c0e
mov ecx, dword [ebx + 0x64]
mov dword [ebx + 0x90], edx
mov dword [ebx + 0x6c], edx
mov dword [ebp - 4], 2
cmp dword [ecx + 8], 0x77109acd
jne 0x480c04
mov eax, dword [ecx]
lea edx, [ebp - 0x15]
push edx
call dword [eax + 0xc]
jmp 0x480c04