Function at 0x4e95b0
Capabilities:
Get disk information
Get storage device properties

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xb70
mov eax, dword [0x6670f4]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
movups xmm0, xmmword [0x606044]
mov dword [ebp - 0xb68], eax
mov eax, dword [ebp + 0xc]
mov dword [ebp - 0xb6c], eax
mov eax, dword [ebp + 0x10]
push ebx
mov dword [ebp - 0xb70], eax
xor bl, bl
mov eax, dword [0x606064]
movups xmmword [ebp - 0x34], xmm0
push esi
movups xmm0, xmmword [0x606054]
mov dword [ebp - 0x14], eax
mov ax, word [0x606068]
push edi
mov dword [ebp - 0xc], 0x3a0020
mov dword [ebp - 8], 0x5c
movups xmmword [ebp - 0x24], xmm0
mov word [ebp - 0x10], ax
call dword [sym.imp.KERNEL32.dll_GetLogicalDrives]
mov edx, eax
xor esi, esi
mov dword [ebp - 0xb5c], edx
xor edi, edi
nop dword [eax + eax]
test bl, bl
jne 0x4e9900
mov eax, 1
mov ecx, esi
shl eax, cl
test edx, eax
je 0x4e98f6
lea eax, [esi + 0x41]
mov word [ebp - 0xc], ax
lea eax, [ebp - 0xc]
push eax
call dword [sym.imp.KERNEL32.dll_GetDriveTypeW]
cmp eax, 3
je 0x4e9668
cmp eax, 6
jne 0x4e98f0
push 0
push 0
push 3
push 0
lea eax, [edi + 0x30]
inc edi
push 3
mov word [ebp - 0x12], ax
lea eax, [ebp - 0x34]
push 0
push eax
mov dword [ebp - 0xb60], edi
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov edi, eax
cmp edi, 0xffffffff
je 0x4e98ea
push 0x800
lea eax, [ebp - 0xb34]
mov dword [ebp - 0xb64], 0
push 0
push eax
mov dword [ebp - 0xb50], 0
mov dword [ebp - 0xb58], 0
mov dword [ebp - 0xb54], 0
call fcn.0058c8f0
add esp, 0xc
lea eax, [ebp - 0xb64]
push 0
push eax
push 0x800
lea eax, [ebp - 0xb34]
push eax
push 0xc
lea eax, [ebp - 0xb58]
push eax
push 0x2d1400
push edi
call dword [sym.imp.KERNEL32.dll_DeviceIoControl]
test eax, eax
je 0x4e98dd
push 0x100
lea eax, [ebp - 0x134]
push 0
push eax
call fcn.0058c8f0
push 0x100
lea eax, [ebp - 0x234]
push 0
push eax
call fcn.0058c8f0
push 0x100
lea eax, [ebp - 0x334]
push 0
push eax
call fcn.0058c8f0
lea eax, [ebp - 0x234]
push eax
push 0
push dword [ebp - 0xb24]
lea eax, [ebp - 0xb34]
push eax
call fcn.004e9990
lea eax, [ebp - 0x334]
push eax
push 0
push dword [ebp - 0xb20]
lea eax, [ebp - 0xb34]
push eax
call fcn.004e9990
add esp, 0x44
lea eax, [ebp - 0x134]
push eax
push 1
push dword [ebp - 0xb1c]
lea eax, [ebp - 0xb34]
push eax
call fcn.004e9990
movsx eax, byte [ebp - 0x134]
push eax
call fcn.005b110c
add esp, 0x14
test eax, eax
jne 0x4e97c0
movsx eax, byte [ebp - 0x121]
push eax
call fcn.005b110c
add esp, 4
test eax, eax
je 0x4e98e3
lea eax, [ebp - 0x134]
mov dword [ebp - 0xb3c], 0
mov dword [ebp - 0xb38], 0xf
lea edx, [eax + 1]
mov byte [ebp - 0xb4c], 0
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x4e97e4
sub eax, edx
lea ecx, [ebp - 0xb4c]
push eax
lea eax, [ebp - 0x134]
push eax
call fcn.004b5bb0
mov ecx, dword [ebp - 0xb68]
lea eax, [ebp - 0xb4c]
push eax
call fcn.004b85a0
lea ecx, [ebp - 0xb4c]
call fcn.004b3140
lea ecx, [ebp - 0x234]
mov dword [ebp - 0xb3c], 0
mov dword [ebp - 0xb38], 0xf
lea edx, [ecx + 1]
mov byte [ebp - 0xb4c], 0
mov al, byte [ecx]
inc ecx
test al, al
jne 0x4e9841
sub ecx, edx
lea eax, [ebp - 0x234]
push ecx
push eax
lea ecx, [ebp - 0xb4c]
call fcn.004b5bb0
mov ecx, dword [ebp - 0xb6c]
lea eax, [ebp - 0xb4c]
push eax
call fcn.004b85a0
lea ecx, [ebp - 0xb4c]
call fcn.004b3140
lea ecx, [ebp - 0x334]
mov dword [ebp - 0xb3c], 0
mov dword [ebp - 0xb38], 0xf
lea edx, [ecx + 1]
mov byte [ebp - 0xb4c], 0
nop
mov al, byte [ecx]
inc ecx
test al, al
jne 0x4e98a0
sub ecx, edx
lea eax, [ebp - 0x334]
push ecx
push eax
lea ecx, [ebp - 0xb4c]
call fcn.004b5bb0
mov ecx, dword [ebp - 0xb70]
lea eax, [ebp - 0xb4c]
push eax
call fcn.004b85a0
lea ecx, [ebp - 0xb4c]
call fcn.004b3140
mov bl, 1
jmp 0x4e98e3
call dword [sym.imp.KERNEL32.dll_GetLastError]
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov edi, dword [ebp - 0xb60]
mov edx, dword [ebp - 0xb5c]
inc esi
cmp esi, 0x20
jl 0x4e9630
mov ecx, dword [ebp - 4]
mov al, bl
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0050ed5c
mov esp, ebp
pop ebp
ret