Function at 0x66aaab
Capabilities:
Get disk information

Disassembly:
push ebp
sub esp, 0x40
mov eax, 0x6897b8
call fcn.0062921c
sub esp, 0x6e0
push ebx
push esi
push edi
mov dword [ebp + 0x34], ecx
push 0x12
xor ebx, ebx
push ebx
push ebx
push 0x6fe318
mov dword [ebp - 4], ebx
call dword [sym.imp.SETUPAPI.dll_SetupDiGetClassDevsW]
mov esi, eax
cmp esi, 0xffffffff
je 0x66ac57
push 7
pop ecx
xor eax, eax
mov dword [ebp + 0x3c], ebx
lea edi, [ebp + 0x18]
rep stosd dword es:[edi], eax
lea eax, [ebp + 0x18]
mov dword [ebp + 0x18], 0x1c
push eax
push ebx
push 0x6fe318
push ebx
push esi
call dword [sym.imp.SETUPAPI.dll_SetupDiEnumDeviceInterfaces]
mov ebx, dword [sym.imp.KERNEL32.DLL_GetLastError]
jmp 0x66ac40
xor ecx, ecx
lea eax, [ebp + 0x40]
push ecx
push eax
push ecx
push ecx
lea eax, [ebp + 0x18]
mov dword [ebp + 0x40], ecx
push eax
push esi
call dword [sym.imp.SETUPAPI.dll_SetupDiGetDeviceInterfaceDetailW]
test eax, eax
jne 0x66ab3b
call ebx
cmp eax, 0x7a
jne 0x66ac15
cmp dword [ebp + 0x40], 0
je 0x66ac15
push dword [ebp + 0x40]
push 0x40
call dword [sym.imp.KERNEL32.DLL_LocalAlloc]
mov edx, eax
lea edi, [ebp - 0x40]
push 7
pop ecx
xor eax, eax
mov dword [ebp + 0x38], edx
mov dword [edx], 6
rep stosd dword es:[edi], eax
lea eax, [ebp - 0x40]
mov dword [ebp - 0x40], 0x1c
push eax
lea eax, [ebp + 0x40]
push eax
push dword [ebp + 0x40]
lea eax, [ebp + 0x18]
push edx
push eax
push esi
call dword [sym.imp.SETUPAPI.dll_SetupDiGetDeviceInterfaceDetailW]
test eax, eax
je 0x66ac15
push 0
push 0x208
lea eax, [ebp - 0x4e4]
push eax
push dword [ebp - 0x2c]
call dword [0x7a6a7c]
lea eax, [ebp - 0x4e4]
push eax
lea ecx, [ebp]
call fcn.00424ff1
lea eax, [ebp]
mov byte [ebp - 4], 1
push eax
lea ecx, [ebp - 0xd4]
call fcn.0066b18a
cmp dword [ebp - 0xa4], 8
mov ecx, dword [ebp - 0xb8]
mov byte [ebp - 4], 2
jae 0x66abdd
lea ecx, [ebp - 0xb8]
cmp dword [ebp + 0x60], 8
mov eax, dword [ebp + 0x4c]
jae 0x66abe9
lea eax, [ebp + 0x4c]
push ecx
push eax
call fcn.006389aa
pop ecx
pop ecx
test eax, eax
je 0x66ac7a
lea ecx, [ebp - 0xd4]
call fcn.0066b431
push 0
push 1
lea ecx, [ebp]
mov byte [ebp - 4], 0
call fcn.0042386b
mov edx, dword [ebp + 0x3c]
lea edi, [ebp + 0x18]
push 7
pop ecx
xor eax, eax
inc edx
rep stosd dword es:[edi], eax
lea eax, [ebp + 0x18]
mov dword [ebp + 0x3c], edx
push eax
push edx
push 0x6fe318
push 0
push esi
mov dword [ebp + 0x18], 0x1c
call dword [sym.imp.SETUPAPI.dll_SetupDiEnumDeviceInterfaces]
test eax, eax
jne 0x66ab15
call ebx
test esi, esi
je 0x66ac55
push esi
call dword [sym.imp.SETUPAPI.dll_SetupDiDestroyDeviceInfoList]
xor ebx, ebx
mov esi, ebx
push ebx
push 1
lea ecx, [ebp + 0x4c]
call fcn.0042386b
mov ecx, dword [ebp - 0xc]
mov eax, esi
pop edi
pop esi
mov dword fs:[0], ecx
pop ebx
lea esp, [ebp + 0x44]
pop ebp
ret 0x24
mov esi, dword [ebp + 0x38]
lea ecx, [ebp - 0x24]
add esi, 4
push esi
call fcn.00424ff1
mov ecx, dword [ebp + 0x64]
push eax
call fcn.004232e6
xor ebx, ebx
lea ecx, [ebp - 0x24]
push ebx
push 1
call fcn.0042386b
lea ecx, [ebp - 0x2dc]
sub ecx, esi
movzx eax, word [esi]
mov word [ecx + esi], ax
lea esi, [esi + 2]
test ax, ax
jne 0x66aca7
lea ecx, [ebp - 0x2dc]
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
cmp ax, bx
jne 0x66acbf
sub ecx, edx
push 0x5c
sar ecx, 1
pop eax
push 0x104
mov word [ebp + ecx*2 - 0x2dc], ax
xor eax, eax
mov word [ebp + ecx*2 - 0x2da], ax
lea eax, [ebp - 0x6ec]
push eax
lea eax, [ebp - 0x2dc]
push eax
call dword [sym.imp.KERNEL32.DLL_GetVolumeNameForVolumeMountPointW]
test eax, eax
je 0x66ad4f
lea eax, [ebp - 0x6ec]
push eax
lea ecx, [ebp - 0x24]
call fcn.00424ff1
mov ecx, dword [ebp + 0x68]
push eax
call fcn.004232e6
push ebx
push 1
lea ecx, [ebp - 0x24]
call fcn.0042386b
lea eax, [ebp + 0x64]
push eax
sub esp, 0x18
mov ecx, esp
push dword [ebp + 0x68]
call fcn.00423207
mov ecx, dword [ebp + 0x34]
call fcn.0066a9ca
test eax, eax
je 0x66ad4f
mov ecx, dword [ebp + 0x6c]
xor esi, esi
mov ax, word [ebp + 0x64]
inc esi
mov word [ecx], ax
jmp 0x66ad51
mov esi, ebx
lea ecx, [ebp - 0xd4]
call fcn.0066b431
push ebx
push 1
lea ecx, [ebp]
call fcn.0042386b
jmp 0x66ac59