Function at 0x4d7200
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 [0x4d6a8c]
call fcn.00407514
xor eax, eax
push ebp
push 0x4d776f
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 0x4d7573
xor eax, eax
push ebp
push 0x4d756c
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.004d6ea0
cmp dword [ebp - 8], 0
je 0x4d72c7
mov eax, dword [ebp - 8]
call fcn.00406900
push eax
call sub.kernel32.dll_GetDriveTypeW
cmp eax, 2
je 0x4d7538
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.00417df8
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 0x4d7538
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 0x4d7532
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 0x4d73dd
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 0x4d73d9
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 0x4d73d9
cmp eax, dword [ebp - 0x70]
jne 0x4d73d9
mov byte [ebp - 0x82], 1
jmp 0x4d73dd
inc ebx
dec edi
jne 0x4d73a4
cmp byte [ebp - 0x82], 0
jne 0x4d7532
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, 0x4d778c
call fcn.00412dfc
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 0x4d7555
lea edx, [ebp - 0xf0]
mov eax, ebx
call fcn.004d6b08
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 [0x4d6ad8]
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.004d6d08
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.004d70e4
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 0x4d7286
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4d7573
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 0x4d7666
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 0x4d765e
mov eax, dword [ebp - 0x60]
mov eax, dword [eax]
call fcn.0040806c
dec eax
cmp ebx, eax
jge 0x4d765e
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 0x4d765e
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 0x4d760a
cmp eax, dword [esp]
pop edx
pop eax
jae 0x4d765e
jmp 0x4d760e
pop edx
pop eax
jge 0x4d765e
lea eax, [ebp - 0x58]
mov edx, dword [ebp - 0x60]
mov edx, dword [edx]
lea edx, [edx + esi*8]
mov ecx, dword [0x4d6a8c]
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 [0x4d6a8c]
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 [0x4d6a8c]
call fcn.0040787c
mov byte [ebp - 0x81], 0
inc ebx
dec edi
jne 0x4d7592
cmp byte [ebp - 0x81], 0
je 0x4d7573
mov esi, 1
mov eax, dword [ebp - 0x60]
mov eax, dword [eax]
call fcn.0040806c
mov edi, eax
dec edi
test edi, edi
jl 0x4d7726
inc edi
xor ebx, ebx
test ebx, ebx
jle 0x4d76bb
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 0x4d76bb
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, 0x4d77c0
call fcn.00412dfc
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 0x4d7690
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4d7776
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 [0x4d6a8c]
call fcn.004075ec
lea eax, [ebp - 8]
mov edx, 2
call fcn.0040686c
ret