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

Disassembly:
push ebp
push edi
push esi
push ebx
sub esp, 0x34c
lea eax, [esp + 0x64]
mov dword [esp + 4], 0x8000
mov dword [esp], eax
call fcn.0041236c
mov dword [esp], 1
call sub.KERNEL32.dll_SetErrorMode
push ecx
lea ebx, [esp + 0xc0]
mov dword [esp], pe_nt_image_headers32
mov dword [esp + 4], ebx
call sub.KERNEL32.dll_GetLogicalDriveStringsA
test eax, eax
push esi
push esi
jne 0x406101
lea ebx, [esp + 0x64]
mov dword [esp], ebx
call fcn.00412540
test eax, eax
jle 0x4062c9
mov dword [esp], ebx
call fcn.00412540
mov dword [esp + 0xc], eax
mov eax, dword [esp + 0x64]
mov dword [esp + 4], 0xe9
mov dword [esp + 8], eax
jmp 0x4062e1
lea esi, [esp + 0x80]
lea edi, [esp + 0x70]
cmp byte [ebx], 0
je 0x4060cc
mov dword [esp + 8], 0x40
mov dword [esp + 4], 0
mov dword [esp], esi
call fcn.004129e4
mov dword [esp + 8], 0x10
mov dword [esp + 4], 0
mov dword [esp], edi
call fcn.004129e4
lea eax, [esp + 0x4c]
mov dword [esp + 0x1c], 0x10
mov dword [esp + 0x18], edi
mov dword [esp + 0x10], 0
mov dword [esp + 0xc], 0
mov dword [esp + 0x14], eax
mov dword [esp + 8], 0x40
mov dword [esp + 4], esi
mov dword [esp], ebx
mov dword [esp + 0x4c], 0
call sub.KERNEL32.dll_GetVolumeInformationA
sub esp, 0x20
test eax, eax
jne 0x4061b8
mov dword [esp + 8], 0x40
mov dword [esp + 4], 0
mov dword [esp], esi
call fcn.004129e4
mov dword [esp + 8], 0x10
mov dword [esp + 4], 0
mov dword [esp], edi
call fcn.004129e4
lea eax, [esp + 0x58]
mov dword [esp + 0xc], 0
mov dword [esp], ebx
mov dword [esp + 8], eax
lea eax, [esp + 0x50]
mov dword [esp + 4], eax
call sub.KERNEL32.dll_GetDiskFreeSpaceExA
sub esp, 0x10
test eax, eax
jne 0x4061ff
mov dword [esp + 0x50], 0
mov dword [esp + 0x54], 0
mov dword [esp + 0x58], 0
mov dword [esp + 0x5c], 0
cmp byte [esp + 0x80], 0
jne 0x406229
mov dword [esp], str.mWYCi_a46w
call fcn.004081aa
mov dword [esp + 8], 0x40
mov dword [esp + 4], eax
mov dword [esp], esi
call fcn.00412548
mov eax, dword [esp + 0x50]
mov edx, dword [esp + 0x54]
mov dword [esp], ebx
mov ebp, dword [esp + 0x4c]
mov dword [esp + 0x30], eax
mov dword [esp + 0x34], edx
mov eax, dword [esp + 0x58]
mov edx, dword [esp + 0x5c]
mov dword [esp + 0x38], eax
mov dword [esp + 0x3c], edx
call sub.KERNEL32.dll_GetDriveTypeA
push edx
mov edx, dword [esp + 0x30]
mov ecx, dword [esp + 0x34]
mov dword [esp + 0x1c], ebp
lea ebp, [esp + 0x140]
mov dword [esp + 0x18], eax
mov dword [esp + 0x28], edx
mov edx, dword [esp + 0x38]
mov dword [esp + 0x2c], ecx
mov ecx, dword [esp + 0x3c]
mov dword [esp + 0x14], edi
mov dword [esp + 0x10], ebx
mov dword [esp + 0x20], edx
mov dword [esp + 0xc], esi
mov dword [esp + 0x24], ecx
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], ebp
call fcn.004127a8
test eax, eax
jle 0x4062c1
mov dword [esp + 8], eax
lea eax, [esp + 0x64]
mov dword [esp + 4], ebp
mov dword [esp], eax
call fcn.00412458
add ebx, 4
jmp 0x40610c
mov dword [esp + 0xc], 0
mov dword [esp + 8], 0
mov dword [esp + 4], 0xea
mov eax, dword [esp + 0x360]
mov dword [esp], eax
call fcn.00405d7d
mov dword [esp], ebx
call fcn.004123b1
add esp, 0x34c
pop ebx
pop esi
pop edi
pop ebp
ret