Function at 0x1018a36
Capabilities:
Enumerate disk volumes
Get disk information
Get disk size

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0xf0
mov eax, dword [0x1022018]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
push edi
xor eax, eax
xor edi, edi
push 0xc6
mov word [ebp - 0xcc], ax
lea eax, [ebp - 0xca]
mov esi, ecx
push edi
push eax
mov dword [ebp - 0xec], esi
mov dword [ebp - 0xd0], edi
call sub.msvcrt.dll_memset
add esp, 0xc
mov dword [ebp - 0xd4], edi
cmp esi, edi
jne 0x1018a8f
mov eax, 0x80070057
jmp 0x1018cb6
push 0x64
lea eax, [ebp - 0xcc]
push eax
mov dword [esi], edi
call dword [sym.imp.KERNEL32.dll_FindFirstVolumeW]
mov dword [ebp - 0xe0], eax
cmp eax, 0xffffffff
je 0x1018c97
push ebx
mov ebx, 0x80070000
jmp 0x1018ab9
xor edi, edi
mov dword [ebp - 0xe8], edi
mov dword [ebp - 0xdc], edi
xor eax, eax
lea edi, [ebp - 0xe4]
stosd dword es:[edi], eax
lea eax, [ebp - 0xcc]
push eax
call dword [sym.imp.KERNEL32.dll_GetDriveTypeW]
cmp eax, 3
jne 0x1018c1c
xor edi, edi
push edi
push edi
lea eax, [ebp - 0xe8]
push eax
lea eax, [ebp - 0xcc]
push eax
call dword [sym.imp.KERNEL32.dll_GetDiskFreeSpaceExW]
mov dword [ebp - 0xf0], eax
push 0x5c
lea eax, [ebp - 0xcc]
push eax
call fcn.01014419
push edi
push dword [ebp + 8]
lea eax, [ebp - 0xcc]
push eax
call fcn.010129d6
test eax, eax
je 0x1018c1c
lea eax, [ebp - 0xdc]
call fcn.010189cf
cmp eax, edi
mov esi, dword [ebp - 0xdc]
mov dword [ebp - 0xd0], eax
jl 0x1018c0f
push 0x1001db8
lea eax, [ebp - 0xcc]
push eax
call fcn.0101405b
mov dword [esi + 4], eax
test eax, eax
jne 0x1018b95
mov edi, dword [sym.imp.KERNEL32.dll_GetLastError]
call edi
test eax, eax
jle 0x1018b74
and eax, 0xffff
or eax, ebx
test eax, eax
jge 0x1018b8b
call edi
test eax, eax
jle 0x1018b83
and eax, 0xffff
or eax, ebx
mov dword [ebp - 0xd0], eax
jmp 0x1018b95
mov dword [ebp - 0xd0], 0x80004005
xor edi, edi
cmp dword [ebp - 0xd0], edi
jl 0x1018c0f
mov dword [ebp - 0xd8], edi
cmp dword [ebp - 0xf0], edi
je 0x1018bbf
mov eax, dword [ebp - 0xe8]
mov dword [esi + 8], eax
mov eax, dword [ebp - 0xe4]
mov dword [esi + 0xc], eax
lea eax, [ebp - 0xcc]
push eax
call fcn.01012a45
mov dword [esi + 0x10], eax
lea eax, [ebp - 0xd8]
push eax
lea eax, [ebp - 0xcc]
push eax
call fcn.0101a624
test eax, eax
jl 0x1018bff
mov eax, dword [ebp - 0xd8]
and eax, 1
mov dword [esi + 0x14], eax
mov eax, dword [ebp - 0xd8]
shr eax, 1
and eax, 1
mov dword [esi + 0x18], eax
mov eax, dword [ebp - 0xd4]
mov dword [esi], eax
mov dword [ebp - 0xd4], esi
xor esi, esi
mov eax, esi
call fcn.0101897f
mov esi, dword [ebp - 0xec]
cmp dword [ebp - 0xd0], 0
jl 0x1018c7f
push 0x64
lea eax, [ebp - 0xcc]
push eax
push dword [ebp - 0xe0]
call dword [sym.imp.KERNEL32.dll_FindNextVolumeW]
test eax, eax
jne 0x1018ab7
mov edi, dword [sym.imp.KERNEL32.dll_GetLastError]
call edi
cmp eax, 0x12
je 0x1018c7f
call edi
test eax, eax
jle 0x1018c5e
and eax, 0xffff
or eax, ebx
test eax, eax
jge 0x1018c75
call edi
test eax, eax
jle 0x1018c6d
and eax, 0xffff
or eax, ebx
mov dword [ebp - 0xd0], eax
jmp 0x1018c7f
mov dword [ebp - 0xd0], 0x80004005
push dword [ebp - 0xe0]
call dword [sym.imp.KERNEL32.dll_FindVolumeClose]
cmp dword [ebp - 0xd0], 0
pop ebx
jl 0x1018ca5
xor edi, edi
mov eax, dword [ebp - 0xd4]
mov dword [esi], eax
mov dword [ebp - 0xd4], edi
mov eax, dword [ebp - 0xd4]
call fcn.0101897f
mov eax, dword [ebp - 0xd0]
mov ecx, dword [ebp - 4]
pop edi
xor ecx, ebp
pop esi
call fcn.0100b6a5
leave
ret 4