Function at 0x6cddcaa0
Capabilities:
Get storage device properties

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x6ce18d85
mov eax, dword fs:[0]
push eax
sub esp, 0xd58
mov eax, dword [0x6ce5c008]
xor eax, ebp
mov dword [ebp - 0x14], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, edx
mov esi, ecx
mov ebx, dword [ebp + 8]
xor al, al
mov byte [ebp - 0xd25], al
mov dword [ebp - 0xd30], 0
test al, al
jne 0x6cddce47
push 0x200
lea eax, [ebp - 0x514]
push 0
push eax
call sub.VCRUNTIME140.dll_memset
add esp, 0xc
lea eax, [ebp - 0x514]
push dword [ebp - 0xd30]
push str..PhysicalDrive_d
push 0xff
push eax
call fcn.6cdddd20
add esp, 0x10
lea eax, [ebp - 0x514]
push 0
push 0
push 3
push 0
push 3
push 0
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov dword [ebp - 0xd34], eax
cmp eax, 0xffffffff
je 0x6cddce2b
push 0x800
xorps xmm0, xmm0
mov dword [ebp - 0xd18], 0
lea eax, [ebp - 0xd14]
movq qword [ebp - 0xd24], xmm0
push 0
push eax
mov dword [ebp - 0xd1c], 0
mov dword [ebp - 0xd24], 0
mov dword [ebp - 0xd20], 0
call sub.VCRUNTIME140.dll_memset
add esp, 0xc
lea eax, [ebp - 0xd18]
push 0
push eax
push 0x800
lea eax, [ebp - 0xd14]
push eax
push 0xc
lea eax, [ebp - 0xd24]
push eax
push 0x2d1400
push dword [ebp - 0xd34]
call dword [sym.imp.KERNEL32.dll_DeviceIoControl]
test eax, eax
je 0x6cddce19
push 0x100
lea eax, [ebp - 0x114]
push 0
push eax
call sub.VCRUNTIME140.dll_memset
add esp, 0xc
lea eax, [ebp - 0x214]
push 0x100
push 0
push eax
call sub.VCRUNTIME140.dll_memset
add esp, 0xc
lea eax, [ebp - 0x314]
push 0x100
push 0
push eax
call sub.VCRUNTIME140.dll_memset
mov edx, dword [ebp - 0xd04]
lea eax, [ebp - 0x214]
add esp, 0xc
lea ecx, [ebp - 0xd14]
push eax
push 0
call fcn.6cddc3d0
mov edx, dword [ebp - 0xd00]
lea eax, [ebp - 0x314]
push eax
push 0
lea ecx, [ebp - 0xd14]
call fcn.6cddc3d0
mov edx, dword [ebp - 0xcfc]
lea eax, [ebp - 0x114]
push eax
push 1
lea ecx, [ebp - 0xd14]
call fcn.6cddc3d0
movsx eax, byte [ebp - 0x114]
push eax
call dword [sym.imp.api_ms_win_crt_string_l1_1_0.dll_isalnum]
add esp, 0x1c
test eax, eax
jne 0x6cddcc8a
movsx eax, byte [ebp - 0x101]
push eax
call dword [sym.imp.api_ms_win_crt_string_l1_1_0.dll_isalnum]
add esp, 4
test eax, eax
je 0x6cddce1f
lea eax, [ebp - 0x114]
push eax
lea ecx, [ebp - 0xd64]
call fcn.6cdc8550
mov ecx, eax
mov dword [ebp - 0xd2c], ecx
cmp esi, ecx
je 0x6cddcce4
mov eax, dword [esi + 0x14]
cmp eax, 0x10
jb 0x6cddccbf
inc eax
push eax
push dword [esi]
call fcn.6cdca250
mov ecx, dword [ebp - 0xd2c]
mov dword [esi + 0x14], 0xf
cmp dword [esi + 0x14], 0x10
mov dword [esi + 0x10], 0
jb 0x6cddccd7
mov eax, dword [esi]
jmp 0x6cddccd9
mov eax, esi
push ecx
mov ecx, esi
mov byte [eax], 0
call fcn.6cdc9fc0
mov dword [ebp - 4], 0xffffffff
mov eax, dword [ebp - 0xd50]
cmp eax, 0x10
jb 0x6cddcd03
inc eax
push eax
push dword [ebp - 0xd64]
call fcn.6cdca250
lea eax, [ebp - 0x214]
push eax
lea ecx, [ebp - 0xd64]
call fcn.6cdc8550
mov ecx, eax
mov dword [ebp - 0xd2c], ecx
cmp edi, ecx
je 0x6cddcd5d
mov eax, dword [edi + 0x14]
cmp eax, 0x10
jb 0x6cddcd38
inc eax
push eax
push dword [edi]
call fcn.6cdca250
mov ecx, dword [ebp - 0xd2c]
mov dword [edi + 0x14], 0xf
cmp dword [edi + 0x14], 0x10
mov dword [edi + 0x10], 0
jb 0x6cddcd50
mov eax, dword [edi]
jmp 0x6cddcd52
mov eax, edi
push ecx
mov ecx, edi
mov byte [eax], 0
call fcn.6cdc9fc0
mov dword [ebp - 4], 0xffffffff
mov eax, dword [ebp - 0xd50]
cmp eax, 0x10
jb 0x6cddcd7c
inc eax
push eax
push dword [ebp - 0xd64]
call fcn.6cdca250
lea eax, [ebp - 0x314]
push eax
lea ecx, [ebp - 0xd4c]
call fcn.6cdc8550
mov ecx, eax
mov dword [ebp - 0xd2c], ecx
cmp ebx, ecx
je 0x6cddcdd6
mov eax, dword [ebx + 0x14]
cmp eax, 0x10
jb 0x6cddcdb1
inc eax
push eax
push dword [ebx]
call fcn.6cdca250
mov ecx, dword [ebp - 0xd2c]
mov dword [ebx + 0x14], 0xf
cmp dword [ebx + 0x14], 0x10
mov dword [ebx + 0x10], 0
jb 0x6cddcdc9
mov eax, dword [ebx]
jmp 0x6cddcdcb
mov eax, ebx
push ecx
mov ecx, ebx
mov byte [eax], 0
call fcn.6cdc9fc0
mov dword [ebp - 4], 0xffffffff
mov eax, dword [ebp - 0xd38]
cmp eax, 0x10
jb 0x6cddcdf5
inc eax
push eax
push dword [ebp - 0xd4c]
call fcn.6cdca250
mov dword [ebp - 0xd38], 0xf
mov dword [ebp - 0xd3c], 0
mov byte [ebp - 0xd4c], 0
mov byte [ebp - 0xd25], 1
jmp 0x6cddce1f
call dword [sym.imp.KERNEL32.dll_GetLastError]
push dword [ebp - 0xd34]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov ecx, dword [ebp - 0xd30]
mov al, byte [ebp - 0xd25]
inc ecx
mov dword [ebp - 0xd30], ecx
cmp ecx, 0x10
jl 0x6cddcae7
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x14]
xor ecx, ebp
call fcn.6ce11901
mov esp, ebp
pop ebp
ret