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

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x10198020
mov eax, dword fs:[0]
push eax
sub esp, 0x10
push ebx
push esi
push edi
mov eax, dword [0x1026d48c]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x10], esp
mov esi, ecx
mov dword [ebp - 0x1c], esi
cmp dword [esi + 4], 0x62cb09e3
je 0x1007ab5f
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 0xc
xor eax, eax
cmp dword [ebp + 0xc], eax
jg 0x1007ab73
jl 0x1007ab6d
cmp dword [ebp + 8], eax
jae 0x1007ab73
mov dword [ebp + 8], eax
mov dword [ebp + 0xc], eax
cmp byte [0x1026d4e4], al
je 0x1007aba4
cmp byte [esi + 0x94], al
jne 0x1007aba4
cmp dword [esi + 0x74], eax
jl 0x1007aba4
jg 0x1007ab8f
cmp dword [esi + 0x70], eax
jbe 0x1007aba4
mov eax, dword [ebp + 0xc]
mov ecx, dword [ebp + 8]
push eax
push ecx
mov ecx, dword [ebp + 0x10]
push str.consumeProgress
call fcn.10061380
cmp byte [esi + 0x94], 0
mov byte [ebp - 0x11], 0
mov dword [ebp - 0x18], 0
jne 0x1007ac4e
mov eax, dword [esi + 0x74]
test eax, eax
mov ecx, dword [esi + 0x70]
jl 0x1007ac4e
jg 0x1007abd0
test ecx, ecx
jbe 0x1007ac4e
mov ebx, dword [esi + 0x7c]
mov edi, dword [esi + 0x78]
push eax
push ecx
push ebx
push edi
mov ecx, esi
call fcn.1007a6c0
add edi, dword [ebp + 8]
mov dword [ebp - 0x18], eax
adc ebx, dword [ebp + 0xc]
mov dword [esi + 0x78], edi
mov edx, ebx
cmp edx, dword [esi + 0x74]
mov dword [esi + 0x7c], ebx
jl 0x1007ac4e
jg 0x1007ac00
mov eax, edi
cmp eax, dword [esi + 0x70]
jbe 0x1007ac4e
cmp byte [0x1026d4e4], 0
je 0x1007ac42
mov edi, dword [ebp + 0x10]
mov edx, dword [edi]
mov eax, dword [edx + 0x14]
push str.Amount_consumed_is_greater_than_the_total.
mov ecx, edi
call eax
mov ecx, dword [esi + 0x7c]
mov edx, dword [esi + 0x78]
push ecx
push edx
push str.m_consumed64
mov ecx, edi
call fcn.10061380
mov eax, dword [esi + 0x74]
mov ecx, dword [esi + 0x70]
push eax
push ecx
push str.m_totalAmount64
mov ecx, edi
call fcn.10061380
mov edx, dword [esi + 0x70]
mov eax, dword [esi + 0x74]
mov dword [esi + 0x78], edx
mov dword [esi + 0x7c], eax
mov bl, byte [esi + 0x94]
xor edi, edi
test bl, bl
jne 0x1007ac7d
mov eax, dword [esi + 0x74]
test eax, eax
mov ecx, dword [esi + 0x70]
jl 0x1007ac7d
jg 0x1007ac6a
test ecx, ecx
jbe 0x1007ac7d
mov edx, dword [esi + 0x78]
push eax
push ecx
mov ecx, dword [esi + 0x7c]
push ecx
push edx
mov ecx, esi
call fcn.1007a6c0
mov edi, eax
mov eax, dword [esi + 0x64]
test eax, eax
je 0x1007ad62
test bl, bl
jne 0x1007acf3
cmp edi, dword [ebp - 0x18]
jbe 0x1007acf3
cmp edi, dword [esi + 0x60]
jbe 0x1007acf3
call sub.KERNEL32.dll_GetTickCount
cmp byte [esi + 0x96], bl
mov dword [esi + 0x6c], eax
je 0x1007acb2
cmp edi, dword [esi + 0x8c]
je 0x1007ad58
mov dword [esi + 0x60], edi
cmp byte [0x1026d4e4], 0
je 0x1007accc
mov ecx, dword [ebp + 0x10]
push edi
push str.percentDoneCB
call fcn.100612a0
mov ecx, dword [esi + 0x64]
cmp dword [ecx + 8], 0x77109acd
mov dword [ebp - 4], 0
jne 0x1007ad58
mov eax, dword [ecx]
mov eax, dword [eax + 8]
lea edx, [ebp - 0x11]
push edx
push edi
call eax
jmp 0x1007ad58
test eax, eax
je 0x1007ad62
cmp byte [esi + 0x95], 0
jne 0x1007ad62
cmp dword [esi + 0x88], 0
je 0x1007ad62
call sub.KERNEL32.dll_GetTickCount
mov edx, dword [esi + 0x88]
mov ecx, eax
sub ecx, dword [esi + 0x6c]
test edx, edx
jne 0x1007ad22
mov edx, 0x12c
cmp ecx, edx
jbe 0x1007ad62
mov ecx, dword [esi + 0x64]
mov dword [esi + 0x90], eax
mov dword [esi + 0x6c], eax
cmp dword [ecx + 8], 0x77109acd
mov dword [ebp - 4], 2
jne 0x1007ad58
mov edx, dword [ecx]
mov edx, dword [edx + 0xc]
lea eax, [ebp - 0x11]
push eax
call edx
jmp 0x1007ad58
cmp byte [ebp - 0x11], 0
je 0x1007ad62
mov byte [esi + 0x69], 1
mov al, byte [esi + 0x69]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0xc