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

Disassembly:
push 0xffffffffffffffff
push 0x40d692
mov eax, dword fs:[0]
push eax
sub esp, 0x190
mov eax, dword [0x41304c]
xor eax, esp
mov dword [esp + 0x18c], eax
push ebx
push esi
push edi
mov eax, dword [0x41304c]
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 + 0x40f70c]
mov word [eax + 0x415648], cx
add eax, 2
cmp cx, bx
jne 0x401fc0
push ebx
push ebx
call dword [sym.imp.ole32.dll_CoInitializeEx]
test eax, eax
jl 0x401ffd
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 0x402007
call dword [sym.imp.ole32.dll_CoUninitialize]
mov eax, 1
jmp 0x402425
lea eax, [esp + 0x18]
push eax
push 0x40f558
push 1
push ebx
push 0x40f628
mov dword [esp + 0x2c], ebx
call dword [sym.imp.ole32.dll_CoCreateInstance]
cmp eax, ebx
jl 0x401ff7
sub esp, 0x1c
mov ecx, esp
mov dword [esp + 0x40], esp
push 0x40f828
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.00409550
add esp, 0x1c
mov dword [esp + 0x1a8], ebx
cmp dword [esp + 0x160], 0x10
mov eax, dword [esp + 0x14c]
jae 0x40206d
lea eax, [esp + 0x14c]
push 0xfde9
lea ecx, [esp + 0x4c]
push eax
lea eax, [esp + 0x4c]
mov dword [esp + 0x4c], ecx
call fcn.0040b050
lea edx, [esp + 0x1c]
mov byte [esp + 0x1a8], 1
mov ecx, dword [esp + 0x44]
push edx
call fcn.0040aec0
mov byte [esp + 0x1a8], 3
mov eax, dword [esp + 0x44]
lea ecx, [esp + 0x48]
cmp eax, ecx
je 0x4020b8
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.00401c30
mov byte [esp + 0x1a8], 4
mov eax, dword [eax]
cmp eax, ebx
je 0x4020d8
mov ecx, dword [eax]
jmp 0x4020da
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.00401cd0
cmp esi, ebx
jge 0x402164
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 0x402142
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 0x402425
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 0x4021a6
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.0040aea0
jmp 0x402142
sub esp, 0x1c
mov ecx, esp
mov dword [esp + 0x40], esp
push 0x40f840
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.00409550
mov byte [esp + 0x1c4], 5
mov ecx, esp
mov dword [esp + 0x40], esp
push 0x40f850
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.00409550
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 0x402227
lea eax, [esp + 0x168]
push eax
lea ebx, [esp + 0x28]
call fcn.00401ba0
mov esi, eax
push 0x40f864
lea ebx, [esp + 0x2c]
mov byte [esp + 0x1ac], 7
call fcn.00401ba0
mov byte [esp + 0x1a8], 8
mov ecx, dword [esi]
test ecx, ecx
je 0x40225b
mov ecx, dword [ecx]
jmp 0x40225d
xor ecx, ecx
mov eax, dword [eax]
test eax, eax
je 0x402267
mov edx, dword [eax]
jmp 0x402269
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.00401cd0
lea edi, [esp + 0x24]
mov byte [esp + 0x1a8], 6
call fcn.00401cd0
test esi, esi
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 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.0040aea0
jmp 0x402142
mov eax, dword [esp + 0x20]
mov dword [esp + 0x30], 0
test eax, eax
je 0x4023a0
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 0x4023a0
mov eax, dword [esp + 0x2c]
mov ecx, dword [eax]
push 0
push 0
lea edx, [esp + 0x3c]
push edx
push 0
push 0x40f868
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 0x402350
mov edi, 0x415648
sub eax, edx
add edi, 0xfffffffe
mov cx, word [edi + 2]
add edi, 2
test cx, cx
jne 0x402365
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 0x402310
mov eax, dword [esp + 0x2c]
test eax, eax
jne 0x4023b0
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.0040aea0
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.0040c106
add esp, 0x19c
ret