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

Disassembly:
push ebp
sub esp, 0x70
lea ebp, [esp - 4]
mov eax, dword [0x5706b0]
xor eax, ebp
mov dword [ebp + 0x70], eax
push 0x30
mov eax, 0x50e1f1
call fcn.004ef9e2
mov esi, dword [ebp + 0x7c]
lea eax, [ebp + 0x14]
push eax
push esi
mov dword [ebp + 0x18], esi
call fcn.00463342
xor ebx, ebx
cmp eax, ebx
je 0x463e12
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 0x463d6e
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.00450b87
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 0x463d5f
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 0x463d56
mov eax, dword [ebp - 0x2c]
cmp eax, dword [esi + 0x24]
jne 0x463d56
cmp dword [ebp - 0x30], 7
jne 0x463d56
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 0x463d56
push 0x28
call fcn.004dccf9
pop ecx
mov dword [ebp + 0x24], eax
mov dword [ebp - 4], ebx
cmp eax, ebx
je 0x463bd2
mov ecx, eax
call fcn.0047c74a
mov esi, eax
jmp 0x463bd4
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 0x463d1d
mov eax, dword [ebp + 0x10]
fild dword [ebp + 0x10]
test eax, eax
jge 0x463c1e
fadd qword [0x544c18]
mov eax, dword [ebp + 4]
fild dword [ebp + 4]
test eax, eax
jge 0x463c2e
fadd qword [0x544c18]
mov eax, dword [ebp + 8]
fmulp st(1)
fild dword [ebp + 8]
test eax, eax
jge 0x463c40
fadd qword [0x544c18]
fmulp st(1)
fstp qword [esi + 8]
mov eax, dword [ebp + 0x10]
fild dword [ebp + 0x10]
test eax, eax
jge 0x463c55
fadd qword [0x544c18]
mov eax, dword [ebp]
fild dword [ebp]
test eax, eax
jge 0x463c65
fadd qword [0x544c18]
mov eax, dword [ebp + 8]
fmulp st(1)
fild dword [ebp + 8]
test eax, eax
jge 0x463c77
fadd qword [0x544c18]
fmulp st(1)
push 0x164
fstp qword [esi + 0x10]
call fcn.004dccf9
pop ecx
mov ecx, eax
mov dword [ebp + 0x24], ecx
mov dword [ebp - 4], 1
cmp ecx, ebx
je 0x463ca1
push ebx
call fcn.00469e1c
mov edi, eax
jmp 0x463ca3
xor edi, edi
or dword [ebp - 4], 0xffffffff
mov dword [esi + 0x20], edi
call fcn.00451ca2
mov ecx, dword [eax + 0x30]
push edi
call fcn.004562f8
fld qword [esi + 0x10]
fld qword [0x544c28]
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.00450b87
fld dword [ebp + 0x24]
add esp, 0x10
push 1
push ecx
mov ecx, dword [esi + 0x20]
fstp dword [esp]
call fcn.004681bd
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 0x463d47
push 0xc
call fcn.004dccf9
pop ecx
cmp eax, ebx
je 0x463d3f
mov dword [eax], vtable.CTList_class_CVolume_.0
mov dword [eax + 4], ebx
mov dword [eax + 8], ebx
jmp 0x463d41
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.00463893
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 0x463b22
jmp 0x463d74
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 0x463e09
fild dword [ebp - 0x20]
mov eax, dword [ebp - 0x24]
fmul qword [0x544c18]
fild dword [ebp - 0x24]
test eax, eax
jge 0x463da8
fadd qword [0x544c18]
mov eax, dword [ebp - 0x18]
faddp st(1)
fild dword [ebp - 0x18]
test eax, eax
jge 0x463dba
fadd qword [0x544c18]
mov eax, dword [ebp - 0x14]
fmulp st(1)
fild dword [ebp - 0x14]
test eax, eax
jge 0x463dcc
fadd qword [0x544c18]
mov eax, dword [ebp - 0x10]
fmulp st(1)
fild dword [ebp - 0x10]
test eax, eax
jge 0x463dde
fadd qword [0x544c18]
fmulp st(1)
fld qword [0x544c40]
fmul st(1), st(0)
fmulp st(1)
call fcn.004efb26
mov dword [esi + 0x54], eax
mov eax, dword [ebp - 0x1c]
sub eax, 0xb
je 0x463e02
dec eax
jne 0x463e09
mov dword [esi + 0x58], ebx
jmp 0x463e09
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.004edcb6
add ebp, 0x74
leave
ret 4