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

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x478ab7
mov eax, dword fs:[0]
push eax
sub esp, 0x26c
mov eax, dword [0x4997d0]
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 0x481cfd
push 0
call fcn.0040479d
add esp, 0xc
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 0x409613
push dword [ebp - 0x94]
push str._Sys_wrapper_Failed_to_initialize_security._Error_code___x
push 0x481cfe
push 4
call fcn.0040479d
add esp, 0x10
push 0x481cff
mov ecx, dword [ebp + 8]
call fcn.00401c41
and dword [ebp - 4], 0
mov eax, dword [ebp - 0x164]
or eax, 1
mov dword [ebp - 0x164], eax
mov eax, dword [ebp + 8]
jmp 0x409feb
and dword [ebp - 0x8c], 0
lea eax, [ebp - 0x8c]
push eax
push 0x4889b8
push 1
push 0
push 0x488a88
call dword [sym.imp.ole32.dll_CoCreateInstance]
mov dword [ebp - 0x94], eax
cmp dword [ebp - 0x94], 0
jl 0x40964d
cmp dword [ebp - 0x8c], 0
jne 0x40968f
push dword [ebp - 0x94]
push str._Sys_wrapper_Failed_to_create_IWbemLocator_object.Err_code___x
push 0x481d02
push 4
call fcn.0040479d
add esp, 0x10
push 0x481d03
mov ecx, dword [ebp + 8]
call fcn.00401c41
and dword [ebp - 4], 0
mov eax, dword [ebp - 0x164]
or eax, 1
mov dword [ebp - 0x164], eax
mov eax, dword [ebp + 8]
jmp 0x409feb
and dword [ebp - 0xa0], 0
push 0x482078
lea ecx, [ebp - 0x158]
call fcn.00410a3d
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 0x4096e8
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 0x4096ef
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 0x40973e
mov ecx, dword [ebp - 0x158]
call fcn.00410b2c
and dword [ebp - 0x158], 0
cmp dword [ebp - 0x94], 0
jl 0x409750
cmp dword [ebp - 0xa0], 0
jne 0x4097b3
push dword [ebp - 0x94]
push str._Sys_wrapper_Could_not_connect._Error_code___x
push 0x481d37
push 4
call fcn.0040479d
add esp, 0x10
cmp dword [ebp - 0x8c], 0
je 0x40978b
mov eax, dword [ebp - 0x8c]
mov eax, dword [eax]
push dword [ebp - 0x8c]
call dword [eax + 8]
and dword [ebp - 0x8c], 0
push 0x481d61
mov ecx, dword [ebp + 8]
call fcn.00401c41
and dword [ebp - 4], 0
mov eax, dword [ebp - 0x164]
or eax, 1
mov dword [ebp - 0x164], eax
mov eax, dword [ebp + 8]
jmp 0x409feb
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 0x409864
push dword [ebp - 0x94]
push str._Sys_wrapper_Could_not_set_proxy_blanket._Error_code___x
push 0x481d62
push 4
call fcn.0040479d
add esp, 0x10
cmp dword [ebp - 0xa0], 0
je 0x40981b
mov eax, dword [ebp - 0xa0]
mov eax, dword [eax]
push dword [ebp - 0xa0]
call dword [eax + 8]
and dword [ebp - 0xa0], 0
cmp dword [ebp - 0x8c], 0
je 0x40983c
mov eax, dword [ebp - 0x8c]
mov eax, dword [eax]
push dword [ebp - 0x8c]
call dword [eax + 8]
and dword [ebp - 0x8c], 0
push 0x481d63
mov ecx, dword [ebp + 8]
call fcn.00401c41
and dword [ebp - 4], 0
mov eax, dword [ebp - 0x164]
or eax, 1
mov dword [ebp - 0x164], eax
mov eax, dword [ebp + 8]
jmp 0x409feb
and dword [ebp - 0x90], 0
push str.Select__from_Win32_LogicalDisk
lea ecx, [ebp - 0x15c]
call fcn.004109a0
mov dword [ebp - 0x254], eax
mov eax, dword [ebp - 0x254]
mov dword [ebp - 0x1c4], eax
mov dword [ebp - 4], 2
push 0x48211c
lea ecx, [ebp - 0x160]
call fcn.004109a0
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 0x4098e3
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 0x4098ea
and dword [ebp - 0x25c], 0
mov eax, dword [ebp - 0x1d4]
cmp dword [eax], 0
je 0x409913
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 0x40991a
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 0x409967
mov ecx, dword [ebp - 0x160]
call fcn.00410b2c
and dword [ebp - 0x160], 0
mov byte [ebp - 4], 0
cmp dword [ebp - 0x15c], 0
je 0x409986
mov ecx, dword [ebp - 0x15c]
call fcn.00410b2c
and dword [ebp - 0x15c], 0
cmp dword [ebp - 0x94], 0
jl 0x40999c
cmp dword [ebp - 0x90], 0
jne 0x409a20
push dword [ebp - 0x94]
push str._Sys_wrapper_Query_for_operating_system_name_failed._Error_code___x
push 0x481d8e
push 4
call fcn.0040479d
add esp, 0x10
cmp dword [ebp - 0xa0], 0
je 0x4099d7
mov eax, dword [ebp - 0xa0]
mov eax, dword [eax]
push dword [ebp - 0xa0]
call dword [eax + 8]
and dword [ebp - 0xa0], 0
cmp dword [ebp - 0x8c], 0
je 0x4099f8
mov eax, dword [ebp - 0x8c]
mov eax, dword [eax]
push dword [ebp - 0x8c]
call dword [eax + 8]
and dword [ebp - 0x8c], 0
push 0x481d8f
mov ecx, dword [ebp + 8]
call fcn.00401c41
and dword [ebp - 4], 0
mov eax, dword [ebp - 0x164]
or eax, 1
mov dword [ebp - 0x164], eax
mov eax, dword [ebp + 8]
jmp 0x409feb
and dword [ebp - 0x84], 0
and dword [ebp - 0x88], 0
and dword [ebp - 0x9c], 0
and dword [ebp - 0x98], 0
push 0x481dbe
lea ecx, [ebp - 0xe4]
call fcn.00401c41
mov dword [ebp - 4], 4
lea eax, [ebp - 0xc8]
push eax
call fcn.0040a3db
pop ecx
mov byte [ebp - 4], 5
and dword [ebp - 0xac], 0
and dword [ebp - 0xa8], 0
cmp dword [ebp - 0x90], 0
je 0x409ebd
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
je 0x409ab4
cmp dword [ebp - 0x84], 0
jne 0x409acd
push str._Sys_wrapper_no_more_drive
push 0x481dbf
push 0
call fcn.0040479d
add esp, 0xc
jmp 0x409ebd
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 0x409e5c
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 0x409e5c
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 0x409e5c
movzx eax, word [ebp - 0x114]
cmp eax, 8
jne 0x409e46
movzx eax, word [ebp - 0x104]
cmp eax, 8
jne 0x409e46
cmp dword [ebp - 0x10c], 0
je 0x409e46
cmp dword [ebp - 0xfc], 0
je 0x409e46
push dword [ebp - 0x10c]
call fcn.0044b4a8
pop ecx
test eax, eax
jbe 0x409e46
push dword [ebp - 0xfc]
call fcn.0044b4a8
pop ecx
test eax, eax
jbe 0x409e46
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.00401ecc
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.00401ecc
mov byte [ebp - 4], 9
push dword [ebp - 0x10c]
lea ecx, [ebp - 0x2c]
call fcn.00401d61
mov byte [ebp - 4], 0xa
lea eax, [ebp - 0x138]
push eax
lea eax, [ebp - 0x2c]
push eax
call fcn.004056c3
pop ecx
pop ecx
mov byte [ebp - 4], 0xb
push 0
push 1
lea ecx, [ebp - 0x2c]
call fcn.00401f59
mov byte [ebp - 4], 9
push dword [ebp - 0xfc]
lea ecx, [ebp - 0x48]
call fcn.00401d61
mov byte [ebp - 4], 0xc
lea eax, [ebp - 0x154]
push eax
lea eax, [ebp - 0x48]
push eax
call fcn.004056c3
pop ecx
pop ecx
mov byte [ebp - 4], 0xd
push 0
push 1
lea ecx, [ebp - 0x48]
call fcn.00401f59
mov byte [ebp - 4], 9
push dword [ebp - 0xfc]
call fcn.0044db05
pop ecx
mov dword [ebp - 0x11c], eax
mov dword [ebp - 0x118], edx
cmp dword [ebp - 0x140], 0x10
jb 0x409cad
mov eax, dword [ebp - 0x154]
mov dword [ebp - 0x26c], eax
jmp 0x409cb9
lea eax, [ebp - 0x154]
mov dword [ebp - 0x26c], eax
cmp dword [ebp - 0x124], 0x10
jb 0x409cd0
mov eax, dword [ebp - 0x138]
mov dword [ebp - 0x270], eax
jmp 0x409cdc
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 0x481df6
push 0
call fcn.0040479d
add esp, 0x28
cmp dword [ebp - 0xec], 3
jne 0x409de0
mov eax, dword [ebp - 0x118]
cmp eax, dword [ebp - 0x98]
jb 0x409de0
ja 0x409d4d
mov eax, dword [ebp - 0x11c]
cmp eax, dword [ebp - 0x9c]
jbe 0x409de0
lea eax, [ebp - 0xc8]
push eax
lea ecx, [ebp - 0x138]
call fcn.00411221
neg eax
sbb eax, eax
inc eax
movzx eax, al
neg eax
sbb eax, eax
inc eax
movzx eax, al
test eax, eax
je 0x409de0
mov eax, dword [ebp - 0x11c]
mov dword [ebp - 0x9c], eax
mov eax, dword [ebp - 0x118]
mov dword [ebp - 0x98], eax
push 0x48220c
lea eax, [ebp - 0x138]
push eax
lea eax, [ebp - 0x64]
push eax
call fcn.00417c6d
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.00401e1c
mov byte [ebp - 4], 0xf
push 0
push 1
lea ecx, [ebp - 0x64]
call fcn.00401ecc
mov byte [ebp - 4], 9
jmp 0x409e16
lea eax, [ebp - 0xc8]
push eax
lea ecx, [ebp - 0x138]
call fcn.00411221
neg eax
sbb eax, eax
inc eax
movzx eax, al
test eax, eax
je 0x409e16
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.00401ecc
mov byte [ebp - 4], 7
mov byte [ebp - 4], 0x11
push 0
push 1
lea ecx, [ebp - 0x138]
call fcn.00401ecc
mov byte [ebp - 4], 5
jmp 0x409e5a
push str._Sys_wrapper_str_property_of_WbemClassObject_is_NULL_or_str_size_is_0
push 0x481df7
push 4
call fcn.0040479d
add esp, 0xc
jmp 0x409e70
push str._Sys_wrapper_get_property_of_WbemClassObject_failed
push 0x481e02
push 4
call fcn.0040479d
add esp, 0xc
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]
cmp dword [ebp - 0x84], 0
je 0x409eb8
mov eax, dword [ebp - 0x84]
mov eax, dword [eax]
push dword [ebp - 0x84]
call dword [eax + 8]
and dword [ebp - 0x84], 0
jmp 0x409a72
mov eax, dword [ebp - 0x9c]
or eax, dword [ebp - 0x98]
jne 0x409f36
mov eax, dword [ebp - 0xac]
mov dword [ebp - 0x9c], eax
mov eax, dword [ebp - 0xa8]
mov dword [ebp - 0x98], eax
push 0x48228c
lea eax, [ebp - 0xc8]
push eax
lea eax, [ebp - 0x80]
push eax
call fcn.00417c6d
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.00401e1c
mov byte [ebp - 4], 0x13
push 0
push 1
lea ecx, [ebp - 0x80]
call fcn.00401ecc
mov byte [ebp - 4], 5
cmp dword [ebp - 0xa0], 0
je 0x409f57
mov eax, dword [ebp - 0xa0]
mov eax, dword [eax]
push dword [ebp - 0xa0]
call dword [eax + 8]
and dword [ebp - 0xa0], 0
cmp dword [ebp - 0x8c], 0
je 0x409f78
mov eax, dword [ebp - 0x8c]
mov eax, dword [eax]
push dword [ebp - 0x8c]
call dword [eax + 8]
and dword [ebp - 0x8c], 0
cmp dword [ebp - 0x90], 0
je 0x409f99
mov eax, dword [ebp - 0x90]
mov eax, dword [eax]
push dword [ebp - 0x90]
call dword [eax + 8]
and dword [ebp - 0x90], 0
lea eax, [ebp - 0xe4]
push eax
mov ecx, dword [ebp + 8]
call fcn.00401cb5
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.00401ecc
mov byte [ebp - 4], 4
mov dword [ebp - 4], 0x15
push 0
push 1
lea ecx, [ebp - 0xe4]
call fcn.00401ecc
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.0044b3ec
leave
ret