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

Disassembly:
sub esp, 0x2d4
mov eax, dword [0x100dd9d4]
xor eax, esp
mov dword [esp + 0x2d0], eax
push ebx
push esi
mov eax, 0x64
cmp dword [esp + 0x2e0], eax
push edi
mov esi, ecx
jle 0x100391fe
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 0x10039237
mov ecx, dword [esi + 0x130]
mov eax, dword [ecx]
mov edx, dword [eax + 8]
push edi
call edx
mov ebx, dword [sym.imp.KERNEL32.dll_GetTickCount]
mov eax, 1
test byte [0x100e7254], al
jne 0x10039257
or dword [0x100e7254], eax
call ebx
mov dword [0x100e7250], eax
call ebx
sub eax, dword [0x100e7250]
cmp eax, 0x3e8
jb 0x100394f5
xor edi, edi
cmp dword [esi + 0x134], edi
jne 0x100394f5
push 0xfe
lea eax, [esp + 0xe2]
push edi
push eax
mov word [esp + 0xe8], di
call sub.ntdll.dll_memset
push 0xfe
lea ecx, [esp + 0x1ee]
push edi
push ecx
mov word [esp + 0x1f4], di
call sub.ntdll.dll_memset
mov eax, dword [esi + 0x4298]
mov ecx, dword [esi + 0x429c]
add esp, 0x18
mov dword [esp + 0xc], eax
or eax, ecx
mov dword [esp + 0x10], ecx
je 0x10039483
mov edx, dword [esi + 0x250]
or edx, dword [esi + 0x254]
je 0x10039483
fild qword [esp + 0xc]
fstp qword [esp + 0x14]
call ebx
sub eax, dword [esi + 0x42a0]
test eax, eax
mov dword [esp + 0xc], eax
fild dword [esp + 0xc]
jge 0x10039301
fadd qword [0x100644a0]
fdiv qword [0x10064d08]
push 0x3e
lea eax, [esp + 0xa2]
push edi
push eax
mov word [esp + 0xa8], di
fdivr qword [esp + 0x20]
fstp qword [esp + 0x20]
call sub.ntdll.dll_memset
fild dword [esi + 0x42b0]
mov ecx, dword [esi + 0x42b0]
test ecx, ecx
jge 0x1003933d
fadd qword [0x100644a0]
fmul qword [esp + 0x20]
call fcn.10059526
push edx
push eax
lea ecx, [esp + 0xb0]
call fcn.1001df00
push 0x3e
lea edx, [esp + 0x36]
push edi
push edx
mov word [esp + 0x3c], di
call sub.ntdll.dll_memset
push 0x3e
lea eax, [esp + 0x82]
push edi
push eax
mov word [esp + 0x88], di
call sub.ntdll.dll_memset
mov edx, dword [esi + 0x429c]
mov eax, dword [esi + 0x4298]
mov ecx, dword [esi + 0x42b0]
add esp, 0x2c
push edx
push eax
push edi
push ecx
call sub.ntdll.dll__allmul
push edx
push eax
lea ecx, [esp + 0x24]
call fcn.1001df00
movzx eax, word [esi + 0x24]
mov ecx, dword [esi + 0x42b0]
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 + 0x64]
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 0x1003941b
jg 0x10039411
mov edx, dword [esi + 0x4298]
cmp edx, eax
jbe 0x1003941b
mov ax, word [esp + 0x5c]
mov word [esp + 0x1c], ax
cmp dword [esi + 0x42a4], edi
mov edi, dword [sym.imp.MSVCR80.dll__swprintf]
je 0x1003944c
lea ecx, [esp + 0xdc]
push str.Extending_volume...
push ecx
call edi
lea edx, [esp + 0x1e4]
push str.Extending...
push edx
call edi
add esp, 0x10
jmp 0x100394c4
lea eax, [esp + 0x5c]
push eax
lea ecx, [esp + 0x20]
push ecx
lea edx, [esp + 0xe4]
push str.Shrinking_volume__Status:__s__s_
push edx
call edi
lea eax, [esp + 0x6c]
push eax
lea ecx, [esp + 0x30]
push ecx
lea edx, [esp + 0x1f4]
push str._s__s
push edx
call edi
add esp, 0x20
jmp 0x100394c4
cmp dword [esi + 0x42a4], edi
mov edi, dword [sym.imp.MSVCR80.dll__swprintf]
je 0x100394a0
push str.Extending_volume...
lea eax, [esp + 0xe0]
push eax
jmp 0x100394ad
push str.Shrinking_volume...
lea ecx, [esp + 0xe0]
push ecx
call edi
add esp, 8
lea edx, [esp + 0x1dc]
push str.Resizing...
push edx
call edi
add esp, 8
mov ecx, dword [esi + 0x130]
mov eax, dword [ecx]
mov eax, dword [eax + 0x38]
lea edx, [esp + 0xdc]
push edx
call eax
mov ecx, dword [esi + 0x130]
mov edx, dword [ecx]
mov edx, dword [edx + 0x3c]
lea eax, [esp + 0x1dc]
push eax
call edx
call ebx
mov dword [0x100e7250], eax
mov ecx, dword [esp + 0x2dc]
pop edi
pop esi
pop ebx
xor ecx, esp
call fcn.10059076
add esp, 0x2d4
ret 4