Function at 0x40b990
Capabilities:
Get disk information

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x2f0
mov ecx, dword [ebp + 8]
call fcn.0040d120
xor eax, eax
mov word [ebp - 0x210], ax
push 0x206
push 0
lea ecx, [ebp - 0x20e]
push ecx
call fcn.0040f520
add esp, 0xc
mov dword [ebp - 0x218], 0
lea edx, [ebp - 0x210]
push edx
call fcn.0040b8e0
test eax, eax
je 0x40ba2a
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 0x40ba2a
mov edx, dword [ebp - 0x218]
push edx
push 0x43d380
push 0x20
lea eax, [ebp - 0x270]
push eax
call fcn.0040bf80
add esp, 0x10
lea ecx, [ebp - 0x270]
push ecx
mov ecx, dword [ebp + 8]
call fcn.00407b8a
push 0x43d388
mov ecx, dword [ebp + 8]
call fcn.00407b8a
push 0
push 0
call dword [sym.imp.ole32.dll_CoInitializeEx]
mov dword [ebp - 0x224], eax
cmp dword [ebp - 0x224], 0x80010106
jne 0x40ba63
push 2
push 0
call dword [sym.imp.ole32.dll_CoInitializeEx]
mov dword [ebp - 0x224], eax
cmp dword [ebp - 0x224], 0
jge 0x40ba73
xor eax, eax
jmp 0x40bf75
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 0x40baad
cmp dword [ebp - 0x224], 0x80010119
je 0x40baad
xor eax, eax
jmp 0x40bf75
mov dword [ebp - 4], 0
mov dword [ebp - 0x214], 0
mov dword [ebp - 0x220], 0
mov dword [ebp - 0x230], 0x43d38c
lea edx, [ebp - 4]
push edx
push 0x43d9b0
push 5
push 0
push 0x440b88
call dword [sym.imp.ole32.dll_CoCreateInstance]
test eax, eax
jge 0x40baf5
xor eax, eax
jmp 0x40bf75
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 0x40bb28
xor eax, eax
jmp 0x40bf75
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 0x40bb4e
xor eax, eax
jmp 0x40bf75
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 0x43d3e0
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 0x40be1c
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 0x40bbbd
push 0x43d3e8
mov ecx, dword [ebp + 8]
call fcn.00407b8a
jmp 0x40be1a
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 0x40bbfe
push 0x43d3f4
mov ecx, dword [ebp + 8]
call fcn.00407b8a
jmp 0x40be1a
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 0x40bc61
movzx ecx, word [ebp - 0x290]
cmp ecx, 1
je 0x40bc61
mov edx, dword [ebp - 0x288]
push edx
lea ecx, [ebp - 0x2b4]
call fcn.0040ce90
mov ecx, eax
call fcn.0040cf10
push eax
mov ecx, dword [ebp + 8]
call fcn.00407b8a
lea ecx, [ebp - 0x2b4]
call fcn.0040cef0
push 0x43d41c
mov ecx, dword [ebp + 8]
call fcn.00407b8a
push 0
push 0
lea eax, [ebp - 0x280]
push eax
push 0
push 0x43d420
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 0x40bcd1
movzx edx, word [ebp - 0x280]
cmp edx, 1
je 0x40bcd1
mov eax, dword [ebp - 0x278]
push eax
lea ecx, [ebp - 0x2b8]
call fcn.0040ce90
mov ecx, eax
call fcn.0040cf10
push eax
mov ecx, dword [ebp + 8]
call fcn.00407b8a
lea ecx, [ebp - 0x2b8]
call fcn.0040cef0
push 0x43d438
mov ecx, dword [ebp + 8]
call fcn.00407b8a
push 0
push 0
lea ecx, [ebp - 0x2b0]
push ecx
push 0
push 0x43d43c
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 0x40bd41
movzx eax, word [ebp - 0x2b0]
cmp eax, 1
je 0x40bd41
mov ecx, dword [ebp - 0x2a8]
push ecx
lea ecx, [ebp - 0x2bc]
call fcn.0040ce90
mov ecx, eax
call fcn.0040cf10
push eax
mov ecx, dword [ebp + 8]
call fcn.00407b8a
lea ecx, [ebp - 0x2bc]
call fcn.0040cef0
push 0x43d450
mov ecx, dword [ebp + 8]
call fcn.00407b8a
push 0
push 0
lea edx, [ebp - 0x2a0]
push edx
push 0
push 0x43d454
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 0x40bdb1
movzx ecx, word [ebp - 0x2a0]
cmp ecx, 1
je 0x40bdb1
mov edx, dword [ebp - 0x298]
push edx
lea ecx, [ebp - 0x2c0]
call fcn.0040ce90
mov ecx, eax
call fcn.0040cf10
push eax
mov ecx, dword [ebp + 8]
call fcn.00407b8a
lea ecx, [ebp - 0x2c0]
call fcn.0040cef0
push 0x43d478
mov ecx, dword [ebp + 8]
call fcn.00407b8a
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 0x40be29
push 0x43d47c
mov ecx, dword [ebp + 8]
call fcn.00407b8a
mov eax, dword [ebp + 8]
push eax
sub esp, 0x1c
mov ecx, esp
push str.SoftwareElementID
call fcn.00407b68
sub esp, 0x1c
mov ecx, esp
push str.Select_SoftwareElementID_from_Win32_BIOS
call fcn.00407b68
mov ecx, dword [ebp - 0x214]
push ecx
call fcn.0040bfc0
mov edx, dword [ebp + 8]
push edx
sub esp, 0x1c
mov ecx, esp
push str.SerialNumber
call fcn.00407b68
sub esp, 0x1c
mov ecx, esp
push str.Select_SerialNumber_from_win32_diskdrive
call fcn.00407b68
mov eax, dword [ebp - 0x214]
push eax
call fcn.0040bfc0
mov ecx, dword [ebp + 8]
push ecx
sub esp, 0x1c
mov ecx, esp
push 0x43d51c
call fcn.00407b68
sub esp, 0x1c
mov ecx, esp
push 0x43d5c0
call fcn.00407b68
mov edx, dword [ebp - 0x214]
push edx
call fcn.0040bfc0
mov eax, dword [ebp + 8]
push eax
sub esp, 0x1c
mov ecx, esp
push str.PNPDeviceID
call fcn.00407b68
sub esp, 0x1c
mov ecx, esp
push str.Select_PNPDeviceID_from_Win32_VideoController
call fcn.00407b68
mov ecx, dword [ebp - 0x214]
push ecx
call fcn.0040bfc0
mov edx, dword [ebp + 8]
push edx
sub esp, 0x1c
mov ecx, esp
push str.VideoProcessor
call fcn.00407b68
sub esp, 0x1c
mov ecx, esp
push 0x43d698
call fcn.00407b68
mov eax, dword [ebp - 0x214]
push eax
call fcn.0040bfc0
push 8
mov ecx, dword [ebp + 8]
push ecx
sub esp, 0x1c
mov ecx, esp
push str.EndingAddress
call fcn.00407b68
sub esp, 0x1c
mov ecx, esp
push 0x43d708
call fcn.00407b68
mov edx, dword [ebp - 0x214]
push edx
call fcn.0040c130
mov eax, dword [ebp + 8]
push eax
call fcn.0040c2d0
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