Function at 0x40a410
Capabilities:
Get disk information

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x525745
mov eax, dword fs:[0]
push eax
sub esp, 0x148
mov eax, dword [0x56e00c]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov ebx, dword [sym.imp.KERNEL32.dll_GetDriveTypeA]
mov edi, dword [sym.imp.KERNEL32.dll_lstrlenA]
nop word [eax + eax]
lea esi, [ebp - 0x110]
mov eax, esi
push eax
push 0x100
call dword [sym.imp.KERNEL32.dll_GetLogicalDriveStringsA]
cmp byte [ebp - 0x110], 0
je 0x40aa85
push esi
call ebx
cmp eax, 6
ja case.default.0x40a47d
jmp dword [eax*4 + 0x40aa98]
sub esp, 0x1c
mov ecx, esp
mov dword [ebp - 0x138], esp
push esi
call fcn.00410f40
sub esp, 0x1c
mov dword [ebp - 4], 0
mov ecx, esp
push str.Unknown
call fcn.00410f40
mov dword [ebp - 4], 0xffffffff
call fcn.004079f0
add esp, 0x38
lea ecx, [ebp - 0x134]
push esi
call fcn.00410f40
sub esp, 0x1c
mov dword [ebp - 4], 1
mov ecx, esp
mov edx, eax
push str._:_Unknown_Drive_type_n_n
call fcn.00418620
add esp, 4
call fcn.0040f180
add esp, 0x1c
mov dword [ebp - 4], 2
mov eax, dword [ebp - 0x11c]
cmp eax, 0x10
jb 0x40a50b
inc eax
push eax
push dword [ebp - 0x130]
call fcn.00419260
add esp, 8
mov dword [ebp - 0x11c], 0xf
mov dword [ebp - 0x120], 0
mov byte [ebp - 0x130], 0
lea ecx, [ebp - 0x134]
mov byte [ebp - 4], 3
call fcn.00416a30
lea ecx, [ebp - 0x134]
jmp 0x40aa6a
sub esp, 0x1c
mov ecx, esp
mov dword [ebp - 0x118], esp
push esi
call fcn.00410f40
sub esp, 0x1c
mov dword [ebp - 4], 4
mov ecx, esp
push str.invalid
call fcn.00410f40
mov dword [ebp - 4], 0xffffffff
call fcn.004079f0
add esp, 0x38
lea ecx, [ebp - 0x134]
push esi
call fcn.00410f40
sub esp, 0x1c
mov dword [ebp - 4], 5
mov ecx, esp
mov edx, eax
push str._:_Drive_is_invalid_n
call fcn.00418620
add esp, 4
call fcn.0040f180
add esp, 0x1c
mov dword [ebp - 4], 6
mov eax, dword [ebp - 0x11c]
cmp eax, 0x10
jb 0x40a5c7
inc eax
push eax
push dword [ebp - 0x130]
call fcn.00419260
add esp, 8
mov dword [ebp - 0x11c], 0xf
mov dword [ebp - 0x120], 0
mov byte [ebp - 0x130], 0
lea ecx, [ebp - 0x134]
mov byte [ebp - 4], 7
call fcn.00416a30
lea ecx, [ebp - 0x134]
jmp 0x40aa6a
sub esp, 0x1c
mov ecx, esp
mov dword [ebp - 0x118], esp
push esi
call fcn.00410f40
sub esp, 0x1c
mov dword [ebp - 4], 8
mov ecx, esp
push str.Removable
call fcn.00410f40
mov dword [ebp - 4], 0xffffffff
call fcn.004079f0
mov cl, byte [esi]
add esp, 0x38
call fcn.00409420
push esi
lea ecx, [ebp - 0x134]
call fcn.00410f40
sub esp, 0x1c
mov dword [ebp - 4], 9
mov ecx, esp
mov edx, eax
push str._:_Removable_Drive_n
call fcn.00418620
add esp, 4
call fcn.0040f180
add esp, 0x1c
mov dword [ebp - 4], 0xa
mov eax, dword [ebp - 0x11c]
cmp eax, 0x10
jb 0x40a68a
inc eax
push eax
push dword [ebp - 0x130]
call fcn.00419260
add esp, 8
mov dword [ebp - 0x11c], 0xf
mov dword [ebp - 0x120], 0
mov byte [ebp - 0x130], 0
lea ecx, [ebp - 0x134]
mov byte [ebp - 4], 0xb
call fcn.00416a30
lea ecx, [ebp - 0x134]
call fcn.00415cd0
push 0
push 0
push 0
push 0
lea eax, [ebp - 0x114]
mov dword [ebp - 4], 0xffffffff
push eax
push 0
push 0
push esi
call dword [sym.imp.KERNEL32.dll_GetVolumeInformationA]
mov edx, dword [ebp - 0x114]
lea ecx, [ebp - 0x134]
call fcn.00403720
sub esp, 0x1c
mov dword [ebp - 4], 0xc
mov ecx, esp
mov edx, str.Current_directory_volume_serial_numnber:
push eax
call fcn.004188c0
add esp, 4
call fcn.0040f180
add esp, 0x1c
mov dword [ebp - 4], 0xd
mov eax, dword [ebp - 0x11c]
cmp eax, 0x10
jb 0x40a735
inc eax
push eax
push dword [ebp - 0x130]
call fcn.00419260
add esp, 8
mov dword [ebp - 0x11c], 0xf
mov dword [ebp - 0x120], 0
mov byte [ebp - 0x130], 0
lea ecx, [ebp - 0x134]
mov byte [ebp - 4], 0xe
call fcn.00416a30
lea ecx, [ebp - 0x134]
jmp 0x40aa6a
sub esp, 0x1c
mov ecx, esp
mov dword [ebp - 0x118], esp
push esi
call fcn.00410f40
sub esp, 0x1c
mov dword [ebp - 4], 0xf
mov ecx, esp
push str.HardDisk
call fcn.00410f40
mov dword [ebp - 4], 0xffffffff
call fcn.004079f0
mov cl, byte [esi]
add esp, 0x38
call fcn.00409420
push esi
lea ecx, [ebp - 0x134]
call fcn.00410f40
sub esp, 0x1c
mov dword [ebp - 4], 0x10
mov ecx, esp
mov edx, eax
push str._:_HardDisk_Drive_n
call fcn.00418620
add esp, 4
call fcn.0040f180
add esp, 0x1c
mov dword [ebp - 4], 0x11
mov eax, dword [ebp - 0x11c]
cmp eax, 0x10
jb 0x40a7f8
inc eax
push eax
push dword [ebp - 0x130]
call fcn.00419260
add esp, 8
mov dword [ebp - 0x11c], 0xf
mov dword [ebp - 0x120], 0
mov byte [ebp - 0x130], 0
lea ecx, [ebp - 0x134]
mov byte [ebp - 4], 0x12
call fcn.00416a30
lea ecx, [ebp - 0x134]
jmp 0x40aa6a
sub esp, 0x1c
mov ecx, esp
mov dword [ebp - 0x118], esp
push esi
call fcn.00410f40
sub esp, 0x1c
mov dword [ebp - 4], 0x13
mov ecx, esp
push str.Network
call fcn.00410f40
mov dword [ebp - 4], 0xffffffff
call fcn.004079f0
mov cl, byte [esi]
add esp, 0x38
call fcn.00409420
push esi
lea ecx, [ebp - 0x134]
call fcn.00410f40
sub esp, 0x1c
mov dword [ebp - 4], 0x14
mov ecx, esp
mov edx, eax
push str._:_Remote__Network__Drive_n
call fcn.00418620
add esp, 4
call fcn.0040f180
add esp, 0x1c
mov dword [ebp - 4], 0x15
mov eax, dword [ebp - 0x11c]
cmp eax, 0x10
jb 0x40a8bb
inc eax
push eax
push dword [ebp - 0x130]
call fcn.00419260
add esp, 8
mov dword [ebp - 0x11c], 0xf
mov dword [ebp - 0x120], 0
mov byte [ebp - 0x130], 0
lea ecx, [ebp - 0x134]
mov byte [ebp - 4], 0x16
call fcn.00416a30
lea ecx, [ebp - 0x134]
jmp 0x40aa6a
sub esp, 0x1c
mov ecx, esp
mov dword [ebp - 0x118], esp
push esi
call fcn.00410f40
sub esp, 0x1c
mov dword [ebp - 4], 0x17
mov ecx, esp
push str.CD_Rom
call fcn.00410f40
mov dword [ebp - 4], 0xffffffff
call fcn.004079f0
mov cl, byte [esi]
add esp, 0x38
call fcn.00409420
push esi
lea ecx, [ebp - 0x134]
call fcn.00410f40
sub esp, 0x1c
mov dword [ebp - 4], 0x18
mov ecx, esp
mov edx, eax
push str._:_CD_Rom_DVD_Rom_n
call fcn.00418620
add esp, 4
call fcn.0040f180
add esp, 0x1c
mov dword [ebp - 4], 0x19
mov eax, dword [ebp - 0x11c]
cmp eax, 0x10
jb 0x40a97e
inc eax
push eax
push dword [ebp - 0x130]
call fcn.00419260
add esp, 8
mov dword [ebp - 0x11c], 0xf
mov dword [ebp - 0x120], 0
mov byte [ebp - 0x130], 0
lea ecx, [ebp - 0x134]
mov byte [ebp - 4], 0x1a
call fcn.00416a30
lea ecx, [ebp - 0x134]
jmp 0x40aa6a
sub esp, 0x1c
mov ecx, esp
mov dword [ebp - 0x118], esp
push esi
call fcn.00410f40
sub esp, 0x1c
mov dword [ebp - 4], 0x1b
mov ecx, esp
push 0x558c28
call fcn.00410f40
mov dword [ebp - 4], 0xffffffff
call fcn.004079f0
add esp, 0x38
lea ecx, [ebp - 0x154]
push esi
call fcn.00410f40
sub esp, 0x1c
mov dword [ebp - 4], 0x1c
mov ecx, esp
mov edx, eax
push str._:Ram_Drive_n
call fcn.00418620
add esp, 4
call fcn.0040f180
add esp, 0x1c
mov dword [ebp - 4], 0x1d
mov eax, dword [ebp - 0x13c]
cmp eax, 0x10
jb 0x40aa3a
inc eax
push eax
push dword [ebp - 0x150]
call fcn.00419260
add esp, 8
mov dword [ebp - 0x13c], 0xf
mov dword [ebp - 0x140], 0
mov byte [ebp - 0x150], 0
lea ecx, [ebp - 0x154]
mov byte [ebp - 4], 0x1e
call fcn.00416a30
lea ecx, [ebp - 0x154]
call fcn.00415cd0
mov dword [ebp - 4], 0xffffffff
push esi
call edi
inc esi
add esi, eax
cmp byte [esi], 0
jne 0x40a471
push 0x4e20
call dword [sym.imp.KERNEL32.dll_Sleep]
jmp 0x40a450