Function at 0x4a0e8f
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, 0x50ea1c
push esi
mov dword [ebp - 0x18], ecx
call dword [sym.imp.SETUPAPI.dll_SetupDiGetClassDevsW]
mov dword [ebp - 4], eax
cmp eax, 0xffffffff
je 0x4a10fd
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 0x4a0fdf
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 0x4a0f10
call dword [sym.imp.KERNEL32.DLL_GetLastError]
cmp eax, 0x7a
jne 0x4a0fba
cmp dword [ebp - 8], edi
je 0x4a0fba
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 0x4a0fba
push 0
push 0x208
lea eax, [ebp - 0x488]
push eax
push dword [ebp - 0x3c]
call dword [0x54aa00]
lea eax, [ebp - 0x488]
push eax
lea ecx, [ebp - 0xc]
call fcn.0048ea2a
lea eax, [ebp - 0xc]
push eax
lea ecx, [ebp - 0x78]
call fcn.004a1c1d
lea ecx, [ebp - 0x70]
call fcn.0048ea50
lea ecx, [ebp + 8]
mov edi, eax
call fcn.0048ea50
push edi
push eax
call sub.MSVCRT.dll__wcsicmp
pop ecx
pop ecx
test eax, eax
je 0x4a1004
lea ecx, [ebp - 0x78]
call fcn.004a1b4c
lea ecx, [ebp - 0xc]
call fcn.0048e75f
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 0x4a0ee6
call dword [sym.imp.KERNEL32.DLL_GetLastError]
cmp dword [ebp - 4], edi
je 0x4a10fd
push dword [ebp - 4]
call dword [sym.imp.SETUPAPI.dll_SetupDiDestroyDeviceInfoList]
jmp 0x4a10fd
mov esi, dword [ebp - 0x14]
add esi, 4
push esi
lea ecx, [ebp - 0x14]
call fcn.0048ea2a
push dword [eax]
mov ecx, dword [ebp + 0xc]
call fcn.0048ea75
lea ecx, [ebp - 0x14]
call fcn.0048e75f
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 0x4a102f
lea eax, [ebp - 0x280]
lea edx, [eax + 2]
mov cx, word [eax]
inc eax
inc eax
test cx, cx
jne 0x4a1046
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 0x4a10ed
lea eax, [ebp - 0x690]
push eax
lea ecx, [ebp + 0xc]
call fcn.0048ea2a
push dword [eax]
mov ecx, dword [ebp + 0x10]
call fcn.0048ea75
lea ecx, [ebp + 0xc]
call fcn.0048e75f
lea eax, [ebp + 0x10]
push eax
push ecx
mov ecx, esp
push dword [ebp + 0x10]
call fcn.0048f0de
mov ecx, dword [ebp - 0x18]
call fcn.004a0dc9
xor esi, esi
test eax, eax
je 0x4a10d1
mov eax, dword [ebp + 0x14]
mov cx, word [ebp + 0x10]
mov word [eax], cx
inc esi
lea ecx, [ebp - 0x78]
call fcn.004a1b4c
lea ecx, [ebp - 0xc]
call fcn.0048e75f
lea ecx, [ebp + 8]
call fcn.0048e75f
mov eax, esi
jmp 0x4a1107
lea ecx, [ebp - 0x78]
call fcn.004a1b4c
lea ecx, [ebp - 0xc]
call fcn.0048e75f
lea ecx, [ebp + 8]
call fcn.0048e75f
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret 0x10