Function at 0x1001ddc0
Capabilities:
Get storage device properties

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x1010a2e6
mov eax, dword fs:[0]
push eax
sub esp, 0x16c
mov eax, dword [0x10137920]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
lea esi, [ebp - 0x154]
call fcn.1001dbb0
xor ebx, ebx
lea esi, [ebp - 0x12c]
mov dword [ebp - 4], ebx
call fcn.1001dcb0
lea esi, [ebp - 0x170]
mov byte [ebp - 4], 1
call fcn.1001dd90
mov edi, 0x10
cmp dword [eax + 0x14], edi
jb 0x1001de24
mov eax, dword [eax]
push ebx
push ebx
push 3
push ebx
push 3
push ebx
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov esi, eax
cmp dword [ebp - 0x15c], edi
jb 0x1001de4c
mov eax, dword [ebp - 0x170]
push eax
call fcn.10065453
add esp, 4
mov dword [ebp - 0x15c], 0xf
mov dword [ebp - 0x160], ebx
mov byte [ebp - 0x170], bl
cmp esi, 0xffffffff
je 0x1001e01e
xor eax, eax
push 0x80
lea ecx, [ebp - 0x110]
push ebx
mov dword [ebp - 0x138], eax
push ecx
mov dword [ebp - 0x174], ebx
mov dword [ebp - 0x134], eax
mov dword [ebp - 0x130], eax
mov dword [ebp - 0x138], ebx
call fcn.10066620
add esp, 0xc
push 0x80
lea edx, [ebp - 0x90]
push ebx
push edx
call fcn.10066620
add esp, 0xc
push ebx
lea eax, [ebp - 0x174]
push eax
push 0x80
lea ecx, [ebp - 0x110]
push ecx
push 0xc
lea edx, [ebp - 0x138]
push edx
push 0x2d1400
push esi
call dword [sym.imp.KERNEL32.dll_DeviceIoControl]
test eax, eax
je 0x1001e017
mov edx, dword [ebp - 0x100]
mov al, byte [ebp + edx - 0x110]
lea edx, [ebp + edx - 0x110]
cmp al, bl
je 0x1001df0e
lea ecx, [ebp - 0x90]
inc edx
mov byte [ecx], al
mov al, byte [edx]
inc ecx
cmp al, bl
jne 0x1001df04
lea eax, [ebp - 0x90]
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
cmp cl, bl
jne 0x1001df17
sub eax, edx
push eax
lea eax, [ebp - 0x90]
push eax
call dword [sym.imp.USER32.dll_CharLowerBuffA]
mov eax, dword [ebp - 0x154]
cmp dword [ebp - 0x140], edi
jae 0x1001df42
lea eax, [ebp - 0x154]
push eax
lea ecx, [ebp - 0x90]
push ecx
call fcn.10069dd0
add esp, 8
test eax, eax
je 0x1001dfa4
cmp dword [ebp - 0x118], edi
jb 0x1001df6d
mov edx, dword [ebp - 0x12c]
push edx
call fcn.10065453
add esp, 4
mov dword [ebp - 0x118], 0xf
mov dword [ebp - 0x11c], ebx
mov byte [ebp - 0x12c], bl
cmp dword [ebp - 0x140], edi
jb 0x1001df9a
mov eax, dword [ebp - 0x154]
push eax
call fcn.10065453
add esp, 4
mov eax, 1
jmp 0x1001e064
mov eax, dword [ebp - 0x12c]
cmp dword [ebp - 0x118], edi
jae 0x1001dfb8
lea eax, [ebp - 0x12c]
push eax
lea ecx, [ebp - 0x90]
push ecx
call fcn.10069dd0
add esp, 8
test eax, eax
je 0x1001e017
cmp dword [ebp - 0x118], edi
jb 0x1001dfe3
mov edx, dword [ebp - 0x12c]
push edx
call fcn.10065453
add esp, 4
mov dword [ebp - 0x118], 0xf
mov dword [ebp - 0x11c], ebx
mov byte [ebp - 0x12c], bl
cmp dword [ebp - 0x140], edi
jb 0x1001e010
mov eax, dword [ebp - 0x154]
push eax
call fcn.10065453
add esp, 4
mov eax, 2
jmp 0x1001e064
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
cmp dword [ebp - 0x118], edi
jb 0x1001e035
mov ecx, dword [ebp - 0x12c]
push ecx
call fcn.10065453
add esp, 4
mov dword [ebp - 0x118], 0xf
mov dword [ebp - 0x11c], ebx
mov byte [ebp - 0x12c], bl
cmp dword [ebp - 0x140], edi
jb 0x1001e062
mov edx, dword [ebp - 0x154]
push edx
call fcn.10065453
add esp, 4
xor eax, eax
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.1006656c
mov esp, ebp
pop ebp
ret