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

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x526c7a
mov eax, dword fs:[0]
push eax
sub esp, 0x868
mov eax, dword [0x57f7a0]
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 - 0x858]
push ebx
push eax
mov dword [ebp - 0x864], ebx
call fcn.00413530
mov dword [ebp - 4], ebx
lea ecx, [ebp - 0x870]
cmp dword [ebp - 0x844], 8
lea eax, [ebp - 0x858]
push ebx
cmovae eax, dword [ebp - 0x858]
push ebx
push ecx
push eax
mov dword [ebp - 0x870], ebx
mov dword [ebp - 0x86c], ebx
call dword [sym.imp.KERNEL32.dll_GetDiskFreeSpaceExW]
test eax, eax
je 0x412ec4
xor eax, eax
mov dword [ebp - 0x874], 1
push 0x7fe
push eax
mov word [ebp - 0x810], ax
lea eax, [ebp - 0x80e]
push eax
call fcn.004f31f0
add esp, 0xc
cmp dword [esi + 0x14], 8
jb 0x412d03
mov eax, dword [esi]
jmp 0x412d05
mov eax, esi
push 0x400
lea ecx, [ebp - 0x810]
push ecx
lea ecx, [ebp - 0x874]
push ecx
push 0
push 0
push 0
push 0
push eax
call dword [sym.imp.KERNEL32.dll_GetVolumeInformationW]
test eax, eax
je 0x412da5
lea eax, [ebp - 0x810]
push eax
lea ecx, [ebp - 0x840]
call fcn.00407570
push 5
push str.FAT32
mov byte [ebp - 4], 1
mov ebx, 1
push dword [eax + 0x10]
mov ecx, eax
mov dword [ebp - 0x864], ebx
push 0
call fcn.00406720
test eax, eax
je 0x412da5
lea eax, [ebp - 0x810]
push eax
lea ecx, [ebp - 0x828]
call fcn.00407570
push 4
push str.NTFS
mov dword [ebp - 4], 2
mov ebx, 3
push dword [eax + 0x10]
mov ecx, eax
mov dword [ebp - 0x864], ebx
push 0
call fcn.00406720
mov byte [ebp - 0x859], 1
test eax, eax
jne 0x412dac
mov byte [ebp - 0x859], 0
test bl, 2
je 0x412de8
and ebx, 0xfffffffd
cmp dword [ebp - 0x814], 8
jb 0x412dcb
push dword [ebp - 0x828]
call fcn.004db8b0
add esp, 4
xor eax, eax
mov dword [ebp - 0x814], 7
mov dword [ebp - 0x818], 0
mov word [ebp - 0x828], ax
mov dword [ebp - 4], 0
test bl, 1
je 0x412e0b
cmp dword [ebp - 0x82c], 8
jb 0x412e0b
push dword [ebp - 0x840]
call fcn.004db8b0
add esp, 4
cmp byte [ebp - 0x859], 0
jne 0x412ec4
mov edx, dword [ebp - 0x86c]
mov ecx, dword [ebp - 0x870]
call fcn.004f5e1e
mulsd xmm0, qword [0x568a78]
lea eax, [ebp - 0x840]
push 2
push 0
push eax
mov ecx, esi
movsd qword [ebp - 0x868], xmm0
call fcn.00413530
mov byte [ebp - 4], 3
cmp dword [eax + 0x14], 8
jb 0x412e57
mov eax, dword [eax]
mov ecx, eax
call fcn.00413050
mov byte [ebp - 4], 0
mov bl, al
cmp dword [ebp - 0x82c], 8
jb 0x412e7b
push dword [ebp - 0x840]
call fcn.004db8b0
add esp, 4
movsd xmm0, qword [ebp - 0x868]
test bl, bl
je 0x412ecf
cvttsd2si eax, xmm0
cmp eax, 0x6000
jle 0x412ecf
cmp dword [esi + 0x14], 8
jb 0x412e9a
mov esi, dword [esi]
push esi
push str.path__s_is_SSD
push 0x835
push str.CalcAvaliableSpace
call fcn.00439030
movsd xmm0, qword [ebp - 0x868]
add esp, 0x10
mulsd xmm0, qword [0x568ae0]
jmp 0x412ec7
xorps xmm0, xmm0
movsd qword [ebp - 0x868], xmm0
cmp dword [ebp - 0x844], 8
jb 0x412eee
push dword [ebp - 0x858]
call fcn.004db8b0
movsd xmm0, qword [ebp - 0x868]
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.004ea604
mov esp, ebp
pop ebp
ret