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

Disassembly:
sub esp, 0x2d4
mov eax, dword [0x100dd9d4]
xor eax, esp
mov dword [esp + 0x2d0], eax
push ebp
push esi
mov eax, 0x64
cmp dword [esp + 0x2e0], eax
push edi
mov esi, ecx
jle 0x10040f3e
mov dword [esp + 0x2e4], eax
fild dword [esp + 0x2e4]
fmul qword [esi + 0x4288]
fiadd dword [esi + 0x4290]
call fcn.100594f0
mov ecx, dword [esi + 0x130]
mov edi, eax
mov eax, dword [ecx]
mov edx, dword [eax + 0x4c]
call edx
cmp eax, edi
jge 0x10040f77
mov ecx, dword [esi + 0x130]
mov eax, dword [ecx]
mov edx, dword [eax + 8]
push edi
call edx
mov ebp, dword [sym.imp.KERNEL32.dll_GetTickCount]
mov eax, 1
test byte [0x100e72dc], al
jne 0x10040f97
or dword [0x100e72dc], eax
call ebp
mov dword [0x100e72d8], eax
call ebp
sub eax, dword [0x100e72d8]
cmp eax, 0x3e8
jb 0x1004126c
xor edi, edi
cmp dword [esi + 0x134], edi
jne 0x1004126c
push ebx
push 0xfe
lea eax, [esp + 0xe6]
push edi
push eax
mov word [esp + 0xec], di
call sub.ntdll.dll_memset
push 0xfe
lea ecx, [esp + 0x1f2]
push edi
push ecx
mov word [esp + 0x1f8], di
call sub.ntdll.dll_memset
mov eax, dword [esi + 0x4298]
mov ecx, dword [esi + 0x429c]
add esp, 0x18
mov dword [esp + 0x10], eax
or eax, ecx
mov dword [esp + 0x14], ecx
je 0x100411d0
mov edx, dword [esi + 0x250]
or edx, dword [esi + 0x254]
je 0x100411d0
fild qword [esp + 0x10]
fstp qword [esp + 0x18]
call ebp
sub eax, dword [esi + 0x42a0]
test eax, eax
mov dword [esp + 0x10], eax
fild dword [esp + 0x10]
jge 0x10041042
fadd qword [0x100644a0]
fdiv qword [0x10064d08]
push 0x3e
lea eax, [esp + 0xa6]
push edi
push eax
mov word [esp + 0xac], di
fdivr qword [esp + 0x24]
fstp qword [esp + 0x24]
call sub.ntdll.dll_memset
fild dword [esi + 0x4324]
mov ecx, dword [esi + 0x4324]
test ecx, ecx
jge 0x1004107e
fadd qword [0x100644a0]
fmul qword [esp + 0x24]
call fcn.10059526
push edx
push eax
lea ecx, [esp + 0xb4]
call fcn.1001df00
push 0x3e
lea edx, [esp + 0x3a]
push edi
push edx
mov word [esp + 0x40], di
call sub.ntdll.dll_memset
push 0x3e
lea eax, [esp + 0x86]
push edi
push eax
mov word [esp + 0x8c], di
call sub.ntdll.dll_memset
mov edx, dword [esi + 0x429c]
mov eax, dword [esi + 0x4298]
mov ecx, dword [esi + 0x4324]
add esp, 0x2c
push edx
push eax
push edi
push ecx
call sub.ntdll.dll__allmul
push edx
push eax
lea ecx, [esp + 0x28]
call fcn.1001df00
movzx eax, word [esi + 0x24]
mov ecx, dword [esi + 0x4324]
add esp, 8
push edi
cdq
push ecx
push edx
push eax
call sub.ntdll.dll__allmul
mov ecx, dword [esi + 0x254]
push ecx
mov ecx, dword [esi + 0x250]
push ecx
push edx
push eax
call sub.ntdll.dll__allmul
push edx
push eax
lea ecx, [esp + 0x68]
call fcn.1001df00
mov ecx, dword [esi + 0x254]
movzx eax, word [esi + 0x24]
add esp, 8
push ecx
mov ecx, dword [esi + 0x250]
cdq
push ecx
push edx
push eax
call sub.ntdll.dll__allmul
mov ecx, dword [esi + 0x429c]
cmp ecx, edx
jl 0x1004115c
jg 0x10041152
mov edx, dword [esi + 0x4298]
cmp edx, eax
jbe 0x1004115c
mov ax, word [esp + 0x60]
mov word [esp + 0x20], ax
cmp dword [esi + 0x42a4], edi
mov ebx, dword [sym.imp.MSVCR80.dll__swprintf]
lea ecx, [esp + 0xe0]
je 0x1004117e
push str.Extending_volume...
push ecx
call ebx
add esp, 8
jmp 0x10041193
lea edx, [esp + 0x60]
push edx
lea eax, [esp + 0x24]
push eax
push str.Shrinking_volume__Status:__s__s_
push ecx
call ebx
add esp, 0x10
cmp dword [esi + 0x42a8], edi
je 0x100411b7
lea edx, [esp + 0x60]
push edx
lea eax, [esp + 0x24]
push eax
lea ecx, [esp + 0xe8]
push str.Moving_data__Status:__s__s_
push ecx
call ebx
add esp, 0x10
lea edx, [esp + 0x60]
push edx
lea eax, [esp + 0x24]
push eax
push str._s__s
lea ecx, [esp + 0x1ec]
push ecx
jmp 0x10041235
cmp dword [esi + 0x42a4], edi
mov ebx, dword [sym.imp.MSVCR80.dll__swprintf]
je 0x100411ed
push str.Extending_volume...
lea edx, [esp + 0xe4]
push edx
jmp 0x100411fa
push str.Shrinking_volume...
lea eax, [esp + 0xe4]
push eax
call ebx
add esp, 8
lea ecx, [esp + 0x1e0]
push str.Resizing...
push ecx
call ebx
add esp, 8
cmp dword [esi + 0x42a8], edi
je 0x1004123a
lea edx, [esp + 0xe0]
push str.Moving_data...
push edx
call ebx
push str.Moving_data...
lea eax, [esp + 0x1ec]
push eax
call ebx
add esp, 0x10
mov ecx, dword [esi + 0x130]
mov edx, dword [ecx]
mov edx, dword [edx + 0x38]
lea eax, [esp + 0xe0]
push eax
call edx
mov ecx, dword [esi + 0x130]
mov eax, dword [ecx]
mov eax, dword [eax + 0x3c]
lea edx, [esp + 0x1e0]
push edx
call eax
call ebp
mov dword [0x100e72d8], eax
pop ebx
mov ecx, dword [esp + 0x2dc]
pop edi
pop esi
pop ebp
xor ecx, esp
call fcn.10059076
add esp, 0x2d4
ret 4