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

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x42ecf7
mov eax, dword fs:[0]
push eax
sub esp, 0xacc
mov eax, dword [0x4b4590]
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 dword [ebp - 0x14], ecx
mov dword [ebp - 0xa98], 0
mov eax, dword [ebp + 8]
push eax
call dword [sym.imp.KERNEL32.dll_GetDriveTypeW]
mov dword [ebp - 0x18], eax
cmp dword [ebp - 0x18], 2
je 0x40a88b
cmp dword [ebp - 0x18], 5
je 0x40a88b
xor al, al
jmp 0x40acb2
cmp dword [ebp - 0x18], 5
jne 0x40a8a6
mov eax, dword [ebp - 0x14]
mov ecx, dword [eax + 0x1bc]
add ecx, 1
mov edx, dword [ebp - 0x14]
mov dword [edx + 0x1bc], ecx
xor eax, eax
mov word [ebp - 0xa2c], ax
push 0x206
push 0
lea eax, [ebp - 0xa2a]
push eax
call sub.MSVCR90.dll_memset
add esp, 0xc
push 0x439362
lea ecx, [ebp - 0xa30]
call dword [sym.imp.QtCore4.dll_public:_void___thiscall_QString::constructor_char_const__]
mov dword [ebp - 4], 0
push 0x400
lea eax, [ebp - 0x824]
push eax
lea ecx, [ebp - 0x24]
push ecx
lea edx, [ebp - 0x20]
push edx
lea eax, [ebp - 0x1c]
push eax
push 0x104
lea ecx, [ebp - 0xa2c]
push ecx
mov edx, dword [ebp + 8]
push edx
call dword [sym.imp.KERNEL32.dll_GetVolumeInformationW]
test eax, eax
jne 0x40a922
push str.Removeable_Device
lea ecx, [ebp - 0xa30]
call dword [sym.imp.QtCore4.dll_public:_class_QString____thiscall_QString::operator_char_const__]
jmp 0x40a974
push 0xffffffffffffffff
lea eax, [ebp - 0xa2c]
push eax
lea ecx, [ebp - 0xabc]
push ecx
call dword [sym.imp.QtCore4.dll_public:_static_class_QString___cdecl_QString::fromWCharArray_unsigned_short_int_const___int_]
add esp, 0xc
mov dword [ebp - 0xac0], eax
mov edx, dword [ebp - 0xac0]
mov dword [ebp - 0xac4], edx
mov byte [ebp - 4], 1
mov eax, dword [ebp - 0xac4]
push eax
lea ecx, [ebp - 0xa30]
call dword [sym.imp.QtCore4.dll_public:_class_QString____thiscall_QString::operator_class_QString_const__]
mov byte [ebp - 4], 0
lea ecx, [ebp - 0xabc]
call dword [sym.imp.QtCore4.dll_public:_void___thiscall_QString::destructor_void_]
push 0xffffffffffffffff
mov eax, dword [ebp + 8]
push eax
lea ecx, [ebp - 0xa34]
push ecx
call dword [sym.imp.QtCore4.dll_public:_static_class_QString___cdecl_QString::fromWCharArray_unsigned_short_int_const___int_]
add esp, 0xc
mov byte [ebp - 4], 2
push 0xffffffffffffffff
lea eax, [ebp - 0x824]
push eax
lea ecx, [ebp - 0xa38]
push ecx
call dword [sym.imp.QtCore4.dll_public:_static_class_QString___cdecl_QString::fromWCharArray_unsigned_short_int_const___int_]
add esp, 0xc
mov byte [ebp - 4], 3
mov dword [ebp - 0xa3c], 0
mov dword [ebp - 0xa40], 0
mov dword [ebp - 0xa44], 0
mov dword [ebp - 0xa48], 0
lea eax, [ebp - 0xa48]
push eax
lea ecx, [ebp - 0xa44]
push ecx
lea edx, [ebp - 0xa40]
push edx
lea eax, [ebp - 0xa3c]
push eax
mov ecx, dword [ebp + 8]
push ecx
call dword [sym.imp.KERNEL32.dll_GetDiskFreeSpaceW]
mov eax, dword [ebp - 0xa48]
xor ecx, ecx
mov dword [ebp - 0xa50], eax
mov dword [ebp - 0xa4c], ecx
mov eax, dword [ebp - 0xa3c]
xor ecx, ecx
push ecx
push eax
mov edx, dword [ebp - 0xa4c]
push edx
mov eax, dword [ebp - 0xa50]
push eax
call fcn.0042c5a0
mov dword [ebp - 0xa50], eax
mov dword [ebp - 0xa4c], edx
mov eax, dword [ebp - 0xa40]
xor ecx, ecx
push ecx
push eax
mov edx, dword [ebp - 0xa4c]
push edx
mov eax, dword [ebp - 0xa50]
push eax
call fcn.0042c5a0
mov dword [ebp - 0xa50], eax
mov dword [ebp - 0xa4c], edx
push 0x18
call sub.MSVCR90.dll_void____cdecl_operator_new_unsigned_int_
add esp, 4
mov dword [ebp - 0xab4], eax
mov byte [ebp - 4], 4
cmp dword [ebp - 0xab4], 0
je 0x40abae
push 0x20
lea ecx, [ebp - 0xaa1]
call fcn.004056f0
movzx eax, byte [eax]
push eax
lea ecx, [ebp - 0xaa4]
call dword [sym.imp.QtCore4.dll_public:_void___thiscall_QChar::constructor_struct_QLatin1Char_]
push 0x20
lea ecx, [ebp - 0xaa9]
call fcn.004056f0
movzx ecx, byte [eax]
push ecx
lea ecx, [ebp - 0xaac]
call dword [sym.imp.QtCore4.dll_public:_void___thiscall_QChar::constructor_struct_QLatin1Char_]
mov edx, dword [ebp - 0xa4c]
push edx
mov eax, dword [ebp - 0xa50]
push eax
lea ecx, [ebp - 0xaa4]
push ecx
push 0
lea edx, [ebp - 0xa30]
push edx
lea eax, [ebp - 0xaa0]
push eax
lea ecx, [ebp - 0xaac]
push ecx
push 0
lea edx, [ebp - 0xa34]
push edx
lea eax, [ebp - 0xaa8]
push eax
push str._1__2
lea ecx, [ebp - 0xab0]
call dword [sym.imp.QtCore4.dll_public:_void___thiscall_QString::constructor_char_const__]
mov dword [ebp - 0xac0], eax
mov ecx, dword [ebp - 0xac0]
mov dword [ebp - 0xac4], ecx
mov byte [ebp - 4], 5
mov edx, dword [ebp - 0xa98]
or edx, 1
mov dword [ebp - 0xa98], edx
mov ecx, dword [ebp - 0xac4]
call dword [sym.imp.QtCore4.dll_public:_class_QString___thiscall_QString::arg_class_QString_const___int__class_QChar_const__]
mov dword [ebp - 0xac8], eax
mov eax, dword [ebp - 0xac8]
mov dword [ebp - 0xacc], eax
mov dword [ebp - 4], 6
mov ecx, dword [ebp - 0xa98]
or ecx, 2
mov dword [ebp - 0xa98], ecx
mov ecx, dword [ebp - 0xacc]
call dword [sym.imp.QtCore4.dll_public:_class_QString___thiscall_QString::arg_class_QString_const___int__class_QChar_const__]
mov dword [ebp - 0xad0], eax
mov edx, dword [ebp - 0xad0]
mov dword [ebp - 0xad4], edx
mov dword [ebp - 4], 7
mov eax, dword [ebp - 0xa98]
or eax, 4
mov dword [ebp - 0xa98], eax
mov ecx, dword [ebp - 0xad4]
push ecx
mov ecx, dword [ebp - 0xab4]
call fcn.0040acd0
mov dword [ebp - 0xad8], eax
jmp 0x40abb8
mov dword [ebp - 0xad8], 0
mov edx, dword [ebp - 0xad8]
mov dword [ebp - 0xab8], edx
mov dword [ebp - 4], 0xa
mov eax, dword [ebp - 0xab8]
mov dword [ebp - 0xa54], eax
mov dword [ebp - 4], 9
mov ecx, dword [ebp - 0xa98]
and ecx, 4
je 0x40abfc
and dword [ebp - 0xa98], 0xfffffffb
lea ecx, [ebp - 0xaa0]
call dword [sym.imp.QtCore4.dll_public:_void___thiscall_QString::destructor_void_]
mov dword [ebp - 4], 8
mov edx, dword [ebp - 0xa98]
and edx, 2
je 0x40ac21
and dword [ebp - 0xa98], 0xfffffffd
lea ecx, [ebp - 0xaa8]
call dword [sym.imp.QtCore4.dll_public:_void___thiscall_QString::destructor_void_]
mov dword [ebp - 4], 3
mov eax, dword [ebp - 0xa98]
and eax, 1
je 0x40ac46
and dword [ebp - 0xa98], 0xfffffffe
lea ecx, [ebp - 0xab0]
call dword [sym.imp.QtCore4.dll_public:_void___thiscall_QString::destructor_void_]
cmp dword [ebp - 0x18], 2
jne 0x40ac60
lea eax, [ebp - 0xa54]
push eax
mov ecx, dword [ebp - 0x14]
mov ecx, dword [ecx + 0x18]
call fcn.0040b1b0
jmp 0x40ac72
lea eax, [ebp - 0xa54]
push eax
mov ecx, dword [ebp - 0x14]
mov ecx, dword [ecx + 0x1c]
call fcn.0040b1b0
mov byte [ebp - 0xa99], 1
mov byte [ebp - 4], 2
lea ecx, [ebp - 0xa38]
call dword [sym.imp.QtCore4.dll_public:_void___thiscall_QString::destructor_void_]
mov byte [ebp - 4], 0
lea ecx, [ebp - 0xa34]
call dword [sym.imp.QtCore4.dll_public:_void___thiscall_QString::destructor_void_]
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0xa30]
call dword [sym.imp.QtCore4.dll_public:_void___thiscall_QString::destructor_void_]
mov al, byte [ebp - 0xa99]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.0042c3b8
mov esp, ebp
pop ebp
ret 4