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

Disassembly:
push 0xffffffffffffffff
push 0x40ddf2
mov eax, dword fs:[0]
push eax
sub esp, 0x190
mov eax, dword [0x41404c]
xor eax, esp
mov dword [esp + 0x18c], eax
push ebx
push esi
push edi
mov eax, dword [0x41404c]
xor eax, esp
push eax
lea eax, [esp + 0x1a0]
mov dword fs:[0], eax
xor ebx, ebx
xor eax, eax
mov edi, edi
movzx ecx, word [eax + 0x4106f4]
mov word [eax + 0x416648], cx
add eax, 2
cmp cx, bx
jne 0x402110
push ebx
push ebx
call dword [sym.imp.ole32.dll_CoInitializeEx]
test eax, eax
jl 0x40214d
push ebx
push ebx
push ebx
push 3
push ebx
push ebx
push ebx
push 0xffffffffffffffff
push ebx
call dword [sym.imp.ole32.dll_CoInitializeSecurity]
test eax, eax
jge 0x402157
call dword [sym.imp.ole32.dll_CoUninitialize]
mov eax, 1
jmp 0x402575
lea eax, [esp + 0x18]
push eax
push 0x410540
push 1
push ebx
push 0x410610
mov dword [esp + 0x2c], ebx
call dword [sym.imp.ole32.dll_CoCreateInstance]
cmp eax, ebx
jl 0x402147
sub esp, 0x1c
mov ecx, esp
mov dword [esp + 0x40], esp
push 0x4107bc
mov dword [esp + 0x34], ebx
call dword [sym.imp.MSVCP90.dll_public:_void___thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::constructor_char_const__]
lea ecx, [esp + 0x164]
call fcn.00409930
add esp, 0x1c
mov dword [esp + 0x1a8], ebx
cmp dword [esp + 0x160], 0x10
mov eax, dword [esp + 0x14c]
jae 0x4021bd
lea eax, [esp + 0x14c]
push 0xfde9
lea ecx, [esp + 0x4c]
push eax
lea eax, [esp + 0x4c]
mov dword [esp + 0x4c], ecx
call fcn.0040b710
lea edx, [esp + 0x1c]
mov byte [esp + 0x1a8], 1
mov ecx, dword [esp + 0x44]
push edx
call fcn.0040b580
mov byte [esp + 0x1a8], 3
mov eax, dword [esp + 0x44]
lea ecx, [esp + 0x48]
cmp eax, ecx
je 0x402208
push eax
call dword [sym.imp.MSVCR90.dll_free]
add esp, 4
mov edi, dword [esp + 0x1c]
lea edx, [esp + 0x28]
push edx
call fcn.00401b30
mov byte [esp + 0x1a8], 4
mov eax, dword [eax]
cmp eax, ebx
je 0x402228
mov ecx, dword [eax]
jmp 0x40222a
xor ecx, ecx
mov eax, dword [esp + 0x18]
mov edx, dword [eax]
lea esi, [esp + 0x14]
push esi
push ebx
push ebx
push ebx
push ebx
push ebx
push ebx
push ecx
push eax
mov eax, dword [edx + 0xc]
call eax
lea edi, [esp + 0x28]
mov esi, eax
mov byte [esp + 0x1a8], 3
call fcn.00401bd0
cmp esi, ebx
jge 0x4022b4
mov eax, dword [esp + 0x18]
mov ecx, dword [eax]
mov edx, dword [ecx + 8]
push eax
call edx
call dword [sym.imp.ole32.dll_CoUninitialize]
mov byte [esp + 0x1a8], bl
mov eax, dword [esp + 0x1c]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x402292
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
lea ecx, [esp + 0x148]
mov dword [esp + 0x1a8], 0xffffffff
call dword [sym.imp.MSVCP90.dll_public:_void___thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::destructor_void_]
mov eax, 1
jmp 0x402575
mov ecx, dword [esp + 0x14]
push ebx
push ebx
push 3
push 3
push ebx
push ebx
push 0xa
push ecx
call dword [sym.imp.ole32.dll_CoSetProxyBlanket]
cmp eax, ebx
jge 0x4022f6
mov eax, dword [esp + 0x14]
mov edx, dword [eax]
push eax
mov eax, dword [edx + 8]
call eax
mov eax, dword [esp + 0x18]
mov ecx, dword [eax]
mov edx, dword [ecx + 8]
push eax
call edx
call dword [sym.imp.ole32.dll_CoUninitialize]
lea eax, [esp + 0x1c]
call fcn.0040b560
jmp 0x402292
sub esp, 0x1c
mov ecx, esp
mov dword [esp + 0x40], esp
push 0x4107d4
call dword [sym.imp.MSVCP90.dll_public:_void___thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::constructor_char_const__]
lea ecx, [esp + 0x180]
call fcn.00409930
mov byte [esp + 0x1c4], 5
mov ecx, esp
mov dword [esp + 0x40], esp
push 0x4107e4
call dword [sym.imp.MSVCP90.dll_public:_void___thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::constructor_char_const__]
lea ecx, [esp + 0x19c]
call fcn.00409930
add esp, 0x1c
lea eax, [esp + 0x180]
push eax
lea ecx, [esp + 0x168]
mov byte [esp + 0x1ac], 6
call dword [sym.imp.MSVCP90.dll_public:_class_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char______thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::operator_class_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char___const__]
cmp dword [esp + 0x17c], 0x10
mov eax, dword [esp + 0x168]
mov dword [esp + 0x20], ebx
jae 0x402377
lea eax, [esp + 0x168]
push eax
lea ebx, [esp + 0x28]
call fcn.00401aa0
mov esi, eax
push 0x4107f8
lea ebx, [esp + 0x2c]
mov byte [esp + 0x1ac], 7
call fcn.00401aa0
mov byte [esp + 0x1a8], 8
mov ecx, dword [esi]
test ecx, ecx
je 0x4023ab
mov ecx, dword [ecx]
jmp 0x4023ad
xor ecx, ecx
mov eax, dword [eax]
test eax, eax
je 0x4023b7
mov edx, dword [eax]
jmp 0x4023b9
xor edx, edx
mov eax, dword [esp + 0x14]
mov esi, dword [eax]
lea edi, [esp + 0x20]
push edi
push 0
push 0x30
push ecx
mov ecx, dword [esi + 0x50]
push edx
push eax
call ecx
lea edi, [esp + 0x28]
mov esi, eax
call fcn.00401bd0
lea edi, [esp + 0x24]
mov byte [esp + 0x1a8], 6
call fcn.00401bd0
test esi, esi
jge 0x402446
mov eax, dword [esp + 0x14]
mov edx, dword [eax]
push eax
mov eax, dword [edx + 8]
call eax
mov eax, dword [esp + 0x18]
mov ecx, dword [eax]
mov edx, dword [ecx + 8]
push eax
call edx
call dword [sym.imp.ole32.dll_CoUninitialize]
lea ecx, [esp + 0x180]
mov byte [esp + 0x1a8], 5
call dword [sym.imp.MSVCP90.dll_public:_void___thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::destructor_void_]
lea ecx, [esp + 0x164]
mov byte [esp + 0x1a8], 3
call dword [sym.imp.MSVCP90.dll_public:_void___thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::destructor_void_]
lea eax, [esp + 0x1c]
call fcn.0040b560
jmp 0x402292
mov eax, dword [esp + 0x20]
mov dword [esp + 0x30], 0
test eax, eax
je 0x4024f0
mov ebx, dword [sym.imp.OLEAUT32.dll_VariantCopy]
mov ecx, dword [eax]
lea edx, [esp + 0x30]
push edx
lea edx, [esp + 0x30]
push edx
push 1
push 0xffffffffffffffff
push eax
mov eax, dword [ecx + 0x10]
call eax
cmp dword [esp + 0x30], 0
je 0x4024f0
mov eax, dword [esp + 0x2c]
mov ecx, dword [eax]
push 0
push 0
lea edx, [esp + 0x3c]
push edx
push 0
push 0x4107fc
push eax
mov eax, dword [ecx + 0x10]
call eax
mov eax, dword [esp + 0x3c]
mov edx, eax
nop
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x4024a0
mov edi, 0x416648
sub eax, edx
add edi, 0xfffffffe
mov cx, word [edi + 2]
add edi, 2
test cx, cx
jne 0x4024b5
mov ecx, eax
shr ecx, 2
mov esi, edx
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
lea ecx, [esp + 0x34]
push ecx
call ebx
mov eax, dword [esp + 0x2c]
mov edx, dword [eax]
push eax
mov eax, dword [edx + 8]
call eax
mov eax, dword [esp + 0x20]
test eax, eax
jne 0x402460
mov eax, dword [esp + 0x2c]
test eax, eax
jne 0x402500
mov ecx, dword [eax]
mov edx, dword [ecx + 8]
push eax
call edx
mov eax, dword [esp + 0x14]
mov ecx, dword [eax]
mov edx, dword [ecx + 8]
push eax
call edx
mov eax, dword [esp + 0x18]
mov ecx, dword [eax]
mov edx, dword [ecx + 8]
push eax
call edx
mov eax, dword [esp + 0x20]
mov ecx, dword [eax]
mov edx, dword [ecx + 8]
push eax
call edx
call dword [sym.imp.ole32.dll_CoUninitialize]
lea ecx, [esp + 0x180]
mov byte [esp + 0x1a8], 5
call dword [sym.imp.MSVCP90.dll_public:_void___thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::destructor_void_]
lea ecx, [esp + 0x164]
mov byte [esp + 0x1a8], 3
call dword [sym.imp.MSVCP90.dll_public:_void___thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::destructor_void_]
lea eax, [esp + 0x1c]
call fcn.0040b560
lea ecx, [esp + 0x148]
mov dword [esp + 0x1a8], 0xffffffff
call dword [sym.imp.MSVCP90.dll_public:_void___thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::destructor_void_]
mov ecx, dword [esp + 0x1a0]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x18c]
xor ecx, esp
call fcn.0040c7c6
add esp, 0x19c
ret