Function at 0x4e7e9f
Capabilities:
Connect to wmi namespace via wbemlocator

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x55e961
mov eax, dword fs:[0]
push eax
sub esp, 0x26c
mov eax, dword [0x5b4a28]
xor eax, ebp
mov dword [ebp - 0x10], eax
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
and dword [ebp - 0x164], 0
push str._Sys_wrapper_get_largest_free_driver_hd_wmi
push 0
call fcn.00417342
pop ecx
pop ecx
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 - 0x94], eax
cmp dword [ebp - 0x94], 0
jge 0x4e7f43
push dword [ebp - 0x94]
push str._Sys_wrapper_Failed_to_initialize_security._Error_code___x
push 4
call fcn.00417342
add esp, 0xc
push 0x57e00e
mov ecx, dword [ebp + 8]
call fcn.004045a0
and dword [ebp - 4], 0
mov eax, dword [ebp - 0x164]
or eax, 1
mov dword [ebp - 0x164], eax
mov eax, dword [ebp + 8]
jmp 0x4e882d
and dword [ebp - 0x8c], 0
lea eax, [ebp - 0x8c]
push eax
push 0x588870
push 1
push 0
push 0x588940
call dword [sym.imp.ole32.dll_CoCreateInstance]
mov dword [ebp - 0x94], eax
cmp dword [ebp - 0x94], 0
jge 0x4e7fb1
push dword [ebp - 0x94]
push str._Sys_wrapper_Failed_to_create_IWbemLocator_object.Err_code___x
push 4
call fcn.00417342
add esp, 0xc
push 0x57e00f
mov ecx, dword [ebp + 8]
call fcn.004045a0
and dword [ebp - 4], 0
mov eax, dword [ebp - 0x164]
or eax, 1
mov dword [ebp - 0x164], eax
mov eax, dword [ebp + 8]
jmp 0x4e882d
and dword [ebp - 0xa0], 0
push str.ROOTCIMV2
lea ecx, [ebp - 0x158]
call fcn.004eabfd
mov dword [ebp - 0x24c], eax
mov eax, dword [ebp - 0x24c]
mov dword [ebp - 0x194], eax
mov dword [ebp - 4], 1
mov eax, dword [ebp - 0x194]
cmp dword [eax], 0
je 0x4e800a
mov eax, dword [ebp - 0x194]
mov eax, dword [eax]
mov dword [ebp - 0x190], eax
mov eax, dword [ebp - 0x190]
mov eax, dword [eax]
mov dword [ebp - 0x250], eax
jmp 0x4e8011
and dword [ebp - 0x250], 0
lea eax, [ebp - 0xa0]
push eax
push 0
push 0
push 0
push 0
push 0
push 0
push dword [ebp - 0x250]
push dword [ebp - 0x8c]
mov eax, dword [ebp - 0x8c]
mov eax, dword [eax]
call dword [eax + 0xc]
mov dword [ebp - 0x94], eax
mov byte [ebp - 4], 0
cmp dword [ebp - 0x158], 0
je 0x4e8060
mov ecx, dword [ebp - 0x158]
call fcn.004eacec
and dword [ebp - 0x158], 0
cmp dword [ebp - 0x94], 0
jge 0x4e80b7
push dword [ebp - 0x94]
push str._Sys_wrapper_Could_not_connect._Error_code___x
push 4
call fcn.00417342
add esp, 0xc
mov eax, dword [ebp - 0x8c]
mov eax, dword [eax]
push dword [ebp - 0x8c]
call dword [eax + 8]
push 0x57e092
mov ecx, dword [ebp + 8]
call fcn.004045a0
and dword [ebp - 4], 0
mov eax, dword [ebp - 0x164]
or eax, 1
mov dword [ebp - 0x164], eax
mov eax, dword [ebp + 8]
jmp 0x4e882d
push 0
push 0
push 3
push 3
push 0
push 0
push 0xa
push dword [ebp - 0xa0]
call dword [sym.imp.ole32.dll_CoSetProxyBlanket]
mov dword [ebp - 0x94], eax
cmp dword [ebp - 0x94], 0
jge 0x4e813f
push dword [ebp - 0x94]
push str._Sys_wrapper_Could_not_set_proxy_blanket._Error_code___x
push 4
call fcn.00417342
add esp, 0xc
mov eax, dword [ebp - 0xa0]
mov eax, dword [eax]
push dword [ebp - 0xa0]
call dword [eax + 8]
mov eax, dword [ebp - 0x8c]
mov eax, dword [eax]
push dword [ebp - 0x8c]
call dword [eax + 8]
push 0x57e093
mov ecx, dword [ebp + 8]
call fcn.004045a0
and dword [ebp - 4], 0
mov eax, dword [ebp - 0x164]
or eax, 1
mov dword [ebp - 0x164], eax
mov eax, dword [ebp + 8]
jmp 0x4e882d
and dword [ebp - 0x90], 0
push str.Select__from_Win32_LogicalDisk
lea ecx, [ebp - 0x15c]
call fcn.004eab60
mov dword [ebp - 0x254], eax
mov eax, dword [ebp - 0x254]
mov dword [ebp - 0x1c4], eax
mov dword [ebp - 4], 2
push 0x57e564
lea ecx, [ebp - 0x160]
call fcn.004eab60
mov dword [ebp - 0x258], eax
mov eax, dword [ebp - 0x258]
mov dword [ebp - 0x1d4], eax
mov byte [ebp - 4], 3
mov eax, dword [ebp - 0x1c4]
cmp dword [eax], 0
je 0x4e81be
mov eax, dword [ebp - 0x1c4]
mov eax, dword [eax]
mov dword [ebp - 0x1c0], eax
mov eax, dword [ebp - 0x1c0]
mov eax, dword [eax]
mov dword [ebp - 0x25c], eax
jmp 0x4e81c5
and dword [ebp - 0x25c], 0
mov eax, dword [ebp - 0x1d4]
cmp dword [eax], 0
je 0x4e81ee
mov eax, dword [ebp - 0x1d4]
mov eax, dword [eax]
mov dword [ebp - 0x1d0], eax
mov eax, dword [ebp - 0x1d0]
mov eax, dword [eax]
mov dword [ebp - 0x260], eax
jmp 0x4e81f5
and dword [ebp - 0x260], 0
lea eax, [ebp - 0x90]
push eax
push 0
push 0x30
push dword [ebp - 0x25c]
push dword [ebp - 0x260]
push dword [ebp - 0xa0]
mov eax, dword [ebp - 0xa0]
mov eax, dword [eax]
call dword [eax + 0x50]
mov dword [ebp - 0x94], eax
mov byte [ebp - 4], 2
cmp dword [ebp - 0x160], 0
je 0x4e8242
mov ecx, dword [ebp - 0x160]
call fcn.004eacec
and dword [ebp - 0x160], 0
mov byte [ebp - 4], 0
cmp dword [ebp - 0x15c], 0
je 0x4e8261
mov ecx, dword [ebp - 0x15c]
call fcn.004eacec
and dword [ebp - 0x15c], 0
cmp dword [ebp - 0x94], 0
jge 0x4e82c9
push dword [ebp - 0x94]
push str._Sys_wrapper_Query_for_operating_system_name_failed._Error_code___x
push 4
call fcn.00417342
add esp, 0xc
mov eax, dword [ebp - 0xa0]
mov eax, dword [eax]
push dword [ebp - 0xa0]
call dword [eax + 8]
mov eax, dword [ebp - 0x8c]
mov eax, dword [eax]
push dword [ebp - 0x8c]
call dword [eax + 8]
push 0x57e0a6
mov ecx, dword [ebp + 8]
call fcn.004045a0
and dword [ebp - 4], 0
mov eax, dword [ebp - 0x164]
or eax, 1
mov dword [ebp - 0x164], eax
mov eax, dword [ebp + 8]
jmp 0x4e882d
and dword [ebp - 0x88], 0
and dword [ebp - 0x9c], 0
and dword [ebp - 0x98], 0
push 0x57e0a7
lea ecx, [ebp - 0xe4]
call fcn.004045a0
mov dword [ebp - 4], 4
lea eax, [ebp - 0xc8]
push eax
call fcn.004e8c18
pop ecx
mov byte [ebp - 4], 5
and dword [ebp - 0xac], 0
and dword [ebp - 0xa8], 0
cmp dword [ebp - 0x90], 0
je 0x4e872f
lea eax, [ebp - 0x88]
push eax
lea eax, [ebp - 0x84]
push eax
push 1
push 0xffffffffffffffff
mov eax, dword [ebp - 0x90]
mov eax, dword [eax]
push dword [ebp - 0x90]
call dword [eax + 0x10]
cmp dword [ebp - 0x88], 0
jne 0x4e8360
push str._Sys_wrapper_no_more_drive
push 0
call fcn.00417342
pop ecx
pop ecx
jmp 0x4e872f
push 0
push 0
lea eax, [ebp - 0x114]
push eax
push 0
push str.Name
mov eax, dword [ebp - 0x84]
mov eax, dword [eax]
push dword [ebp - 0x84]
call dword [eax + 0x10]
test eax, eax
jne 0x4e86e4
push 0
push 0
lea eax, [ebp - 0xf4]
push eax
push 0
push str.DriveType
mov eax, dword [ebp - 0x84]
mov eax, dword [eax]
push dword [ebp - 0x84]
call dword [eax + 0x10]
test eax, eax
jne 0x4e86e4
push 0
push 0
lea eax, [ebp - 0x104]
push eax
push 0
push str.FreeSpace
mov eax, dword [ebp - 0x84]
mov eax, dword [eax]
push dword [ebp - 0x84]
call dword [eax + 0x10]
test eax, eax
jne 0x4e86e4
movzx eax, word [ebp - 0x114]
cmp eax, 8
jne 0x4e86d4
movzx eax, word [ebp - 0x104]
cmp eax, 8
jne 0x4e86d4
cmp dword [ebp - 0x10c], 0
je 0x4e86d4
cmp dword [ebp - 0xfc], 0
je 0x4e86d4
push dword [ebp - 0x10c]
call fcn.004b7e5f
pop ecx
test eax, eax
jbe 0x4e86d4
push dword [ebp - 0xfc]
call fcn.004b7e5f
pop ecx
test eax, eax
jbe 0x4e86d4
lea eax, [ebp - 0x1fd]
mov dword [ebp - 0x1fc], eax
lea eax, [ebp - 0x138]
mov dword [ebp - 0x264], eax
mov byte [ebp - 4], 6
push 0
push 0
lea ecx, [ebp - 0x138]
call fcn.00405420
mov byte [ebp - 4], 7
lea eax, [ebp - 0x209]
mov dword [ebp - 0x208], eax
lea eax, [ebp - 0x154]
mov dword [ebp - 0x268], eax
mov byte [ebp - 4], 8
push 0
push 0
lea ecx, [ebp - 0x154]
call fcn.00405420
mov byte [ebp - 4], 9
push dword [ebp - 0x10c]
lea ecx, [ebp - 0x2c]
call fcn.0042ab1a
mov byte [ebp - 4], 0xa
lea eax, [ebp - 0x138]
push eax
lea eax, [ebp - 0x2c]
push eax
call fcn.0043c2c3
pop ecx
pop ecx
mov byte [ebp - 4], 0xb
push 0
push 1
lea ecx, [ebp - 0x2c]
call fcn.0041bda0
mov byte [ebp - 4], 9
push dword [ebp - 0xfc]
lea ecx, [ebp - 0x48]
call fcn.0042ab1a
mov byte [ebp - 4], 0xc
lea eax, [ebp - 0x154]
push eax
lea eax, [ebp - 0x48]
push eax
call fcn.0043c2c3
pop ecx
pop ecx
mov byte [ebp - 4], 0xd
push 0
push 1
lea ecx, [ebp - 0x48]
call fcn.0041bda0
mov byte [ebp - 4], 9
push dword [ebp - 0xfc]
call fcn.0051270f
pop ecx
mov dword [ebp - 0x11c], eax
mov dword [ebp - 0x118], edx
cmp dword [ebp - 0x140], 0x10
jb 0x4e8540
mov eax, dword [ebp - 0x154]
mov dword [ebp - 0x26c], eax
jmp 0x4e854c
lea eax, [ebp - 0x154]
mov dword [ebp - 0x26c], eax
cmp dword [ebp - 0x124], 0x10
jb 0x4e8563
mov eax, dword [ebp - 0x138]
mov dword [ebp - 0x270], eax
jmp 0x4e856f
lea eax, [ebp - 0x138]
mov dword [ebp - 0x270], eax
push dword [ebp - 0x98]
push dword [ebp - 0x9c]
push dword [ebp - 0x118]
push dword [ebp - 0x11c]
push dword [ebp - 0x26c]
push dword [ebp - 0xec]
push dword [ebp - 0x270]
push str._Sys_wrapper_compare_drive__s__DriveType:_d__free_str:_s__free:_I64u__last:_I64u
push 0
call fcn.00417342
add esp, 0x24
cmp dword [ebp - 0xec], 3
jne 0x4e866e
mov eax, dword [ebp - 0x118]
cmp eax, dword [ebp - 0x98]
jb 0x4e866e
ja 0x4e85db
mov eax, dword [ebp - 0x11c]
cmp eax, dword [ebp - 0x9c]
jbe 0x4e866e
lea eax, [ebp - 0xc8]
push eax
lea ecx, [ebp - 0x138]
call fcn.0043ad8f
neg eax
sbb eax, eax
inc eax
movzx eax, al
neg eax
sbb eax, eax
inc eax
movzx eax, al
test eax, eax
je 0x4e866e
mov eax, dword [ebp - 0x11c]
mov dword [ebp - 0x9c], eax
mov eax, dword [ebp - 0x118]
mov dword [ebp - 0x98], eax
push 0x57e654
lea eax, [ebp - 0x138]
push eax
lea eax, [ebp - 0x64]
push eax
call fcn.00436a68
add esp, 0xc
mov dword [ebp - 0x274], eax
mov eax, dword [ebp - 0x274]
mov dword [ebp - 0x234], eax
mov byte [ebp - 4], 0xe
push dword [ebp - 0x234]
lea ecx, [ebp - 0xe4]
call fcn.00405270
mov byte [ebp - 4], 0xf
push 0
push 1
lea ecx, [ebp - 0x64]
call fcn.00405420
mov byte [ebp - 4], 9
jmp 0x4e86a4
lea eax, [ebp - 0xc8]
push eax
lea ecx, [ebp - 0x138]
call fcn.0043ad8f
neg eax
sbb eax, eax
inc eax
movzx eax, al
test eax, eax
je 0x4e86a4
mov eax, dword [ebp - 0x11c]
mov dword [ebp - 0xac], eax
mov eax, dword [ebp - 0x118]
mov dword [ebp - 0xa8], eax
mov byte [ebp - 4], 0x10
push 0
push 1
lea ecx, [ebp - 0x154]
call fcn.00405420
mov byte [ebp - 4], 7
mov byte [ebp - 4], 0x11
push 0
push 1
lea ecx, [ebp - 0x138]
call fcn.00405420
mov byte [ebp - 4], 5
jmp 0x4e86e2
push str._Sys_wrapper_str_property_of_WbemClassObject_is_NULL_or_str_size_is_0
push 4
call fcn.00417342
pop ecx
pop ecx
jmp 0x4e86f2
push str._Sys_wrapper_get_property_of_WbemClassObject_failed
push 4
call fcn.00417342
pop ecx
pop ecx
lea eax, [ebp - 0x114]
push eax
call dword [sym.imp.OLEAUT32.dll_VariantCopy]
lea eax, [ebp - 0xf4]
push eax
call dword [sym.imp.OLEAUT32.dll_VariantCopy]
lea eax, [ebp - 0x104]
push eax
call dword [sym.imp.OLEAUT32.dll_VariantCopy]
mov eax, dword [ebp - 0x84]
mov eax, dword [eax]
push dword [ebp - 0x84]
call dword [eax + 8]
jmp 0x4e8314
mov eax, dword [ebp - 0x9c]
or eax, dword [ebp - 0x98]
jne 0x4e87a8
mov eax, dword [ebp - 0xac]
mov dword [ebp - 0x9c], eax
mov eax, dword [ebp - 0xa8]
mov dword [ebp - 0x98], eax
push 0x57e6d4
lea eax, [ebp - 0xc8]
push eax
lea eax, [ebp - 0x80]
push eax
call fcn.00436a68
add esp, 0xc
mov dword [ebp - 0x278], eax
mov eax, dword [ebp - 0x278]
mov dword [ebp - 0x23c], eax
mov byte [ebp - 4], 0x12
push dword [ebp - 0x23c]
lea ecx, [ebp - 0xe4]
call fcn.00405270
mov byte [ebp - 4], 0x13
push 0
push 1
lea ecx, [ebp - 0x80]
call fcn.00405420
mov byte [ebp - 4], 5
mov eax, dword [ebp - 0xa0]
mov eax, dword [eax]
push dword [ebp - 0xa0]
call dword [eax + 8]
mov eax, dword [ebp - 0x8c]
mov eax, dword [eax]
push dword [ebp - 0x8c]
call dword [eax + 8]
mov eax, dword [ebp - 0x90]
mov eax, dword [eax]
push dword [ebp - 0x90]
call dword [eax + 8]
lea eax, [ebp - 0xe4]
push eax
mov ecx, dword [ebp + 8]
call fcn.00404620
mov eax, dword [ebp - 0x164]
or eax, 1
mov dword [ebp - 0x164], eax
mov byte [ebp - 4], 0x14
push 0
push 1
lea ecx, [ebp - 0xc8]
call fcn.00405420
mov byte [ebp - 4], 4
mov dword [ebp - 4], 0x15
push 0
push 1
lea ecx, [ebp - 0xe4]
call fcn.00405420
mov byte [ebp - 4], 0
mov eax, dword [ebp + 8]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.004b2f5a
leave
ret