Function at 0x401490
Capabilities:
Get storage device properties

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x40c8fd
mov eax, dword fs:[0]
push eax
sub esp, 0x5c
mov eax, dword [0x410040]
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 - 0x64], edi
mov dword [ebp - 0x58], edi
xorps xmm0, xmm0
mov dword [ebp - 0x58], 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 0x40d324
mov dword [ebp - 4], 0
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov esi, eax
xorps xmm0, xmm0
mov dword [ebp - 0x58], esi
cmp esi, 0xffffffff
jne 0x40157c
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 0x40155f
mov edx, dword [ebp - 0x28]
inc ecx
mov eax, edx
cmp ecx, 0x1000
jb 0x401555
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x40182b
push ecx
push edx
call fcn.0040b8ff
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.0040b8b7
mov esp, ebp
pop ebp
ret
movlpd qword [ebp - 0x34], xmm0
mov dword [ebp - 0x34], 0x401840
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 0x4015f2
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 0x40152b
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
jmp 0x40152b
mov esi, dword [ebp - 0x48]
push esi
call fcn.0040b90d
push esi
push 0
push eax
mov dword [ebp - 0x54], eax
call sub.VCRUNTIME140.dll_memset
mov eax, dword [ebp - 0x54]
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 - 0x58]
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 0x40166c
push dword [ebp - 0x54]
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.0040b8c5
add esp, 4
test esi, esi
je 0x40152b
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
jmp 0x40152b
mov eax, dword [ebp - 0x54]
mov ecx, dword [eax + 0x18]
test ecx, ecx
jne 0x4016ab
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.0040b8c5
add esp, 4
test esi, esi
je 0x40152b
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
jmp 0x40152b
lea edx, [ecx + eax]
mov ecx, edx
lea esi, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x4016b3
sub ecx, esi
push ecx
push edx
lea ecx, [ebp - 0x28]
call fcn.00404d80
cmp dword [ebp - 0x14], 0xf
lea eax, [ebp - 0x28]
mov edx, dword [ebp - 0x18]
lea esi, [ebp - 0x28]
cmova eax, dword [ebp - 0x28]
lea edi, [ebp - 0x28]
mov ecx, dword [sym.imp.api_ms_win_crt_string_l1_1_0.dll_isspace]
add eax, edx
cmp dword [ebp - 0x14], 0xf
mov dword [ebp - 0x60], edx
cmova esi, dword [ebp - 0x28]
cmova edi, dword [ebp - 0x28]
mov dword [ebp - 0x50], eax
lea esi, [edx + esi]
cmp edi, esi
je 0x40175e
nop dword [eax + eax]
movsx eax, byte [edi]
push eax
call ecx
add esp, 4
test eax, eax
jne 0x401718
mov ecx, dword [sym.imp.api_ms_win_crt_string_l1_1_0.dll_isspace]
inc edi
cmp edi, esi
jne 0x401700
mov edx, dword [ebp - 0x18]
mov ecx, dword [sym.imp.api_ms_win_crt_string_l1_1_0.dll_isspace]
mov dword [ebp - 0x60], edx
cmp edi, esi
je 0x40175e
lea eax, [edi + 1]
mov dword [ebp - 0x5c], eax
cmp eax, esi
je 0x40175e
movsx eax, byte [eax]
push eax
call ecx
add esp, 4
test eax, eax
jne 0x401747
mov eax, dword [ebp - 0x5c]
mov al, byte [eax]
mov byte [edi], al
inc edi
mov eax, dword [ebp - 0x5c]
mov ecx, dword [sym.imp.api_ms_win_crt_string_l1_1_0.dll_isspace]
inc eax
mov dword [ebp - 0x5c], eax
cmp eax, esi
jne 0x401732
mov edx, dword [ebp - 0x18]
mov dword [ebp - 0x60], edx
cmp dword [ebp - 0x14], 0xf
lea eax, [ebp - 0x28]
mov esi, edi
cmova eax, dword [ebp - 0x28]
sub dword [ebp - 0x50], edi
sub esi, eax
mov edi, dword [ebp - 0x60]
mov eax, edx
mov edx, dword [ebp - 0x50]
sub eax, esi
cmp eax, edx
cmovb edx, eax
cmp dword [ebp - 0x14], 0xf
mov dword [ebp - 0x50], edx
lea edx, [ebp - 0x28]
cmova edx, dword [ebp - 0x28]
mov eax, dword [ebp - 0x50]
add edx, esi
sub edi, eax
add eax, edx
mov ecx, edi
sub ecx, esi
inc ecx
push ecx
push eax
push edx
call sub.VCRUNTIME140.dll_memmove
push dword [ebp - 0x54]
mov dword [ebp - 0x18], edi
xorps xmm0, xmm0
mov edi, dword [ebp - 0x64]
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.0040b8c5
add esp, 0x10
mov eax, dword [ebp - 0x58]
test eax, eax
je 0x4017f9
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov ecx, dword [ebp - 0x14]
cmp ecx, 0xf
jbe 0x40155f
mov edx, dword [ebp - 0x28]
inc ecx
mov eax, edx
cmp ecx, 0x1000
jb 0x401555
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
jbe 0x401555
call dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3