Function at 0x1018bfd
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 [0x1023018]
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 0x1018c56
mov eax, 0x80070057
jmp 0x1018e7d
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 0x1018e5e
push ebx
mov ebx, 0x80070000
jmp 0x1018c80
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 0x1018de3
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.010145dd
push edi
push dword [ebp + 8]
lea eax, [ebp - 0xcc]
push eax
call fcn.01012c09
test eax, eax
je 0x1018de3
lea eax, [ebp - 0xdc]
call fcn.01018b96
cmp eax, edi
mov esi, dword [ebp - 0xdc]
mov dword [ebp - 0xd0], eax
jl 0x1018dd6
push 0x1001dd8
lea eax, [ebp - 0xcc]
push eax
call fcn.0101421f
mov dword [esi + 4], eax
test eax, eax
jne 0x1018d5c
mov edi, dword [sym.imp.KERNEL32.dll_GetLastError]
call edi
test eax, eax
jle 0x1018d3b
and eax, 0xffff
or eax, ebx
test eax, eax
jge 0x1018d52
call edi
test eax, eax
jle 0x1018d4a
and eax, 0xffff
or eax, ebx
mov dword [ebp - 0xd0], eax
jmp 0x1018d5c
mov dword [ebp - 0xd0], 0x80004005
xor edi, edi
cmp dword [ebp - 0xd0], edi
jl 0x1018dd6
mov dword [ebp - 0xd8], edi
cmp dword [ebp - 0xf0], edi
je 0x1018d86
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.01012c78
mov dword [esi + 0x10], eax
lea eax, [ebp - 0xd8]
push eax
lea eax, [ebp - 0xcc]
push eax
call fcn.0101a7d3
test eax, eax
jl 0x1018dc6
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.01018b46
mov esi, dword [ebp - 0xec]
cmp dword [ebp - 0xd0], 0
jl 0x1018e46
push 0x64
lea eax, [ebp - 0xcc]
push eax
push dword [ebp - 0xe0]
call dword [sym.imp.KERNEL32.dll_FindNextVolumeW]
test eax, eax
jne 0x1018c7e
mov edi, dword [sym.imp.KERNEL32.dll_GetLastError]
call edi
cmp eax, 0x12
je 0x1018e46
call edi
test eax, eax
jle 0x1018e25
and eax, 0xffff
or eax, ebx
test eax, eax
jge 0x1018e3c
call edi
test eax, eax
jle 0x1018e34
and eax, 0xffff
or eax, ebx
mov dword [ebp - 0xd0], eax
jmp 0x1018e46
mov dword [ebp - 0xd0], 0x80004005
push dword [ebp - 0xe0]
call dword [sym.imp.KERNEL32.dll_FindVolumeClose]
cmp dword [ebp - 0xd0], 0
pop ebx
jl 0x1018e6c
xor edi, edi
mov eax, dword [ebp - 0xd4]
mov dword [esi], eax
mov dword [ebp - 0xd4], edi
mov eax, dword [ebp - 0xd4]
call fcn.01018b46
mov eax, dword [ebp - 0xd0]
mov ecx, dword [ebp - 4]
pop edi
xor ecx, ebp
pop esi
call fcn.0100b8d5
leave
ret 4