Function at 0x10030be
Capabilities:
Enumerate disk volumes
Get disk information

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x2f0
mov eax, dword [0x100c02c]
push ebx
push esi
push edi
mov edi, dword [sym.imp.msvcrt.dll_malloc]
mov ebx, 0x34d0
xor esi, esi
push ebx
mov dword [ebp - 4], eax
mov dword [ebp - 0x210], esi
call edi
push ebx
mov dword [ebp - 0x21c], eax
call edi
cmp dword [ebp - 0x21c], esi
mov edi, dword [sym.imp.msvcrt.dll_free]
pop ecx
pop ecx
mov dword [ebp - 0x218], eax
je 0x1003333
cmp eax, esi
je 0x100332a
push 1
call dword [sym.imp.KERNEL32.dll_SetErrorMode]
push 0x10013d4
lea eax, [ebp - 0x20c]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcpyW]
mov eax, dword [ebp - 0x218]
mov edi, dword [ebp - 0x21c]
mov dword [ebp - 0x214], eax
mov eax, dword [ebp - 0x21c]
sub eax, edi
add eax, ebx
sar eax, 1
push eax
push edi
lea eax, [ebp - 0x20c]
push eax
call dword [sym.imp.KERNEL32.dll_GetVolumeNameForVolumeMountPointW]
test eax, eax
jne 0x1003189
mov eax, dword [ebp - 0x210]
shl eax, 2
inc dword [ebp - 0x210]
inc word [ebp - 0x20c]
mov dword [ebp + eax - 0x2f0], esi
mov dword [ebp + eax - 0x288], esi
jmp 0x1003232
mov esi, dword [ebp - 0x210]
lea esi, [ebp + esi*4 - 0x2f0]
push edi
mov dword [esi], edi
call dword [sym.imp.KERNEL32.dll_lstrlenW]
lea edi, [edi + eax*2 + 2]
mov eax, dword [esi]
mov cx, word [eax + 0x60]
and word [eax + 0x60], 0
mov eax, dword [ebp - 0x218]
sub eax, dword [ebp - 0x214]
mov word [ebp - 0x220], cx
add eax, ebx
sar eax, 1
push eax
mov eax, dword [esi]
push dword [ebp - 0x214]
add eax, 8
push eax
call dword [sym.imp.KERNEL32.dll_QueryDosDeviceW]
test eax, eax
je 0x1003208
mov eax, dword [ebp - 0x214]
mov ecx, dword [ebp - 0x210]
push eax
mov dword [ebp + ecx*4 - 0x288], eax
call dword [sym.imp.KERNEL32.dll_lstrlenW]
mov ecx, dword [ebp - 0x214]
lea eax, [ecx + eax*2 + 2]
mov dword [ebp - 0x214], eax
jmp 0x1003216
mov eax, dword [ebp - 0x210]
and dword [ebp + eax*4 - 0x288], 0
mov eax, dword [esi]
mov cx, word [ebp - 0x220]
mov word [eax + 0x60], cx
inc word [ebp - 0x20c]
inc dword [ebp - 0x210]
xor esi, esi
cmp dword [ebp - 0x210], 0x1a
jb 0x1003141
push 0x2000
call dword [sym.imp.msvcrt.dll_malloc]
mov ebx, eax
cmp ebx, esi
pop ecx
je 0x1003344
mov edi, 0x104
push edi
lea eax, [ebp - 0x20c]
push eax
call dword [sym.imp.KERNEL32.dll_FindFirstVolumeW]
cmp eax, 0xffffffff
mov dword [ebp - 0x214], eax
je 0x100330a
cmp byte [0x100c071], 0
je 0x100328a
push esi
push 0x20
call fcn.0100187f
pop ecx
pop ecx
lea eax, [ebp - 0x2f0]
push eax
lea eax, [ebp - 0x20c]
push eax
call fcn.01002d70
test eax, eax
je 0x10032e6
push edi
push ebx
push esi
push esi
push esi
push esi
push esi
lea eax, [ebp - 0x20c]
push eax
call dword [sym.imp.KERNEL32.dll_GetVolumeInformationW]
test eax, eax
je 0x10032e6
push 0x10013dc
push ebx
call dword [sym.imp.msvcrt.dll_wcscmp]
test eax, eax
pop ecx
pop ecx
jne 0x10032e6
lea eax, [ebp - 0x20c]
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_lstrcpyW]
lea eax, [ebp - 0x2f0]
push eax
push ebx
call fcn.01002e2d
push edi
lea eax, [ebp - 0x20c]
push eax
push dword [ebp - 0x214]
call dword [sym.imp.KERNEL32.dll_FindNextVolumeW]
test eax, eax
jne 0x100328a
push dword [ebp - 0x214]
call dword [sym.imp.KERNEL32.dll_FindVolumeClose]
mov edi, dword [sym.imp.msvcrt.dll_free]
push ebx
call edi
push dword [ebp - 0x21c]
call edi
push dword [ebp - 0x218]
call edi
add esp, 0xc
xor eax, eax
jmp 0x1003347
push dword [ebp - 0x21c]
call edi
pop ecx
cmp dword [ebp - 0x218], esi
je 0x1003344
push dword [ebp - 0x218]
call edi
pop ecx
push 8
pop eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
pop ebx
call fcn.010058ab
leave
ret