Function at 0x1400372e0
Capabilities:
Get disk information
Get storage device properties

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rsi
mov qword [rsp + 0x20], rdi
push rbp
push r12
push r13
push r14
push r15
lea rbp, [rsp - 0x50]
sub rsp, 0x150
mov rax, qword [0x14007b080]
xor rax, rsp
mov qword [rbp + 0x40], rax
mov rsi, rcx
xor r12d, r12d
mov rax, qword [rcx]
cmp rax, qword [rcx + 8]
je 0x140037325
mov qword [rcx + 8], rax
call qword [sym.imp.KERNEL32.dll_GetLogicalDrives]
mov r15d, eax
mov r14b, 0x41
movabs rax, 0xadcec37b3600d6c3
movabs rbx, 0xadcec37b3600d6f9
movabs rdi, 0xadcec37b6a2e8aa5
movabs r13, 0xd8ca37de3dc1fee6
nop dword [rax]
test r15b, 1
jne 0x14003736e
shr r15d, 1
jmp 0x14003772d
mov qword [rsp + 0x40], rax
mov rax, qword [rsp + 0x40]
mov qword [rsp + 0x50], rax
mov qword [rsp + 0x40], r13
mov rax, qword [rsp + 0x40]
mov qword [rsp + 0x58], rax
mov qword [rsp + 0x40], rbx
mov rax, qword [rsp + 0x40]
mov qword [rbp + 0x20], rax
mov qword [rsp + 0x40], r13
mov rax, qword [rsp + 0x40]
mov qword [rbp + 0x28], rax
movdqa xmm0, xmmword [rsp + 0x50]
xorps xmm0, xmmword [rbp + 0x20]
movdqa xmmword [rsp + 0x50], xmm0
movzx r8d, r14b
mov edx, 1
lea rcx, [rbp - 0x60]
call fcn.140016e70
mov r8, rax
mov qword [rsp + 0x40], rdi
mov rcx, qword [rsp + 0x40]
mov qword [rsp + 0x60], rcx
mov qword [rsp + 0x40], r13
mov rcx, qword [rsp + 0x40]
mov qword [rsp + 0x68], rcx
mov qword [rsp + 0x40], rbx
mov rcx, qword [rsp + 0x40]
mov qword [rbp + 0x30], rcx
mov qword [rsp + 0x40], r13
mov rax, qword [rsp + 0x40]
mov qword [rbp + 0x38], rax
movdqa xmm0, xmmword [rsp + 0x60]
xorps xmm0, xmmword [rbp + 0x30]
movdqa xmmword [rsp + 0x60], xmm0
lea rdx, [rsp + 0x60]
lea rcx, [rbp - 0x80]
call fcn.14001a5b0
nop
lea rcx, [rsp + 0x50]
mov r8, 0xffffffffffffffff
inc r8
cmp byte [rcx + r8], 0
jne 0x140037432
lea rdx, [rsp + 0x50]
mov rcx, rax
call fcn.140016c60
xorps xmm0, xmm0
movups xmmword [rbp - 0x30], xmm0
mov qword [rbp - 0x20], r12
mov qword [rbp - 0x18], r12
movups xmm0, xmmword [rax]
movups xmmword [rbp - 0x30], xmm0
movups xmm1, xmmword [rax + 0x10]
movups xmmword [rbp - 0x20], xmm1
mov qword [rax + 0x10], r12
mov qword [rax + 0x18], reloc.WS2_32.dll_ntohs
mov byte [rax], 0
mov rdx, qword [rbp - 0x68]
cmp rdx, 0xf
jbe 0x1400374b1
inc rdx
mov rcx, qword [rbp - 0x80]
mov rax, rcx
cmp rdx, 0x1000
jb 0x1400374ac
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x140037775
call fcn.140039950
mov qword [rbp - 0x70], r12
mov qword [rbp - 0x68], reloc.WS2_32.dll_ntohs
mov byte [rbp - 0x80], 0
mov rdx, qword [rbp - 0x48]
cmp rdx, 0xf
jbe 0x1400374fc
inc rdx
mov rcx, qword [rbp - 0x60]
mov rax, rcx
cmp rdx, 0x1000
jb 0x1400374f7
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x140037769
call fcn.140039950
mov qword [rbp - 0x50], r12
mov qword [rbp - 0x48], reloc.WS2_32.dll_ntohs
mov byte [rbp - 0x60], 0
lea rcx, [rbp - 0x30]
cmp qword [rbp - 0x18], 0xf
cmova rcx, qword [rbp - 0x30]
mov qword [rsp + 0x30], r12
mov dword [rsp + 0x28], r12d
mov dword [rsp + 0x20], 3
xor r9d, r9d
mov edx, 0xc0000000
lea r8d, [r9 + 3]
call qword [sym.imp.KERNEL32.dll_CreateFileA]
mov rbx, rax
cmp rax, 0xffffffffffffffff
jne 0x14003758b
mov rdx, qword [rbp - 0x18]
cmp rdx, 0xf
jbe 0x140037719
inc rdx
mov rcx, qword [rbp - 0x30]
cmp rdx, 0x1000
mov rax, rcx
jb 0x140037581
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x14003776f
call fcn.140039950
jmp 0x140037719
mov qword [rbp - 0x10], r12
mov dword [rbp - 0x38], r12d
mov qword [rsp + 0x38], r12
lea rax, [rbp - 0x38]
mov qword [rsp + 0x30], rax
mov dword [rsp + 0x28], 8
lea rax, [rbp - 0x40]
mov qword [rsp + 0x20], rax
mov r9d, ntohs
lea r8, [rbp - 0x10]
mov edx, 0x2d1400
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_DeviceIoControl]
test eax, eax
jne 0x1400375dc
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_CloseHandle]
jmp 0x140037547
mov ecx, dword [rbp - 0x3c]
call fcn.140039fc4
mov rdi, rax
mov qword [rsp + 0x38], r12
lea rax, [rbp - 0x38]
mov qword [rsp + 0x30], rax
mov ecx, dword [rbp - 0x3c]
mov dword [rsp + 0x28], ecx
mov qword [rsp + 0x20], rdi
mov r9d, ntohs
lea r8, [rbp - 0x10]
mov edx, 0x2d1400
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_DeviceIoControl]
test eax, eax
je 0x1400376c6
mov qword [rsp + 0x38], r12
lea rax, [rbp - 0x38]
mov qword [rsp + 0x30], rax
mov dword [rsp + 0x28], 0x18
lea rax, [rbp]
mov qword [rsp + 0x20], rax
xor r9d, r9d
xor r8d, r8d
mov edx, 0x70000
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_DeviceIoControl]
test eax, eax
je 0x1400376c6
mov eax, dword [rbp + 0x14]
mov ecx, dword [rbp + 0x10]
imul rax, rcx
mov ecx, dword [rbp + 0xc]
imul rax, rcx
imul rax, qword [rbp]
cqo
and edx, 0xfffff
add rax, rdx
sar rax, 0x14
mov ecx, dword [rdi + 0x1c]
cmp ecx, 9
je 0x14003768a
cmp ecx, 1
jne 0x140037692
mov ecx, ntohs
mov dword [rdi + 0x1c], ecx
mov byte [rsp + 0x70], r14b
mov dword [rsp + 0x74], ecx
mov qword [rsp + 0x78], rax
mov rdx, qword [rsi + 8]
cmp rdx, qword [rsi + 0x10]
je 0x1400376b9
movups xmm0, xmmword [rsp + 0x70]
movups xmmword [rdx], xmm0
add qword [rsi + 8], 0x10
jmp 0x1400376c6
lea r8, [rsp + 0x70]
mov rcx, rsi
call fcn.140037c10
mov rcx, rdi
call fcn.140039950
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_CloseHandle]
nop
mov rdx, qword [rbp - 0x18]
cmp rdx, 0xf
jbe 0x14003770f
mov rcx, qword [rbp - 0x30]
inc rdx
mov rax, rcx
cmp rdx, 0x1000
jb 0x14003770a
mov rcx, qword [rcx - 8]
sub rax, rcx
add rdx, 0x27
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x14003776f
call fcn.140039950
movabs rdi, 0xadcec37b6a2e8aa5
movabs rax, 0xadcec37b3600d6c3
movabs rbx, 0xadcec37b3600d6f9
inc r14b
cmp r14b, 0x5a
jle 0x140037360
mov al, 1
mov rcx, qword [rbp + 0x40]
xor rcx, rsp
call fcn.140039930
lea r11, [rsp + 0x150]
mov rbx, qword [r11 + 0x38]
mov rsi, qword [r11 + 0x40]
mov rdi, qword [r11 + 0x48]
mov rsp, r11
pop r15
pop r14
pop r13
pop r12
pop rbp
ret
call fcn.14004867c
nop
call fcn.14004867c
nop
call fcn.14004867c
int3