Function at 0x4044e0
Capabilities:
Get disk information

Disassembly:
push ebp
mov ebp, esp
lea esp, [esp - 0x14c]
push ebx
mov dword [ebp - 4], eax
mov dword [ebp - 0x14c], 0
mov dword [ebp - 0x3c], 0
mov dword [ebp - 0x14], 0
mov dword [ebp - 0x10], 0
xor eax, eax
push fcn.004044b0
push ebp
push 0x417790
push dword fs:[eax]
mov dword fs:[eax], esp
mov byte [0x4e4630], 0
mov byte [ebp - 0xc], 0
mov eax, dword [ebp - 4]
xor edx, edx
call fcn.0040c3e0
call sub.kernel32.dll_GetLogicalDrives
mov dword [ebp - 8], eax
jmp 0x4047db
add byte [ebp - 0xc], 1
mov eax, dword [ebp - 8]
and eax, 1
test al, al
je 0x4047d8
add byte [0x4e4630], 1
push 0
movsx eax, byte [ebp - 0xc]
add eax, 0x40
lea ecx, [ebp - 0x10]
xor dx, dx
call fcn.0040ccd0
mov edx, dword [ebp - 0x10]
movzx eax, byte [0x4e4630]
lea eax, [eax*4 + 0x4e402c]
mov ecx, 0x45b94c
call fcn.0040c4e0
mov al, byte [ebp - 0xc]
call fcn.00425cc0
movzx ecx, byte [0x4e4630]
mov dword [ecx*8 + 0x4e4128], eax
mov dword [ecx*8 + 0x4e412c], edx
mov al, byte [ebp - 0xc]
call fcn.00425bf0
movzx ecx, byte [0x4e4630]
mov dword [ecx*8 + 0x4e4328], eax
mov dword [ecx*8 + 0x4e432c], edx
lea eax, [ebp - 0x10]
call fcn.00407910
push 0
movsx eax, byte [ebp - 0xc]
add eax, 0x40
lea ecx, [ebp - 0x14]
xor dx, dx
call fcn.0040ccd0
mov edx, dword [ebp - 0x14]
mov ecx, 0x45b94c
lea eax, [ebp - 0x10]
call fcn.0040c4e0
mov eax, dword [ebp - 0x10]
test eax, eax
jne 0x404602
mov eax, 0x4e5a80
push eax
call sub.kernel32.dll_GetDriveTypeA
cmp eax, 2
jb 0x4046c0
sub eax, 2
je 0x404634
sub eax, 1
je 0x404654
sub eax, 1
je 0x404670
sub eax, 1
je 0x40468c
sub eax, 1
je 0x4046a8
jmp 0x4046c0
movzx eax, byte [0x4e4630]
lea eax, [eax*4 + 0x4e452c]
mov edx, str._REMOVABLE_
call fcn.0040c3e0
jmp 0x4046c0
movzx eax, byte [0x4e4630]
lea eax, [eax*4 + 0x4e452c]
mov edx, str._HDD_
call fcn.0040c3e0
jmp 0x4046c0
movzx eax, byte [0x4e4630]
lea eax, [eax*4 + 0x4e452c]
mov edx, str._NETWORK_
call fcn.0040c3e0
jmp 0x4046c0
movzx eax, byte [0x4e4630]
lea eax, [eax*4 + 0x4e452c]
mov edx, str._CDROM_
call fcn.0040c3e0
jmp 0x4046c0
movzx eax, byte [0x4e4630]
lea eax, [eax*4 + 0x4e452c]
mov edx, str._RAMDISK_
call fcn.0040c3e0
push 0
mov eax, dword [ebp - 4]
mov eax, dword [eax]
mov dword [ebp - 0x38], eax
movzx eax, byte [0x4e4630]
mov eax, dword [eax*4 + 0x4e402c]
mov dword [ebp - 0x34], eax
mov eax, str.__total_size:
mov dword [ebp - 0x30], eax
movzx eax, byte [0x4e4630]
lea ebx, [eax*8 + 0x4e4128]
mov eax, dword [ebx]
mov dword [ebp - 0x48], eax
mov eax, dword [ebx + 4]
mov dword [ebp - 0x44], eax
push dword [ebp - 0x44]
push dword [ebp - 0x48]
mov ecx, 0xff
lea edx, [ebp - 0x148]
mov eax, 0xffffffff
call fcn.00408a80
lea ecx, [ebp - 0x3c]
xor dx, dx
lea eax, [ebp - 0x148]
call fcn.0040cc60
xor cl, cl
xor dx, dx
lea eax, [ebp - 0x3c]
call fcn.0040d970
mov eax, dword [ebp - 0x3c]
mov dword [ebp - 0x2c], eax
mov eax, str.bytes__free_size:
mov dword [ebp - 0x28], eax
movzx eax, byte [0x4e4630]
mov edx, dword [eax*8 + 0x4e4328]
mov dword [ebp - 0x48], edx
mov eax, dword [eax*8 + 0x4e432c]
mov dword [ebp - 0x44], eax
push dword [ebp - 0x44]
push dword [ebp - 0x48]
mov ecx, 0xff
lea edx, [ebp - 0x148]
mov eax, 0xffffffff
call fcn.00408a80
lea ecx, [ebp - 0x14c]
xor dx, dx
lea eax, [ebp - 0x148]
call fcn.0040cc60
xor cl, cl
xor dx, dx
lea eax, [ebp - 0x14c]
call fcn.0040d970
mov eax, dword [ebp - 0x14c]
mov dword [ebp - 0x24], eax
mov eax, str.bytes_
mov dword [ebp - 0x20], eax
movzx eax, byte [0x4e4630]
mov eax, dword [eax*4 + 0x4e452c]
mov dword [ebp - 0x1c], eax
mov eax, 0x45b780
mov dword [ebp - 0x18], eax
lea edx, [ebp - 0x38]
mov eax, dword [ebp - 4]
mov ecx, 8
call fcn.0040c770
nop
shr dword [ebp - 8], 1
cmp dword [ebp - 8], 0
ja 0x404548
xor eax, eax
pop edx
add esp, 0xc
mov dword fs:[eax], edx
mov eax, ebp
call fcn.004044b0
pop ebx
mov esp, ebp
pop ebp
ret