Function at 0x40af80
Capabilities:
Get disk information

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x2f0
mov ecx, dword [ebp + 8]
call fcn.0040c710
xor eax, eax
mov word [ebp - 0x210], ax
push 0x206
push 0
lea ecx, [ebp - 0x20e]
push ecx
call fcn.0040eb10
add esp, 0xc
mov dword [ebp - 0x218], 0
lea edx, [ebp - 0x210]
push edx
call fcn.0040aed0
test eax, eax
je 0x40b01a
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 0x40b01a
mov edx, dword [ebp - 0x218]
push edx
push 0x43c380
push 0x20
lea eax, [ebp - 0x270]
push eax
call fcn.0040b570
add esp, 0x10
lea ecx, [ebp - 0x270]
push ecx
mov ecx, dword [ebp + 8]
call fcn.004072b4
push 0x43c388
mov ecx, dword [ebp + 8]
call fcn.004072b4
push 0
push 0
call dword [sym.imp.ole32.dll_CoInitializeEx]
mov dword [ebp - 0x224], eax
cmp dword [ebp - 0x224], 0x80010106
jne 0x40b053
push 2
push 0
call dword [sym.imp.ole32.dll_CoInitializeEx]
mov dword [ebp - 0x224], eax
cmp dword [ebp - 0x224], 0
jge 0x40b063
xor eax, eax
jmp 0x40b565
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 0x40b09d
cmp dword [ebp - 0x224], 0x80010119
je 0x40b09d
xor eax, eax
jmp 0x40b565
mov dword [ebp - 4], 0
mov dword [ebp - 0x214], 0
mov dword [ebp - 0x220], 0
mov dword [ebp - 0x230], 0x43c38c
lea edx, [ebp - 4]
push edx
push 0x43c9b0
push 5
push 0
push 0x43fb90
call dword [sym.imp.ole32.dll_CoCreateInstance]
test eax, eax
jge 0x40b0e5
xor eax, eax
jmp 0x40b565
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 0x40b118
xor eax, eax
jmp 0x40b565
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 0x40b13e
xor eax, eax
jmp 0x40b565
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 0x43c3e0
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 0x40b40c
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 0x40b1ad
push 0x43c3e8
mov ecx, dword [ebp + 8]
call fcn.004072b4
jmp 0x40b40a
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 0x40b1ee
push 0x43c3f4
mov ecx, dword [ebp + 8]
call fcn.004072b4
jmp 0x40b40a
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 0x40b251
movzx ecx, word [ebp - 0x290]
cmp ecx, 1
je 0x40b251
mov edx, dword [ebp - 0x288]
push edx
lea ecx, [ebp - 0x2b4]
call fcn.0040c480
mov ecx, eax
call fcn.0040c500
push eax
mov ecx, dword [ebp + 8]
call fcn.004072b4
lea ecx, [ebp - 0x2b4]
call fcn.0040c4e0
push 0x43c41c
mov ecx, dword [ebp + 8]
call fcn.004072b4
push 0
push 0
lea eax, [ebp - 0x280]
push eax
push 0
push 0x43c420
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 0x40b2c1
movzx edx, word [ebp - 0x280]
cmp edx, 1
je 0x40b2c1
mov eax, dword [ebp - 0x278]
push eax
lea ecx, [ebp - 0x2b8]
call fcn.0040c480
mov ecx, eax
call fcn.0040c500
push eax
mov ecx, dword [ebp + 8]
call fcn.004072b4
lea ecx, [ebp - 0x2b8]
call fcn.0040c4e0
push 0x43c438
mov ecx, dword [ebp + 8]
call fcn.004072b4
push 0
push 0
lea ecx, [ebp - 0x2b0]
push ecx
push 0
push 0x43c43c
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 0x40b331
movzx eax, word [ebp - 0x2b0]
cmp eax, 1
je 0x40b331
mov ecx, dword [ebp - 0x2a8]
push ecx
lea ecx, [ebp - 0x2bc]
call fcn.0040c480
mov ecx, eax
call fcn.0040c500
push eax
mov ecx, dword [ebp + 8]
call fcn.004072b4
lea ecx, [ebp - 0x2bc]
call fcn.0040c4e0
push 0x43c450
mov ecx, dword [ebp + 8]
call fcn.004072b4
push 0
push 0
lea edx, [ebp - 0x2a0]
push edx
push 0
push 0x43c454
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 0x40b3a1
movzx ecx, word [ebp - 0x2a0]
cmp ecx, 1
je 0x40b3a1
mov edx, dword [ebp - 0x298]
push edx
lea ecx, [ebp - 0x2c0]
call fcn.0040c480
mov ecx, eax
call fcn.0040c500
push eax
mov ecx, dword [ebp + 8]
call fcn.004072b4
lea ecx, [ebp - 0x2c0]
call fcn.0040c4e0
push 0x43c478
mov ecx, dword [ebp + 8]
call fcn.004072b4
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 0x40b419
push 0x43c47c
mov ecx, dword [ebp + 8]
call fcn.004072b4
mov eax, dword [ebp + 8]
push eax
sub esp, 0x1c
mov ecx, esp
push str.SoftwareElementID
call fcn.00407292
sub esp, 0x1c
mov ecx, esp
push str.Select_SoftwareElementID_from_Win32_BIOS
call fcn.00407292
mov ecx, dword [ebp - 0x214]
push ecx
call fcn.0040b5b0
mov edx, dword [ebp + 8]
push edx
sub esp, 0x1c
mov ecx, esp
push str.SerialNumber
call fcn.00407292
sub esp, 0x1c
mov ecx, esp
push str.Select_SerialNumber_from_win32_diskdrive
call fcn.00407292
mov eax, dword [ebp - 0x214]
push eax
call fcn.0040b5b0
mov ecx, dword [ebp + 8]
push ecx
sub esp, 0x1c
mov ecx, esp
push 0x43c51c
call fcn.00407292
sub esp, 0x1c
mov ecx, esp
push 0x43c5c0
call fcn.00407292
mov edx, dword [ebp - 0x214]
push edx
call fcn.0040b5b0
mov eax, dword [ebp + 8]
push eax
sub esp, 0x1c
mov ecx, esp
push str.PNPDeviceID
call fcn.00407292
sub esp, 0x1c
mov ecx, esp
push str.Select_PNPDeviceID_from_Win32_VideoController
call fcn.00407292
mov ecx, dword [ebp - 0x214]
push ecx
call fcn.0040b5b0
mov edx, dword [ebp + 8]
push edx
sub esp, 0x1c
mov ecx, esp
push str.VideoProcessor
call fcn.00407292
sub esp, 0x1c
mov ecx, esp
push 0x43c698
call fcn.00407292
mov eax, dword [ebp - 0x214]
push eax
call fcn.0040b5b0
push 8
mov ecx, dword [ebp + 8]
push ecx
sub esp, 0x1c
mov ecx, esp
push str.EndingAddress
call fcn.00407292
sub esp, 0x1c
mov ecx, esp
push 0x43c708
call fcn.00407292
mov edx, dword [ebp - 0x214]
push edx
call fcn.0040b720
mov eax, dword [ebp + 8]
push eax
call fcn.0040b8c0
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