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

Disassembly:
push 0xffffffffffffffff
push 0x40d6b2
mov eax, dword fs:[0]
push eax
sub esp, 0x190
mov eax, dword [0x413018]
xor eax, esp
mov dword [esp + 0x18c], eax
push ebx
push esi
push edi
mov eax, dword [0x413018]
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 + 0x40f714]
mov word [eax + 0x415648], cx
add eax, 2
cmp cx, bx
jne 0x401fe0
push ebx
push ebx
call dword [sym.imp.ole32.dll_CoInitializeEx]
test eax, eax
jl 0x40201d
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 0x402027
call dword [sym.imp.ole32.dll_CoUninitialize]
mov eax, 1
jmp 0x402445
lea eax, [esp + 0x18]
push eax
push 0x40f570
push 1
push ebx
push 0x40f640
mov dword [esp + 0x2c], ebx
call dword [sym.imp.ole32.dll_CoCreateInstance]
cmp eax, ebx
jl 0x402017
sub esp, 0x1c
mov ecx, esp
mov dword [esp + 0x40], esp
push 0x40f830
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.00409570
add esp, 0x1c
mov dword [esp + 0x1a8], ebx
cmp dword [esp + 0x160], 0x10
mov eax, dword [esp + 0x14c]
jae 0x40208d
lea eax, [esp + 0x14c]
push 0xfde9
lea ecx, [esp + 0x4c]
push eax
lea eax, [esp + 0x4c]
mov dword [esp + 0x4c], ecx
call fcn.0040b090
lea edx, [esp + 0x1c]
mov byte [esp + 0x1a8], 1
mov ecx, dword [esp + 0x44]
push edx
call fcn.0040aee0
mov byte [esp + 0x1a8], 3
mov eax, dword [esp + 0x44]
lea ecx, [esp + 0x48]
cmp eax, ecx
je 0x4020d8
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 0x4020f8
mov ecx, dword [eax]
jmp 0x4020fa
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 0x402184
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 0x402162
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 0x402445
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 0x4021c6
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.0040af90
jmp 0x402162
sub esp, 0x1c
mov ecx, esp
mov dword [esp + 0x40], esp
push 0x40f848
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.00409570
mov byte [esp + 0x1c4], 5
mov ecx, esp
mov dword [esp + 0x40], esp
push 0x40f858
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.00409570
add esp, 0x1c
lea eax, [esp + 0x180]
push eax
lea ecx, [esp + 0x168]
mov byte [esp + 0x1ac], 6
call dword [0x40f170]
cmp dword [esp + 0x17c], 0x10
mov eax, dword [esp + 0x168]
mov dword [esp + 0x20], ebx
jae 0x402247
lea eax, [esp + 0x168]
push eax
lea ebx, [esp + 0x28]
call fcn.00401ba0
mov esi, eax
push 0x40f86c
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 0x40227b
mov ecx, dword [ecx]
jmp 0x40227d
xor ecx, ecx
mov eax, dword [eax]
test eax, eax
je 0x402287
mov edx, dword [eax]
jmp 0x402289
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 0x402316
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.0040af90
jmp 0x402162
mov eax, dword [esp + 0x20]
mov dword [esp + 0x30], 0
test eax, eax
je 0x4023c0
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 0x4023c0
mov eax, dword [esp + 0x2c]
mov ecx, dword [eax]
push 0
push 0
lea edx, [esp + 0x3c]
push edx
push 0
push 0x40f870
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 0x402370
mov edi, 0x415648
sub eax, edx
add edi, 0xfffffffe
mov cx, word [edi + 2]
add edi, 2
test cx, cx
jne 0x402385
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 0x402330
mov eax, dword [esp + 0x2c]
test eax, eax
jne 0x4023d0
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.0040af90
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.0040b9fa
add esp, 0x19c
ret