Function at 0x14005a820
Capabilities:
Reference wmi statements

Disassembly:
push rsi
push rdi
push r14
sub rsp, 0x370
mov qword [rsp + 0x128], 0xfffffffffffffffe
mov qword [rsp + 0x3a0], rbx
mov rax, qword [0x14035b8c0]
xor rax, rsp
mov qword [rsp + 0x360], rax
mov r14, rdx
xor edi, edi
mov dword [rsp + 0x34], edi
cmp byte [rcx + 0x28], dil
jne 0x14005a868
xor al, al
jmp 0x14005acfb
xor sil, sil
mov byte [rsp + 0x30], sil
lea r8, [rsp + 0x68]
lea rdx, str.SELECT__FROM_Win32_CDROMDrive
call fcn.14005c730
test al, al
je 0x14005acf0
mov qword [rsp + 0x38], rdi
mov dword [rsp + 0x48], edi
mov rcx, qword [rsp + 0x68]
mov rax, qword [rcx]
lea rdx, [rsp + 0x48]
mov qword [rsp + 0x20], rdx
lea r9, [rsp + 0x38]
mov rbx, 0xffffffffffffffff
lea r8d, [rbx + 2]
mov edx, ebx
call qword [rax + 0x20]
mov dword [rsp + 0xe0], eax
test eax, eax
jne 0x14005ace4
lea rax, vtable.srl::Value.0
mov qword [rsp + 0x70], rax
lea rax, vtable.srl::Name.0
mov qword [rsp + 0x70], rax
lea rcx, [rsp + 0x78]
call fcn.1400152d0
lea rcx, [rsp + 0x80]
call fcn.1400152d0
lea rcx, [rsp + 0x88]
call fcn.1400152d0
lea rcx, [rsp + 0x90]
call fcn.1400152d0
nop
lea rcx, [rsp + 0x50]
call qword [sym.imp.OLEAUT32.dll_VariantClear]
nop
lea r9, [rsp + 0x50]
lea r8, str.Name
mov rdx, qword [rsp + 0x38]
call fcn.14005c040
test al, al
je 0x14005aa97
mov qword [rsp + 0x40], rdi
cmp word [rsp + 0x50], 8
jne 0x14005a95a
mov rdx, qword [rsp + 0x58]
lea rcx, [rsp + 0x40]
call fcn.14005e0d0
jmp 0x14005a9b6
lea rcx, [rsp + 0x110]
call qword [sym.imp.OLEAUT32.dll_VariantClear]
nop
mov r9d, 8
xor r8d, r8d
lea rdx, [rsp + 0x50]
lea rcx, [rsp + 0x110]
call qword [sym.imp.OLEAUT32.dll_VariantTimeToDosDateTime]
mov dword [rsp + 0xe8], eax
test eax, eax
js 0x14005ad1f
mov rdx, qword [rsp + 0x118]
lea rcx, [rsp + 0x40]
call fcn.14005e0d0
nop
lea rcx, [rsp + 0x110]
call qword [sym.imp.OLEAUT32.dll_VariantCopy]
nop
mov rax, qword [rsp + 0x40]
test rax, rax
je 0x14005a9c5
mov rdx, qword [rax]
jmp 0x14005a9c8
mov rdx, rdi
lea rcx, [rsp + 0x340]
call fcn.140009580
mov rdx, rax
mov qword [rsp + 0x130], rax
mov qword [rsp + 0xf8], rax
cmp qword [rax + 0x18], 8
jb 0x14005a9fa
mov rdx, qword [rax]
mov qword [rsp + 0xf8], rdx
test rdx, rdx
jne 0x14005aa03
mov eax, edi
jmp 0x14005aa10
mov rax, rbx
inc rax
cmp word [rdx + rax*2], 0
jne 0x14005aa06
mov dword [rsp + 0x4c], eax
mov r8d, eax
lea rcx, [rsp + 0x78]
call fcn.1400029fc
nop
lea rcx, [rsp + 0x340]
call fcn.140009568
nop
mov rcx, qword [rsp + 0x40]
test rcx, rcx
je 0x14005aa97
mov qword [rsp + 0x100], rcx
mov eax, ebx
lock xadd dword [rcx + 0x10], eax
sub eax, 1
mov dword [rsp + 0xf0], eax
jne 0x14005aa92
mov rsi, qword [rsp + 0x100]
test rsi, rsi
je 0x14005aa92
mov rcx, qword [rsi]
test rcx, rcx
je 0x14005aa73
call qword [sym.imp.OLEAUT32.dll_SysStringLen]
mov qword [rsi], rdi
mov rcx, qword [rsi + 8]
test rcx, rcx
je 0x14005aa85
call fcn.14008a738
mov qword [rsi + 8], rdi
mov edx, 0x18
mov rcx, rsi
call fcn.140004154
mov qword [rsp + 0x40], rdi
lea r9, [rsp + 0x50]
lea r8, str.PNPDeviceID
mov rdx, qword [rsp + 0x38]
call fcn.14005c040
test al, al
je 0x14005ab3f
xor eax, eax
mov qword [rsp + 0x98], rax
mov qword [rsp + 0xa0], rax
mov qword [rsp + 0xa8], rax
lea rcx, [rsp + 0x98]
call qword [sym.imp.OLEAUT32.dll_VariantClear]
nop
mov r9d, 8
xor r8d, r8d
lea rdx, [rsp + 0x50]
lea rcx, [rsp + 0x98]
call qword [sym.imp.OLEAUT32.dll_VariantTimeToDosDateTime]
test eax, eax
js 0x14005ad27
mov rdx, qword [rsp + 0xa0]
test rdx, rdx
jne 0x14005ab13
mov eax, edi
jmp 0x14005ab20
mov rax, rbx
inc rax
cmp word [rdx + rax*2], 0
jne 0x14005ab16
mov r8d, eax
lea rcx, [rsp + 0x88]
call fcn.1400029fc
nop
lea rcx, [rsp + 0x98]
call qword [sym.imp.OLEAUT32.dll_VariantCopy]
lea r9, [rsp + 0x50]
lea r8, str.Drive
mov rdx, qword [rsp + 0x38]
call fcn.14005c040
test al, al
je 0x14005abe9
xor eax, eax
mov qword [rsp + 0xb0], rax
mov qword [rsp + 0xb8], rax
mov qword [rsp + 0xc0], rax
lea rcx, [rsp + 0xb0]
call qword [sym.imp.OLEAUT32.dll_VariantClear]
nop
mov r9d, 8
xor r8d, r8d
lea rdx, [rsp + 0x50]
lea rcx, [rsp + 0xb0]
call qword [sym.imp.OLEAUT32.dll_VariantTimeToDosDateTime]
test eax, eax
js 0x14005ad2f
mov rdx, qword [rsp + 0xb8]
test rdx, rdx
jne 0x14005abbb
mov eax, edi
jmp 0x14005abca
mov rax, rbx
nop
inc rax
cmp word [rdx + rax*2], 0
jne 0x14005abc0
mov r8d, eax
lea rcx, [rsp + 0x90]
call fcn.1400029fc
nop
lea rcx, [rsp + 0xb0]
call qword [sym.imp.OLEAUT32.dll_VariantCopy]
lea r9, [rsp + 0x50]
lea r8, str.MediaType
mov rdx, qword [rsp + 0x38]
call fcn.14005c040
test al, al
je 0x14005ac8c
xor eax, eax
mov qword [rsp + 0xc8], rax
mov qword [rsp + 0xd0], rax
mov qword [rsp + 0xd8], rax
lea rcx, [rsp + 0xc8]
call qword [sym.imp.OLEAUT32.dll_VariantClear]
nop
mov r9d, 8
xor r8d, r8d
lea rdx, [rsp + 0x50]
lea rcx, [rsp + 0xc8]
call qword [sym.imp.OLEAUT32.dll_VariantTimeToDosDateTime]
test eax, eax
js 0x14005ad37
mov rdx, qword [rsp + 0xd0]
test rdx, rdx
je 0x14005ac6d
inc rbx
cmp word [rdx + rbx*2], 0
jne 0x14005ac61
mov edi, ebx
mov r8d, edi
lea rcx, [rsp + 0x80]
call fcn.1400029fc
nop
lea rcx, [rsp + 0xc8]
call qword [sym.imp.OLEAUT32.dll_VariantCopy]
mov rax, qword [r14 + 8]
cmp qword [r14 + 0x10], rax
je 0x14005acaa
lea rdx, [rsp + 0x70]
mov rcx, rax
call fcn.14002c810
add qword [r14 + 8], 0x28
jmp 0x14005acba
lea r8, [rsp + 0x70]
mov rdx, rax
mov rcx, r14
call fcn.14005d7c0
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 + 0x50]
call qword [sym.imp.OLEAUT32.dll_VariantCopy]
nop
lea rcx, [rsp + 0x70]
call fcn.14002ba10
mov rcx, qword [rsp + 0x68]
mov rax, qword [rcx]
call qword [rax + reloc.OLEAUT32.dll_SafeArrayGetDim]
nop
jmp 0x14005acf7
movzx eax, sil
mov rcx, qword [rsp + 0x360]
xor rcx, rsp
call fcn.140229750
mov rbx, qword [rsp + 0x3a0]
add rsp, 0x370
pop r14
pop rdi
pop rsi
ret
mov ecx, eax
call fcn.14022aaf0
nop
mov ecx, eax
call fcn.140002cbc
nop
mov ecx, eax
call fcn.140002cbc
nop
mov ecx, eax
call fcn.140002cbc
int3