Function at 0x4b5674
Capabilities:
Get disk information

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x690
push ebx
push esi
push edi
push 0x12
xor edi, edi
push edi
push edi
mov esi, 0x532174
push esi
mov dword [ebp - 0x18], ecx
call dword [sym.imp.SETUPAPI.dll_SetupDiGetClassDevsW]
mov dword [ebp - 4], eax
cmp eax, 0xffffffff
je 0x4b58e2
push 7
pop ecx
push 0x1c
mov dword [ebp - 0x10], edi
pop ebx
xor eax, eax
lea edi, [ebp - 0x34]
rep stosd dword es:[edi], eax
lea eax, [ebp - 0x34]
push eax
xor edi, edi
push edi
push esi
push edi
push dword [ebp - 4]
mov dword [ebp - 0x34], ebx
call dword [sym.imp.SETUPAPI.dll_SetupDiEnumDeviceInterfaces]
jmp 0x4b57c4
push edi
lea eax, [ebp - 8]
push eax
push edi
push edi
lea eax, [ebp - 0x34]
push eax
push dword [ebp - 4]
mov dword [ebp - 8], edi
call dword [sym.imp.SETUPAPI.dll_SetupDiGetDeviceInterfaceDetailW]
test eax, eax
jne 0x4b56f5
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x7a
jne 0x4b579f
cmp dword [ebp - 8], edi
je 0x4b579f
push dword [ebp - 8]
push 0x40
call dword [sym.imp.KERNEL32.dll_LocalAlloc]
push 7
mov edx, eax
pop ecx
xor eax, eax
mov dword [edx], 6
lea edi, [ebp - 0x50]
rep stosd dword es:[edi], eax
lea eax, [ebp - 0x50]
push eax
lea eax, [ebp - 8]
push eax
push dword [ebp - 8]
lea eax, [ebp - 0x34]
push edx
push eax
push dword [ebp - 4]
mov dword [ebp - 0x14], edx
mov dword [ebp - 0x50], ebx
call dword [sym.imp.SETUPAPI.dll_SetupDiGetDeviceInterfaceDetailW]
test eax, eax
je 0x4b579f
push 0
push 0x208
lea eax, [ebp - 0x488]
push eax
push dword [ebp - 0x3c]
call dword [0x88ee60]
lea eax, [ebp - 0x488]
push eax
lea ecx, [ebp - 0xc]
call fcn.004a0fd9
lea eax, [ebp - 0xc]
push eax
lea ecx, [ebp - 0x78]
call fcn.004b6402
lea ecx, [ebp - 0x70]
call fcn.004a0ff9
lea ecx, [ebp + 8]
mov edi, eax
call fcn.004a0ff9
push edi
push eax
call sub.msvcrt.dll__wcsicmp
pop ecx
pop ecx
test eax, eax
je 0x4b57e9
lea ecx, [ebp - 0x78]
call fcn.004b6331
lea ecx, [ebp - 0xc]
call fcn.004a0c7d
inc dword [ebp - 0x10]
push 7
pop ecx
xor eax, eax
lea edi, [ebp - 0x34]
rep stosd dword es:[edi], eax
lea eax, [ebp - 0x34]
push eax
push dword [ebp - 0x10]
mov dword [ebp - 0x34], ebx
push esi
push 0
push dword [ebp - 4]
call dword [sym.imp.SETUPAPI.dll_SetupDiEnumDeviceInterfaces]
xor edi, edi
test eax, eax
jne 0x4b56cb
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp dword [ebp - 4], edi
je 0x4b58e2
push dword [ebp - 4]
call dword [sym.imp.SETUPAPI.dll_SetupDiDestroyDeviceInfoList]
jmp 0x4b58e2
mov esi, dword [ebp - 0x14]
add esi, 4
push esi
lea ecx, [ebp - 0x14]
call fcn.004a0fd9
push dword [eax]
mov ecx, dword [ebp + 0xc]
call fcn.004a101e
lea ecx, [ebp - 0x14]
call fcn.004a0c7d
lea edx, [ebp - 0x280]
mov eax, esi
sub edx, esi
movzx ecx, word [eax]
mov word [edx + eax], cx
inc eax
inc eax
test cx, cx
jne 0x4b5814
lea eax, [ebp - 0x280]
lea edx, [eax + 2]
mov cx, word [eax]
inc eax
inc eax
test cx, cx
jne 0x4b582b
sub eax, edx
push 0x5c
sar eax, 1
pop ecx
add eax, eax
mov word [ebp + eax - 0x280], cx
xor ecx, ecx
mov word [ebp + eax - 0x27e], cx
push 0x104
lea eax, [ebp - 0x690]
push eax
lea eax, [ebp - 0x280]
push eax
call dword [sym.imp.KERNEL32.dll_GetVolumeNameForVolumeMountPointW]
test eax, eax
je 0x4b58d2
lea eax, [ebp - 0x690]
push eax
lea ecx, [ebp + 0xc]
call fcn.004a0fd9
push dword [eax]
mov ecx, dword [ebp + 0x10]
call fcn.004a101e
lea ecx, [ebp + 0xc]
call fcn.004a0c7d
lea eax, [ebp + 0x10]
push eax
push ecx
mov ecx, esp
push dword [ebp + 0x10]
call fcn.004a1682
mov ecx, dword [ebp - 0x18]
call fcn.004b55ae
xor esi, esi
test eax, eax
je 0x4b58b6
mov eax, dword [ebp + 0x14]
mov cx, word [ebp + 0x10]
mov word [eax], cx
inc esi
lea ecx, [ebp - 0x78]
call fcn.004b6331
lea ecx, [ebp - 0xc]
call fcn.004a0c7d
lea ecx, [ebp + 8]
call fcn.004a0c7d
mov eax, esi
jmp 0x4b58ec
lea ecx, [ebp - 0x78]
call fcn.004b6331
lea ecx, [ebp - 0xc]
call fcn.004a0c7d
lea ecx, [ebp + 8]
call fcn.004a0c7d
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret 0x10