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

Disassembly:
push 0xffffffffffffffff
push 0x40d212
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 + 0x40f6dc]
mov word [eax + 0x415638], cx
add eax, 2
cmp cx, bx
jne 0x4022a0
push ebx
push ebx
call dword [sym.imp.ole32.dll_CoInitializeEx]
test eax, eax
jl 0x4022dd
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 0x4022e7
call dword [sym.imp.ole32.dll_CoUninitialize]
mov eax, 1
jmp 0x402705
lea eax, [esp + 0x18]
push eax
push 0x40f528
push 1
push ebx
push 0x40f5f8
mov dword [esp + 0x2c], ebx
call dword [sym.imp.ole32.dll_CoCreateInstance]
cmp eax, ebx
jl 0x4022d7
sub esp, 0x1c
mov ecx, esp
mov dword [esp + 0x40], esp
push 0x40f82c
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.00409650
add esp, 0x1c
mov dword [esp + 0x1a8], ebx
cmp dword [esp + 0x160], 0x10
mov eax, dword [esp + 0x14c]
jae 0x40234d
lea eax, [esp + 0x14c]
push 0xfde9
lea ecx, [esp + 0x4c]
push eax
lea eax, [esp + 0x4c]
mov dword [esp + 0x4c], ecx
call fcn.0040abc0
lea edx, [esp + 0x1c]
mov byte [esp + 0x1a8], 1
mov ecx, dword [esp + 0x44]
push edx
call fcn.0040aa10
mov byte [esp + 0x1a8], 3
mov eax, dword [esp + 0x44]
lea ecx, [esp + 0x48]
cmp eax, ecx
je 0x402398
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 0x4023b8
mov ecx, dword [eax]
jmp 0x4023ba
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 0x402444
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 0x402422
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 0x402705
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 0x402486
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.0040aae0
jmp 0x402422
sub esp, 0x1c
mov ecx, esp
mov dword [esp + 0x40], esp
push 0x40f844
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.00409650
mov byte [esp + 0x1c4], 5
mov ecx, esp
mov dword [esp + 0x40], esp
push 0x40f854
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.00409650
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 0x402507
lea eax, [esp + 0x168]
push eax
lea ebx, [esp + 0x28]
call fcn.00401aa0
mov esi, eax
push 0x40f868
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 0x40253b
mov ecx, dword [ecx]
jmp 0x40253d
xor ecx, ecx
mov eax, dword [eax]
test eax, eax
je 0x402547
mov edx, dword [eax]
jmp 0x402549
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 0x4025d6
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.0040aae0
jmp 0x402422
mov eax, dword [esp + 0x20]
mov dword [esp + 0x30], 0
test eax, eax
je 0x402680
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 0x402680
mov eax, dword [esp + 0x2c]
mov ecx, dword [eax]
push 0
push 0
lea edx, [esp + 0x3c]
push edx
push 0
push 0x40f86c
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 0x402630
mov edi, 0x415638
sub eax, edx
add edi, 0xfffffffe
mov cx, word [edi + 2]
add edi, 2
test cx, cx
jne 0x402645
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 0x4025f0
mov eax, dword [esp + 0x2c]
test eax, eax
jne 0x402690
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.0040aae0
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.0040bc76
add esp, 0x19c
ret