Function at 0x1018be7
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 0x1018c40
mov eax, 0x80070057
jmp 0x1018e67
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 0x1018e48
push ebx
mov ebx, 0x80070000
jmp 0x1018c6a
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 0x1018dcd
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.010145ca
push edi
push dword [ebp + 8]
lea eax, [ebp - 0xcc]
push eax
call fcn.01012bf6
test eax, eax
je 0x1018dcd
lea eax, [ebp - 0xdc]
call fcn.01018b80
cmp eax, edi
mov esi, dword [ebp - 0xdc]
mov dword [ebp - 0xd0], eax
jl 0x1018dc0
push 0x1001dd8
lea eax, [ebp - 0xcc]
push eax
call fcn.0101420c
mov dword [esi + 4], eax
test eax, eax
jne 0x1018d46
mov edi, dword [sym.imp.KERNEL32.dll_GetLastError]
call edi
test eax, eax
jle 0x1018d25
and eax, 0xffff
or eax, ebx
test eax, eax
jge 0x1018d3c
call edi
test eax, eax
jle 0x1018d34
and eax, 0xffff
or eax, ebx
mov dword [ebp - 0xd0], eax
jmp 0x1018d46
mov dword [ebp - 0xd0], 0x80004005
xor edi, edi
cmp dword [ebp - 0xd0], edi
jl 0x1018dc0
mov dword [ebp - 0xd8], edi
cmp dword [ebp - 0xf0], edi
je 0x1018d70
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.01012c65
mov dword [esi + 0x10], eax
lea eax, [ebp - 0xd8]
push eax
lea eax, [ebp - 0xcc]
push eax
call fcn.0101a7c3
test eax, eax
jl 0x1018db0
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.01018b30
mov esi, dword [ebp - 0xec]
cmp dword [ebp - 0xd0], 0
jl 0x1018e30
push 0x64
lea eax, [ebp - 0xcc]
push eax
push dword [ebp - 0xe0]
call dword [sym.imp.KERNEL32.dll_FindNextVolumeW]
test eax, eax
jne 0x1018c68
mov edi, dword [sym.imp.KERNEL32.dll_GetLastError]
call edi
cmp eax, 0x12
je 0x1018e30
call edi
test eax, eax
jle 0x1018e0f
and eax, 0xffff
or eax, ebx
test eax, eax
jge 0x1018e26
call edi
test eax, eax
jle 0x1018e1e
and eax, 0xffff
or eax, ebx
mov dword [ebp - 0xd0], eax
jmp 0x1018e30
mov dword [ebp - 0xd0], 0x80004005
push dword [ebp - 0xe0]
call dword [sym.imp.KERNEL32.dll_FindVolumeClose]
cmp dword [ebp - 0xd0], 0
pop ebx
jl 0x1018e56
xor edi, edi
mov eax, dword [ebp - 0xd4]
mov dword [esi], eax
mov dword [ebp - 0xd4], edi
mov eax, dword [ebp - 0xd4]
call fcn.01018b30
mov eax, dword [ebp - 0xd0]
mov ecx, dword [ebp - 4]
pop edi
xor ecx, ebp
pop esi
call fcn.0100b8c5
leave
ret 4