Function at 0x473290
Capabilities:
Get disk information

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x58a2a6
mov eax, dword fs:[0]
push eax
sub esp, 0x2a8
mov eax, dword [0x61b000]
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.0040b1d0
mov dword [ebp - 0x14], eax
mov eax, dword [ebp - 0x10]
movzx ecx, word [eax]
test ecx, ecx
je 0x4735e8
mov edx, dword [ebp - 0x10]
push edx
lea ecx, [ebp - 0x240]
call fcn.00406050
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 0x473574
lea ecx, [ebp - 0x240]
call fcn.004061b0
test eax, eax
jbe 0x473574
lea ecx, [ebp - 0x254]
push ecx
lea edx, [ebp - 0x24c]
push edx
push 0
lea ecx, [ebp - 0x240]
call fcn.00418ab0
movzx eax, byte [eax]
push eax
mov ecx, dword [ebp - 0x28c]
call fcn.004730c0
call fcn.0040b1d0
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.0056aeb0
mov dword [ebp - 0x294], eax
mov dword [ebp - 0x290], edx
fild qword [ebp - 0x294]
sub esp, 8
fstp qword [esp]
call fcn.0040b120
add esp, 8
push eax
push str.allSpace
mov eax, dword [ebp - 0x288]
push eax
call fcn.0040b0d0
add esp, 0xc
push 0
push 0x40000000
mov ecx, dword [ebp - 0x250]
push ecx
mov edx, dword [ebp - 0x254]
push edx
call fcn.0056aeb0
mov dword [ebp - 0x29c], eax
mov dword [ebp - 0x298], edx
fild qword [ebp - 0x29c]
sub esp, 8
fstp qword [esp]
call fcn.0040b120
add esp, 8
push eax
push str.freeSpace
mov eax, dword [ebp - 0x288]
push eax
call fcn.0040b0d0
add esp, 0xc
push 0x5e9c94
call fcn.0040b160
add esp, 4
push eax
push str.unit
mov ecx, dword [ebp - 0x288]
push ecx
call fcn.0040b0d0
add esp, 0xc
fild qword [ebp - 0x24c]
sub esp, 8
fstp qword [esp]
call fcn.0040b120
add esp, 8
push eax
push str.detailAll
mov edx, dword [ebp - 0x288]
push edx
call fcn.0040b0d0
add esp, 0xc
fild qword [ebp - 0x254]
sub esp, 8
fstp qword [esp]
call fcn.0040b120
add esp, 8
push eax
push str.detailFree
mov eax, dword [ebp - 0x288]
push eax
call fcn.0040b0d0
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 [0x607940]
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.00561878
add esp, 0x10
lea edx, [ebp - 0x278]
push edx
lea ecx, [ebp - 0x270]
call fcn.00406050
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x270]
call fcn.00406190
push eax
call fcn.0040b160
add esp, 4
push eax
push str.usage
mov eax, dword [ebp - 0x288]
push eax
call fcn.0040b0d0
add esp, 0xc
mov ecx, dword [ebp - 0x288]
push ecx
push 0
lea ecx, [ebp - 0x240]
call fcn.00418ab0
push eax
mov edx, dword [ebp - 0x14]
push edx
call fcn.0040b0d0
add esp, 0xc
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x270]
call fcn.004060d0
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 0x47358c
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.004060d0
jmp 0x4732f0
mov edx, dword [ebp - 0x14]
push edx
call fcn.00409b90
add esp, 4
mov dword [ebp - 0x18], eax
cmp dword [ebp - 0x14], 0
je 0x473609
mov eax, dword [ebp - 0x14]
push eax
call fcn.00408a10
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.00560c61
mov esp, ebp
pop ebp
ret