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

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xa54
mov eax, dword [0x10036014]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 0xc]
mov dword [ebp - 0xa54], eax
test eax, eax
jne 0x1001094e
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.10011ed6
mov esp, ebp
pop ebp
ret
push ebx
push esi
xor ecx, ecx
xor bl, bl
push 0x20a
mov word [eax], cx
lea eax, [ebp - 0x218]
push ecx
push eax
call fcn.10015730
add esp, 0xc
lea eax, [ebp - 0x218]
push 0x105
push eax
call dword [sym.imp.KERNEL32.dll_FindFirstVolumeW]
mov dword [ebp - 0xa50], eax
cmp eax, 0xffffffff
jne 0x100109a1
call dword [sym.imp.KERNEL32.dll_GetLastError]
pop esi
xor eax, eax
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.10011ed6
mov esp, ebp
pop ebp
ret
push edi
mov edi, dword [sym.imp.KERNEL32.dll_FindNextVolumeMountPointW]
test bl, bl
jne 0x10010b17
lea eax, [ebp - 0x218]
push eax
call dword [sym.imp.KERNEL32.dll_GetDriveTypeW]
cmp eax, 3
jne 0x10010aee
push 0x105
lea eax, [ebp - 0xa48]
mov dword [ebp - 0xa4c], 0
push eax
lea eax, [ebp - 0xa4c]
push eax
lea eax, [ebp - 8]
push eax
push 0
push 0
push 0
lea eax, [ebp - 0x218]
push eax
call dword [sym.imp.KERNEL32.dll_GetVolumeInformationW]
test eax, eax
je 0x10010b11
test byte [ebp - 0xa4c], 0x80
je 0x10010aee
push 0x104
lea eax, [ebp - 0x630]
push eax
lea eax, [ebp - 0x218]
push eax
call dword [sym.imp.KERNEL32.dll_FindFirstVolumeMountPointW]
mov esi, eax
cmp esi, 0xffffffff
je 0x10010aee
lea eax, [ebp - 0x218]
push eax
lea eax, [ebp - 0x424]
push 0x105
push eax
call fcn.10016a2c
lea eax, [ebp - 0x630]
push eax
lea eax, [ebp - 0x424]
push 0x105
push eax
call fcn.10019aa0
add esp, 0x18
lea eax, [ebp - 0x83c]
push 0x104
push eax
lea eax, [ebp - 0x424]
push eax
call dword [sym.imp.KERNEL32.dll_GetVolumeNameForVolumeMountPointW]
test eax, eax
je 0x10010add
mov ecx, dword [ebp + 8]
lea eax, [ebp - 0x83c]
lea esp, [esp]
mov dx, word [ecx]
cmp dx, word [eax]
jne 0x10010ab6
test dx, dx
je 0x10010ab2
mov dx, word [ecx + 2]
cmp dx, word [eax + 2]
jne 0x10010ab6
add ecx, 4
add eax, 4
test dx, dx
jne 0x10010a90
xor eax, eax
jmp 0x10010abb
sbb eax, eax
or eax, 1
test eax, eax
je 0x10010ad9
push 0x104
lea eax, [ebp - 0x630]
push eax
push esi
call edi
cmp eax, 1
je 0x10010a33
jmp 0x10010ae3
mov bl, 1
jmp 0x10010ae3
call dword [sym.imp.KERNEL32.dll_GetLastError]
push esi
call dword [sym.imp.KERNEL32.dll_FindVolumeMountPointClose]
test bl, bl
jne 0x10010b17
push 0x104
lea eax, [ebp - 0x218]
push eax
push dword [ebp - 0xa50]
call dword [sym.imp.KERNEL32.dll_FindNextVolumeW]
cmp eax, 1
je 0x100109a8
jmp 0x10010b17
call dword [sym.imp.KERNEL32.dll_GetLastError]
push dword [ebp - 0xa50]
call dword [sym.imp.KERNEL32.dll_FindVolumeClose]
pop edi
test bl, bl
je 0x1001098f
call dword [sym.imp.KERNEL32.dll_GetLogicalDrives]
mov ecx, dword [0x1002b640]
mov ebx, eax
lea eax, [ebp - 0x218]
mov dword [ebp - 0xc], ecx
mov ecx, dword [0x1002b644]
push eax
lea eax, [ebp - 0x424]
mov dword [ebp - 8], ecx
push 0x105
push eax
call fcn.10016a2c
add esp, 0xc
test ebx, ebx
je 0x10010bf7
mov esi, dword [sym.imp.KERNEL32.dll_GetDriveTypeW]
nop
test bl, 1
je 0x10010bd5
lea eax, [ebp - 0xc]
push eax
call esi
cmp eax, 3
jne 0x10010bd5
push 0x104
lea eax, [ebp - 0x83c]
push eax
lea eax, [ebp - 0xc]
push eax
call dword [sym.imp.KERNEL32.dll_GetVolumeNameForVolumeMountPointW]
test eax, eax
je 0x10010bd5
lea ecx, [ebp - 0x83c]
lea eax, [ebp - 0x218]
mov dx, word [eax]
cmp dx, word [ecx]
jne 0x10010bcc
test dx, dx
je 0x10010bc8
mov dx, word [eax + 2]
cmp dx, word [ecx + 2]
jne 0x10010bcc
add eax, 4
add ecx, 4
test dx, dx
jne 0x10010ba6
xor eax, eax
jmp 0x10010bd1
sbb eax, eax
or eax, 1
test eax, eax
je 0x10010bdf
inc word [ebp - 0xc]
shr ebx, 1
jne 0x10010b70
jmp 0x10010bf7
lea eax, [ebp - 0xc]
push eax
lea eax, [ebp - 0x424]
push 0x105
push eax
call fcn.10016a2c
add esp, 0xc
mov esi, dword [ebp - 0xa54]
lea eax, [ebp - 0x424]
push eax
push 0x105
push esi
call fcn.10016a2c
lea eax, [ebp - 0x630]
push eax
push 0x105
push esi
call fcn.10019aa0
mov ecx, dword [ebp - 4]
add esp, 0x18
xor ecx, ebp
mov eax, 1
pop esi
pop ebx
call fcn.10011ed6
mov esp, ebp
pop ebp
ret