Function at 0x1400380c0
Capabilities:
Get disk information

Disassembly:
push rsi
push rdi
push rbx
sub rsp, 0x290
mov rsi, rdx
mov rbx, rcx
mov rax, qword [0x14029a038]
xor rax, rsp
mov qword [rsp + 0x288], rax
lea rdi, [rsp + 0x70]
mov rcx, rdi
call fcn.1401bc8c0
cmp byte [rdi + 0x17], 0
jns 0x1400380fa
mov rdi, qword [rsp + 0x70]
lea rdx, [0x14027b302]
mov r8d, 4
mov rcx, rdi
call fcn.14017c2cc
xor ecx, ecx
test eax, eax
sete cl
movzx eax, byte [rsp + 0x87]
test al, al
jns 0x140038129
mov rdx, qword [rsp + 0x78]
jmp 0x14003812e
mov edx, eax
and edx, 0x7f
lea r8, [rcx*4 + 5]
cmp rdx, r8
jb 0x1400384c4
shl rcx, 2
test al, al
jns 0x14003814e
mov rax, qword [rsp + 0x70]
jmp 0x140038153
lea rax, [rsp + 0x70]
lea rcx, [rax + rcx*2]
lea rdx, str.pipe_
mov r8d, 5
call fcn.14017c2cc
test eax, eax
sete dil
mov al, byte [rsp + 0x87]
test al, al
jns 0x140038184
mov rcx, qword [rsp + 0x70]
call fcn.14017b254
test dil, dil
jne 0x1400384cb
xorps xmm0, xmm0
lea rdi, [rsp + 0x50]
movaps xmmword [rdi], xmm0
mov qword [rdi + 0x10], 0
mov rcx, rbx
mov rdx, rdi
call fcn.140160ce0
test al, al
je 0x1400384d0
movabs rax, 0xaaaaaaaaaaaaaaaa
lea rbx, [rsp + 0x30]
mov qword [rbx + 0x10], rax
movaps xmm0, xmmword [0x140270690]
movaps xmmword [rbx], xmm0
mov rcx, rbx
mov rdx, rsi
call fcn.1401bc8c0
mov al, byte [rbx + 0x17]
movzx r9d, al
test r9b, r9b
jns 0x14003848e
mov rcx, qword [rsp + 0x38]
test rcx, rcx
je 0x1400384ee
mov rbx, qword [rsp + 0x30]
cmp word [rbx + rcx*2 - 2], 0x5c
je 0x1400384d4
test al, al
jns 0x140038215
mov rdx, qword [rsp + 0x30]
jmp 0x14003821a
lea rdx, [rsp + 0x30]
cmp byte [rsp + 0x67], 0
jns 0x140038226
mov rdi, qword [rsp + 0x50]
mov rcx, rdi
call fcn.14017c314
test eax, eax
je 0x1400384df
movzx ebx, byte [rsp + 0x47]
mov ecx, ebx
and ecx, 0x7c
test bl, bl
mov rax, qword [rsp + 0x38]
cmovs rcx, rax
cmp rcx, 4
jb 0x1400384e7
test bl, bl
jns 0x140038260
mov rcx, qword [rsp + 0x30]
jmp 0x140038265
lea rcx, [rsp + 0x30]
lea rdx, [0x14027b302]
mov r8d, 4
call fcn.14017c2cc
test eax, eax
sete dil
jne 0x1400382cf
lea rax, [rsp + 0x48]
mov qword [rsp + 0x20], rax
lea rcx, [rsp + 0x70]
lea rsi, [rsp + 0x30]
mov r8d, 4
mov rdx, rsi
mov r9, 0xffffffffffffffff
call fcn.1400239e0
cmp byte [rsi + 0x17], 0
jns 0x1400382b8
mov rcx, qword [rsp + 0x30]
call fcn.14017b254
mov rax, qword [rsp + 0x80]
mov qword [rsp + 0x40], rax
movups xmm0, xmmword [rsp + 0x70]
movaps xmmword [rsp + 0x30], xmm0
mov rax, qword [rsp + 0x38]
mov bl, byte [rsp + 0x47]
mov ecx, ebx
and cl, 0x7f
test bl, bl
movzx ecx, cl
cmovs rcx, rax
cmp rcx, 3
jb 0x1400384bd
test bl, bl
jns 0x140038498
test rax, rax
je 0x1400384f1
mov rcx, qword [rsp + 0x30]
cmp word [rcx + 2], 0x3a
jne 0x1400384bd
cmp rax, 2
jb 0x1400384f4
cmp word [rcx + 4], 0x5c
jne 0x1400384bd
movzx eax, word [rcx]
and eax, 0xffffffdf
add eax, 0xffffffbf
cmp ax, 0x1a
setb al
test al, al
jne 0x140038344
xor dil, 1
je 0x14003854d
test al, al
je 0x1400384b9
mov qword [rsp + 0x280], 0
lea rsi, [rsp + 0x70]
mov r8d, 0x208
mov rcx, rsi
mov dl, 0xaa
call fcn.1401808d0
test bl, bl
jns 0x140038378
mov rax, qword [rsp + 0x30]
jmp 0x14003837d
lea rax, [rsp + 0x30]
mov eax, dword [rax]
lea rcx, [rsp + 0x280]
mov dword [rcx], eax
mov rdx, rsi
mov r8d, 0x104
call qword [sym.imp.KERNEL32.dll_QueryDosDeviceW]
xor esi, esi
cmp eax, 2
jb 0x14003844f
cmp eax, 0x104
je 0x14003844f
lea rcx, [rsp + 0x70]
call fcn.14017bd98
mov esi, eax
movzx eax, byte [rsp + 0x47]
test al, al
jns 0x1400383ca
mov rax, qword [rsp + 0x38]
jmp 0x1400383cd
and eax, 0x7f
lea rcx, [rsi + rax]
add rcx, 0xfffffffffffffffe
movzx eax, byte [rsp + 0x67]
test al, al
jns 0x1400383e5
mov rdx, qword [rsp + 0x58]
jmp 0x1400383ea
mov edx, eax
and edx, 0x7f
cmp rcx, rdx
jne 0x1400384b9
test al, al
jns 0x1400383fe
mov rcx, qword [rsp + 0x50]
jmp 0x140038403
lea rcx, [rsp + 0x50]
lea rdx, [rsp + 0x70]
mov r8, rsi
call fcn.14017c2cc
test eax, eax
jne 0x1400384b9
lea rax, [rsp + 0x34]
mov rdx, qword [rax - 4]
add rdx, 4
cmp byte [rax + 0x13], 0
cmovns rdx, rax
cmp byte [rsp + 0x67], 0
jns 0x14003843b
mov rax, qword [rsp + 0x50]
jmp 0x140038440
lea rax, [rsp + 0x50]
lea rcx, [rax + rsi*2]
call fcn.14017c314
test eax, eax
sete sil
cmp byte [rsp + 0x47], 0
jns 0x140038460
mov rcx, qword [rsp + 0x30]
call fcn.14017b254
cmp byte [rsp + 0x67], 0
jns 0x140038471
mov rcx, qword [rsp + 0x50]
call fcn.14017b254
mov rcx, qword [rsp + 0x288]
xor rcx, rsp
call fcn.14017e7b0
mov eax, esi
add rsp, 0x290
pop rbx
pop rdi
pop rsi
ret
je 0x1400384ee
mov rcx, r9
jmp 0x1400381fe
je 0x1400384f1
cmp word [rsp + 0x32], 0x3a
jne 0x1400384bd
cmp bl, 1
jbe 0x1400384f4
cmp word [rsp + 0x34], 0x5c
jne 0x1400384bd
lea rcx, [rsp + 0x30]
jmp 0x140038326
xor esi, esi
jmp 0x14003844f
xor eax, eax
jmp 0x140038336
xor edi, edi
jmp 0x140038176
mov sil, 1
jmp 0x140038471
xor esi, esi
jmp 0x140038460
test al, al
jns 0x1400384f7
mov r9, qword [rsp + 0x38]
jmp 0x1400384fb
mov sil, 1
jmp 0x14003844f
xor edi, edi
jmp 0x1400382d8
int3
int3
int3
and r9d, 0x7f
dec r9
lea rax, [rsp + 0x48]
mov qword [rsp + 0x20], rax
lea rcx, [rsp + 0x70]
lea rsi, [rsp + 0x30]
mov rdx, rsi
xor r8d, r8d
call fcn.1400239e0
cmp byte [rsi + 0x17], 0
jns 0x14003852d
mov rcx, qword [rsp + 0x30]
call fcn.14017b254
mov rax, qword [rsp + 0x80]
mov qword [rsp + 0x40], rax
movups xmm0, xmmword [rsp + 0x70]
movaps xmmword [rsp + 0x30], xmm0
mov al, byte [rsp + 0x47]
jmp 0x14003820a
xorps xmm0, xmm0
lea rsi, [rsp + 0x70]
movaps xmmword [rsi], xmm0
mov qword [rsi + 0x10], 0
lea rcx, [rsp + 0x50]
mov rdx, rsi
call fcn.140046290
test al, al
je 0x14003857f
cmp byte [rsp + 0x47], 0
jns 0x140038583
mov rdx, qword [rsp + 0x30]
jmp 0x140038588
xor esi, esi
jmp 0x1400385a5
lea rdx, [rsp + 0x30]
cmp byte [rsp + 0x87], 0
jns 0x140038597
mov rsi, qword [rsp + 0x70]
mov rcx, rsi
call fcn.14017c314
test eax, eax
sete sil
cmp byte [rsp + 0x87], 0
jns 0x14003844f
mov rcx, qword [rsp + 0x70]
call fcn.14017b254
jmp 0x14003844f