Function at 0x300f099e
Capabilities:
Enumerate disk volumes

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x264
mov eax, dword [0x3002450c]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push edi
mov edi, dword [ebp + 0x10]
push 0x104
lea eax, [ebp - 0x220]
xor ebx, ebx
push eax
mov dword [ebp - 0x234], ecx
mov dword [ebp - 0x240], edi
mov byte [ebp - 0x221], bl
call dword [sym.imp.KERNEL32.dll_FindFirstVolumeW]
cmp eax, 0xffffffff
mov dword [ebp - 0x23c], eax
jne 0x300f09ee
xor al, al
jmp 0x300f0c49
push esi
lea eax, [ebp - 0x220]
lea edx, [eax + 2]
mov cx, word [eax]
inc eax
inc eax
cmp cx, bx
jne 0x300f09f8
sub eax, edx
sar eax, 1
mov esi, eax
je 0x300f0a29
lea eax, [ebp - 0x220]
lea edx, [eax + 2]
mov cx, word [eax]
inc eax
inc eax
cmp cx, bx
jne 0x300f0a13
sub eax, edx
sar eax, 1
mov word [ebp + eax*2 - 0x222], bx
push ebx
push ebx
push 0x80
push 3
push ebx
push 3
push SysReAllocString
lea eax, [ebp - 0x220]
push eax
call fcn.3012b1b5
cmp esi, ebx
mov dword [ebp - 0x228], eax
jbe 0x300f0a5a
mov word [ebp + esi*2 - 0x222], 0x5c
cmp eax, 0xffffffff
je 0x300f0bf3
push ebx
lea ecx, [ebp - 0x244]
push ecx
push 0x20
lea ecx, [ebp - 0x264]
push ecx
push ebx
push ebx
push 0x560000
push eax
call dword [sym.imp.KERNEL32.dll_DeviceIoControl]
test eax, eax
jne 0x300f0b8c
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xea
jne 0x300f0bf3
mov esi, dword [ebp - 0x264]
mov dword [ebp - 0x238], esi
imul esi, esi, 0x18
lea eax, [esi + 0x20]
push eax
call fcn.301089da
mov edi, eax
cmp edi, ebx
je 0x300f0bf3
push ebx
lea eax, [ebp - 0x244]
push eax
add esi, 0x20
push esi
push edi
push ebx
push ebx
push 0x560000
push dword [ebp - 0x228]
call dword [sym.imp.KERNEL32.dll_DeviceIoControl]
test eax, eax
jne 0x300f0aed
push edi
call fcn.300ee73d
pop ecx
jmp 0x300f0bf3
cmp dword [ebp - 0x238], ebx
mov dword [ebp - 0x230], ebx
jle 0x300f0b83
lea eax, [edi + 8]
mov dword [ebp - 0x22c], eax
mov eax, dword [ebp + 0xc]
mov ecx, dword [ebp - 0x22c]
cmp dword [ecx], eax
jne 0x300f0b68
push 0xa
lea eax, [ebp - 0x18]
push eax
lea eax, [ebp - 0x220]
push eax
mov word [ebp - 0x18], bx
call fcn.300f04bd
cmp al, bl
mov byte [ebp - 0x221], al
je 0x300f0c1a
mov esi, dword [ebp - 0x240]
cmp word [esi], bx
je 0x300f0b5b
mov eax, dword [ebp - 0x234]
mov eax, dword [eax + 0x14]
cmp eax, ebx
je 0x300f0b5b
push dword [ebp + 0x14]
push esi
push eax
call fcn.30125676
push dword [ebp + 0x14]
lea eax, [ebp - 0x18]
push esi
push eax
call fcn.30125676
inc dword [ebp - 0x230]
mov eax, dword [ebp - 0x230]
add dword [ebp - 0x22c], 0x18
cmp eax, dword [ebp - 0x238]
jl 0x300f0b08
push edi
call fcn.300ee73d
pop ecx
jmp 0x300f0be0
mov eax, dword [ebp + 0xc]
cmp dword [ebp - 0x25c], eax
jne 0x300f0be0
push 0xa
lea eax, [ebp - 0x18]
push eax
lea eax, [ebp - 0x220]
push eax
mov word [ebp - 0x18], bx
call fcn.300f04bd
cmp al, bl
mov byte [ebp - 0x221], al
je 0x300f0c21
cmp word [edi], bx
je 0x300f0bd3
mov eax, dword [ebp - 0x234]
mov eax, dword [eax + 0x14]
cmp eax, ebx
je 0x300f0bd3
push dword [ebp + 0x14]
push edi
push eax
call fcn.30125676
push dword [ebp + 0x14]
lea eax, [ebp - 0x18]
push edi
push eax
call fcn.30125676
push dword [ebp - 0x228]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
or dword [ebp - 0x228], 0xffffffff
push 0x104
lea eax, [ebp - 0x220]
push eax
push dword [ebp - 0x23c]
call dword [sym.imp.KERNEL32.dll_FindNextVolumeW]
test eax, eax
je 0x300f0c21
mov edi, dword [ebp - 0x240]
jmp 0x300f09ef
push edi
call fcn.300ee73d
pop ecx
cmp dword [ebp - 0x228], 0xffffffff
pop esi
je 0x300f0c37
push dword [ebp - 0x228]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push dword [ebp - 0x23c]
call dword [sym.imp.KERNEL32.dll_FindVolumeClose]
mov al, byte [ebp - 0x221]
mov ecx, dword [ebp - 4]
pop edi
xor ecx, ebp
pop ebx
call fcn.30136bd1
leave
ret 0x10