Function at 0x1400018e0
Capabilities:
Get disk information

Disassembly:
mov r11, rsp
push rsi
push rdi
push r12
push r13
push r14
sub rsp, 0x320
mov qword [rsp + 0x58], 0xfffffffffffffffe
mov qword [r11 + 0x18], rbx
mov qword [r11 + 0x20], rbp
mov rax, qword [0x140126108]
xor rax, rsp
mov qword [rsp + 0x310], rax
mov rdi, rdx
mov rsi, rcx
mov word [rsp + 0x240], 0
xor edx, edx
mov r8d, 0xc6
lea rcx, [r11 - 0x106]
call fcn.1400a0a70
movzx r9d, word [rdi]
lea r8, [0x1400e83e8]
mov edx, 2
lea rcx, [rsp + 0x240]
call fcn.14009c650
call fcn.140075174
mov rdx, rax
xor r14d, r14d
mov ecx, r14d
test rax, rax
setne cl
test ecx, ecx
jne 0x140001979
mov ecx, 0x80004005
call fcn.140001000
int3
mov rax, qword [rax]
mov rcx, rdx
call qword [rax + reloc.OLEAUT32.dll_SafeArrayGetElement]
lea rbx, [rax + 0x18]
mov qword [rsp + 0x50], rbx
lea rcx, [rsp + 0x240]
lea rax, [rsp + 0x240]
or r13, 0xffffffffffffffff
test rax, 0xffffffffffff0000
jne 0x1400019cf
movzx edi, cx
mov ecx, edi
call fcn.140076014
test rax, rax
je 0x140001ad7
mov r8d, edi
mov rdx, rax
lea rcx, [rsp + 0x50]
call fcn.140056a00
jmp 0x140001ad7
xor eax, eax
mov rcx, r13
lea rdi, [rsp + 0x240]
repne scasw ax, word [rdi]
not rcx
sub rcx, 1
mov rdi, rcx
test ecx, ecx
jne 0x140001a4d
lea rdx, [rbx - 0x18]
mov rdi, qword [rdx]
cmp dword [rdx + 8], eax
je 0x140001ad7
cmp dword [rdx + 0x10], eax
jge 0x140001a1e
cmp dword [rbx - 0xc], eax
jge 0x140001a12
mov ecx, 0x80070057
call fcn.140001000
int3
mov dword [rbx - 0x10], r14d
mov word [rbx], ax
jmp 0x140001ad7
mov eax, r13d
lock xadd dword [rdx + 0x10], eax
add eax, 0xffffffff
test eax, eax
jg 0x140001a36
mov rcx, qword [rdx]
mov rax, qword [rcx]
call qword [rax + reloc.WS2_32.dll_htonl]
mov rax, qword [rdi]
mov rcx, rdi
call qword [rax + reloc.OLEAUT32.dll_SafeArrayGetElement]
add rax, 0x18
mov qword [rsp + 0x50], rax
jmp 0x140001ad7
mov ebp, dword [rbx - 0x10]
lea r12, [rsp + 0x240]
sub r12, rbx
sar r12, 1
mov ecx, 1
sub ecx, dword [rbx - 8]
mov eax, dword [rbx - 0xc]
sub eax, edi
or eax, ecx
jge 0x140001a80
mov edx, edi
lea rcx, [rsp + 0x50]
call fcn.140006b70
mov rbx, qword [rsp + 0x50]
cmp r12, rbp
ja 0x140001aa0
movsxd rax, edi
lea rbp, [rax + rax]
lea r8, [rbx + r12*2]
mov r9, rbp
mov rdx, rbp
mov rcx, rbx
call fcn.14009ce60
jmp 0x140001abd
movsxd rax, edi
lea rbp, [rax + rax]
mov r9, rbp
lea r8, [rsp + 0x240]
mov rdx, rbp
mov rcx, rbx
call fcn.14009d1a0
test edi, edi
js 0x140001fb8
cmp edi, dword [rbx - 0xc]
jg 0x140001fb8
mov dword [rbx - 0x10], edi
mov word [rbx + rbp], 0
lea rcx, [rsp + 0x240]
call qword [sym.imp.KERNEL32.dll_GetDriveTypeW]
sub eax, 2
je 0x140001e8e
sub eax, 1
je 0x140001da9
sub eax, 1
je 0x140001cc4
cmp eax, 1
je 0x140001bee
lea rdx, [rsp + 0x50]
mov rcx, rsi
call fcn.1400046f0
test eax, eax
jne 0x140001b65
mov qword [rsp + 0x48], 0xffffffffffff0002
mov rax, qword [0x14013b820]
mov qword [rsp + 0x40], rax
mov qword [rsp + 0x38], r14
mov dword [rsp + 0x30], r14d
mov dword [rsp + 0x28], r14d
mov dword [rsp + 0x20], 5
mov r9d, 5
lea r8, [rsp + 0x240]
lea edx, [r9 + 0x1e]
mov rcx, rsi
call fcn.140076198
jmp 0x140001f6e
xor edx, edx
lea r8d, [rdx + 0x60]
lea rcx, [rsp + 0x120]
call fcn.1400a0a70
mov rdx, qword [0x14013b820]
mov qword [rsp + 0x120], rdx
mov qword [rsp + 0x128], 0xffffffffffff0002
mov dword [rsp + 0x130], 0x63
lea rax, [rsp + 0x240]
mov qword [rsp + 0x148], rax
mov dword [rsp + 0x154], 5
mov dword [rsp + 0x158], 5
mov dword [rsp + 0x15c], 1
lea r9, [rsp + 0x120]
xor r8d, r8d
mov edx, 0x1132
mov rcx, qword [rsi + 0x40]
call qword [sym.imp.USER32.dll_SendMessageW]
jmp 0x140001f6e
lea rdx, [rsp + 0x50]
mov rcx, rsi
call fcn.1400046f0
test eax, eax
jne 0x140001c4a
mov qword [rsp + 0x48], 0xffffffffffff0002
mov rax, qword [0x14013b820]
mov qword [rsp + 0x40], rax
mov qword [rsp + 0x38], r14
mov dword [rsp + 0x30], r14d
mov dword [rsp + 0x28], r14d
mov dword [rsp + 0x20], 2
mov r9d, 2
lea r8, [rsp + 0x240]
lea edx, [r9 + 0x21]
mov rcx, rsi
call fcn.140076198
jmp 0x140001f6e
xor edx, edx
lea r8d, [rdx + 0x60]
lea rcx, [rsp + 0x60]
call fcn.1400a0a70
mov rdx, qword [0x14013b820]
mov qword [rsp + 0x60], rdx
mov qword [rsp + 0x68], 0xffffffffffff0002
mov dword [rsp + 0x70], 0x63
lea rax, [rsp + 0x240]
mov qword [rsp + 0x88], rax
mov dword [rsp + 0x94], 2
mov dword [rsp + 0x98], 2
mov dword [rsp + 0x9c], 1
lea r9, [rsp + 0x60]
xor r8d, r8d
mov edx, 0x1132
mov rcx, qword [rsi + 0x40]
call qword [sym.imp.USER32.dll_SendMessageW]
jmp 0x140001f6e
lea rdx, [rsp + 0x50]
mov rcx, rsi
call fcn.1400046f0
test eax, eax
jne 0x140001d20
mov qword [rsp + 0x48], 0xffffffffffff0002
mov rax, qword [0x14013b820]
mov qword [rsp + 0x40], rax
mov qword [rsp + 0x38], r14
mov dword [rsp + 0x30], r14d
mov dword [rsp + 0x28], r14d
mov dword [rsp + 0x20], 6
mov r9d, 6
lea r8, [rsp + 0x240]
lea edx, [r9 + 0x1d]
mov rcx, rsi
call fcn.140076198
jmp 0x140001f6e
xor edx, edx
lea r8d, [rdx + 0x60]
lea rcx, [rsp + 0x1e0]
call fcn.1400a0a70
mov rdx, qword [0x14013b820]
mov qword [rsp + 0x1e0], rdx
mov qword [rsp + 0x1e8], 0xffffffffffff0002
mov dword [rsp + 0x1f0], 0x63
lea rax, [rsp + 0x240]
mov qword [rsp + 0x208], rax
mov dword [rsp + 0x214], 6
mov dword [rsp + 0x218], 6
mov dword [rsp + 0x21c], 1
lea r9, [rsp + 0x1e0]
xor r8d, r8d
mov edx, 0x1132
mov rcx, qword [rsi + 0x40]
call qword [sym.imp.USER32.dll_SendMessageW]
jmp 0x140001f6e
lea rdx, [rsp + 0x50]
mov rcx, rsi
call fcn.1400046f0
test eax, eax
jne 0x140001e05
mov qword [rsp + 0x48], 0xffffffffffff0002
mov rax, qword [0x14013b820]
mov qword [rsp + 0x40], rax
mov qword [rsp + 0x38], r14
mov dword [rsp + 0x30], r14d
mov dword [rsp + 0x28], r14d
mov dword [rsp + 0x20], 5
mov r9d, 5
lea r8, [rsp + 0x240]
lea edx, [r9 + 0x1e]
mov rcx, rsi
call fcn.140076198
jmp 0x140001f6e
xor edx, edx
lea r8d, [rdx + 0x60]
lea rcx, [rsp + 0xc0]
call fcn.1400a0a70
mov rdx, qword [0x14013b820]
mov qword [rsp + 0xc0], rdx
mov qword [rsp + 0xc8], 0xffffffffffff0002
mov dword [rsp + 0xd0], 0x63
lea rax, [rsp + 0x240]
mov qword [rsp + 0xe8], rax
mov dword [rsp + 0xf4], 5
mov dword [rsp + 0xf8], 5
mov dword [rsp + 0xfc], 1
lea r9, [rsp + 0xc0]
xor r8d, r8d
mov edx, 0x1132
mov rcx, qword [rsi + 0x40]
call qword [sym.imp.USER32.dll_SendMessageW]
jmp 0x140001f6e
lea rdx, [rsp + 0x50]
mov rcx, rsi
call fcn.1400046f0
test eax, eax
jne 0x140001eea
mov qword [rsp + 0x48], 0xffffffffffff0002
mov rax, qword [0x14013b820]
mov qword [rsp + 0x40], rax
mov qword [rsp + 0x38], r14
mov dword [rsp + 0x30], r14d
mov dword [rsp + 0x28], r14d
mov dword [rsp + 0x20], 3
mov r9d, 3
lea r8, [rsp + 0x240]
lea edx, [r9 + 0x20]
mov rcx, rsi
call fcn.140076198
jmp 0x140001f6e
xor edx, edx
lea r8d, [rdx + 0x60]
lea rcx, [rsp + 0x180]
call fcn.1400a0a70
mov rdx, qword [0x14013b820]
mov qword [rsp + 0x180], rdx
mov qword [rsp + 0x188], 0xffffffffffff0002
mov dword [rsp + 0x190], 0x63
lea rax, [rsp + 0x240]
mov qword [rsp + 0x1a8], rax
mov dword [rsp + 0x1b4], 3
mov dword [rsp + 0x1b8], 3
mov dword [rsp + 0x1bc], 1
lea r9, [rsp + 0x180]
xor r8d, r8d
mov edx, 0x1132
mov rcx, qword [rsi + 0x40]
call qword [sym.imp.USER32.dll_SendMessageW]
mov r9, qword [0x14013b820]
mov edx, 0x1102
mov r8d, 2
mov rcx, qword [rsi + 0x40]
call qword [sym.imp.USER32.dll_SendMessageW]
xor edx, edx
mov rcx, rsi
call fcn.140003d20
nop
mov rdx, qword [rsp + 0x50]
add rdx, 0xffffffffffffffe8
lock xadd dword [rdx + 0x10], r13d
add r13d, 0xffffffff
test r13d, r13d
jg 0x140001fc3
mov rcx, qword [rdx]
mov rax, qword [rcx]
call qword [rax + reloc.WS2_32.dll_htonl]
jmp 0x140001fc3
mov ecx, 0x80070057
call fcn.140001000
nop
mov rcx, qword [rsp + 0x310]
xor rcx, rsp
call fcn.14009cca0
lea r11, [rsp + 0x320]
mov rbx, qword [r11 + 0x40]
mov rbp, qword [r11 + 0x48]
mov rsp, r11
pop r14
pop r13
pop r12
pop rdi
pop rsi
ret