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

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4cd95a
mov eax, dword fs:[0]
push eax
sub esp, 0x868
mov eax, dword [0x50d488]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
push 3
xor ebx, ebx
lea eax, [ebp - 0x834]
push ebx
push eax
mov dword [ebp - 0x83c], ebx
call fcn.00408780
mov dword [ebp - 4], ebx
lea ecx, [ebp - 0x818]
cmp dword [ebp - 0x820], 8
lea eax, [ebp - 0x834]
push ebx
cmovae eax, dword [ebp - 0x834]
push ebx
push ecx
push eax
mov dword [ebp - 0x818], ebx
mov dword [ebp - 0x814], ebx
call dword [sym.imp.KERNEL32.dll_GetDiskFreeSpaceExW]
test eax, eax
je 0x42cff2
xor eax, eax
mov dword [ebp - 0x81c], 1
push 0x7fe
push eax
mov word [ebp - 0x810], ax
lea eax, [ebp - 0x80e]
push eax
call fcn.0049e980
add esp, 0xc
cmp dword [esi + 0x14], 8
jb 0x42ce33
mov eax, dword [esi]
jmp 0x42ce35
mov eax, esi
push 0x400
lea ecx, [ebp - 0x810]
push ecx
lea ecx, [ebp - 0x81c]
push ecx
push 0
push 0
push 0
push 0
push eax
call dword [sym.imp.KERNEL32.dll_GetVolumeInformationW]
test eax, eax
je 0x42ced3
lea eax, [ebp - 0x810]
push eax
lea ecx, [ebp - 0x870]
call fcn.00407110
push 5
push str.FAT32
mov byte [ebp - 4], 1
mov ebx, 1
push dword [eax + 0x10]
mov dword [ebp - 0x83c], ebx
push ecx
mov ecx, eax
call fcn.00406330
test eax, eax
je 0x42ced3
lea eax, [ebp - 0x810]
push eax
lea ecx, [ebp - 0x858]
call fcn.00407110
push 4
push str.NTFS
mov dword [ebp - 4], 2
mov ebx, 3
push dword [eax + 0x10]
mov dword [ebp - 0x83c], ebx
push ecx
mov ecx, eax
call fcn.00406330
mov byte [ebp - 0x835], 1
test eax, eax
jne 0x42ceda
mov byte [ebp - 0x835], 0
test bl, 2
je 0x42cf16
and ebx, 0xfffffffd
cmp dword [ebp - 0x844], 8
jb 0x42cef9
push dword [ebp - 0x858]
call fcn.00494620
add esp, 4
xor eax, eax
mov dword [ebp - 0x844], 7
mov dword [ebp - 0x848], 0
mov word [ebp - 0x858], ax
mov dword [ebp - 4], 0
test bl, 1
je 0x42cf39
cmp dword [ebp - 0x85c], 8
jb 0x42cf39
push dword [ebp - 0x870]
call fcn.00494620
add esp, 4
cmp byte [ebp - 0x835], 0
jne 0x42cff2
mov edx, dword [ebp - 0x814]
mov ecx, dword [ebp - 0x818]
call fcn.0049fb4e
mulsd xmm0, qword [0x4fa470]
lea eax, [ebp - 0x870]
push 2
push 0
push eax
mov ecx, esi
movsd qword [ebp - 0x840], xmm0
call fcn.00408780
mov byte [ebp - 4], 3
cmp dword [eax + 0x14], 8
jb 0x42cf85
mov eax, dword [eax]
mov ecx, eax
call fcn.0042cc30
mov byte [ebp - 4], 0
mov bl, al
cmp dword [ebp - 0x85c], 8
jb 0x42cfa9
push dword [ebp - 0x870]
call fcn.00494620
add esp, 4
movsd xmm0, qword [ebp - 0x840]
test bl, bl
je 0x42cffd
cvttsd2si eax, xmm0
cmp eax, 0x7800
jle 0x42cffd
cmp dword [esi + 0x14], 8
jb 0x42cfc8
mov esi, dword [esi]
push esi
push str.path__s_is_SSD
push 0xc6
push str.helper::disk::CalcAvaliableSpace
call fcn.004408e0
movsd xmm0, qword [ebp - 0x840]
add esp, 0x10
mulsd xmm0, qword [0x4fa4a8]
jmp 0x42cff5
xorps xmm0, xmm0
movsd qword [ebp - 0x840], xmm0
cmp dword [ebp - 0x820], 8
jb 0x42d01c
push dword [ebp - 0x834]
call fcn.00494620
movsd xmm0, qword [ebp - 0x840]
add esp, 4
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.004944c3
mov esp, ebp
pop ebp
ret