Function at 0x401bc0
Capabilities:
Get storage device properties

Disassembly:
mov eax, 0x4218
call fcn.0042d980
mov eax, dword [0x4629b4]
xor eax, esp
mov dword [esp + 0x4214], eax
push ebx
mov ebx, dword [esp + 0x4224]
push ebp
mov ebp, dword [esp + 0x4224]
push esi
push edi
mov edi, dword [esp + 0x4234]
push 0x200
push 0
push ebx
mov dword [esp + 0x24], ebp
mov dword [esp + 0x20], ebx
mov dword [esp + 0x1c], edi
call fcn.0042f620
push 0x1010
lea eax, [esp + 0x31dc]
push 0
push eax
call fcn.0042f620
add esp, 0x18
mov dword [esp + 0x31b4], 3
lea eax, [esp + 0x1c]
mov dword [esp + 0x31b8], 1
mov dword [esp + 0x31c4], 0x28
mov dword [esp + 0x31c8], 0x1000
push 0
push eax
push 0x1030
lea eax, [esp + 0x31b8]
mov dword [esp + 0x31b8], 0x31
push eax
push 0x1030
push eax
push 0x2d1400
push ebp
mov ebp, dword [sym.imp.KERNEL32.dll_DeviceIoControl]
mov dword [esp + 0x31d0], 0
mov dword [esp + 0x31dc], 1
mov dword [esp + 0x31e0], 0
mov dword [esp + 0x3c], 0
call ebp
mov esi, eax
test esi, esi
je 0x401cd7
push 0x200
lea eax, [esp + 0x31e0]
mov dword [edi], 0x11
push eax
push 0x200
push ebx
call fcn.004047a0
add esp, 0x10
mov eax, esi
jmp 0x40240f
push 0
lea eax, [esp + 0x20]
xorps xmm0, xmm0
push eax
push 8
lea eax, [esp + 0x2c]
movlpd qword [esp + 0x2c], xmm0
push eax
push 0
push 0
push 0x41018
push dword [esp + 0x34]
call ebp
test eax, eax
je 0x40240d
push 0x48
lea eax, [esp + 0x41e0]
push 0
push eax
call fcn.0042f620
movzx eax, byte [esp + 0x30]
push eax
push str..Scsi_d:
lea eax, [esp + 0x41f0]
push 0xffffffffffffffff
push eax
call fcn.00401410
add esp, 0x1c
lea eax, [esp + 0x41dc]
push 0
push 0
push 3
push 0
push 3
push 0xc0000000
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov edi, eax
cmp edi, 0xffffffff
je 0x40240d
push 0x1098
lea eax, [esp + 0x1074]
push 0
push eax
call fcn.0042f620
mov eax, dword [str.NvmeMini]
add esp, 0xc
mov dword [esp + 0x1074], eax
mov eax, dword [0x446edc]
mov dword [esp + 0x1078], eax
lea eax, [esp + 0x1c]
push 0
push eax
push 0x1098
lea eax, [esp + 0x107c]
mov dword [esp + 0x108c], 0xe0002000
push eax
push 0x1098
push eax
push 0x4d008
push edi
mov dword [esp + 0x1090], 0x1c
mov dword [esp + 0x109c], 0x28
mov dword [esp + 0x10a8], 0x107c
mov dword [esp + 0x111c], 0x1000
mov dword [esp + 0x1124], 0x1098
mov dword [esp + 0x1114], 2
mov dword [esp + 0x10c4], 6
mov dword [esp + 0x10c8], 0
mov dword [esp + 0x10ec], 1
call ebp
cmp eax, 1
jne 0x401f17
xor ecx, ecx
xorps xmm3, xmm3
xorps xmm2, xmm2
nop dword [eax + eax]
movd xmm1, dword [esp + ecx + 0x1108]
xorps xmm0, xmm0
punpcklbw xmm1, xmm0
punpcklwd xmm1, xmm0
paddd xmm3, xmm1
movd xmm1, dword [esp + ecx + 0x110c]
punpcklbw xmm1, xmm0
add ecx, 8
punpcklwd xmm1, xmm0
paddd xmm2, xmm1
cmp ecx, 0x1f8
jl 0x401e30
paddd xmm2, xmm3
xor edx, edx
movaps xmm0, xmm2
xor esi, esi
psrldq xmm0, 8
paddd xmm2, xmm0
movups xmm0, xmm2
psrldq xmm0, 4
paddd xmm2, xmm0
movd ebx, xmm2
cmp ecx, 0x1fe
jge 0x401ed6
mov eax, 0x1fe
sub eax, ecx
cmp eax, 2
jl 0x401ebf
movzx eax, byte [esp + ecx + 0x1108]
add edx, eax
movzx eax, byte [esp + ecx + 0x1109]
add ecx, 2
add esi, eax
cmp ecx, 0x1fd
jl 0x401ea0
cmp ecx, 0x1fe
jge 0x401ed1
movzx eax, byte [esp + ecx + 0x1108]
add ebx, eax
lea eax, [edx + esi]
add ebx, eax
test ebx, ebx
je 0x401f13
push 0x200
lea eax, [esp + 0x110c]
push eax
push 0x200
push dword [esp + 0x20]
call fcn.004047a0
mov eax, dword [esp + 0x20]
add esp, 0x10
push edi
mov dword [eax], 0x10
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, 1
jmp 0x40240f
mov ebx, dword [esp + 0x14]
push 0x10a4
lea eax, [esp + 0x210c]
push 0
push eax
call fcn.0042f620
mov eax, dword [str.IntelNvm]
add esp, 0xc
mov dword [esp + 0x210c], eax
mov eax, dword [0x446ed0]
mov dword [esp + 0x2110], eax
mov al, byte [esp + 0x25]
mov byte [esp + 0x2125], al
mov eax, dword [esp + 0x2128]
and eax, 0xffffff06
mov dword [esp + 0x2108], 0x1c
or eax, 6
mov dword [esp + 0x2114], 0xa
mov dword [esp + 0x2128], eax
mov eax, dword [esp + 0x2150]
and eax, 0xfffffffd
mov dword [esp + 0x2118], 0xf0002808
push 0
or eax, 1
mov dword [esp + 0x2124], 0x1088
mov dword [esp + 0x2154], eax
lea eax, [esp + 0x2c]
push eax
push 0x10a4
lea eax, [esp + 0x2114]
mov byte [esp + 0x2130], 1
push eax
push 0x10a4
push eax
push 0x4d008
push edi
mov dword [esp + 0x214c], 0
mov dword [esp + 0x219c], 0xa4
mov dword [esp + 0x21a0], 0x1000
mov dword [esp + 0x2188], 0
mov dword [esp + 0x48], 0
call ebp
test eax, eax
je 0x40203f
push 0x200
lea eax, [esp + 0x21b0]
push eax
push 0x200
push ebx
call fcn.004047a0
mov eax, dword [esp + 0x20]
add esp, 0x10
push edi
mov dword [eax], 0x15
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, 1
jmp 0x40240f
push 0x1098
lea eax, [esp + 0x1074]
push 0
push eax
call fcn.0042f620
mov eax, dword [str.NvmeRAID]
add esp, 0xc
movzx ecx, byte [esp + 0x25]
mov dword [esp + 0x1074], eax
add ecx, 0x8600
mov eax, dword [0x446ec4]
mov dword [esp + 0x1078], eax
movzx eax, byte [esp + 0x26]
shl ecx, 8
add ecx, eax
mov dword [esp + 0x1080], 0xe0002000
movzx eax, byte [esp + 0x27]
push 0
shl ecx, 8
add ecx, eax
mov dword [esp + 0x1080], 0x28
lea eax, [esp + 0x20]
mov dword [esp + 0x1074], 0x1c
push eax
push 0x1098
lea eax, [esp + 0x31b8]
mov dword [esp + 0x1094], 0x107c
push eax
push 0x1098
push eax
push 0x4d008
push edi
mov dword [esp + 0x10a4], ecx
mov dword [esp + 0x1114], 2
mov dword [esp + 0x1118], 0
mov dword [esp + 0x1120], 0
mov dword [esp + 0x111c], 0x1000
mov dword [esp + 0x1124], 0x1098
mov dword [esp + 0x10c4], 6
mov dword [esp + 0x10c8], 0
mov dword [esp + 0x10ec], 1
mov byte [esp + 0x1128], 1
call ebp
cmp eax, 1
jne 0x402243
xor ecx, ecx
xorps xmm3, xmm3
xorps xmm2, xmm2
nop dword [eax]
nop word [eax + eax]
movd xmm1, dword [esp + ecx + 0x1108]
xorps xmm0, xmm0
punpcklbw xmm1, xmm0
punpcklwd xmm1, xmm0
paddd xmm3, xmm1
movd xmm1, dword [esp + ecx + 0x110c]
punpcklbw xmm1, xmm0
add ecx, 8
punpcklwd xmm1, xmm0
paddd xmm2, xmm1
cmp ecx, 0x1f8
jl 0x402160
paddd xmm2, xmm3
xor edx, edx
movaps xmm0, xmm2
xor esi, esi
psrldq xmm0, 8
paddd xmm2, xmm0
movups xmm0, xmm2
psrldq xmm0, 4
paddd xmm2, xmm0
movd ebx, xmm2
cmp ecx, 0x1fe
jge 0x402206
mov eax, 0x1fe
sub eax, ecx
cmp eax, 2
jl 0x4021ef
movzx eax, byte [esp + ecx + 0x1108]
add edx, eax
movzx eax, byte [esp + ecx + 0x1109]
add ecx, 2
add esi, eax
cmp ecx, 0x1fd
jl 0x4021d0
cmp ecx, 0x1fe
jge 0x402201
movzx eax, byte [esp + ecx + 0x1108]
add ebx, eax
lea eax, [edx + esi]
add ebx, eax
test ebx, ebx
je 0x402243
push 0x200
lea eax, [esp + 0x110c]
push eax
push 0x200
push dword [esp + 0x20]
call fcn.004047a0
mov eax, dword [esp + 0x20]
add esp, 0x10
push edi
mov dword [eax], 0x16
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, 1
jmp 0x40240f
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push 0x1044
lea eax, [esp + 0x30]
push 0
push eax
call fcn.0042f620
mov ebx, dword [esp + 0x24]
add esp, 0xc
mov eax, 0x2c
mov dword [esp + 0x2f], 0x10000000
mov word [esp + 0x2c], ax
mov dword [esp + 0x44], eax
lea eax, [esp + 0x1c]
push 0
push eax
push 0x1044
lea eax, [esp + 0x38]
mov word [esp + 0x3f], 0x18
push eax
push 0x1044
push eax
push 0x4d004
push ebx
mov dword [esp + 0x58], 0x1000
mov dword [esp + 0x5c], 2
mov dword [esp + 0x60], 0x44
mov dword [esp + 0x68], 0x500feb5
mov dword [esp + 0x6c], 0
mov word [esp + 0x70], 0x4000
mov byte [esp + 0x90], 1
call ebp
cmp eax, 1
jne 0x40240d
push 0
mov word [esp + 0x54], ax
mov byte [esp + 0x38], al
lea eax, [esp + 0x20]
push eax
push 0x1044
lea eax, [esp + 0x38]
mov byte [esp + 0x3e], 0x10
push eax
push 0x1044
push eax
push 0x4d004
push ebx
mov dword [esp + 0x68], 0x500fea2
mov dword [esp + 0x6c], 0
mov byte [esp + 0x90], 0
call ebp
cmp eax, 1
jne 0x40240d
xor ecx, ecx
xorps xmm3, xmm3
xorps xmm2, xmm2
nop dword [eax]
nop dword [eax + eax]
movd xmm1, dword [esp + ecx + 0x70]
xorps xmm0, xmm0
punpcklbw xmm1, xmm0
punpcklwd xmm1, xmm0
paddd xmm3, xmm1
movd xmm1, dword [esp + ecx + 0x74]
punpcklbw xmm1, xmm0
add ecx, 8
punpcklwd xmm1, xmm0
paddd xmm2, xmm1
cmp ecx, 0x1f8
jl 0x402340
paddd xmm2, xmm3
xor edx, edx
movaps xmm0, xmm2
xor esi, esi
psrldq xmm0, 8
paddd xmm2, xmm0
movups xmm0, xmm2
psrldq xmm0, 4
paddd xmm2, xmm0
movd edi, xmm2
cmp ecx, 0x1fe
jge 0x4023dd
mov eax, 0x1fe
sub eax, ecx
cmp eax, 2
jl 0x4023c9
nop word [eax + eax]
movzx eax, byte [esp + ecx + 0x70]
add edx, eax
movzx eax, byte [esp + ecx + 0x71]
add ecx, 2
add esi, eax
cmp ecx, 0x1fd
jl 0x4023b0
cmp ecx, 0x1fe
jge 0x4023d8
movzx eax, byte [esp + ecx + 0x70]
add edi, eax
lea eax, [edx + esi]
add edi, eax
test edi, edi
je 0x40240d
mov eax, dword [esp + 0x10]
push 0x200
mov dword [eax], 0xf
lea eax, [esp + 0x74]
push eax
push 0x200
push dword [esp + 0x20]
call fcn.004047a0
add esp, 0x10
mov eax, 1
jmp 0x40240f
xor eax, eax
mov ecx, dword [esp + 0x4224]
pop edi
pop esi
pop ebp
pop ebx
xor ecx, esp
call fcn.0042d960
add esp, 0x4218
ret