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

Disassembly:
push ebp
lea ebp, [esp - 0x754]
sub esp, 0x754
push 0xffffffffffffffff
push 0x100b0b55
mov eax, dword fs:[0]
push eax
sub esp, 0x18
mov eax, dword [0x100e6008]
xor eax, ebp
mov dword [ebp + 0x750], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov ebx, edx
mov esi, ecx
push 0xb
xor eax, eax
mov dword [ebp - 0x14], 0
mov dword [ebp - 0x10], 0
lea ecx, [ebp - 0x24]
push str.Shell32.dll
mov dword [ebp - 0x14], 0
mov dword [ebp - 0x10], 7
mov word [ebp - 0x24], ax
call fcn.10006df0
mov dword [ebp - 4], 0
lea eax, [ebp - 0x24]
push eax
call fcn.1001c550
mov ecx, eax
call fcn.1001c610
mov edi, eax
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x24]
call fcn.10006d80
test edi, edi
je 0x10022313
push str.SHGetFileInfoW
push edi
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov edi, eax
test edi, edi
je 0x10022313
xor eax, eax
mov dword [ebp + 0x2d0], 0
mov dword [ebp + 0x2d4], 0
mov dword [ebp + 0x2d0], 0
mov dword [ebp + 0x2d4], 7
mov word [ebp + 0x2c0], ax
mov dword [ebp - 4], 1
mov dword [ebp + 0x2e8], eax
mov dword [ebp + 0x2ec], eax
mov dword [ebp + 0x2e8], eax
mov dword [ebp + 0x2ec], 7
mov word [ebp + 0x2d8], ax
mov byte [ebp - 4], 2
mov dword [ebp + 0x300], eax
mov dword [ebp + 0x304], eax
mov dword [ebp + 0x300], eax
mov dword [ebp + 0x304], 7
mov word [ebp + 0x2f0], ax
mov dword [ebp - 4], 4
push 0x2b4
push eax
lea eax, [ebp]
push eax
call sub.VCRUNTIME140.dll_memset
add esp, 0xc
mov eax, esi
cmp dword [esi + 0x14], 8
jb 0x100222c9
mov eax, dword [esi]
push 0x610
push 0x2b4
lea ecx, [ebp]
push ecx
push 0
push eax
call edi
test eax, eax
jne 0x1002231a
mov dword [ebp - 4], 6
lea ecx, [ebp + 0x2f0]
call fcn.10006d80
mov byte [ebp - 4], 5
lea ecx, [ebp + 0x2d8]
call fcn.10006d80
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp + 0x2c0]
call fcn.10006d80
xor al, al
jmp 0x100225c8
lea ecx, [ebp + 0xc]
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x10022320
sub ecx, edx
lea eax, [ebp + 0xc]
sar ecx, 1
push ecx
push eax
lea ecx, [ebp + 0x2c0]
call fcn.10006df0
lea ecx, [ebp + 0x214]
lea edx, [ecx + 2]
nop dword [eax + eax]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x10022350
sub ecx, edx
lea eax, [ebp + 0x214]
sar ecx, 1
push ecx
push eax
lea ecx, [ebp + 0x2d8]
call fcn.10006df0
push 0x20a
lea eax, [ebp + 0x338]
push 0
push eax
call sub.VCRUNTIME140.dll_memset
push 0x20a
lea eax, [ebp + 0x544]
mov dword [ebp + 0x2b4], 0
push 0
push eax
mov dword [ebp + 0x2b8], 0
mov dword [ebp + 0x2bc], 0
call sub.VCRUNTIME140.dll_memset
add esp, 0x18
mov eax, esi
cmp dword [esi + 0x14], 8
jb 0x100223c3
mov eax, dword [esi]
push 0x104
lea ecx, [ebp + 0x544]
push ecx
lea ecx, [ebp + 0x2bc]
push ecx
lea ecx, [ebp + 0x2b8]
push ecx
lea ecx, [ebp + 0x2b4]
push ecx
push 0x104
lea ecx, [ebp + 0x338]
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_GetVolumeInformationW]
test eax, eax
je 0x100224e6
xor eax, eax
lea ecx, [ebp + 0x544]
mov word [ebp + 0x74c], ax
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x10022411
sub ecx, edx
lea eax, [ebp + 0x544]
sar ecx, 1
push ecx
push eax
lea ecx, [ebp + 0x2f0]
call fcn.10006df0
cmp dword [esi + 0x14], 8
mov byte [ebp + 0x320], 1
mov dword [ebp + 0x330], 0
mov dword [ebp + 0x334], 0
mov dword [ebp + 0x328], 0
mov dword [ebp + 0x32c], 0
jb 0x1002246a
mov esi, dword [esi]
lea eax, [ebp + 0x32c]
push eax
lea eax, [ebp + 0x328]
push eax
lea eax, [ebp + 0x334]
push eax
lea eax, [ebp + 0x330]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_GetDiskFreeSpaceW]
test eax, eax
je 0x1002250a
mov esi, dword [ebp + 0x334]
mov eax, esi
mov edi, dword [ebp + 0x330]
imul eax, edi
push 0
push edi
mov dword [ebp + 0x308], eax
mov eax, dword [ebp + 0x32c]
mul esi
push edx
push eax
call fcn.100acbd0
mov dword [ebp + 0x310], eax
mov eax, dword [ebp + 0x328]
mov dword [ebp + 0x314], edx
mul esi
push 0
push edi
push edx
push eax
call fcn.100acbd0
mov dword [ebp + 0x318], eax
mov dword [ebp + 0x31c], edx
jmp 0x1002250a
xorps xmm0, xmm0
mov dword [ebp + 0x308], 0
movlpd qword [ebp + 0x310], xmm0
movlpd qword [ebp + 0x318], xmm0
mov byte [ebp + 0x320], 0
lea eax, [ebp + 0x2c0]
cmp ebx, eax
je 0x10022530
cmp dword [ebp + 0x2d4], 8
mov ecx, ebx
push dword [ebp + 0x2d0]
cmovae eax, dword [ebp + 0x2c0]
push eax
call fcn.10006df0
lea ecx, [ebx + 0x18]
lea eax, [ebp + 0x2d8]
cmp ecx, eax
je 0x10022557
cmp dword [ebp + 0x2ec], 8
push dword [ebp + 0x2e8]
cmovae eax, dword [ebp + 0x2d8]
push eax
call fcn.10006df0
lea ecx, [ebx + 0x30]
lea eax, [ebp + 0x2f0]
cmp ecx, eax
je 0x1002257e
cmp dword [ebp + 0x304], 8
push dword [ebp + 0x300]
cmovae eax, dword [ebp + 0x2f0]
push eax
call fcn.10006df0
mov eax, dword [ebp + 0x308]
mov dword [ebx + 0x48], eax
mov eax, dword [ebp + 0x310]
mov dword [ebx + 0x50], eax
mov eax, dword [ebp + 0x314]
mov dword [ebx + 0x54], eax
mov eax, dword [ebp + 0x318]
mov dword [ebx + 0x58], eax
mov eax, dword [ebp + 0x31c]
mov dword [ebx + 0x5c], eax
mov al, byte [ebp + 0x320]
mov byte [ebx + 0x60], al
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp + 0x2c0]
call fcn.100225f0
mov al, 1
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp + 0x750]
xor ecx, ebp
call fcn.100ab466
lea esp, [ebp + 0x754]
pop ebp
ret