Function at 0x405463
Capabilities:
Get disk information

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x43649b
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x12c
push edi
mov dword [ebp - 0x128], 0
push 0x49671c
lea ecx, [ebp - 0x118]
call sub.MFC42.DLL_CString::CString_3
mov dword [ebp - 4], 1
mov byte [ebp - 0x110], 0
mov ecx, 0x3f
xor eax, eax
lea edi, [ebp - 0x10f]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
push 0x496720
lea ecx, [ebp - 0x114]
call sub.MFC42.DLL_CString::CString_3
mov byte [ebp - 4], 2
push 0x100
push 0
lea eax, [ebp - 0x110]
push eax
call sub.MSVCRT.dll_memset
add esp, 0xc
lea ecx, [ebp - 0x110]
push ecx
push 0x100
call dword [sym.imp.KERNEL32.dll_GetLogicalDriveStringsA]
lea edx, [ebp - 0x110]
mov dword [ebp - 0x10], edx
mov eax, dword [ebp - 0x10]
movsx ecx, byte [eax]
test ecx, ecx
je 0x4056d0
mov edx, dword [ebp - 0x10]
push edx
call dword [sym.imp.KERNEL32.dll_GetDriveTypeA]
mov dword [ebp - 0x11c], eax
cmp dword [ebp - 0x11c], 3
jne 0x4056b5
mov eax, dword [ebp - 0x10]
movsx ecx, byte [eax]
push ecx
push 0x48092c
lea edx, [ebp - 0x114]
push edx
call sub.MFC42.DLL_CString::Format
add esp, 0xc
cmp dword [0x4966a8], 0
je 0x4055bf
push 0x480934
lea ecx, [ebp - 0x114]
call sub.MFC42.DLL_CString::Find_1
cmp eax, 0xffffffff
jne 0x4055a4
push 0x480938
lea ecx, [ebp - 0x114]
call sub.MFC42.DLL_CString::Find_1
cmp eax, 0xffffffff
jne 0x4055a4
push 0x48093c
lea ecx, [ebp - 0x114]
call sub.MFC42.DLL_CString::Find_1
cmp eax, 0xffffffff
jne 0x4055a4
push 0x480940
lea ecx, [ebp - 0x114]
call sub.MFC42.DLL_CString::Find_1
cmp eax, 0xffffffff
je 0x4055bf
mov eax, dword [ebp - 0x10]
push eax
call sub.MSVCRT.dll_strlen
add esp, 4
mov ecx, dword [ebp - 0x10]
lea edx, [ecx + eax + 1]
mov dword [ebp - 0x10], edx
jmp 0x405501
mov eax, dword [ebp - 0x10]
movsx ecx, byte [eax]
push ecx
push 0x480944
lea edx, [ebp - 0x114]
push edx
call sub.MFC42.DLL_CString::Format
add esp, 0xc
push ecx
mov ecx, esp
mov dword [ebp - 0x120], esp
lea eax, [ebp - 0x114]
push eax
call sub.MFC42.DLL_CString::CString_1
mov dword [ebp - 0x12c], eax
call fcn.00401590
add esp, 4
mov dword [ebp - 0x130], eax
cmp dword [ebp - 0x130], 0
je 0x40563b
mov ecx, dword [ebp - 0x10]
movsx edx, byte [ecx]
push edx
push 0x480960
lea eax, [ebp - 0x114]
push eax
call sub.MFC42.DLL_CString::Format
add esp, 0xc
lea ecx, [ebp - 0x114]
push ecx
lea ecx, [ebp - 0x118]
call fcn.004354d4
jmp 0x4056b5
mov edx, dword [ebp - 0x10]
movsx eax, byte [edx]
push eax
push 0x480968
lea ecx, [ebp - 0x114]
push ecx
call sub.MFC42.DLL_CString::Format
add esp, 0xc
push ecx
mov ecx, esp
mov dword [ebp - 0x124], esp
lea edx, [ebp - 0x114]
push edx
call sub.MFC42.DLL_CString::CString_1
mov dword [ebp - 0x134], eax
call fcn.00401590
add esp, 4
mov dword [ebp - 0x138], eax
cmp dword [ebp - 0x138], 0
je 0x4056b5
mov eax, dword [ebp - 0x10]
movsx ecx, byte [eax]
push ecx
push 0x480984
lea edx, [ebp - 0x114]
push edx
call sub.MFC42.DLL_CString::Format
add esp, 0xc
lea eax, [ebp - 0x114]
push eax
lea ecx, [ebp - 0x118]
call fcn.004354d4
mov ecx, dword [ebp - 0x10]
push ecx
call sub.MSVCRT.dll_strlen
add esp, 4
mov edx, dword [ebp - 0x10]
lea eax, [edx + eax + 1]
mov dword [ebp - 0x10], eax
jmp 0x405501
lea ecx, [ebp - 0x118]
push ecx
mov ecx, dword [ebp + 8]
call sub.MFC42.DLL_CString::CString_1
mov edx, dword [ebp - 0x128]
or edx, 1
mov dword [ebp - 0x128], edx
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x114]
call sub.MFC42.DLL_CString::CString
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x118]
call sub.MFC42.DLL_CString::CString
mov eax, dword [ebp + 8]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop edi
mov esp, ebp
pop ebp
ret