Function at 0x6a6f3a
Capabilities:
Get disk information

Disassembly:
push ebp
sub esp, 0x40
mov eax, 0x6cae86
call fcn.00651da4
sub esp, 0x6e0
push ebx
push esi
push edi
mov dword [ebp + 0x34], ecx
push 0x12
xor ebx, ebx
push ebx
push ebx
push 0x7450ec
mov dword [ebp - 4], ebx
call dword [sym.imp.SETUPAPI.dll_SetupDiGetClassDevsW]
mov esi, eax
cmp esi, 0xffffffff
je 0x6a70e6
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 0x7450ec
push ebx
push esi
call dword [sym.imp.SETUPAPI.dll_SetupDiEnumDeviceInterfaces]
mov ebx, dword [sym.imp.KERNEL32.DLL_GetLastError]
jmp 0x6a70cf
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 0x6a6fca
call ebx
cmp eax, 0x7a
jne 0x6a70a4
cmp dword [ebp + 0x40], 0
je 0x6a70a4
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 0x6a70a4
push 0
push 0x208
lea eax, [ebp - 0x4e4]
push eax
push dword [ebp - 0x2c]
call dword [0x7fff74]
lea eax, [ebp - 0x4e4]
push eax
lea ecx, [ebp]
call fcn.00428153
lea eax, [ebp]
mov byte [ebp - 4], 1
push eax
lea ecx, [ebp - 0xd4]
call fcn.006a760c
cmp dword [ebp - 0xa4], 8
mov ecx, dword [ebp - 0xb8]
mov byte [ebp - 4], 2
jae 0x6a706c
lea ecx, [ebp - 0xb8]
cmp dword [ebp + 0x60], 8
mov eax, dword [ebp + 0x4c]
jae 0x6a7078
lea eax, [ebp + 0x4c]
push ecx
push eax
call fcn.006775ba
pop ecx
pop ecx
test eax, eax
je 0x6a7109
lea ecx, [ebp - 0xd4]
call fcn.006a78b3
push 0
push 1
lea ecx, [ebp]
mov byte [ebp - 4], 0
call fcn.004284eb
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 0x7450ec
push 0
push esi
mov dword [ebp + 0x18], 0x1c
call dword [sym.imp.SETUPAPI.dll_SetupDiEnumDeviceInterfaces]
test eax, eax
jne 0x6a6fa4
call ebx
test esi, esi
je 0x6a70e4
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.004284eb
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.00428153
mov ecx, dword [ebp + 0x64]
push eax
call fcn.004281d1
xor ebx, ebx
lea ecx, [ebp - 0x24]
push ebx
push 1
call fcn.004284eb
lea ecx, [ebp - 0x2dc]
sub ecx, esi
movzx eax, word [esi]
mov word [ecx + esi], ax
lea esi, [esi + 2]
test ax, ax
jne 0x6a7136
lea ecx, [ebp - 0x2dc]
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
cmp ax, bx
jne 0x6a714e
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 0x6a71de
lea eax, [ebp - 0x6ec]
push eax
lea ecx, [ebp - 0x24]
call fcn.00428153
mov ecx, dword [ebp + 0x68]
push eax
call fcn.004281d1
push ebx
push 1
lea ecx, [ebp - 0x24]
call fcn.004284eb
lea eax, [ebp + 0x64]
push eax
sub esp, 0x18
mov ecx, esp
push dword [ebp + 0x68]
call fcn.0042812e
mov ecx, dword [ebp + 0x34]
call fcn.006a6e59
test eax, eax
je 0x6a71de
mov ecx, dword [ebp + 0x6c]
xor esi, esi
mov ax, word [ebp + 0x64]
inc esi
mov word [ecx], ax
jmp 0x6a71e0
mov esi, ebx
lea ecx, [ebp - 0xd4]
call fcn.006a78b3
push ebx
push 1
lea ecx, [ebp]
call fcn.004284eb
jmp 0x6a70e8