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

Disassembly:
push 0x88c
mov eax, 0x10039f92
call fcn.10022cff
mov ebx, ecx
inc dword [0x100509d8]
xor eax, eax
mov byte [ebp - 0x87c], al
mov dword [ebp - 0x878], eax
mov dword [ebp - 0x874], eax
mov dword [ebp - 0x870], eax
mov dword [ebp - 0x86c], eax
push 0x800
push eax
mov dword [ebp - 4], eax
lea eax, [ebp - 0x810]
push eax
call fcn.100255c0
add esp, 0xc
lea eax, [ebp - 0x810]
push eax
push 0x3ff
call dword [sym.imp.KERNEL32.dll_GetLogicalDriveStringsW]
test eax, eax
je 0x1000ce4c
lea esi, [eax - 1]
shr esi, 2
lea edi, [ebp - 0x810]
inc esi
movzx eax, word [edi]
cmp eax, 0x41
je 0x1000ce0e
cmp eax, 0x42
je 0x1000ce0e
xor ecx, ecx
mov dword [ebp - 0x844], ecx
xorps xmm0, xmm0
mov dword [ebp - 0x834], ecx
xor eax, eax
mov dword [ebp - 0x830], 7
mov word [ebp - 0x844], ax
mov word [ebp - 0x848], 0x110d
mov dword [ebp - 0x82c], ecx
mov byte [ebp - 0x828], cl
movlpd qword [ebp - 0x820], xmm0
movlpd qword [ebp - 0x818], xmm0
push edi
lea ecx, [ebp - 0x844]
mov byte [ebp - 4], 2
call fcn.10012757
mov eax, dword [ebp - 0x834]
xor ecx, ecx
dec eax
mov dword [ebp - 0x860], ecx
push eax
mov dword [ebp - 0x850], ecx
mov dword [ebp - 0x84c], ecx
lea ecx, [ebp - 0x860]
push edi
call fcn.10015154
lea eax, [ebp - 0x860]
push eax
lea ecx, [ebp - 0x844]
call fcn.100127a6
mov eax, dword [ebp - 0x84c]
cmp eax, 8
jb 0x1000cd0f
mov ecx, dword [ebp - 0x860]
lea eax, [eax*2 + 2]
mov dword [ebp - 0x868], eax
mov dword [ebp - 0x864], ecx
cmp eax, 0x1000
jb 0x1000cd06
lea eax, [ebp - 0x868]
push eax
lea eax, [ebp - 0x864]
push eax
call fcn.100015db
mov eax, dword [ebp - 0x868]
pop ecx
pop ecx
mov ecx, dword [ebp - 0x864]
push eax
push ecx
call fcn.10022776
pop ecx
pop ecx
push edi
call dword [sym.imp.KERNEL32.dll_GetDriveTypeW]
mov dword [ebp - 0x82c], eax
lea eax, [ebp - 0x890]
push eax
lea eax, [ebp - 0x888]
push eax
lea eax, [ebp - 0x898]
push eax
push edi
call dword [sym.imp.KERNEL32.dll_GetDiskFreeSpaceExW]
test eax, eax
je 0x1000cd75
mov eax, dword [ebp - 0x888]
mov ecx, dword [ebp - 0x884]
mov dword [ebp - 0x820], eax
mov eax, dword [ebp - 0x890]
mov dword [ebp - 0x81c], ecx
mov ecx, dword [ebp - 0x88c]
mov byte [ebp - 0x828], 1
mov dword [ebp - 0x818], eax
mov dword [ebp - 0x814], ecx
jmp 0x1000cd7c
mov byte [ebp - 0x828], 0
lea eax, [ebp - 0x85c]
push eax
lea ecx, [ebp - 0x848]
call fcn.10006f84
mov ecx, eax
call fcn.10005b56
push eax
push dword [ecx + 8]
lea ecx, [ebp - 0x87c]
call fcn.10005b6a
dec dword [0x100509d8]
lea ecx, [ebp - 0x85c]
call fcn.10005aee
mov byte [ebp - 4], 0
mov eax, dword [ebp - 0x830]
cmp eax, 8
jb 0x1000ce0e
mov ecx, dword [ebp - 0x844]
lea eax, [eax*2 + 2]
mov dword [ebp - 0x864], eax
mov dword [ebp - 0x868], ecx
cmp eax, 0x1000
jb 0x1000ce05
lea eax, [ebp - 0x864]
push eax
lea eax, [ebp - 0x868]
push eax
call fcn.100015db
mov eax, dword [ebp - 0x864]
pop ecx
pop ecx
mov ecx, dword [ebp - 0x868]
push eax
push ecx
call fcn.10022776
pop ecx
pop ecx
add edi, 8
sub esi, 1
jne 0x1000cc12
mov eax, dword [ebp - 0x870]
test eax, eax
je 0x1000ce4c
cmp dword [ebp - 0x874], esi
je 0x1000ce4c
sub eax, dword [ebp - 0x874]
je 0x1000ce4c
sub esp, 0x14
lea eax, [ebp - 0x87c]
mov ecx, esp
push eax
call fcn.10005a66
mov ecx, ebx
call fcn.1000ca04
dec dword [0x100509d8]
lea ecx, [ebp - 0x87c]
call fcn.10005aee
call fcn.10022cbd
ret