Function at 0x451370
Capabilities:
Reference wmi statements

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x5656fb
mov eax, dword fs:[0]
push eax
sub esp, 0x2c
push ebx
push esi
push edi
mov eax, dword [0x639ac0]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
push 0xc
mov dword [ebp - 0x14], 0
call fcn.004f69f2
mov edi, eax
add esp, 4
mov dword [ebp - 0x1c], edi
mov esi, dword [sym.imp.OLEAUT32.dll_SysReAllocString]
mov dword [ebp - 4], 0
test edi, edi
je 0x4513e0
push 0x5c4610
mov dword [edi + 4], 0
mov dword [edi + 8], 1
call esi
mov dword [edi], eax
test eax, eax
je 0x45168f
jmp 0x4513e2
xor edi, edi
mov dword [ebp - 4], 0xffffffff
mov dword [ebp - 0x20], edi
test edi, edi
je 0x451699
push 0xc
mov dword [ebp - 4], 1
call fcn.004f69f2
mov ebx, eax
add esp, 4
mov dword [ebp - 0x1c], ebx
mov byte [ebp - 4], 2
test ebx, ebx
je 0x451433
push str.SELECT__FROM_Win32_CDROMDrive
mov dword [ebx + 4], 0
mov dword [ebx + 8], 1
call esi
mov dword [ebx], eax
test eax, eax
je 0x4516a3
jmp 0x451435
xor ebx, ebx
mov byte [ebp - 4], 1
mov dword [ebp - 0x24], ebx
test ebx, ebx
je 0x4516ad
lea eax, [ebp - 0x38]
mov dword [ebp - 0x10], 0
push eax
mov dword [ebp - 0x18], 0
call dword [sym.imp.OLEAUT32.dll_VariantClear]
mov byte [ebp - 4], 4
call fcn.00455b90
test al, al
je 0x451476
push str.WMI:_Get_Optical_drive_details__1_
call fcn.00455a00
add esp, 4
mov eax, dword [ebp + 8]
lea edx, [ebp - 0x14]
push edx
push 0
push 0x20
push dword [ebx]
mov ecx, dword [eax]
push dword [edi]
push eax
call dword [ecx + 0x50]
test eax, eax
jns 0x4514b1
call fcn.00455b90
test al, al
je 0x4514a5
push str.WMI:_Get_Optical_drive_failed__1_
call fcn.00455a00
add esp, 4
mov dword [ebp + 0xc], 0
jmp 0x4515e5
call fcn.00455b90
test al, al
je 0x4514c7
push str.WMI:_Get_Optical_drive_details__2_
call fcn.00455a00
add esp, 4
mov eax, dword [ebp - 0x14]
lea edx, [ebp - 0x18]
push edx
lea edx, [ebp - 0x10]
xor esi, esi
push edx
mov ecx, dword [eax]
push 1
push 0x2710
push eax
mov dword [ebp - 0x1c], esi
call dword [ecx + 0x10]
test eax, eax
js 0x45159e
mov eax, dword [ebp + 0xc]
add eax, 0x104c
mov dword [ebp + 8], eax
nop word [eax + eax]
cmp dword [ebp - 0x18], 0
je 0x45159e
cmp esi, 0x14
jge 0x45159e
mov eax, dword [ebp - 0x10]
lea edx, [ebp - 0x38]
push 0
push 0
push edx
mov ecx, dword [eax]
push 0
push str.Name
push eax
call dword [ecx + 0x10]
test eax, eax
js 0x45156d
cmp word [ebp - 0x38], 8
jne 0x45156d
sub esp, 0x10
mov esi, esp
push esi
call dword [sym.imp.OLEAUT32.dll_VariantClear]
lea eax, [ebp - 0x38]
push eax
push esi
call dword [sym.imp.OLEAUT32.dll_VariantCopyInd]
test eax, eax
js 0x451689
push dword [ebp + 8]
call fcn.00453a60
add esp, 0x14
lea eax, [ebp - 0x38]
push eax
call dword [sym.imp.OLEAUT32.dll_VariantCopy]
mov esi, dword [ebp - 0x1c]
mov eax, dword [ebp - 0x10]
push eax
mov ecx, dword [eax]
call dword [ecx + 8]
mov eax, dword [ebp - 0x14]
lea edx, [ebp - 0x18]
add dword [ebp + 8], 0x64
inc esi
push edx
lea edx, [ebp - 0x10]
mov dword [ebp - 0x1c], esi
mov ecx, dword [eax]
push edx
push 1
push 0x2710
push eax
call dword [ecx + 0x10]
test eax, eax
jns 0x451500
mov eax, dword [ebp + 0xc]
mov dword [eax + 0x181c], esi
call fcn.00455b90
test al, al
je 0x4515bd
push str.WMI:_Get_Optical_drive_details__3_
call fcn.00455a00
add esp, 4
mov eax, dword [ebp - 0x14]
push eax
mov ecx, dword [eax]
call dword [ecx + 8]
mov ecx, dword [ebp + 0xc]
push 0x100
lea eax, [ecx + 0xe4c]
push eax
push ecx
call fcn.00477750
add esp, 0xc
mov dword [ebp + 0xc], 1
lea eax, [ebp - 0x38]
push eax
call dword [sym.imp.OLEAUT32.dll_VariantCopy]
or esi, 0xffffffff
mov eax, esi
lock xadd dword [ebx + 8], eax
dec eax
mov ecx, dword [sym.imp.OLEAUT32.dll_SysStringLen]
jne 0x451639
mov eax, dword [ebx]
test eax, eax
je 0x451611
push eax
call ecx
mov dword [ebx], 0
mov eax, dword [ebx + 4]
test eax, eax
je 0x451628
push eax
call fcn.004f69ed
add esp, 4
mov dword [ebx + 4], 0
push 0xc
push ebx
call fcn.004f6a22
mov ecx, dword [sym.imp.OLEAUT32.dll_SysStringLen]
add esp, 8
lock xadd dword [edi + 8], esi
dec esi
jne 0x451672
mov eax, dword [edi]
test eax, eax
je 0x451650
push eax
call ecx
mov dword [edi], 0
mov eax, dword [edi + 4]
test eax, eax
je 0x451667
push eax
call fcn.004f69ed
add esp, 4
mov dword [edi + 4], 0
push 0xc
push edi
call fcn.004f6a22
add esp, 8
mov eax, dword [ebp + 0xc]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8
push eax
call fcn.004f8630
push 0x8007000e
call fcn.004f8630
push 0x8007000e
call fcn.004f8630
push 0x8007000e
call fcn.004f8630
push 0x8007000e
call fcn.004f8630
int3