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

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffcd4
push ebx
push esi
push edi
xor ecx, ecx
mov dword [ebp - 0x31c], ecx
mov dword [ebp - 0x314], ecx
mov dword [ebp - 0x318], ecx
mov dword [ebp - 0x310], ecx
mov dword [ebp - 0x304], ecx
mov dword [ebp - 0x300], ecx
mov dword [ebp - 4], ecx
mov dword [ebp - 8], ecx
mov byte [ebp - 0x61], dl
mov dword [ebp - 0x60], eax
lea eax, [ebp - 0x58]
mov edx, dword [0x4db014]
call fcn.00407514
xor eax, eax
push ebp
push 0x4dbcf7
push dword fs:[eax]
mov dword fs:[eax], esp
push 0x104
lea eax, [ebp - 0x2fa]
push eax
call sub.kernel32.dll_FindFirstVolumeW
mov dword [ebp - 0x80], eax
cmp dword [ebp - 0x80], 0xffffffff
je 0x4dbafb
xor eax, eax
push ebp
push 0x4dbaf4
push dword fs:[eax]
mov dword fs:[eax], esp
lea eax, [ebp - 0x300]
lea edx, [ebp - 0x2fa]
mov ecx, 0x105
call fcn.00406a84
mov eax, dword [ebp - 0x300]
lea edx, [ebp - 8]
call fcn.004db428
cmp dword [ebp - 8], 0
je 0x4db84f
mov eax, dword [ebp - 8]
call fcn.00406900
push eax
call sub.kernel32.dll_GetDriveTypeW
cmp eax, 2
je 0x4dbac0
lea eax, [ebp - 0x304]
lea edx, [ebp - 0x2fa]
mov ecx, 0x105
call fcn.00406a84
mov eax, dword [ebp - 0x304]
lea edx, [ebp - 4]
call fcn.00417e78
push 0
push 0
push 3
push 0
push 3
push 0x80000000
mov eax, dword [ebp - 4]
call fcn.00406900
push eax
call sub.kernel32.dll_CreateFileW
mov esi, eax
cmp esi, 0xffffffff
je 0x4dbac0
push 0
lea eax, [ebp - 0x68]
push eax
push 0x20
lea eax, [ebp - 0xa8]
push eax
push 0
push 0
push 0x74004
push esi
call sub.kernel32.dll_DeviceIoControl
push 0
lea eax, [ebp - 0x68]
push eax
push 0x20
lea eax, [ebp - 0xc8]
push eax
push 0
push 0
push 0x560000
push esi
call sub.kernel32.dll_DeviceIoControl
mov eax, dword [ebp - 0xb8]
mov dword [ebp - 0x70], eax
mov eax, dword [ebp - 0xb4]
mov dword [ebp - 0x6c], eax
mov eax, dword [ebp - 0xb0]
mov dword [ebp - 0x78], eax
mov eax, dword [ebp - 0xac]
mov dword [ebp - 0x74], eax
mov eax, dword [ebp - 0xc0]
mov dword [ebp - 0x7c], eax
movzx eax, byte [ebp - 0x61]
cmp eax, dword [ebp - 0x7c]
jne 0x4dbaba
mov byte [ebp - 0x82], 0
mov eax, dword [ebp - 0x60]
mov eax, dword [eax]
call fcn.0040806c
mov edi, eax
dec edi
test edi, edi
jl 0x4db965
inc edi
xor ebx, ebx
mov ecx, ebx
add ecx, ecx
lea ecx, [ecx + ecx*4]
mov eax, dword [ebp - 0x60]
mov eax, dword [eax]
mov eax, dword [eax + ecx*8 + 8]
cmp eax, dword [ebp - 0x7c]
jne 0x4db961
mov eax, dword [ebp - 0x60]
mov eax, dword [eax]
mov edx, dword [eax + ecx*8 + 0x44]
mov eax, dword [eax + ecx*8 + 0x40]
cmp edx, dword [ebp - 0x6c]
jne 0x4db961
cmp eax, dword [ebp - 0x70]
jne 0x4db961
mov byte [ebp - 0x82], 1
jmp 0x4db965
inc ebx
dec edi
jne 0x4db92c
cmp byte [ebp - 0x82], 0
jne 0x4dbaba
lea eax, [ebp - 4]
push eax
mov eax, dword [ebp - 0x7c]
mov dword [ebp - 0x30c], eax
mov byte [ebp - 0x308], 0
lea edx, [ebp - 0x30c]
xor ecx, ecx
mov eax, 0x4dbd14
call fcn.00412e3c
push 0
push 0
push 3
push 0
push 3
push 0x80000000
mov eax, dword [ebp - 4]
call fcn.00406900
push eax
call sub.kernel32.dll_CreateFileW
mov ebx, eax
cmp ebx, 0xffffffff
je 0x4dbadd
lea edx, [ebp - 0xf0]
mov eax, ebx
call fcn.004db090
push ebx
call sub.kernel32.dll_CloseHandle_1
mov eax, dword [ebp - 0x60]
mov eax, dword [eax]
call fcn.0040806c
mov ebx, eax
lea eax, [ebx + 1]
push eax
mov eax, dword [ebp - 0x60]
mov ecx, 1
mov edx, dword [0x4db060]
call fcn.00408234
add esp, 4
push dword [ebp - 0x6c]
push dword [ebp - 0x70]
push dword [ebp - 0x74]
push dword [ebp - 0x78]
lea edx, [ebp - 0x310]
mov eax, dword [ebp - 0x7c]
call fcn.004db290
mov edx, dword [ebp - 0x310]
mov edi, ebx
add edi, edi
lea edi, [edi + edi*4]
mov eax, dword [ebp - 0x60]
mov eax, dword [eax]
lea eax, [eax + edi*8]
call fcn.00406874
lea eax, [ebp - 0x318]
lea edx, [ebp - 0x2fa]
mov ecx, 0x105
call fcn.00406a84
mov eax, dword [ebp - 0x318]
lea edx, [ebp - 0x314]
call fcn.004db66c
mov edx, dword [ebp - 0x314]
mov eax, dword [ebp - 0x60]
mov eax, dword [eax]
lea eax, [eax + edi*8 + 4]
call fcn.00406874
mov eax, dword [ebp - 0x60]
mov eax, dword [eax]
mov edx, dword [ebp - 0x7c]
mov dword [eax + edi*8 + 8], edx
mov eax, dword [ebp - 0x60]
mov eax, dword [eax]
cmp byte [ebp - 0x8f], 1
sbb edx, edx
inc edx
mov byte [eax + edi*8 + 0x15], dl
mov eax, dword [ebp - 0x60]
mov eax, dword [eax]
mov edx, dword [ebp - 0x70]
mov dword [eax + edi*8 + 0x40], edx
mov edx, dword [ebp - 0x6c]
mov dword [eax + edi*8 + 0x44], edx
mov eax, dword [ebp - 0x60]
mov eax, dword [eax]
movzx edx, byte [ebp - 0x90]
mov byte [eax + edi*8 + 0x20], dl
mov eax, dword [ebp - 0x60]
mov eax, dword [eax]
movzx edx, byte [ebp - 0xd4]
mov byte [eax + edi*8 + 0x48], dl
push esi
call sub.kernel32.dll_CloseHandle_1
push 0x104
lea eax, [ebp - 0x2fa]
push eax
mov eax, dword [ebp - 0x80]
push eax
call sub.kernel32.dll_FindNextVolumeW
test eax, eax
jne 0x4db80e
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4dbafb
mov eax, dword [ebp - 0x80]
push eax
call sub.kernel32.dll_FindVolumeClose
ret
mov byte [ebp - 0x81], 1
mov eax, dword [ebp - 0x60]
mov eax, dword [eax]
call fcn.0040806c
mov edi, eax
dec edi
test edi, edi
jl 0x4dbbee
inc edi
xor ebx, ebx
mov esi, ebx
add esi, esi
lea esi, [esi + esi*4]
mov eax, dword [ebp - 0x60]
mov eax, dword [eax]
mov eax, dword [eax + esi*8 + 8]
movzx edx, byte [ebp - 0x61]
cmp eax, edx
jne 0x4dbbe6
mov eax, dword [ebp - 0x60]
mov eax, dword [eax]
call fcn.0040806c
dec eax
cmp ebx, eax
jge 0x4dbbe6
mov eax, dword [ebp - 0x60]
mov eax, dword [eax]
mov eax, dword [eax + esi*8 + 8]
mov edx, dword [ebp - 0x60]
mov edx, dword [edx]
cmp eax, dword [edx + esi*8 + 0x58]
jne 0x4dbbe6
mov eax, dword [ebp - 0x60]
mov eax, dword [eax]
mov edx, dword [eax + esi*8 + 0x44]
mov eax, dword [eax + esi*8 + 0x40]
push edx
push eax
mov eax, dword [ebp - 0x60]
mov eax, dword [eax]
mov edx, dword [eax + esi*8 + 0x94]
mov eax, dword [eax + esi*8 + 0x90]
cmp edx, dword [esp + 4]
jne 0x4dbb92
cmp eax, dword [esp]
pop edx
pop eax
jae 0x4dbbe6
jmp 0x4dbb96
pop edx
pop eax
jge 0x4dbbe6
lea eax, [ebp - 0x58]
mov edx, dword [ebp - 0x60]
mov edx, dword [edx]
lea edx, [edx + esi*8]
mov ecx, dword [0x4db014]
call fcn.0040787c
mov eax, dword [ebp - 0x60]
mov eax, dword [eax]
lea eax, [eax + esi*8]
mov edx, dword [ebp - 0x60]
mov edx, dword [edx]
lea edx, [edx + esi*8 + 0x50]
mov ecx, dword [0x4db014]
call fcn.0040787c
mov eax, dword [ebp - 0x60]
mov eax, dword [eax]
lea eax, [eax + esi*8 + 0x50]
lea edx, [ebp - 0x58]
mov ecx, dword [0x4db014]
call fcn.0040787c
mov byte [ebp - 0x81], 0
inc ebx
dec edi
jne 0x4dbb1a
cmp byte [ebp - 0x81], 0
je 0x4dbafb
mov esi, 1
mov eax, dword [ebp - 0x60]
mov eax, dword [eax]
call fcn.0040806c
mov edi, eax
dec edi
test edi, edi
jl 0x4dbcae
inc edi
xor ebx, ebx
test ebx, ebx
jle 0x4dbc43
mov eax, ebx
add eax, eax
lea eax, [eax + eax*4]
mov edx, dword [ebp - 0x60]
mov edx, dword [edx]
mov eax, dword [edx + eax*8 + 8]
mov edx, ebx
add edx, edx
lea edx, [edx + edx*4]
mov ecx, dword [ebp - 0x60]
mov ecx, dword [ecx]
cmp eax, dword [ecx + edx*8 - 0x48]
je 0x4dbc43
mov esi, 1
lea eax, [ebp - 0x31c]
push eax
mov eax, ebx
add eax, eax
lea eax, [eax + eax*4]
mov edx, dword [ebp - 0x60]
mov edx, dword [edx]
mov eax, dword [edx + eax*8 + 8]
inc eax
mov dword [ebp - 0x32c], eax
mov byte [ebp - 0x328], 0
mov dword [ebp - 0x324], esi
mov byte [ebp - 0x320], 0
lea edx, [ebp - 0x32c]
mov ecx, 1
mov eax, 0x4dbd48
call fcn.00412e3c
mov edx, dword [ebp - 0x31c]
mov eax, ebx
add eax, eax
lea eax, [eax + eax*4]
mov ecx, dword [ebp - 0x60]
mov ecx, dword [ecx]
lea eax, [ecx + eax*8 + 0x10]
call fcn.00406874
inc esi
inc ebx
dec edi
jne 0x4dbc18
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4dbcfe
lea eax, [ebp - 0x31c]
mov edx, 4
call fcn.0040686c
lea eax, [ebp - 0x304]
mov edx, 2
call fcn.0040686c
lea eax, [ebp - 0x58]
mov edx, dword [0x4db014]
call fcn.004075ec
lea eax, [ebp - 8]
mov edx, 2
call fcn.0040686c
ret