Function at 0x46ef10
Capabilities:
Get disk information

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x583e76
mov eax, dword fs:[0]
push eax
sub esp, 0x2a8
mov eax, dword [0x615000]
xor eax, ebp
mov dword [ebp - 0x1c], eax
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x28c], ecx
mov dword [ebp - 0x224], 0x200
lea eax, [ebp - 0x21c]
push eax
mov ecx, dword [ebp - 0x224]
push ecx
call dword [sym.imp.KERNEL32.dll_GetLogicalDriveStringsW]
lea edx, [ebp - 0x21c]
mov dword [ebp - 0x10], edx
call fcn.0040b010
mov dword [ebp - 0x14], eax
mov eax, dword [ebp - 0x10]
movzx ecx, word [eax]
test ecx, ecx
je 0x46f268
mov edx, dword [ebp - 0x10]
push edx
lea ecx, [ebp - 0x240]
call fcn.00405ef0
mov dword [ebp - 4], 0
mov eax, dword [ebp - 0x10]
push eax
call dword [sym.imp.KERNEL32.dll_GetDriveTypeW]
mov dword [ebp - 0x220], eax
cmp dword [ebp - 0x220], 3
jne 0x46f1f4
lea ecx, [ebp - 0x240]
call fcn.00459160
test eax, eax
jbe 0x46f1f4
lea ecx, [ebp - 0x254]
push ecx
lea edx, [ebp - 0x24c]
push edx
push 0
lea ecx, [ebp - 0x240]
call fcn.004191b0
movzx eax, byte [eax]
push eax
mov ecx, dword [ebp - 0x28c]
call fcn.0046ed40
call fcn.0040b010
mov dword [ebp - 0x288], eax
push 0
push 0x40000000
mov ecx, dword [ebp - 0x248]
push ecx
mov edx, dword [ebp - 0x24c]
push edx
call fcn.00564fb0
mov dword [ebp - 0x294], eax
mov dword [ebp - 0x290], edx
fild qword [ebp - 0x294]
sub esp, 8
fstp qword [esp]
call fcn.0040af60
add esp, 8
push eax
push str.allSpace
mov eax, dword [ebp - 0x288]
push eax
call fcn.0040af10
add esp, 0xc
push 0
push 0x40000000
mov ecx, dword [ebp - 0x250]
push ecx
mov edx, dword [ebp - 0x254]
push edx
call fcn.00564fb0
mov dword [ebp - 0x29c], eax
mov dword [ebp - 0x298], edx
fild qword [ebp - 0x29c]
sub esp, 8
fstp qword [esp]
call fcn.0040af60
add esp, 8
push eax
push str.freeSpace
mov eax, dword [ebp - 0x288]
push eax
call fcn.0040af10
add esp, 0xc
push 0x5e3b24
call fcn.0040afa0
add esp, 4
push eax
push str.unit
mov ecx, dword [ebp - 0x288]
push ecx
call fcn.0040af10
add esp, 0xc
fild qword [ebp - 0x24c]
sub esp, 8
fstp qword [esp]
call fcn.0040af60
add esp, 8
push eax
push str.detailAll
mov edx, dword [ebp - 0x288]
push edx
call fcn.0040af10
add esp, 0xc
fild qword [ebp - 0x254]
sub esp, 8
fstp qword [esp]
call fcn.0040af60
add esp, 8
push eax
push str.detailFree
mov eax, dword [ebp - 0x288]
push eax
call fcn.0040af10
add esp, 0xc
mov ecx, dword [ebp - 0x24c]
sub ecx, dword [ebp - 0x254]
mov edx, dword [ebp - 0x248]
sbb edx, dword [ebp - 0x250]
mov dword [ebp - 0x2a4], ecx
mov dword [ebp - 0x2a0], edx
fild qword [ebp - 0x2a4]
fild qword [ebp - 0x24c]
fdivp st(1)
fmul qword [0x601850]
fstp qword [ebp - 0x284]
mov byte [ebp - 0x278], 0
xor eax, eax
mov dword [ebp - 0x277], eax
mov word [ebp - 0x273], ax
mov byte [ebp - 0x271], al
sub esp, 8
fld qword [ebp - 0x284]
fstp qword [esp]
push str._.2f__
lea ecx, [ebp - 0x278]
push ecx
call fcn.0055b801
add esp, 0x10
lea edx, [ebp - 0x278]
push edx
lea ecx, [ebp - 0x270]
call fcn.00405ef0
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x270]
call fcn.00406030
push eax
call fcn.0040afa0
add esp, 4
push eax
push str.usage
mov eax, dword [ebp - 0x288]
push eax
call fcn.0040af10
add esp, 0xc
mov ecx, dword [ebp - 0x288]
push ecx
push 0
lea ecx, [ebp - 0x240]
call fcn.004191b0
push eax
mov edx, dword [ebp - 0x14]
push edx
call fcn.0040af10
add esp, 0xc
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x270]
call fcn.00405f70
mov eax, dword [ebp - 0x10]
mov dword [ebp - 0x2a8], eax
mov ecx, dword [ebp - 0x2a8]
add ecx, 2
mov dword [ebp - 0x2ac], ecx
mov edx, dword [ebp - 0x2a8]
mov ax, word [edx]
mov word [ebp - 0x2ae], ax
add dword [ebp - 0x2a8], 2
cmp word [ebp - 0x2ae], 0
jne 0x46f20c
mov ecx, dword [ebp - 0x2a8]
sub ecx, dword [ebp - 0x2ac]
sar ecx, 1
mov dword [ebp - 0x2b4], ecx
mov edx, dword [ebp - 0x2b4]
mov eax, dword [ebp - 0x10]
lea ecx, [eax + edx*2 + 2]
mov dword [ebp - 0x10], ecx
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x240]
call fcn.00405f70
jmp 0x46ef70
mov edx, dword [ebp - 0x14]
push edx
call fcn.004099d0
add esp, 4
mov dword [ebp - 0x18], eax
cmp dword [ebp - 0x14], 0
je 0x46f289
mov eax, dword [ebp - 0x14]
push eax
call fcn.00408860
add esp, 4
mov eax, dword [ebp - 0x18]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
mov ecx, dword [ebp - 0x1c]
xor ecx, ebp
call fcn.0055abea
mov esp, ebp
pop ebp
ret