Function at 0x40cab0
Capabilities:
Get disk information

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x2f0
mov ecx, dword [ebp + 8]
call fcn.0040e210
xor eax, eax
mov word [ebp - 0x210], ax
push 0x206
push 0
lea ecx, [ebp - 0x20e]
push ecx
call fcn.004245f0
add esp, 0xc
mov dword [ebp - 0x218], 0
lea edx, [ebp - 0x210]
push edx
call fcn.0040ca00
test eax, eax
je 0x40cb4a
push 0
push 0
push 0
push 0
lea eax, [ebp - 0x218]
push eax
push 0
push 0
lea ecx, [ebp - 0x210]
push ecx
call dword [sym.imp.KERNEL32.dll_GetVolumeInformationW]
test eax, eax
je 0x40cb4a
mov edx, dword [ebp - 0x218]
push edx
push 0x43e3c0
push 0x20
lea eax, [ebp - 0x270]
push eax
call fcn.0040d0a0
add esp, 0x10
lea ecx, [ebp - 0x270]
push ecx
mov ecx, dword [ebp + 8]
call fcn.004084d0
push 0x43e3c8
mov ecx, dword [ebp + 8]
call fcn.004084d0
push 0
push 0
call dword [sym.imp.ole32.dll_CoInitializeEx]
mov dword [ebp - 0x224], eax
cmp dword [ebp - 0x224], 0x80010106
jne 0x40cb83
push 2
push 0
call dword [sym.imp.ole32.dll_CoInitializeEx]
mov dword [ebp - 0x224], eax
cmp dword [ebp - 0x224], 0
jge 0x40cb93
xor eax, eax
jmp 0x40d095
push 0
push 0
push 0
push 3
push 0
push 0
push 0
push 0xffffffffffffffff
push 0
call dword [sym.imp.ole32.dll_CoInitializeSecurity]
mov dword [ebp - 0x224], eax
cmp dword [ebp - 0x224], 0
jge 0x40cbcd
cmp dword [ebp - 0x224], 0x80010119
je 0x40cbcd
xor eax, eax
jmp 0x40d095
mov dword [ebp - 4], 0
mov dword [ebp - 0x214], 0
mov dword [ebp - 0x220], 0
mov dword [ebp - 0x230], 0x43e3cc
lea edx, [ebp - 4]
push edx
push 0x43e9f0
push 5
push 0
push 0x442144
call dword [sym.imp.ole32.dll_CoCreateInstance]
test eax, eax
jge 0x40cc15
xor eax, eax
jmp 0x40d095
lea eax, [ebp - 0x214]
push eax
push 0
push 0
push 0
push 0
push 0
push 0
mov ecx, dword [ebp - 0x230]
push ecx
mov edx, dword [ebp - 4]
mov eax, dword [edx]
mov ecx, dword [ebp - 4]
push ecx
mov edx, dword [eax + 0xc]
call edx
test eax, eax
jge 0x40cc48
xor eax, eax
jmp 0x40d095
push 0
push 0
push 3
push 3
push 0
push 0
push 0xa
mov eax, dword [ebp - 0x214]
push eax
call dword [sym.imp.ole32.dll_CoSetProxyBlanket]
test eax, eax
jge 0x40cc6e
xor eax, eax
jmp 0x40d095
mov dword [ebp - 0x22c], 1
mov dword [ebp - 0x228], 0
lea ecx, [ebp - 0x220]
push ecx
push 0
push 0x10
push str.Select__from_win32_Processor
push 0x43e420
mov edx, dword [ebp - 0x214]
mov eax, dword [edx]
mov ecx, dword [ebp - 0x214]
push ecx
mov edx, dword [eax + 0x50]
call edx
test eax, eax
jne 0x40cf3c
mov eax, dword [ebp - 0x220]
mov ecx, dword [eax]
mov edx, dword [ebp - 0x220]
push edx
mov eax, dword [ecx + 0xc]
call eax
test eax, eax
jge 0x40ccdd
push 0x43e428
mov ecx, dword [ebp + 8]
call fcn.004084d0
jmp 0x40cf3a
lea ecx, [ebp - 0x21c]
push ecx
lea edx, [ebp - 0x228]
push edx
mov eax, dword [ebp - 0x22c]
push eax
push 0xffffffffffffffff
mov ecx, dword [ebp - 0x220]
mov edx, dword [ecx]
mov eax, dword [ebp - 0x220]
push eax
mov ecx, dword [edx + 0x10]
call ecx
test eax, eax
jge 0x40cd1e
push 0x43e434
mov ecx, dword [ebp + 8]
call fcn.004084d0
jmp 0x40cf3a
push 0
push 0
lea edx, [ebp - 0x290]
push edx
push 0
push str.Manufacturer
mov eax, dword [ebp - 0x228]
mov ecx, dword [eax]
mov edx, dword [ebp - 0x228]
push edx
mov eax, dword [ecx + 0x10]
call eax
test eax, eax
jne 0x40cd81
movzx ecx, word [ebp - 0x290]
cmp ecx, 1
je 0x40cd81
mov edx, dword [ebp - 0x288]
push edx
lea ecx, [ebp - 0x2b4]
call fcn.0040dfb0
mov ecx, eax
call fcn.0040e030
push eax
mov ecx, dword [ebp + 8]
call fcn.004084d0
lea ecx, [ebp - 0x2b4]
call fcn.0040e010
push 0x43e45c
mov ecx, dword [ebp + 8]
call fcn.004084d0
push 0
push 0
lea eax, [ebp - 0x280]
push eax
push 0
push 0x43e460
mov ecx, dword [ebp - 0x228]
mov edx, dword [ecx]
mov eax, dword [ebp - 0x228]
push eax
mov ecx, dword [edx + 0x10]
call ecx
test eax, eax
jne 0x40cdf1
movzx edx, word [ebp - 0x280]
cmp edx, 1
je 0x40cdf1
mov eax, dword [ebp - 0x278]
push eax
lea ecx, [ebp - 0x2b8]
call fcn.0040dfb0
mov ecx, eax
call fcn.0040e030
push eax
mov ecx, dword [ebp + 8]
call fcn.004084d0
lea ecx, [ebp - 0x2b8]
call fcn.0040e010
push 0x43e478
mov ecx, dword [ebp + 8]
call fcn.004084d0
push 0
push 0
lea ecx, [ebp - 0x2b0]
push ecx
push 0
push 0x43e47c
mov edx, dword [ebp - 0x228]
mov eax, dword [edx]
mov ecx, dword [ebp - 0x228]
push ecx
mov edx, dword [eax + 0x10]
call edx
test eax, eax
jne 0x40ce61
movzx eax, word [ebp - 0x2b0]
cmp eax, 1
je 0x40ce61
mov ecx, dword [ebp - 0x2a8]
push ecx
lea ecx, [ebp - 0x2bc]
call fcn.0040dfb0
mov ecx, eax
call fcn.0040e030
push eax
mov ecx, dword [ebp + 8]
call fcn.004084d0
lea ecx, [ebp - 0x2bc]
call fcn.0040e010
push 0x43e490
mov ecx, dword [ebp + 8]
call fcn.004084d0
push 0
push 0
lea edx, [ebp - 0x2a0]
push edx
push 0
push 0x43e494
mov eax, dword [ebp - 0x228]
mov ecx, dword [eax]
mov edx, dword [ebp - 0x228]
push edx
mov eax, dword [ecx + 0x10]
call eax
test eax, eax
jne 0x40ced1
movzx ecx, word [ebp - 0x2a0]
cmp ecx, 1
je 0x40ced1
mov edx, dword [ebp - 0x298]
push edx
lea ecx, [ebp - 0x2c0]
call fcn.0040dfb0
mov ecx, eax
call fcn.0040e030
push eax
mov ecx, dword [ebp + 8]
call fcn.004084d0
lea ecx, [ebp - 0x2c0]
call fcn.0040e010
push 0x43e4b8
mov ecx, dword [ebp + 8]
call fcn.004084d0
mov eax, dword [ebp - 0x220]
mov ecx, dword [eax]
mov edx, dword [ebp - 0x220]
push edx
mov eax, dword [ecx + 8]
call eax
mov ecx, dword [ebp - 0x228]
mov edx, dword [ecx]
mov eax, dword [ebp - 0x228]
push eax
mov ecx, dword [edx + 8]
call ecx
lea edx, [ebp - 0x290]
push edx
call dword [sym.imp.OLEAUT32.dll_VariantCopy]
lea eax, [ebp - 0x280]
push eax
call dword [sym.imp.OLEAUT32.dll_VariantCopy]
lea ecx, [ebp - 0x2b0]
push ecx
call dword [sym.imp.OLEAUT32.dll_VariantCopy]
lea edx, [ebp - 0x2a0]
push edx
call dword [sym.imp.OLEAUT32.dll_VariantCopy]
jmp 0x40cf49
push 0x43e4bc
mov ecx, dword [ebp + 8]
call fcn.004084d0
mov eax, dword [ebp + 8]
push eax
sub esp, 0x1c
mov ecx, esp
push str.SoftwareElementID
call fcn.004084ae
sub esp, 0x1c
mov ecx, esp
push str.Select_SoftwareElementID_from_Win32_BIOS
call fcn.004084ae
mov ecx, dword [ebp - 0x214]
push ecx
call fcn.0040d0e0
mov edx, dword [ebp + 8]
push edx
sub esp, 0x1c
mov ecx, esp
push str.SerialNumber
call fcn.004084ae
sub esp, 0x1c
mov ecx, esp
push str.Select_SerialNumber_from_win32_diskdrive
call fcn.004084ae
mov eax, dword [ebp - 0x214]
push eax
call fcn.0040d0e0
mov ecx, dword [ebp + 8]
push ecx
sub esp, 0x1c
mov ecx, esp
push 0x43e55c
call fcn.004084ae
sub esp, 0x1c
mov ecx, esp
push 0x43e600
call fcn.004084ae
mov edx, dword [ebp - 0x214]
push edx
call fcn.0040d0e0
mov eax, dword [ebp + 8]
push eax
sub esp, 0x1c
mov ecx, esp
push str.PNPDeviceID
call fcn.004084ae
sub esp, 0x1c
mov ecx, esp
push str.Select_PNPDeviceID_from_Win32_VideoController
call fcn.004084ae
mov ecx, dword [ebp - 0x214]
push ecx
call fcn.0040d0e0
mov edx, dword [ebp + 8]
push edx
sub esp, 0x1c
mov ecx, esp
push str.VideoProcessor
call fcn.004084ae
sub esp, 0x1c
mov ecx, esp
push 0x43e6d8
call fcn.004084ae
mov eax, dword [ebp - 0x214]
push eax
call fcn.0040d0e0
push 8
mov ecx, dword [ebp + 8]
push ecx
sub esp, 0x1c
mov ecx, esp
push str.EndingAddress
call fcn.004084ae
sub esp, 0x1c
mov ecx, esp
push 0x43e748
call fcn.004084ae
mov edx, dword [ebp - 0x214]
push edx
call fcn.0040d250
mov eax, dword [ebp + 8]
push eax
call fcn.0040d3f0
mov ecx, dword [ebp - 4]
mov edx, dword [ecx]
mov eax, dword [ebp - 4]
push eax
mov ecx, dword [edx + 8]
call ecx
mov edx, dword [ebp - 0x214]
mov eax, dword [edx]
mov ecx, dword [ebp - 0x214]
push ecx
mov edx, dword [eax + 8]
call edx
call dword [sym.imp.ole32.dll_CoUninitialize]
mov eax, 1
mov esp, ebp
pop ebp
ret 4