Function at 0x4d1300
Capabilities:
Get disk information

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x514f23
mov eax, dword fs:[0]
push eax
sub esp, 0x970
mov eax, dword [0x55e2f4]
xor eax, ebp
mov dword [ebp - 0x14], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x10], esp
mov ecx, 0x1c
mov dword [ebp - 0x964], 1
mov esi, 0x57f7e0
lea edi, [ebp - 0x918]
xor ebx, ebx
rep movsd dword es:[edi], dword [esi]
push 0x5801a8
mov dword [ebp - 0x968], ebx
mov dword [ebp - 0x8f8], 1
call fcn.00428bc0
add esp, 4
call dword [sym.imp.KERNEL32.DLL_GetLogicalDrives]
push 0x48
mov dword [0x58d380], eax
lea eax, [ebp - 0x960]
push ebx
push eax
call fcn.004e46b0
mov dword [0x57f788], 1
mov dword [ebp - 0x978], ebx
mov dword [ebp - 0x974], ebx
mov dword [ebp - 0x970], ebx
lea eax, [ebp - 0x978]
mov dword [ebp - 4], ebx
push ebx
push eax
mov byte [ebp - 4], 1
call fcn.0049d570
mov ecx, dword [ebp - 0x974]
add esp, 0x14
mov esi, dword [ebp - 0x978]
mov dword [ebp - 4], ebx
mov dword [ebp - 0x96c], ecx
cmp esi, ecx
je 0x4d18b8
add esi, 0x2c
nop dword [eax]
cmp dword [esi + 0x34], 0
jne 0x4d189e
cmp dword [esi - 4], 0
sete al
test al, al
jne 0x4d1430
cmp dword [esi], 8
jb 0x4d13ff
mov eax, dword [esi - 0x14]
jmp 0x4d1402
lea eax, [esi - 0x14]
movzx eax, word [eax]
push eax
call fcn.004f842a
add esp, 4
lea edi, [eax - 0x41]
mov eax, 1
mov ecx, edi
shl eax, cl
test dword [0x5801a8], eax
jne 0x4d142a
test dword [0x58d380], eax
je 0x4d1433
cmp dword [esi + 0x44], 0
je 0x4d1433
or edi, 0xffffffff
cmp dword [esi + 0x38], 0
jne 0x4d1447
mov dword [ebp - 0x918], 0
test ebx, ebx
je 0x4d1451
mov dword [ebp - 0x918], 1
mov eax, dword [esi + 0x3c]
mov dword [ebp - 0x914], eax
xor eax, eax
cmp dword [esi + 0x40], eax
setne al
mov dword [ebp - 0x90c], eax
cmp edi, 0xffffffff
je 0x4d148e
mov eax, 1
mov ecx, edi
shl eax, cl
test dword [0x5801a8], eax
jne 0x4d189e
test dword [0x58d380], eax
jne 0x4d189e
push 0x802
lea eax, [ebp - 0x818]
push 0
push eax
call fcn.004e46b0
xor eax, eax
mov dword [ebp - 0x81c], 7
add esp, 0xc
mov dword [ebp - 0x820], 0
mov word [ebp - 0x830], ax
mov byte [ebp - 4], 3
cmp edi, 0xffffffff
je 0x4d1633
push 2
push 0x51ab90
lea ecx, [ebp - 0x848]
mov dword [ebp - 0x834], 7
mov dword [ebp - 0x838], eax
mov word [ebp - 0x848], ax
call fcn.004051a0
lea eax, [ebp - 0x848]
mov byte [ebp - 4], 4
push eax
lea eax, [edi + 0x41]
push eax
lea eax, [ebp - 0x878]
push eax
call fcn.004cf0f0
add esp, 0xc
mov ebx, eax
lea eax, [ebp - 0x830]
cmp eax, ebx
je 0x4d1568
mov eax, dword [ebp - 0x81c]
cmp eax, 8
jb 0x4d153f
inc eax
lea ecx, [ebp - 0x830]
push eax
push dword [ebp - 0x830]
call fcn.004052a0
xor eax, eax
mov dword [ebp - 0x81c], 7
push ebx
lea ecx, [ebp - 0x830]
mov dword [ebp - 0x820], 0
mov word [ebp - 0x830], ax
call fcn.00404990
mov eax, dword [ebp - 0x864]
cmp eax, 8
jb 0x4d1586
inc eax
lea ecx, [ebp - 0x878]
push eax
push dword [ebp - 0x878]
call fcn.004052a0
xor eax, eax
mov dword [ebp - 0x864], 7
mov word [ebp - 0x878], ax
mov eax, dword [ebp - 0x834]
mov dword [ebp - 0x868], 0
mov byte [ebp - 4], 3
cmp eax, 8
jb 0x4d15c5
inc eax
lea ecx, [ebp - 0x848]
push eax
push dword [ebp - 0x848]
call fcn.004052a0
xor eax, eax
mov dword [ebp - 0x834], 7
cmp dword [ebp - 0x81c], 8
lea ecx, [ebp - 0x818]
mov word [ebp - 0x848], ax
lea eax, [ebp - 0x830]
cmovae eax, dword [ebp - 0x830]
push 0x401
push ecx
push eax
mov dword [ebp - 0x838], 0
call dword [sym.imp.KERNEL32.DLL_GetVolumeNameForVolumeMountPointW]
test eax, eax
je 0x4d162a
cmp dword [ebp - 0x81c], 8
lea eax, [ebp - 0x830]
cmovae eax, dword [ebp - 0x830]
push eax
call dword [sym.imp.KERNEL32.DLL_DeleteVolumeMountPointW]
jmp 0x4d1633
xor eax, eax
mov word [ebp - 0x818], ax
mov ebx, dword [0x57f79c]
mov eax, dword [ebp - 0x918]
mov dword [0x57f79c], 0
cmp dword [esi + 0x18], 8
mov dword [ebp - 0x96c], eax
jb 0x4d165a
mov eax, dword [esi + 4]
jmp 0x4d165d
lea eax, [esi + 4]
lea ecx, [ebp - 0x918]
push ecx
lea ecx, [ebp - 0x960]
push ecx
push eax
push edi
push dword [0x5685fc]
call fcn.004d0c00
add esp, 0x14
test eax, eax
jne 0x4d1687
mov dword [ebp - 0x964], eax
jmp 0x4d16b2
mov eax, dword [ebp - 0x964]
test eax, eax
je 0x4d16b2
mov eax, dword [ebp - 0x918]
cmp eax, dword [ebp - 0x96c]
mov ecx, dword [ebp - 0x968]
cmovne ecx, eax
mov eax, dword [ebp - 0x964]
mov dword [ebp - 0x968], ecx
cmp word [ebp - 0x818], 0
mov dword [0x57f79c], ebx
je 0x4d170c
test eax, eax
je 0x4d16ea
call fcn.00427e60
cmp eax, 0xffffffff
je 0x4d170c
cmp dword [ebp - 0x81c], 8
lea ecx, [ebp - 0x830]
cmovae ecx, dword [ebp - 0x830]
add eax, 0x41
mov word [ecx], ax
cmp dword [ebp - 0x81c], 8
lea ecx, [ebp - 0x818]
lea eax, [ebp - 0x830]
cmovae eax, dword [ebp - 0x830]
push ecx
push eax
call dword [sym.imp.KERNEL32.DLL_SetVolumeMountPointW]
cmp dword [0x57f794], 0
je 0x4d1859
push 0
lea eax, [ebp - 0x97c]
push eax
push 0
push 0
push 0
push 0
push 0x222090
push dword [0x559328]
call dword [sym.imp.KERNEL32.DLL_DeviceIoControl]
push 0x28
xor eax, eax
mov dword [ebp - 0x84c], 7
push str.The_filesystem_of_the_volume_mounted_as
lea ecx, [ebp - 0x860]
mov dword [ebp - 0x850], 0
mov word [ebp - 0x860], ax
call fcn.004051a0
lea eax, [edi + 0x41]
mov byte [ebp - 4], 7
push eax
lea eax, [ebp - 0x860]
push eax
lea eax, [ebp - 0x8a8]
push eax
call fcn.004cf0b0
push str.:_was_not_cleanly_dismounted_and_needs_to_be_checked_for_errors.
push eax
lea eax, [ebp - 0x890]
mov byte [ebp - 4], 8
push eax
call fcn.00403cd0
push eax
mov byte [ebp - 4], 9
call fcn.004cc5c0
mov eax, dword [ebp - 0x87c]
add esp, 0x1c
cmp eax, 8
jb 0x4d17c6
inc eax
lea ecx, [ebp - 0x890]
push eax
push dword [ebp - 0x890]
call fcn.004052a0
xor eax, eax
mov dword [ebp - 0x87c], 7
mov word [ebp - 0x890], ax
mov eax, dword [ebp - 0x894]
mov dword [ebp - 0x880], 0
cmp eax, 8
jb 0x4d1801
inc eax
lea ecx, [ebp - 0x8a8]
push eax
push dword [ebp - 0x8a8]
call fcn.004052a0
xor eax, eax
mov dword [ebp - 0x894], 7
mov word [ebp - 0x8a8], ax
mov eax, dword [ebp - 0x84c]
mov dword [ebp - 0x898], 0
cmp eax, 8
jb 0x4d183c
inc eax
lea ecx, [ebp - 0x860]
push eax
push dword [ebp - 0x860]
call fcn.004052a0
xor eax, eax
mov dword [ebp - 0x84c], 7
mov dword [ebp - 0x850], 0
mov word [ebp - 0x860], ax
mov eax, dword [ebp - 0x81c]
mov byte [ebp - 4], 0
cmp eax, 8
jb 0x4d187b
inc eax
lea ecx, [ebp - 0x830]
push eax
push dword [ebp - 0x830]
call fcn.004052a0
mov ebx, dword [ebp - 0x968]
xor eax, eax
mov dword [ebp - 0x81c], 7
mov dword [ebp - 0x820], 0
mov word [ebp - 0x830], ax
mov ecx, dword [ebp - 0x974]
add esi, 0x74
mov dword [ebp - 0x96c], ecx
lea eax, [esi - 0x2c]
cmp eax, ecx
jne 0x4d13e0
lea eax, [ebp - 0x960]
mov dword [0x57f788], 0
mov ecx, 0x48
mov edx, eax
mov esi, ecx
mov byte [edx], 0
lea edx, [edx + 1]
sub esi, 1
jne 0x4d18d1
nop dword [eax]
mov byte [eax], 0
lea eax, [eax + 1]
sub ecx, 1
jne 0x4d18e0
mov esi, dword [ebp - 0x964]
test esi, esi
je 0x4d1902
cmp dword [0x57f7c4], ecx
je 0x4d1902
call fcn.004c2be0
lea ecx, [ebp - 0x978]
call fcn.0049eee0
mov eax, esi
jmp 0x4d1924
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x14]
xor ecx, ebp
call fcn.004e1f40
mov esp, ebp
pop ebp
ret