Function at 0x6c9bd9
Capabilities:
Get disk information

Disassembly:
push ebp
sub esp, 0x44
mov eax, 0x6f09aa
call fcn.006899cc
sub esp, 0x6e0
push ebx
push esi
push edi
mov dword [ebp], ecx
push 0x12
xor ebx, ebx
mov edi, 0x769fd4
push ebx
push ebx
push edi
mov dword [ebp - 4], ebx
call dword [sym.imp.SETUPAPI.dll_SetupDiGetClassDevsW]
mov esi, eax
cmp esi, 0xffffffff
je 0x6c9dd3
lea eax, [ebp + 0x1c]
mov dword [ebp + 0x44], ebx
push eax
push ebx
push edi
push ebx
push esi
mov dword [ebp + 0x20], ebx
mov dword [ebp + 0x24], ebx
mov dword [ebp + 0x28], ebx
mov dword [ebp + 0x2c], ebx
mov dword [ebp + 0x30], ebx
mov dword [ebp + 0x34], ebx
mov dword [ebp + 0x1c], 0x1c
call dword [sym.imp.SETUPAPI.dll_SetupDiEnumDeviceInterfaces]
mov edi, dword [sym.imp.KERNEL32.DLL_GetLastError]
jmp 0x6c9dbe
push ebx
lea eax, [ebp + 0x40]
mov dword [ebp + 0x40], ebx
push eax
push ebx
push ebx
lea eax, [ebp + 0x1c]
push eax
push esi
call dword [sym.imp.SETUPAPI.dll_SetupDiGetDeviceInterfaceDetailW]
test eax, eax
jne 0x6c9c6c
call edi
cmp eax, 0x7a
jne 0x6c9d8c
cmp dword [ebp + 0x40], 0
je 0x6c9d8c
push dword [ebp + 0x40]
push 0x40
call dword [sym.imp.KERNEL32.DLL_LocalAlloc]
lea ecx, [ebp - 0x40]
mov dword [ebp + 0x3c], eax
push ecx
lea ecx, [ebp + 0x40]
mov dword [eax], 6
push ecx
push dword [ebp + 0x40]
mov dword [ebp - 0x3c], ebx
push eax
lea eax, [ebp + 0x1c]
mov dword [ebp - 0x38], ebx
push eax
push esi
mov dword [ebp - 0x34], ebx
mov dword [ebp - 0x30], ebx
mov dword [ebp - 0x2c], ebx
mov dword [ebp - 0x28], ebx
mov dword [ebp - 0x40], 0x1c
call dword [sym.imp.SETUPAPI.dll_SetupDiGetDeviceInterfaceDetailW]
test eax, eax
je 0x6c9d8c
push ebx
push 0x208
lea eax, [ebp - 0x4e4]
push eax
push dword [ebp - 0x2c]
call dword [0x821d38]
xor eax, eax
mov dword [ebp - 0x24], ebx
mov word [ebp - 0x24], ax
lea ecx, [ebp - 0x24]
lea eax, [ebp - 0x4e4]
mov dword [ebp - 0x14], ebx
push eax
mov dword [ebp - 0x10], 7
call fcn.004482e2
lea eax, [ebp - 0x24]
mov byte [ebp - 4], 1
push eax
lea ecx, [ebp - 0xd4]
call fcn.006ca425
cmp dword [ebp - 0xa4], 8
lea ecx, [ebp - 0xb8]
mov byte [ebp - 4], 2
jb 0x6c9d26
mov ecx, dword [ebp - 0xb8]
cmp dword [ebp + 0x64], 8
lea eax, [ebp + 0x50]
jb 0x6c9d32
mov eax, dword [ebp + 0x50]
push ecx
push eax
call fcn.00698d49
pop ecx
pop ecx
test eax, eax
je 0x6c9df1
lea ecx, [ebp - 0xd4]
call fcn.006ca6b7
mov eax, dword [ebp - 0x10]
mov byte [ebp - 4], bl
cmp eax, 8
jb 0x6c9d8c
mov ecx, dword [ebp - 0x24]
lea eax, [eax*2 + 2]
mov dword [ebp + 0x38], eax
mov dword [ebp + 0x3c], ecx
cmp eax, 0x1000
jb 0x6c9d83
lea eax, [ebp + 0x38]
push eax
lea eax, [ebp + 0x3c]
push eax
call fcn.0044810a
mov eax, dword [ebp + 0x38]
mov ecx, dword [ebp + 0x3c]
push eax
push ecx
call fcn.0068976d
pop ecx
pop ecx
mov eax, dword [ebp + 0x44]
lea ecx, [ebp + 0x1c]
push ecx
inc eax
mov dword [ebp + 0x20], ebx
push eax
push 0x769fd4
push ebx
push esi
mov dword [ebp + 0x44], eax
mov dword [ebp + 0x24], ebx
mov dword [ebp + 0x28], ebx
mov dword [ebp + 0x2c], ebx
mov dword [ebp + 0x30], ebx
mov dword [ebp + 0x34], ebx
mov dword [ebp + 0x1c], 0x1c
call dword [sym.imp.SETUPAPI.dll_SetupDiEnumDeviceInterfaces]
test eax, eax
jne 0x6c9c48
call edi
test esi, esi
je 0x6c9dd3
push esi
call dword [sym.imp.SETUPAPI.dll_SetupDiDestroyDeviceInfoList]
lea ecx, [ebp + 0x50]
call fcn.0044823e
mov ecx, dword [ebp - 0xc]
mov eax, ebx
pop edi
pop esi
mov dword fs:[0], ecx
pop ebx
add ebp, 0x48
leave
ret 0x24
mov esi, dword [ebp + 0x3c]
lea ecx, [ebp + 4]
add esi, 4
mov dword [ebp + 4], ebx
push esi
mov dword [ebp + 0x14], ebx
mov dword [ebp + 0x18], 7
call fcn.004482e2
mov ecx, dword [ebp + 0x68]
lea eax, [ebp + 4]
push eax
call fcn.00448080
mov eax, dword [ebp + 0x18]
mov edi, 0x1000
cmp eax, 8
jb 0x6c9e56
mov ecx, dword [ebp + 4]
lea eax, [eax*2 + 2]
mov dword [ebp + 0x68], eax
mov dword [ebp + 0x44], ecx
cmp eax, edi
jb 0x6c9e4d
lea eax, [ebp + 0x68]
push eax
lea eax, [ebp + 0x44]
push eax
call fcn.0044810a
mov eax, dword [ebp + 0x68]
mov ecx, dword [ebp + 0x44]
push eax
push ecx
call fcn.0068976d
pop ecx
pop ecx
lea ecx, [ebp - 0x2dc]
sub ecx, esi
movzx eax, word [esi]
mov word [esi + ecx], ax
lea esi, [esi + 2]
test ax, ax
jne 0x6c9e5e
lea ecx, [ebp - 0x2dc]
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
cmp ax, bx
jne 0x6c9e76
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 0x6c9f4d
lea eax, [ebp - 0x6ec]
mov dword [ebp + 4], ebx
push eax
lea ecx, [ebp + 4]
mov dword [ebp + 0x14], ebx
mov dword [ebp + 0x18], 7
call fcn.004482e2
mov ecx, dword [ebp + 0x6c]
lea eax, [ebp + 4]
push eax
call fcn.00448080
mov eax, dword [ebp + 0x18]
cmp eax, 8
jb 0x6c9f1b
mov ecx, dword [ebp + 4]
lea eax, [eax*2 + 2]
mov dword [ebp + 0x68], eax
mov dword [ebp + 0x44], ecx
cmp eax, edi
jb 0x6c9f12
lea eax, [ebp + 0x68]
push eax
lea eax, [ebp + 0x44]
push eax
call fcn.0044810a
mov eax, dword [ebp + 0x68]
mov ecx, dword [ebp + 0x44]
push eax
push ecx
call fcn.0068976d
pop ecx
pop ecx
lea eax, [ebp + 0x68]
push eax
sub esp, 0x18
mov ecx, esp
push dword [ebp + 0x6c]
mov dword [ecx], ebx
mov dword [ecx + 0x10], ebx
mov dword [ecx + 0x14], ebx
call fcn.00448193
mov ecx, dword [ebp]
call fcn.006c9a7f
test eax, eax
je 0x6c9f4d
mov ecx, dword [ebp + 0x70]
xor ebx, ebx
mov ax, word [ebp + 0x68]
inc ebx
mov word [ecx], ax
lea ecx, [ebp - 0xd4]
call fcn.006ca6b7
mov eax, dword [ebp - 0x10]
cmp eax, 8
jb 0x6c9dd3
mov ecx, dword [ebp - 0x24]
lea eax, [eax*2 + 2]
mov dword [ebp + 0x6c], eax
mov dword [ebp + 0x68], ecx
cmp eax, edi
jb 0x6c9f8b
lea eax, [ebp + 0x6c]
push eax
lea eax, [ebp + 0x68]
push eax
call fcn.0044810a
mov eax, dword [ebp + 0x6c]
mov ecx, dword [ebp + 0x68]
push eax
push ecx
call fcn.0068976d
pop ecx
pop ecx
jmp 0x6c9dd3