Function at 0x4a0c94
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, 0x50e9dc
push esi
mov dword [ebp - 0x18], ecx
call dword [sym.imp.SETUPAPI.dll_SetupDiGetClassDevsW]
mov dword [ebp - 4], eax
cmp eax, 0xffffffff
je 0x4a0f02
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 0x4a0de4
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 0x4a0d15
call dword [sym.imp.KERNEL32.DLL_GetLastError]
cmp eax, 0x7a
jne 0x4a0dbf
cmp dword [ebp - 8], edi
je 0x4a0dbf
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 0x4a0dbf
push 0
push 0x208
lea eax, [ebp - 0x488]
push eax
push dword [ebp - 0x3c]
call dword [0x54a9f8]
lea eax, [ebp - 0x488]
push eax
lea ecx, [ebp - 0xc]
call fcn.0048e7e6
lea eax, [ebp - 0xc]
push eax
lea ecx, [ebp - 0x78]
call fcn.004a1a22
lea ecx, [ebp - 0x70]
call fcn.0048e806
lea ecx, [ebp + 8]
mov edi, eax
call fcn.0048e806
push edi
push eax
call sub.MSVCRT.dll__wcsicmp
pop ecx
pop ecx
test eax, eax
je 0x4a0e09
lea ecx, [ebp - 0x78]
call fcn.004a1951
lea ecx, [ebp - 0xc]
call fcn.0048e50a
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 0x4a0ceb
call dword [sym.imp.KERNEL32.DLL_GetLastError]
cmp dword [ebp - 4], edi
je 0x4a0f02
push dword [ebp - 4]
call dword [sym.imp.SETUPAPI.dll_SetupDiDestroyDeviceInfoList]
jmp 0x4a0f02
mov esi, dword [ebp - 0x14]
add esi, 4
push esi
lea ecx, [ebp - 0x14]
call fcn.0048e7e6
push dword [eax]
mov ecx, dword [ebp + 0xc]
call fcn.0048e82b
lea ecx, [ebp - 0x14]
call fcn.0048e50a
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 0x4a0e34
lea eax, [ebp - 0x280]
lea edx, [eax + 2]
mov cx, word [eax]
inc eax
inc eax
test cx, cx
jne 0x4a0e4b
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 0x4a0ef2
lea eax, [ebp - 0x690]
push eax
lea ecx, [ebp + 0xc]
call fcn.0048e7e6
push dword [eax]
mov ecx, dword [ebp + 0x10]
call fcn.0048e82b
lea ecx, [ebp + 0xc]
call fcn.0048e50a
lea eax, [ebp + 0x10]
push eax
push ecx
mov ecx, esp
push dword [ebp + 0x10]
call fcn.0048ee78
mov ecx, dword [ebp - 0x18]
call fcn.004a0bce
xor esi, esi
test eax, eax
je 0x4a0ed6
mov eax, dword [ebp + 0x14]
mov cx, word [ebp + 0x10]
mov word [eax], cx
inc esi
lea ecx, [ebp - 0x78]
call fcn.004a1951
lea ecx, [ebp - 0xc]
call fcn.0048e50a
lea ecx, [ebp + 8]
call fcn.0048e50a
mov eax, esi
jmp 0x4a0f0c
lea ecx, [ebp - 0x78]
call fcn.004a1951
lea ecx, [ebp - 0xc]
call fcn.0048e50a
lea ecx, [ebp + 8]
call fcn.0048e50a
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret 0x10