Function at 0x4122f0
Capabilities:
Get disk size
Reference wmi statements

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x49acc4
mov eax, dword fs:[0]
push eax
sub esp, 0x1fc
mov eax, dword [0x544070]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0xf4], ecx
mov esi, dword [ebp + 8]
lea ecx, [ebp - 0xe8]
push 8
xor eax, eax
mov dword [ebp - 0xd4], 7
push str.DeviceID
mov dword [ebp - 0xd8], 0
mov word [ebp - 0xe8], ax
call fcn.00403c50
mov dword [ebp - 4], 0
lea ecx, [ebp - 0xd0]
push 0xb
xor eax, eax
mov dword [ebp - 0xbc], 7
push 0x4b1ea0
mov dword [ebp - 0xc0], 0
mov word [ebp - 0xd0], ax
call fcn.00403c50
mov byte [ebp - 4], 1
lea ecx, [ebp - 0xb8]
push 0xa
xor eax, eax
mov dword [ebp - 0xa4], 7
push 0x4b1f90
mov dword [ebp - 0xa8], 0
mov word [ebp - 0xb8], ax
call fcn.00403c50
mov byte [ebp - 4], 2
lea ecx, [ebp - 0xa0]
push 0xa
xor eax, eax
mov dword [ebp - 0x8c], 7
push str.FileSystem
mov dword [ebp - 0x90], 0
mov word [ebp - 0xa0], ax
call fcn.00403c50
mov byte [ebp - 4], 3
lea ecx, [ebp - 0x88]
push 4
xor eax, eax
mov dword [ebp - 0x74], 7
push 0x4b1ed8
mov dword [ebp - 0x78], 0
mov word [ebp - 0x88], ax
call fcn.00403c50
mov byte [ebp - 4], 4
lea ecx, [ebp - 0x70]
push 9
xor eax, eax
mov dword [ebp - 0x5c], 7
push str.FreeSpace
mov dword [ebp - 0x60], 0
mov word [ebp - 0x70], ax
call fcn.00403c50
mov byte [ebp - 4], 5
lea ecx, [ebp - 0x58]
push 0xa
xor eax, eax
mov dword [ebp - 0x44], 7
push 0x4b1fd4
mov dword [ebp - 0x48], 0
mov word [ebp - 0x58], ax
call fcn.00403c50
mov byte [ebp - 4], 6
lea ecx, [ebp - 0x40]
push 0x12
xor eax, eax
mov dword [ebp - 0x2c], 7
push 0x4b1fec
mov dword [ebp - 0x30], 0
mov word [ebp - 0x40], ax
call fcn.00403c50
mov dword [ebp - 4], 7
mov byte [ebp - 0xf0], 0
lea eax, [ebp - 0x28]
push dword [ebp - 0xf0]
lea ecx, [ebp - 0x12c]
mov dword [ebp - 0x12c], 0
push eax
lea eax, [ebp - 0xe8]
mov dword [ebp - 0x128], 0
push eax
mov dword [ebp - 0x124], 0
call fcn.00413530
push fcn.00404f50
push 8
push 0x18
lea eax, [ebp - 0xe8]
mov byte [ebp - 4], 9
push eax
call fcn.0045c4f2
mov dword [ebp - 0x120], 0
mov dword [ebp - 0x11c], 0
mov dword [ebp - 0x118], 0
mov byte [ebp - 4], 0xa
lea ecx, [ebp - 0x28]
push 0x1f
xor eax, eax
mov dword [ebp - 0x14], 7
push str.SELECT__FROM_Win32_LogicalDisk
mov dword [ebp - 0x18], 0
mov word [ebp - 0x28], ax
call fcn.00403c50
lea eax, [ebp - 0x120]
mov byte [ebp - 4], 0xb
mov ecx, dword [esi]
push eax
lea eax, [ebp - 0x12c]
push eax
lea eax, [ebp - 0x28]
push eax
call fcn.0043cfe0
mov byte [ebp - 4], 0xa
mov eax, dword [ebp - 0x14]
cmp eax, 8
jb 0x412570
inc eax
lea ecx, [ebp - 0x28]
push eax
push dword [ebp - 0x28]
call fcn.00403050
push 2
lea ecx, [ebp - 0x200]
mov byte [ebp - 0x208], 2
call fcn.0040d400
mov byte [ebp - 4], 0xc
mov edi, dword [ebp - 0x120]
mov esi, edi
mov ebx, dword [ebp - 0x11c]
cmp edi, ebx
je 0x412d96
nop
push 1
lea ecx, [ebp - 0x10c]
mov byte [ebp - 0x114], 1
call fcn.0040d400
mov byte [ebp - 4], 0xd
lea ecx, [ebp - 0x28]
push 8
xor eax, eax
mov dword [ebp - 0x14], 7
push str.DeviceID
mov dword [ebp - 0x18], 0
mov word [ebp - 0x28], ax
call fcn.00403c50
lea eax, [ebp - 0x28]
mov byte [ebp - 4], 0xe
push eax
lea eax, [ebp - 0xf0]
mov ecx, esi
push eax
call fcn.00413720
mov eax, dword [ebp - 0xf0]
cmp eax, dword [esi + 4]
jne 0x412624
lea eax, [ebp - 0x28]
push ecx
mov dword [ebp - 0xec], eax
lea eax, [ebp - 0xec]
push eax
push ecx
lea eax, [ebp - 0x150]
mov ecx, esi
push eax
call fcn.004137d0
mov eax, dword [ebp - 0x150]
jmp 0x412631
mov dword [ebp - 0x150], eax
mov byte [ebp - 0x14c], 0
add eax, 0x20
lea ecx, [ebp - 0x198]
push eax
call fcn.0040eb90
push str.Drive_Letter
lea ecx, [ebp - 0x114]
mov byte [ebp - 4], 0xf
call fcn.004132b0
mov cl, byte [ebp - 0x198]
mov edi, eax
mov dl, byte [edi]
mov byte [edi], cl
mov eax, dword [ebp - 0x190]
mov byte [ebp - 0x198], dl
mov ecx, dword [edi + 8]
mov edx, dword [edi + 0xc]
mov dword [edi + 8], eax
mov eax, dword [ebp - 0x18c]
mov dword [edi + 0xc], eax
mov dword [ebp - 0x190], ecx
lea ecx, [ebp - 0x198]
mov dword [ebp - 0x18c], edx
call fcn.004119c0
mov byte [ebp - 4], 0xd
mov eax, dword [ebp - 0x14]
cmp eax, 8
jb 0x4126ae
inc eax
lea ecx, [ebp - 0x28]
push eax
push dword [ebp - 0x28]
call fcn.00403050
push 0xb
xor eax, eax
mov dword [ebp - 0x14], 7
push 0x4b1ea0
lea ecx, [ebp - 0x28]
mov dword [ebp - 0x18], 0
mov word [ebp - 0x28], ax
call fcn.00403c50
lea eax, [ebp - 0x28]
mov byte [ebp - 4], 0x10
push eax
lea eax, [ebp - 0x130]
mov ecx, esi
push eax
call fcn.00413720
mov eax, dword [ebp - 0x130]
cmp eax, dword [esi + 4]
jne 0x41271a
lea eax, [ebp - 0x28]
push ecx
mov dword [ebp - 0xec], eax
lea eax, [ebp - 0xec]
push eax
push ecx
lea eax, [ebp - 0x158]
mov ecx, esi
push eax
call fcn.004137d0
mov eax, dword [ebp - 0x158]
jmp 0x412727
mov dword [ebp - 0x158], eax
mov byte [ebp - 0x154], 0
add eax, 0x20
lea ecx, [ebp - 0x1a8]
push eax
call fcn.0040eb90
push str.Description
lea ecx, [ebp - 0x114]
mov byte [ebp - 4], 0x11
call fcn.004132b0
mov cl, byte [ebp - 0x1a8]
mov edi, eax
mov dl, byte [edi]
mov byte [edi], cl
mov eax, dword [ebp - 0x1a0]
mov byte [ebp - 0x1a8], dl
mov ecx, dword [edi + 8]
mov edx, dword [edi + 0xc]
mov dword [edi + 8], eax
mov eax, dword [ebp - 0x19c]
mov dword [edi + 0xc], eax
mov dword [ebp - 0x1a0], ecx
lea ecx, [ebp - 0x1a8]
mov dword [ebp - 0x19c], edx
call fcn.004119c0
mov byte [ebp - 4], 0xd
mov eax, dword [ebp - 0x14]
cmp eax, 8
jb 0x4127a4
inc eax
lea ecx, [ebp - 0x28]
push eax
push dword [ebp - 0x28]
call fcn.00403050
push 0xa
xor eax, eax
mov dword [ebp - 0x14], 7
push 0x4b1f90
lea ecx, [ebp - 0x28]
mov dword [ebp - 0x18], 0
mov word [ebp - 0x28], ax
call fcn.00403c50
lea eax, [ebp - 0x28]
mov byte [ebp - 4], 0x12
push eax
lea eax, [ebp - 0x134]
mov ecx, esi
push eax
call fcn.00413720
mov eax, dword [ebp - 0x134]
cmp eax, dword [esi + 4]
jne 0x412810
lea eax, [ebp - 0x28]
push ecx
mov dword [ebp - 0xec], eax
lea eax, [ebp - 0xec]
push eax
push ecx
lea eax, [ebp - 0x160]
mov ecx, esi
push eax
call fcn.004137d0
mov eax, dword [ebp - 0x160]
jmp 0x41281d
mov dword [ebp - 0x160], eax
mov byte [ebp - 0x15c], 0
add eax, 0x20
lea ecx, [ebp - 0x1b8]
push eax
call fcn.0040eb90
push str.Compressed
lea ecx, [ebp - 0x114]
mov byte [ebp - 4], 0x13
call fcn.004132b0
mov cl, byte [ebp - 0x1b8]
mov edi, eax
mov dl, byte [edi]
mov byte [edi], cl
mov eax, dword [ebp - 0x1b0]
mov byte [ebp - 0x1b8], dl
mov ecx, dword [edi + 8]
mov edx, dword [edi + 0xc]
mov dword [edi + 8], eax
mov eax, dword [ebp - 0x1ac]
mov dword [edi + 0xc], eax
mov dword [ebp - 0x1b0], ecx
lea ecx, [ebp - 0x1b8]
mov dword [ebp - 0x1ac], edx
call fcn.004119c0
mov byte [ebp - 4], 0xd
mov eax, dword [ebp - 0x14]
cmp eax, 8
jb 0x41289a
inc eax
lea ecx, [ebp - 0x28]
push eax
push dword [ebp - 0x28]
call fcn.00403050
push 0xa
xor eax, eax
mov dword [ebp - 0x14], 7
push str.FileSystem
lea ecx, [ebp - 0x28]
mov dword [ebp - 0x18], 0
mov word [ebp - 0x28], ax
call fcn.00403c50
lea eax, [ebp - 0x28]
mov byte [ebp - 4], 0x14
push eax
lea eax, [ebp - 0x138]
mov ecx, esi
push eax
call fcn.00413720
mov eax, dword [ebp - 0x138]
cmp eax, dword [esi + 4]
jne 0x412906
lea eax, [ebp - 0x28]
push ecx
mov dword [ebp - 0xec], eax
lea eax, [ebp - 0xec]
push eax
push ecx
lea eax, [ebp - 0x168]
mov ecx, esi
push eax
call fcn.004137d0
mov eax, dword [ebp - 0x168]
jmp 0x412913
mov dword [ebp - 0x168], eax
mov byte [ebp - 0x164], 0
add eax, 0x20
lea ecx, [ebp - 0x1c8]
push eax
call fcn.0040eb90
push str.File_System
lea ecx, [ebp - 0x114]
mov byte [ebp - 4], 0x15
call fcn.004132b0
mov cl, byte [ebp - 0x1c8]
mov edi, eax
mov dl, byte [edi]
mov byte [edi], cl
mov eax, dword [ebp - 0x1c0]
mov byte [ebp - 0x1c8], dl
mov ecx, dword [edi + 8]
mov edx, dword [edi + 0xc]
mov dword [edi + 8], eax
mov eax, dword [ebp - 0x1bc]
mov dword [edi + 0xc], eax
mov dword [ebp - 0x1c0], ecx
lea ecx, [ebp - 0x1c8]
mov dword [ebp - 0x1bc], edx
call fcn.004119c0
mov byte [ebp - 4], 0xd
mov eax, dword [ebp - 0x14]
cmp eax, 8
jb 0x412990
inc eax
lea ecx, [ebp - 0x28]
push eax
push dword [ebp - 0x28]
call fcn.00403050
push 4
xor eax, eax
mov dword [ebp - 0x14], 7
push 0x4b1ed8
lea ecx, [ebp - 0x28]
mov dword [ebp - 0x18], 0
mov word [ebp - 0x28], ax
call fcn.00403c50
lea eax, [ebp - 0x28]
mov byte [ebp - 4], 0x16
push eax
lea eax, [ebp - 0x13c]
mov ecx, esi
push eax
call fcn.00413720
mov eax, dword [ebp - 0x13c]
cmp eax, dword [esi + 4]
jne 0x4129fc
lea eax, [ebp - 0x28]
push ecx
mov dword [ebp - 0xec], eax
lea eax, [ebp - 0xec]
push eax
push ecx
lea eax, [ebp - 0x170]
mov ecx, esi
push eax
call fcn.004137d0
mov eax, dword [ebp - 0x170]
jmp 0x412a09
mov dword [ebp - 0x170], eax
mov byte [ebp - 0x16c], 0
add eax, 0x20
lea ecx, [ebp - 0x1d8]
push eax
call fcn.0040eb90
push str.Size
lea ecx, [ebp - 0x114]
mov byte [ebp - 4], 0x17
call fcn.004132b0
mov cl, byte [ebp - 0x1d8]
mov edi, eax
mov dl, byte [edi]
mov byte [edi], cl
mov eax, dword [ebp - 0x1d0]
mov byte [ebp - 0x1d8], dl
mov ecx, dword [edi + 8]
mov edx, dword [edi + 0xc]
mov dword [edi + 8], eax
mov eax, dword [ebp - 0x1cc]
mov dword [edi + 0xc], eax
mov dword [ebp - 0x1d0], ecx
lea ecx, [ebp - 0x1d8]
mov dword [ebp - 0x1cc], edx
call fcn.004119c0
mov byte [ebp - 4], 0xd
mov eax, dword [ebp - 0x14]
cmp eax, 8
jb 0x412a86
inc eax
lea ecx, [ebp - 0x28]
push eax
push dword [ebp - 0x28]
call fcn.00403050
push 9
xor eax, eax
mov dword [ebp - 0x14], 7
push str.FreeSpace
lea ecx, [ebp - 0x28]
mov dword [ebp - 0x18], 0
mov word [ebp - 0x28], ax
call fcn.00403c50
lea eax, [ebp - 0x28]
mov byte [ebp - 4], 0x18
push eax
lea eax, [ebp - 0x140]
mov ecx, esi
push eax
call fcn.00413720
mov eax, dword [ebp - 0x140]
cmp eax, dword [esi + 4]
jne 0x412af2
lea eax, [ebp - 0x28]
push ecx
mov dword [ebp - 0xec], eax
lea eax, [ebp - 0xec]
push eax
push ecx
lea eax, [ebp - 0x178]
mov ecx, esi
push eax
call fcn.004137d0
mov eax, dword [ebp - 0x178]
jmp 0x412aff
mov dword [ebp - 0x178], eax
mov byte [ebp - 0x174], 0
add eax, 0x20
lea ecx, [ebp - 0x1e8]
push eax
call fcn.0040eb90
push str.Free_Space
lea ecx, [ebp - 0x114]
mov byte [ebp - 4], 0x19
call fcn.004132b0
mov cl, byte [ebp - 0x1e8]
mov edi, eax
mov dl, byte [edi]
mov byte [edi], cl
mov eax, dword [ebp - 0x1e0]
mov byte [ebp - 0x1e8], dl
mov ecx, dword [edi + 8]
mov edx, dword [edi + 0xc]
mov dword [edi + 8], eax
mov eax, dword [ebp - 0x1dc]
mov dword [edi + 0xc], eax
mov dword [ebp - 0x1e0], ecx
lea ecx, [ebp - 0x1e8]
mov dword [ebp - 0x1dc], edx
call fcn.004119c0
mov byte [ebp - 4], 0xd
mov eax, dword [ebp - 0x14]
cmp eax, 8
jb 0x412b7c
inc eax
lea ecx, [ebp - 0x28]
push eax
push dword [ebp - 0x28]
call fcn.00403050
push 0xa
xor eax, eax
mov dword [ebp - 0x14], 7
push 0x4b1fd4
lea ecx, [ebp - 0x28]
mov dword [ebp - 0x18], 0
mov word [ebp - 0x28], ax
call fcn.00403c50
lea eax, [ebp - 0x28]
mov byte [ebp - 4], 0x1a
push eax
lea eax, [ebp - 0x144]
mov ecx, esi
push eax
call fcn.00413720
mov eax, dword [ebp - 0x144]
cmp eax, dword [esi + 4]
jne 0x412be8
lea eax, [ebp - 0x28]
push ecx
mov dword [ebp - 0xec], eax
lea eax, [ebp - 0xec]
push eax
push ecx
lea eax, [ebp - 0x180]
mov ecx, esi
push eax
call fcn.004137d0
mov eax, dword [ebp - 0x180]
jmp 0x412bf5
mov dword [ebp - 0x180], eax
mov byte [ebp - 0x17c], 0
add eax, 0x20
lea ecx, [ebp - 0x1f8]
push eax
call fcn.0040eb90
push str.VolumeName
lea ecx, [ebp - 0x114]
mov byte [ebp - 4], 0x1b
call fcn.004132b0
mov cl, byte [ebp - 0x1f8]
mov edi, eax
mov dl, byte [edi]
mov byte [edi], cl
mov eax, dword [ebp - 0x1f0]
mov byte [ebp - 0x1f8], dl
mov ecx, dword [edi + 8]
mov edx, dword [edi + 0xc]
mov dword [edi + 8], eax
mov eax, dword [ebp - 0x1ec]
mov dword [edi + 0xc], eax
mov dword [ebp - 0x1f0], ecx
lea ecx, [ebp - 0x1f8]
mov dword [ebp - 0x1ec], edx
call fcn.004119c0
mov byte [ebp - 4], 0xd
mov eax, dword [ebp - 0x14]
cmp eax, 8
jb 0x412c72
inc eax
lea ecx, [ebp - 0x28]
push eax
push dword [ebp - 0x28]
call fcn.00403050
push 0x12
xor eax, eax
mov dword [ebp - 0x14], 7
push 0x4b1fec
lea ecx, [ebp - 0x28]
mov dword [ebp - 0x18], 0
mov word [ebp - 0x28], ax
call fcn.00403c50
lea eax, [ebp - 0x28]
mov byte [ebp - 4], 0x1c
push eax
lea eax, [ebp - 0x148]
mov ecx, esi
push eax
call fcn.00413720
mov eax, dword [ebp - 0x148]
cmp eax, dword [esi + 4]
jne 0x412cde
lea eax, [ebp - 0x28]
push ecx
mov dword [ebp - 0xec], eax
lea eax, [ebp - 0xec]
push eax
push ecx
lea eax, [ebp - 0x188]
mov ecx, esi
push eax
call fcn.004137d0
mov eax, dword [ebp - 0x188]
jmp 0x412ceb
mov dword [ebp - 0x188], eax
mov byte [ebp - 0x184], 0
add eax, 0x20
lea ecx, [ebp - 0x104]
push eax
call fcn.0040eb90
push ecx
lea ecx, [ebp - 0x114]
mov byte [ebp - 4], 0x1d
call fcn.00413400
mov cl, byte [ebp - 0x104]
mov edi, eax
mov dl, byte [edi]
mov byte [edi], cl
mov eax, dword [ebp - 0xfc]
mov byte [ebp - 0x104], dl
mov ecx, dword [edi + 8]
mov edx, dword [edi + 0xc]
mov dword [edi + 8], eax
mov eax, dword [ebp - 0xf8]
mov dword [edi + 0xc], eax
mov dword [ebp - 0xfc], ecx
lea ecx, [ebp - 0x104]
mov dword [ebp - 0xf8], edx
call fcn.004119c0
mov byte [ebp - 4], 0xd
mov eax, dword [ebp - 0x14]
cmp eax, 8
jb 0x412d64
inc eax
lea ecx, [ebp - 0x28]
push eax
push dword [ebp - 0x28]
call fcn.00403050
lea eax, [ebp - 0x114]
push eax
lea ecx, [ebp - 0x208]
call fcn.00413000
lea ecx, [ebp - 0x114]
mov byte [ebp - 4], 0xc
call fcn.004119c0
add esi, 0x20
cmp esi, ebx
jne 0x4125a0
mov edi, dword [ebp - 0x120]
lea eax, [ebp - 0x208]
push eax
lea ecx, [ebp - 0x104]
call fcn.0040eb90
mov byte [ebp - 4], 0x1e
mov ecx, dword [ebp - 0xf4]
push str.Partitions
add ecx, 0x20
call fcn.004132b0
mov cl, byte [ebp - 0x104]
mov esi, eax
mov dl, byte [esi]
mov byte [esi], cl
mov eax, dword [ebp - 0xfc]
mov byte [ebp - 0x104], dl
mov ecx, dword [esi + 8]
mov edx, dword [esi + 0xc]
mov dword [esi + 8], eax
mov eax, dword [ebp - 0xf8]
mov dword [esi + 0xc], eax
mov dword [ebp - 0xfc], ecx
lea ecx, [ebp - 0x104]
mov dword [ebp - 0xf8], edx
call fcn.004119c0
lea ecx, [ebp - 0x208]
call fcn.004119c0
test edi, edi
je 0x412e34
push dword [ebp - 0xf4]
mov edx, ebx
push ecx
mov ecx, edi
call fcn.00413670
mov eax, dword [ebp - 0x118]
add esp, 8
sub eax, edi
sar eax, 5
push eax
push edi
call fcn.00413190
mov esi, dword [ebp - 0x12c]
test esi, esi
je 0x412e75
push dword [ebp - 0xf4]
mov edx, dword [ebp - 0x128]
push ecx
mov ecx, esi
call fcn.004136d0
mov ecx, dword [ebp - 0x124]
mov eax, 0x2aaaaaab
sub ecx, esi
add esp, 8
imul ecx
sar edx, 2
mov eax, edx
shr eax, 0x1f
add eax, edx
push eax
push esi
call fcn.00413250
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.0045bdad
mov esp, ebp
pop ebp
ret 4