Function at 0x406fef
Capabilities:
Get disk information via ioctl
Get disk size

Disassembly:
push ebp
sub esp, 0x70
lea ebp, [esp - 4]
mov eax, dword [0x81c5a8]
xor eax, ebp
mov dword [ebp + 0x70], eax
push 0x30
mov eax, 0x711014
call fcn.00648b1c
mov esi, dword [ebp + 0x7c]
lea eax, [ebp + 0x14]
push eax
push esi
mov dword [ebp + 0x18], esi
call fcn.0040687c
xor ebx, ebx
cmp eax, ebx
je 0x40734c
mov edi, dword [sym.imp.KERNEL32.dll_DeviceIoControl]
push ebx
lea eax, [ebp + 0x1c]
push eax
push 0xc
lea eax, [ebp - 0x3c]
push eax
push ebx
push ebx
push 0x2d1080
push dword [ebp + 0x14]
mov dword [ebp + 0x1c], ebx
call edi
test eax, eax
je 0x4072a8
mov eax, dword [ebp - 0x38]
mov dword [esi + 0x24], eax
mov dword [ebp + 0x20], 0x63
mov al, byte [ebp + 0x20]
mov byte [ebp + 0x68], al
lea eax, [ebp + 0x68]
push eax
push str.._s:
lea eax, [ebp + 0x28]
push 0x40
push eax
mov byte [ebp + 0x69], bl
call fcn.00403c35
add esp, 0x10
push ebx
push ebx
push 3
push ebx
push 3
push 0xc0000000
lea eax, [ebp + 0x28]
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov dword [ebp + 0xc], eax
cmp eax, 0xffffffff
je 0x407299
push ebx
lea ecx, [ebp + 0x1c]
push ecx
push 0xc
lea ecx, [ebp - 0x30]
push ecx
push ebx
push ebx
push 0x2d1080
push eax
mov dword [ebp + 0x1c], ebx
call edi
cmp eax, ebx
je 0x407290
mov eax, dword [ebp - 0x2c]
cmp eax, dword [esi + 0x24]
jne 0x407290
cmp dword [ebp - 0x30], 7
jne 0x407290
push ebx
lea eax, [ebp + 0x1c]
push eax
push ebx
push ebx
push ebx
push ebx
push 0x90028
push dword [ebp + 0xc]
call edi
test eax, eax
je 0x407290
push 0x28
call fcn.006484ac
pop ecx
mov dword [ebp + 0x24], eax
mov dword [ebp - 4], ebx
cmp eax, ebx
je 0x40710c
mov ecx, eax
call fcn.00425eab
mov esi, eax
jmp 0x40710e
xor esi, esi
mov eax, dword [ebp + 0x20]
or dword [ebp - 4], 0xffffffff
mov dword [esi + 0x18], eax
mov byte [ebp + 0x68], al
lea eax, [ebp + 4]
push eax
lea eax, [ebp]
push eax
lea eax, [ebp + 8]
push eax
lea eax, [ebp + 0x10]
push eax
lea eax, [ebp + 0x68]
push eax
mov byte [ebp + 0x69], 0x3a
mov byte [ebp + 0x6a], 0x5c
mov byte [ebp + 0x6b], bl
call dword [sym.imp.KERNEL32.dll_GetDiskFreeSpaceA]
test eax, eax
je 0x407257
mov eax, dword [ebp + 0x10]
fild dword [ebp + 0x10]
test eax, eax
jge 0x407158
fadd qword [0x78d820]
mov eax, dword [ebp + 4]
fild dword [ebp + 4]
test eax, eax
jge 0x407168
fadd qword [0x78d820]
mov eax, dword [ebp + 8]
fmulp st(1)
fild dword [ebp + 8]
test eax, eax
jge 0x40717a
fadd qword [0x78d820]
fmulp st(1)
fstp qword [esi + 8]
mov eax, dword [ebp + 0x10]
fild dword [ebp + 0x10]
test eax, eax
jge 0x40718f
fadd qword [0x78d820]
mov eax, dword [ebp]
fild dword [ebp]
test eax, eax
jge 0x40719f
fadd qword [0x78d820]
mov eax, dword [ebp + 8]
fmulp st(1)
fild dword [ebp + 8]
test eax, eax
jge 0x4071b1
fadd qword [0x78d820]
fmulp st(1)
push 0x160
fstp qword [esi + 0x10]
call fcn.006484ac
pop ecx
mov ecx, eax
mov dword [ebp + 0x24], ecx
mov dword [ebp - 4], 1
cmp ecx, ebx
je 0x4071db
push ebx
call fcn.0041c3b1
mov edi, eax
jmp 0x4071dd
xor edi, edi
or dword [ebp - 4], 0xffffffff
mov dword [esi + 0x20], edi
call fcn.00404d14
mov ecx, dword [eax + 0x30]
push edi
call fcn.00404ee5
fld qword [esi + 0x10]
fld qword [0x78d608]
mov al, byte [ebp + 0x20]
fmul st(1), st(0)
fxch st(1)
fdiv qword [esi + 8]
mov byte [ebp + 0x68], al
lea eax, [ebp + 0x68]
push eax
mov byte [ebp + 0x69], 0x3a
mov byte [ebp + 0x6a], bl
mov eax, dword [esi + 0x20]
push str.Space___s_
add eax, 4
push 0x100
push eax
fstp dword [ebp + 0x24]
fsub dword [ebp + 0x24]
fstp dword [ebp + 0x24]
call fcn.00403c35
fld dword [ebp + 0x24]
add esp, 0x10
push 1
push ecx
mov ecx, dword [esi + 0x20]
fstp dword [esp]
call fcn.0041bfad
mov ecx, dword [ebp + 0x18]
push dword [esi + 0x20]
mov eax, dword [ecx]
call dword [eax + 0x14]
mov edi, dword [sym.imp.KERNEL32.dll_DeviceIoControl]
mov eax, dword [ebp + 0x18]
cmp dword [eax + 0x60], ebx
jne 0x407281
push 0xc
call fcn.006484ac
pop ecx
cmp eax, ebx
je 0x407279
mov dword [eax], vtable.CTList_class_CVolume_.0
mov dword [eax + 4], ebx
mov dword [eax + 8], ebx
jmp 0x40727b
xor eax, eax
mov ecx, dword [ebp + 0x18]
mov dword [ecx + 0x60], eax
mov eax, dword [ebp + 0x18]
mov ecx, dword [eax + 0x60]
push esi
call fcn.00406dcd
mov esi, dword [ebp + 0x18]
push dword [ebp + 0xc]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
inc dword [ebp + 0x20]
cmp dword [ebp + 0x20], 0x7a
jl 0x40705c
jmp 0x4072ae
call dword [sym.imp.KERNEL32.dll_GetLastError]
push ebx
lea eax, [ebp + 0x1c]
push eax
push 0x18
lea eax, [ebp - 0x24]
push eax
push ebx
push ebx
push 0x70000
push dword [ebp + 0x14]
call edi
test eax, eax
je 0x407343
fild dword [ebp - 0x20]
mov eax, dword [ebp - 0x24]
fmul qword [0x78d820]
fild dword [ebp - 0x24]
test eax, eax
jge 0x4072e2
fadd qword [0x78d820]
mov eax, dword [ebp - 0x18]
faddp st(1)
fild dword [ebp - 0x18]
test eax, eax
jge 0x4072f4
fadd qword [0x78d820]
mov eax, dword [ebp - 0x14]
fmulp st(1)
fild dword [ebp - 0x14]
test eax, eax
jge 0x407306
fadd qword [0x78d820]
mov eax, dword [ebp - 0x10]
fmulp st(1)
fild dword [ebp - 0x10]
test eax, eax
jge 0x407318
fadd qword [0x78d820]
fmulp st(1)
fld qword [0x78d408]
fmul st(1), st(0)
fmulp st(1)
call fcn.00648a70
mov dword [esi + 0x54], eax
mov eax, dword [ebp - 0x1c]
sub eax, 0xb
je 0x40733c
dec eax
jne 0x407343
mov dword [esi + 0x58], ebx
jmp 0x407343
mov dword [esi + 0x58], 1
push dword [ebp + 0x14]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp + 0x70]
xor ecx, ebp
call fcn.00647fba
add ebp, 0x74
leave
ret 4