Function at 0x401170
Capabilities:
Get storage device properties

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x402a1d
mov eax, dword fs:[0]
push eax
sub esp, 0x60
mov eax, dword [section..data]
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 str..PhysicalDrive0
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 0x40125c
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 0x40123f
mov edx, dword [ebp - 0x28]
inc ecx
mov eax, edx
cmp ecx, 0x1000
jb 0x401235
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x40150d
push ecx
push edx
call fcn.00401cdb
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.00401c98
mov esp, ebp
pop ebp
ret
movlpd qword [ebp - 0x34], xmm0
mov dword [ebp - 0x34], 0x401520
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 0x4012d2
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 0x40120b
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
jmp 0x40120b
mov esi, dword [ebp - 0x48]
push esi
call fcn.00401ce9
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 0x40134c
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.00401ca6
add esp, 4
test esi, esi
je 0x40120b
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
jmp 0x40120b
mov eax, dword [ebp - 0x58]
mov ecx, dword [eax + 0x18]
test ecx, ecx
jne 0x40138b
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.00401ca6
add esp, 4
test esi, esi
je 0x40120b
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
jmp 0x40120b
lea edx, [ecx + eax]
mov ecx, edx
lea esi, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x401393
sub ecx, esi
push ecx
push edx
lea ecx, [ebp - 0x28]
call fcn.004016a0
cmp dword [ebp - 0x14], 0xf
lea eax, [ebp - 0x28]
mov ecx, dword [ebp - 0x28]
mov edx, dword [ebp - 0x18]
jbe 0x4013c2
lea edi, [edx + ecx]
mov dword [ebp - 0x50], ecx
lea esi, [edx + ecx]
mov eax, ecx
jmp 0x4013d0
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 0x40143f
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 0x4013f6
inc edi
cmp edi, esi
jne 0x4013e0
mov edx, dword [ebp - 0x18]
mov dword [ebp - 0x50], edi
mov eax, dword [ebp - 0x50]
mov edi, dword [ebp - 0x64]
cmp eax, esi
je 0x40143f
lea ecx, [eax + 1]
mov dword [ebp - 0x60], ecx
cmp ecx, esi
je 0x40143f
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 0x40142b
mov al, byte [ecx]
mov byte [edi], al
inc edi
inc ecx
mov dword [ebp - 0x60], ecx
cmp ecx, esi
jne 0x401412
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 0x401454
mov esi, dword [ebp - 0x54]
mov edi, eax
sub edi, ecx
jmp 0x401462
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.00401ca6
add esp, 0x10
mov eax, dword [ebp - 0x5c]
test eax, eax
je 0x4014db
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov ecx, dword [ebp - 0x14]
cmp ecx, 0xf
jbe 0x40123f
mov edx, dword [ebp - 0x28]
inc ecx
mov eax, edx
cmp ecx, 0x1000
jb 0x401235
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
jbe 0x401235
call dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3