Function at 0x412640
Capabilities:
Get disk information
Get disk size

Disassembly:
push ebp
mov ebp, esp
push edi
push esi
push ebx
sub esp, 0x35c
lea eax, [ebp - 0x2f4]
mov dword [esp + 4], 0x8000
lea ebx, [ebp - 0x298]
mov dword [esp], eax
call fcn.00411ee0
mov dword [esp], 1
call sub.KERNEL32.dll_SetErrorMode
push ecx
mov dword [esp + 4], ebx
mov dword [esp], pe_nt_image_headers32
call sub.KERNEL32.dll_GetLogicalDriveStringsA
test eax, eax
push esi
push esi
jne 0x4126c4
lea ebx, [ebp - 0x2f4]
mov dword [esp], ebx
call fcn.004120b4
test eax, eax
jle 0x4128c7
mov dword [esp], ebx
call fcn.004120b4
mov dword [esp + 4], 0x52
mov dword [esp + 0xc], eax
mov eax, dword [ebp - 0x2f4]
mov dword [esp + 8], eax
jmp 0x4128df
lea esi, [ebp - 0x2d8]
lea edi, [ebp - 0x2e8]
cmp byte [ebx], 0
je 0x41268b
mov dword [esp + 8], 0x40
mov dword [esp + 4], 0
mov dword [esp], esi
call fcn.0040b1ee
mov dword [esp + 8], 0x10
mov dword [esp + 4], 0
mov dword [esp], edi
call fcn.0040b1ee
lea eax, [ebp - 0x30c]
mov dword [esp + 0x1c], 0x10
mov dword [esp + 0x18], edi
mov dword [esp + 0x14], eax
mov dword [esp + 0x10], 0
mov dword [esp + 0xc], 0
mov dword [esp + 8], 0x40
mov dword [esp + 4], esi
mov dword [esp], ebx
mov dword [ebp - 0x30c], 0
call sub.KERNEL32.dll_GetVolumeInformationA
sub esp, 0x20
test eax, eax
jne 0x412780
mov dword [esp + 8], 0x40
mov dword [esp + 4], 0
mov dword [esp], esi
call fcn.0040b1ee
mov dword [esp + 8], 0x10
mov dword [esp + 4], 0
mov dword [esp], edi
call fcn.0040b1ee
lea eax, [ebp - 0x300]
mov dword [esp + 8], eax
lea eax, [ebp - 0x308]
mov dword [esp + 0xc], 0
mov dword [esp + 4], eax
mov dword [esp], ebx
call sub.KERNEL32.dll_GetDiskFreeSpaceExA
sub esp, 0x10
test eax, eax
jne 0x4127d3
mov dword [ebp - 0x308], 0
mov dword [ebp - 0x304], 0
mov dword [ebp - 0x300], 0
mov dword [ebp - 0x2fc], 0
cmp byte [ebp - 0x2d8], 0
jne 0x4127f4
mov dword [esp + 8], 0x40
mov dword [esp + 4], str.Local_Disk
mov dword [esp], esi
call fcn.0040ad48
mov edx, dword [ebp - 0x304]
mov eax, dword [ebp - 0x308]
mov dword [esp], ebx
mov dword [ebp - 0x31c], edx
mov edx, dword [ebp - 0x2fc]
mov dword [ebp - 0x320], eax
mov eax, dword [ebp - 0x300]
mov dword [ebp - 0x324], edx
mov edx, dword [ebp - 0x30c]
mov dword [ebp - 0x328], eax
mov dword [ebp - 0x32c], edx
call sub.KERNEL32.dll_GetDriveTypeA
mov ecx, dword [ebp - 0x31c]
push edx
mov edx, dword [ebp - 0x320]
mov dword [esp + 0x2c], ecx
mov ecx, dword [ebp - 0x324]
mov dword [esp + 0x18], eax
mov dword [esp + 0x28], edx
mov edx, dword [ebp - 0x328]
mov dword [esp + 0x14], edi
mov dword [esp + 0x24], ecx
mov dword [esp + 0x10], ebx
mov dword [esp + 0x20], edx
mov edx, dword [ebp - 0x32c]
mov dword [esp + 0xc], esi
mov dword [esp + 8], str._s___s__a_s_a_d_a_d_a_I64d_a_I64d_a
mov dword [esp + 4], 0x200
mov dword [esp + 0x1c], edx
lea edx, [ebp - 0x218]
mov dword [esp], edx
mov dword [ebp - 0x320], edx
call fcn.0040afa3
test eax, eax
jle 0x4128bf
mov edx, dword [ebp - 0x320]
mov dword [esp + 8], eax
lea eax, [ebp - 0x2f4]
mov dword [esp], eax
mov dword [esp + 4], edx
call fcn.00411fcc
add ebx, 4
jmp 0x4126d0
mov dword [esp + 0xc], 0
mov dword [esp + 8], 0
mov dword [esp + 4], 0x53
mov eax, dword [ebp + 8]
mov dword [esp], eax
call fcn.00403f73
mov dword [esp], ebx
call fcn.00411f25
lea esp, [ebp - 0xc]
pop ebx
pop esi
pop edi
pop ebp
ret