Function at 0x140052ec0
Capabilities:
Reference wmi statements

Disassembly:
mov qword [rsp + 0x18], rbx
push rsi
push rdi
push r14
sub rsp, 0x270
mov rax, qword [0x14031b940]
xor rax, rsp
mov qword [rsp + 0x268], rax
mov r14, rdx
xor edi, edi
cmp byte [rcx + 0x28], dil
jne 0x140052ef4
xor al, al
jmp 0x140053316
xor sil, sil
mov byte [rsp + 0x30], sil
lea r8, [rsp + 0x48]
lea rdx, str.SELECT__FROM_Win32_CDROMDrive
call fcn.140055150
test al, al
je 0x14005330b
mov qword [rsp + 0x38], rdi
mov dword [rsp + 0x40], edi
mov rcx, qword [rsp + 0x48]
mov rax, qword [rcx]
lea rdx, [rsp + 0x40]
mov qword [rsp + 0x20], rdx
lea r9, [rsp + 0x38]
mov rbx, 0xffffffffffffffff
lea r8d, [rbx + 2]
mov edx, ebx
call qword [rax + 0x20]
test eax, eax
jne 0x1400532ff
lea rcx, [rsp + 0x200]
call fcn.1400293a0
nop
lea rcx, [rsp + 0x1e0]
call qword [sym.imp.OLEAUT32.dll_VariantClear]
nop
lea r9, [rsp + 0x1e0]
lea r8, str.Name
mov rdx, qword [rsp + 0x38]
call fcn.140054890
test al, al
je 0x140053099
lea rdx, [rsp + 0x1e0]
lea rcx, [rsp + 0x58]
call fcn.1400568b0
nop
mov rax, qword [rax]
test rax, rax
je 0x140052fab
mov rdx, qword [rax]
jmp 0x140052fae
mov rdx, rdi
lea rcx, [rsp + 0x248]
call fcn.1400092fc
cmp qword [rax + 0x18], 7
jbe 0x140052fc5
mov rax, qword [rax]
test rax, rax
jne 0x140052fcf
mov r8d, edi
jmp 0x140052fdd
mov r8, rbx
inc r8
cmp word [rax + r8*2], 0
jne 0x140052fd2
mov rdx, rax
lea rcx, [rsp + 0x208]
call fcn.140002b6c
mov rdx, qword [rsp + 0x260]
cmp rdx, 7
jbe 0x140053035
lea rdx, [rdx*2 + 2]
mov rcx, qword [rsp + 0x248]
mov rax, rcx
cmp rdx, 0x1000
jb 0x140053030
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x14005333a
call fcn.140003e94
movdqa xmm0, xmmword [0x1402d4800]
movdqu xmmword [rsp + 0x258], xmm0
mov word [rsp + 0x248], di
mov rsi, qword [rsp + 0x58]
test rsi, rsi
je 0x140053099
mov eax, ebx
lock xadd dword [rsi + 0x10], eax
cmp eax, 1
jne 0x140053099
test rsi, rsi
je 0x140053099
mov rcx, qword [rsi]
test rcx, rcx
je 0x14005307a
call qword [sym.imp.OLEAUT32.dll_SysStringLen]
mov qword [rsi], rdi
mov rcx, qword [rsi + 8]
test rcx, rcx
je 0x14005308c
call fcn.140003e94
mov qword [rsi + 8], rdi
mov edx, 0x18
mov rcx, rsi
call fcn.140003e94
lea r9, [rsp + 0x1e0]
lea r8, str.PNPDeviceID
mov rdx, qword [rsp + 0x38]
call fcn.140054890
test al, al
je 0x140053147
xorps xmm0, xmm0
xor eax, eax
movups xmmword [rsp + 0x1c0], xmm0
mov qword [rsp + 0x1d0], rax
lea rcx, [rsp + 0x1c0]
call qword [sym.imp.OLEAUT32.dll_VariantClear]
nop
mov r9d, 8
xor r8d, r8d
lea rdx, [rsp + 0x1e0]
lea rcx, [rsp + 0x1c0]
call qword [sym.imp.OLEAUT32.dll_VariantTimeToDosDateTime]
test eax, eax
js 0x140053340
mov rdx, qword [rsp + 0x1c8]
test rdx, rdx
jne 0x140053117
mov r8d, edi
jmp 0x14005312b
mov r8, rbx
nop word [rax + rax]
inc r8
cmp word [rdx + r8*2], 0
jne 0x140053120
lea rcx, [rsp + 0x218]
call fcn.140002b6c
nop
lea rcx, [rsp + 0x1c0]
call qword [sym.imp.OLEAUT32.dll_VariantCopy]
lea r9, [rsp + 0x1e0]
lea r8, str.Drive
mov rdx, qword [rsp + 0x38]
call fcn.140054890
test al, al
je 0x1400531f7
xorps xmm0, xmm0
xor eax, eax
movups xmmword [rsp + 0x1c0], xmm0
mov qword [rsp + 0x1d0], rax
lea rcx, [rsp + 0x1c0]
call qword [sym.imp.OLEAUT32.dll_VariantClear]
nop
mov r9d, 8
xor r8d, r8d
lea rdx, [rsp + 0x1e0]
lea rcx, [rsp + 0x1c0]
call qword [sym.imp.OLEAUT32.dll_VariantTimeToDosDateTime]
test eax, eax
js 0x140053348
mov rdx, qword [rsp + 0x1c8]
test rdx, rdx
jne 0x1400531c5
mov r8d, edi
jmp 0x1400531db
mov r8, rbx
nop dword [rax + rax]
inc r8
cmp word [rdx + r8*2], 0
jne 0x1400531d0
lea rcx, [rsp + 0x220]
call fcn.140002b6c
nop
lea rcx, [rsp + 0x1c0]
call qword [sym.imp.OLEAUT32.dll_VariantCopy]
lea r9, [rsp + 0x1e0]
lea r8, str.MediaType
mov rdx, qword [rsp + 0x38]
call fcn.140054890
test al, al
je 0x14005329b
xorps xmm0, xmm0
xor eax, eax
movups xmmword [rsp + 0x1c0], xmm0
mov qword [rsp + 0x1d0], rax
lea rcx, [rsp + 0x1c0]
call qword [sym.imp.OLEAUT32.dll_VariantClear]
nop
mov r9d, 8
xor r8d, r8d
lea rdx, [rsp + 0x1e0]
lea rcx, [rsp + 0x1c0]
call qword [sym.imp.OLEAUT32.dll_VariantTimeToDosDateTime]
test eax, eax
js 0x140053350
mov rdx, qword [rsp + 0x1c8]
test rdx, rdx
je 0x14005327c
inc rbx
cmp word [rdx + rbx*2], 0
jne 0x140053270
mov edi, ebx
mov r8d, edi
lea rcx, [rsp + 0x210]
call fcn.140002b6c
nop
lea rcx, [rsp + 0x1c0]
call qword [sym.imp.OLEAUT32.dll_VariantCopy]
mov rax, qword [r14 + 8]
cmp rax, qword [r14 + 0x10]
je 0x1400532bc
lea rdx, [rsp + 0x200]
mov rcx, rax
call fcn.140029f30
add qword [r14 + 8], 0x28
jmp 0x1400532cf
lea r8, [rsp + 0x200]
mov rdx, rax
mov rcx, r14
call fcn.140056480
mov sil, 1
mov byte [rsp + 0x30], sil
mov rcx, qword [rsp + 0x38]
mov rax, qword [rcx]
call qword [rax + reloc.OLEAUT32.dll_SafeArrayGetDim]
nop
lea rcx, [rsp + 0x1e0]
call qword [sym.imp.OLEAUT32.dll_VariantCopy]
nop
lea rcx, [rsp + 0x200]
call fcn.140029580
mov rcx, qword [rsp + 0x48]
mov rax, qword [rcx]
call qword [rax + reloc.OLEAUT32.dll_SafeArrayGetDim]
nop
jmp 0x140053312
movzx eax, sil
mov rcx, qword [rsp + 0x268]
xor rcx, rsp
call fcn.140220ab0
mov rbx, qword [rsp + 0x2a0]
add rsp, 0x270
pop r14
pop rdi
pop rsi
ret
call fcn.14022a250
nop
mov ecx, eax
call fcn.140002e3c
nop
mov ecx, eax
call fcn.140002e3c
nop
mov ecx, eax
call fcn.140002e3c
int3