Function at 0x140187890
Capabilities:
Get storage device properties

Disassembly:
push rbx
push rbp
push rsi
push r15
sub rsp, 0x98
xor r15d, r15d
mov rsi, rcx
mov ebx, edx
mov qword [rsp + 0x58], r15
lea ecx, [r15 + 0x20]
call fcn.1401c7ed4
movups xmm0, xmmword [str..PhysicalDrive_u]
mov qword [rsp + 0x50], rax
lea rdx, [rsp + 0x50]
mov qword [rsp + 0x60], reloc.WS2_32.dll_send
mov r8d, ebx
mov qword [rsp + 0x68], 0x1f
movups xmmword [rax], xmm0
movzx ecx, word [0x140495248]
mov word [rax + 0x10], cx
movzx ecx, byte [0x14049524a]
mov byte [rax + 0x12], cl
lea rcx, [rsp + 0x70]
mov byte [rax + 0x13], r15b
call fcn.140154360
cmp qword [rax + 0x18], 0xf
jbe 0x140187909
mov rax, qword [rax]
xor r9d, r9d
mov qword [rsp + 0x30], r15
mov dword [rsp + 0x28], r15d
xor edx, edx
mov rcx, rax
mov dword [rsp + 0x20], 3
lea r8d, [r9 + 3]
call qword [sym.imp.KERNEL32.dll_CreateFileA]
mov rdx, qword [rsp + 0x88]
mov rbp, rax
cmp rdx, 0xf
jbe 0x140187973
mov rcx, qword [rsp + 0x70]
inc rdx
mov rax, rcx
cmp rdx, 0x1000
jb 0x14018796e
mov rcx, qword [rcx - 8]
add rdx, 0x27
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x14018796e
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.1401c7f18
cmp rbp, 0xffffffffffffffff
jne 0x14018799e
xorps xmm0, xmm0
mov rax, rsi
movups xmmword [rsi], xmm0
mov qword [rsi + 0x10], r15
mov qword [rsi + 0x18], reloc.WS2_32.dll_ntohs
mov byte [rsi], r15b
add rsp, 0x98
pop r15
pop rsi
pop rbp
pop rbx
ret
mov qword [rsp + 0x38], r15
lea rax, [rsp + 0xd0]
mov qword [rsp + 0x30], rax
lea r8, [rsp + 0x40]
lea rax, [rsp + 0xd8]
mov dword [rsp + 0x28], 8
mov r9d, reloc.WS2_32.dll_inet_ntoa
mov qword [rsp + 0x20], rax
mov edx, 0x2d1400
mov qword [rsp + 0x44], r15
mov rcx, rbp
mov dword [rsp + 0x40], r15d
mov qword [rsp + 0xd8], r15
mov dword [rsp + 0xd0], r15d
call qword [sym.imp.KERNEL32.dll_DeviceIoControl]
test eax, eax
jne 0x140187a33
xorps xmm0, xmm0
movups xmmword [rsi], xmm0
mov qword [rsi + 0x10], r15
mov qword [rsi + 0x18], reloc.WS2_32.dll_ntohs
mov byte [rsi], r15b
test rbp, rbp
je 0x140187aea
mov rcx, rbp
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rax, rsi
add rsp, 0x98
pop r15
pop rsi
pop rbp
pop rbx
ret
mov qword [rsp + 0xc0], rdi
mov edi, dword [rsp + 0xdc]
mov ecx, edi
mov qword [rsp + 0x90], r14
call fcn.1401c8270
mov r8d, edi
xor edx, edx
mov rcx, rax
mov r14, rax
call sub.VCRUNTIME140.dll_memset
mov qword [rsp + 0x38], r15
lea rax, [rsp + 0xd0]
mov qword [rsp + 0x30], rax
lea r8, [rsp + 0x40]
mov dword [rsp + 0x28], edi
mov r9d, reloc.WS2_32.dll_inet_ntoa
mov edx, 0x2d1400
mov qword [rsp + 0x20], r14
mov rcx, rbp
call qword [sym.imp.KERNEL32.dll_DeviceIoControl]
mov rdi, qword [rsp + 0xc0]
test eax, eax
jne 0x140187ab8
xorps xmm0, xmm0
movups xmmword [rsi], xmm0
mov qword [rsi + 0x10], r15
mov qword [rsi + 0x18], reloc.WS2_32.dll_ntohs
mov byte [rsi], r15b
jmp 0x140187acc
mov eax, dword [r14 + 0x18]
test eax, eax
je 0x140187aa1
lea rdx, [r14 + rax]
mov rcx, rsi
call fcn.14013a710
mov rcx, r14
call fcn.1401c7f18
test rbp, rbp
je 0x140187ae2
mov rcx, rbp
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov r14, qword [rsp + 0x90]
mov rax, rsi
add rsp, 0x98
pop r15
pop rsi
pop rbp
pop rbx
ret