Function at 0x40c960
Capabilities:
Get disk information

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x2f0
mov ecx, dword [ebp + 8]
call fcn.0040e0f0
xor eax, eax
mov word [ebp - 0x210], ax
push 0x206
push 0
lea ecx, [ebp - 0x20e]
push ecx
call fcn.004244d0
add esp, 0xc
mov dword [ebp - 0x218], 0
lea edx, [ebp - 0x210]
push edx
call fcn.0040c8b0
test eax, eax
je 0x40c9fa
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 0x40c9fa
mov edx, dword [ebp - 0x218]
push edx
push 0x43e3b0
push 0x20
lea eax, [ebp - 0x270]
push eax
call fcn.0040cf50
add esp, 0x10
lea ecx, [ebp - 0x270]
push ecx
mov ecx, dword [ebp + 8]
call fcn.00408456
push 0x43e3b8
mov ecx, dword [ebp + 8]
call fcn.00408456
push 0
push 0
call dword [sym.imp.ole32.dll_CoInitializeEx]
mov dword [ebp - 0x224], eax
cmp dword [ebp - 0x224], 0x80010106
jne 0x40ca33
push 2
push 0
call dword [sym.imp.ole32.dll_CoInitializeEx]
mov dword [ebp - 0x224], eax
cmp dword [ebp - 0x224], 0
jge 0x40ca43
xor eax, eax
jmp 0x40cf45
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 0x40ca7d
cmp dword [ebp - 0x224], 0x80010119
je 0x40ca7d
xor eax, eax
jmp 0x40cf45
mov dword [ebp - 4], 0
mov dword [ebp - 0x214], 0
mov dword [ebp - 0x220], 0
mov dword [ebp - 0x230], 0x43e3bc
lea edx, [ebp - 4]
push edx
push 0x43e9e0
push 5
push 0
push 0x442134
call dword [sym.imp.ole32.dll_CoCreateInstance]
test eax, eax
jge 0x40cac5
xor eax, eax
jmp 0x40cf45
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 0x40caf8
xor eax, eax
jmp 0x40cf45
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 0x40cb1e
xor eax, eax
jmp 0x40cf45
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 0x43e410
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 0x40cdec
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 0x40cb8d
push 0x43e418
mov ecx, dword [ebp + 8]
call fcn.00408456
jmp 0x40cdea
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 0x40cbce
push 0x43e424
mov ecx, dword [ebp + 8]
call fcn.00408456
jmp 0x40cdea
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 0x40cc31
movzx ecx, word [ebp - 0x290]
cmp ecx, 1
je 0x40cc31
mov edx, dword [ebp - 0x288]
push edx
lea ecx, [ebp - 0x2b4]
call fcn.0040de60
mov ecx, eax
call fcn.0040dee0
push eax
mov ecx, dword [ebp + 8]
call fcn.00408456
lea ecx, [ebp - 0x2b4]
call fcn.0040dec0
push 0x43e44c
mov ecx, dword [ebp + 8]
call fcn.00408456
push 0
push 0
lea eax, [ebp - 0x280]
push eax
push 0
push 0x43e450
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 0x40cca1
movzx edx, word [ebp - 0x280]
cmp edx, 1
je 0x40cca1
mov eax, dword [ebp - 0x278]
push eax
lea ecx, [ebp - 0x2b8]
call fcn.0040de60
mov ecx, eax
call fcn.0040dee0
push eax
mov ecx, dword [ebp + 8]
call fcn.00408456
lea ecx, [ebp - 0x2b8]
call fcn.0040dec0
push 0x43e468
mov ecx, dword [ebp + 8]
call fcn.00408456
push 0
push 0
lea ecx, [ebp - 0x2b0]
push ecx
push 0
push 0x43e46c
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 0x40cd11
movzx eax, word [ebp - 0x2b0]
cmp eax, 1
je 0x40cd11
mov ecx, dword [ebp - 0x2a8]
push ecx
lea ecx, [ebp - 0x2bc]
call fcn.0040de60
mov ecx, eax
call fcn.0040dee0
push eax
mov ecx, dword [ebp + 8]
call fcn.00408456
lea ecx, [ebp - 0x2bc]
call fcn.0040dec0
push 0x43e480
mov ecx, dword [ebp + 8]
call fcn.00408456
push 0
push 0
lea edx, [ebp - 0x2a0]
push edx
push 0
push 0x43e484
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 - 0x2a0]
cmp ecx, 1
je 0x40cd81
mov edx, dword [ebp - 0x298]
push edx
lea ecx, [ebp - 0x2c0]
call fcn.0040de60
mov ecx, eax
call fcn.0040dee0
push eax
mov ecx, dword [ebp + 8]
call fcn.00408456
lea ecx, [ebp - 0x2c0]
call fcn.0040dec0
push 0x43e4a8
mov ecx, dword [ebp + 8]
call fcn.00408456
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 0x40cdf9
push 0x43e4ac
mov ecx, dword [ebp + 8]
call fcn.00408456
mov eax, dword [ebp + 8]
push eax
sub esp, 0x1c
mov ecx, esp
push str.SoftwareElementID
call fcn.00408434
sub esp, 0x1c
mov ecx, esp
push str.Select_SoftwareElementID_from_Win32_BIOS
call fcn.00408434
mov ecx, dword [ebp - 0x214]
push ecx
call fcn.0040cf90
mov edx, dword [ebp + 8]
push edx
sub esp, 0x1c
mov ecx, esp
push str.SerialNumber
call fcn.00408434
sub esp, 0x1c
mov ecx, esp
push str.Select_SerialNumber_from_win32_diskdrive
call fcn.00408434
mov eax, dword [ebp - 0x214]
push eax
call fcn.0040cf90
mov ecx, dword [ebp + 8]
push ecx
sub esp, 0x1c
mov ecx, esp
push 0x43e54c
call fcn.00408434
sub esp, 0x1c
mov ecx, esp
push 0x43e5f0
call fcn.00408434
mov edx, dword [ebp - 0x214]
push edx
call fcn.0040cf90
mov eax, dword [ebp + 8]
push eax
sub esp, 0x1c
mov ecx, esp
push str.PNPDeviceID
call fcn.00408434
sub esp, 0x1c
mov ecx, esp
push str.Select_PNPDeviceID_from_Win32_VideoController
call fcn.00408434
mov ecx, dword [ebp - 0x214]
push ecx
call fcn.0040cf90
mov edx, dword [ebp + 8]
push edx
sub esp, 0x1c
mov ecx, esp
push str.VideoProcessor
call fcn.00408434
sub esp, 0x1c
mov ecx, esp
push 0x43e6c8
call fcn.00408434
mov eax, dword [ebp - 0x214]
push eax
call fcn.0040cf90
push 8
mov ecx, dword [ebp + 8]
push ecx
sub esp, 0x1c
mov ecx, esp
push str.EndingAddress
call fcn.00408434
sub esp, 0x1c
mov ecx, esp
push 0x43e738
call fcn.00408434
mov edx, dword [ebp - 0x214]
push edx
call fcn.0040d100
mov eax, dword [ebp + 8]
push eax
call fcn.0040d2a0
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