Function at 0x6a3ed9
Capabilities:
Get disk information

Disassembly:
push ebp
sub esp, 0x44
mov eax, 0x6c8078
call fcn.00664608
sub esp, 0x6e0
push ebx
push esi
push edi
mov dword [ebp], ecx
push 0x12
xor ebx, ebx
mov edi, 0x7413bc
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 0x6a40d3
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 0x6a40be
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 0x6a3f6c
call edi
cmp eax, 0x7a
jne 0x6a408c
cmp dword [ebp + 0x40], 0
je 0x6a408c
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 0x6a408c
push ebx
push 0x208
lea eax, [ebp - 0x4e4]
push eax
push dword [ebp - 0x2c]
call dword [0x7f1fd8]
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.00427ba3
lea eax, [ebp - 0x24]
mov byte [ebp - 4], 1
push eax
lea ecx, [ebp - 0xd4]
call fcn.006a4725
cmp dword [ebp - 0xa4], 8
lea ecx, [ebp - 0xb8]
mov byte [ebp - 4], 2
jb 0x6a4026
mov ecx, dword [ebp - 0xb8]
cmp dword [ebp + 0x64], 8
lea eax, [ebp + 0x50]
jb 0x6a4032
mov eax, dword [ebp + 0x50]
push ecx
push eax
call fcn.00673939
pop ecx
pop ecx
test eax, eax
je 0x6a40f1
lea ecx, [ebp - 0xd4]
call fcn.006a49b7
mov eax, dword [ebp - 0x10]
mov byte [ebp - 4], bl
cmp eax, 8
jb 0x6a408c
mov ecx, dword [ebp - 0x24]
lea eax, [eax*2 + 2]
mov dword [ebp + 0x38], eax
mov dword [ebp + 0x3c], ecx
cmp eax, 0x1000
jb 0x6a4083
lea eax, [ebp + 0x38]
push eax
lea eax, [ebp + 0x3c]
push eax
call fcn.004279ae
mov eax, dword [ebp + 0x38]
mov ecx, dword [ebp + 0x3c]
push eax
push ecx
call fcn.006643a9
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 0x7413bc
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 0x6a3f48
call edi
test esi, esi
je 0x6a40d3
push esi
call dword [sym.imp.SETUPAPI.dll_SetupDiDestroyDeviceInfoList]
lea ecx, [ebp + 0x50]
call fcn.00427afc
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.00427ba3
mov ecx, dword [ebp + 0x68]
lea eax, [ebp + 4]
push eax
call fcn.00427924
mov eax, dword [ebp + 0x18]
mov edi, 0x1000
cmp eax, 8
jb 0x6a4156
mov ecx, dword [ebp + 4]
lea eax, [eax*2 + 2]
mov dword [ebp + 0x68], eax
mov dword [ebp + 0x44], ecx
cmp eax, edi
jb 0x6a414d
lea eax, [ebp + 0x68]
push eax
lea eax, [ebp + 0x44]
push eax
call fcn.004279ae
mov eax, dword [ebp + 0x68]
mov ecx, dword [ebp + 0x44]
push eax
push ecx
call fcn.006643a9
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 0x6a415e
lea ecx, [ebp - 0x2dc]
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
cmp ax, bx
jne 0x6a4176
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 0x6a424d
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.00427ba3
mov ecx, dword [ebp + 0x6c]
lea eax, [ebp + 4]
push eax
call fcn.00427924
mov eax, dword [ebp + 0x18]
cmp eax, 8
jb 0x6a421b
mov ecx, dword [ebp + 4]
lea eax, [eax*2 + 2]
mov dword [ebp + 0x68], eax
mov dword [ebp + 0x44], ecx
cmp eax, edi
jb 0x6a4212
lea eax, [ebp + 0x68]
push eax
lea eax, [ebp + 0x44]
push eax
call fcn.004279ae
mov eax, dword [ebp + 0x68]
mov ecx, dword [ebp + 0x44]
push eax
push ecx
call fcn.006643a9
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.00427a37
mov ecx, dword [ebp]
call fcn.006a3d7f
test eax, eax
je 0x6a424d
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.006a49b7
mov eax, dword [ebp - 0x10]
cmp eax, 8
jb 0x6a40d3
mov ecx, dword [ebp - 0x24]
lea eax, [eax*2 + 2]
mov dword [ebp + 0x6c], eax
mov dword [ebp + 0x68], ecx
cmp eax, edi
jb 0x6a428b
lea eax, [ebp + 0x6c]
push eax
lea eax, [ebp + 0x68]
push eax
call fcn.004279ae
mov eax, dword [ebp + 0x6c]
mov ecx, dword [ebp + 0x68]
push eax
push ecx
call fcn.006643a9
pop ecx
pop ecx
jmp 0x6a40d3