Function at 0x401480
Capabilities:
Get storage device properties

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x40529d
mov eax, dword fs:[0]
push eax
sub esp, 0x60
mov eax, dword [0x408040]
xor eax, ebp
mov dword [ebp - 0x10], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, ecx
mov dword [ebp - 0x68], edi
mov dword [ebp - 0x5c], edi
xorps xmm0, xmm0
mov dword [ebp - 0x5c], edi
movups xmmword [ebp - 0x28], xmm0
mov dword [ebp - 0x18], 0
mov dword [ebp - 0x14], 0xf
mov byte [ebp - 0x28], 0
push 0
push 0
push 3
push 0
push 3
push 0
push 0x4062c0
mov dword [ebp - 4], 0
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov esi, eax
xorps xmm0, xmm0
mov dword [ebp - 0x5c], esi
cmp esi, 0xffffffff
jne 0x40156c
movups xmmword [edi], xmm0
mov dword [edi + 0x10], 0
mov dword [edi + 0x14], 0
mov dword [edi + 0x10], 0
mov dword [edi + 0x14], 0xf
mov byte [edi], 0
mov ecx, dword [ebp - 0x14]
cmp ecx, 0xf
jbe 0x40154f
mov edx, dword [ebp - 0x28]
inc ecx
mov eax, edx
cmp ecx, 0x1000
jb 0x401545
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x40181d
push ecx
push edx
call fcn.00404474
add esp, 8
mov eax, edi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.00404431
mov esp, ebp
pop ebp
ret
movlpd qword [ebp - 0x34], xmm0
mov dword [ebp - 0x34], 0x401830
mov dword [ebp - 0x30], esi
push 0
lea eax, [ebp - 0x2c]
mov byte [ebp - 4], 1
push eax
push 8
lea eax, [ebp - 0x4c]
mov dword [ebp - 0x40], 0
push eax
push 0xc
lea eax, [ebp - 0x40]
mov dword [ebp - 0x3c], 0
push eax
push 0x2d1400
push esi
mov dword [ebp - 0x2c], 0
call dword [sym.imp.KERNEL32.dll_DeviceIoControl]
test eax, eax
jne 0x4015e2
xorps xmm0, xmm0
movups xmmword [edi], xmm0
mov dword [edi + 0x10], eax
mov dword [edi + 0x14], eax
mov dword [edi + 0x10], eax
mov dword [edi + 0x14], 0xf
mov byte [edi], al
test esi, esi
je 0x40151b
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
jmp 0x40151b
mov esi, dword [ebp - 0x48]
push esi
call fcn.00404482
push esi
push 0
push eax
mov dword [ebp - 0x58], eax
call sub.VCRUNTIME140.dll_memset
mov eax, dword [ebp - 0x58]
add esp, 0x10
mov dword [ebp - 0x44], eax
push 0
lea ecx, [ebp - 0x2c]
mov byte [ebp - 4], 3
push ecx
push esi
mov esi, dword [ebp - 0x5c]
push eax
push 0xc
lea eax, [ebp - 0x40]
push eax
push 0x2d1400
push esi
call dword [sym.imp.KERNEL32.dll_DeviceIoControl]
test eax, eax
jne 0x40165c
push dword [ebp - 0x58]
xorps xmm0, xmm0
movups xmmword [edi], xmm0
mov dword [edi + 0x10], eax
mov dword [edi + 0x14], eax
mov dword [edi + 0x10], eax
mov dword [edi + 0x14], 0xf
mov byte [edi], al
call fcn.0040443f
add esp, 4
test esi, esi
je 0x40151b
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
jmp 0x40151b
mov eax, dword [ebp - 0x58]
mov ecx, dword [eax + 0x18]
test ecx, ecx
jne 0x40169b
xorps xmm0, xmm0
movups xmmword [edi], xmm0
mov dword [edi + 0x10], ecx
mov dword [edi + 0x14], ecx
mov dword [edi + 0x10], ecx
mov dword [edi + 0x14], 0xf
push eax
mov byte [edi], cl
call fcn.0040443f
add esp, 4
test esi, esi
je 0x40151b
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
jmp 0x40151b
lea edx, [ecx + eax]
mov ecx, edx
lea esi, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x4016a3
sub ecx, esi
push ecx
push edx
lea ecx, [ebp - 0x28]
call fcn.00403280
cmp dword [ebp - 0x14], 0xf
lea eax, [ebp - 0x28]
mov ecx, dword [ebp - 0x28]
mov edx, dword [ebp - 0x18]
jbe 0x4016d2
lea edi, [edx + ecx]
mov dword [ebp - 0x50], ecx
lea esi, [edx + ecx]
mov eax, ecx
jmp 0x4016e0
lea edi, [edx + eax]
lea esi, [ebp - 0x28]
lea eax, [ebp - 0x28]
add esi, edx
mov dword [ebp - 0x50], eax
mov dword [ebp - 0x54], edi
mov dword [ebp - 0x64], edi
cmp eax, esi
je 0x40174f
mov edi, dword [ebp - 0x50]
nop dword [eax]
movsx eax, byte [edi]
push eax
call dword [sym.imp.api_ms_win_crt_string_l1_1_0.dll_isspace]
add esp, 4
test eax, eax
jne 0x401706
inc edi
cmp edi, esi
jne 0x4016f0
mov edx, dword [ebp - 0x18]
mov dword [ebp - 0x50], edi
mov eax, dword [ebp - 0x50]
mov edi, dword [ebp - 0x64]
cmp eax, esi
je 0x40174f
lea ecx, [eax + 1]
mov dword [ebp - 0x60], ecx
cmp ecx, esi
je 0x40174f
mov edi, eax
movsx eax, byte [ecx]
push eax
call dword [sym.imp.api_ms_win_crt_string_l1_1_0.dll_isspace]
mov ecx, dword [ebp - 0x60]
add esp, 4
test eax, eax
jne 0x40173b
mov al, byte [ecx]
mov byte [edi], al
inc edi
inc ecx
mov dword [ebp - 0x60], ecx
cmp ecx, esi
jne 0x401722
mov edx, dword [ebp - 0x18]
mov dword [ebp - 0x50], edi
mov edi, dword [ebp - 0x64]
mov eax, dword [ebp - 0x50]
cmp dword [ebp - 0x14], 0xf
lea esi, [ebp - 0x28]
mov ecx, dword [ebp - 0x28]
jbe 0x401764
mov esi, dword [ebp - 0x54]
mov edi, eax
sub edi, ecx
jmp 0x401772
mov ecx, eax
sub ecx, esi
mov esi, edi
mov dword [ebp - 0x54], ecx
mov edi, ecx
lea ecx, [ebp - 0x28]
sub esi, eax
mov eax, edx
sub eax, edi
cmp eax, esi
cmovb esi, eax
add ecx, edi
sub edx, esi
mov dword [ebp - 0x54], edx
sub edx, edi
inc edx
push edx
lea eax, [ecx + esi]
push eax
push ecx
call sub.VCRUNTIME140.dll_memmove
mov edi, dword [ebp - 0x68]
xorps xmm0, xmm0
mov eax, dword [ebp - 0x54]
push dword [ebp - 0x58]
mov dword [ebp - 0x18], eax
movups xmmword [edi], xmm0
mov dword [edi + 0x10], 0
movups xmm0, xmmword [ebp - 0x28]
mov dword [edi + 0x14], 0
mov byte [ebp - 0x28], 0
movups xmmword [edi], xmm0
movq xmm0, qword [ebp - 0x18]
movq qword [edi + 0x10], xmm0
mov dword [ebp - 0x18], 0
mov dword [ebp - 0x14], 0xf
call fcn.0040443f
add esp, 0x10
mov eax, dword [ebp - 0x5c]
test eax, eax
je 0x4017eb
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov ecx, dword [ebp - 0x14]
cmp ecx, 0xf
jbe 0x40154f
mov edx, dword [ebp - 0x28]
inc ecx
mov eax, edx
cmp ecx, 0x1000
jb 0x401545
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
jbe 0x401545
call dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3