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

Disassembly:
push 0xe4
mov eax, 0x5a0945
call fcn.0056beab
mov eax, dword [ebp + 8]
mov dword [ebp - 0x58], eax
mov eax, dword [ebp + 0xc]
mov esi, ecx
lea ecx, [ebp - 0x48]
mov dword [ebp - 0x50], eax
mov dword [ebp - 0x4c], esi
call fcn.0040379b
xor ebx, ebx
mov dword [ebp - 4], ebx
lea eax, [ebp - 0xf0]
push eax
call fcn.00403aba
mov edi, eax
mov byte [ebp - 4], 1
push 0x5f2f60
push edi
call fcn.0040635f
push dword [ebp - 0x50]
push edi
call fcn.0040635f
push str.__Query:
push edi
call fcn.0040635f
push esi
push edi
call fcn.0040635f
add esp, 0x20
lea eax, [ebp - 0x2c]
push eax
mov eax, edi
call fcn.00403b24
mov byte [ebp - 4], 2
cmp dword [ebp - 0x18], 8
mov eax, dword [ebp - 0x2c]
jae 0x4d18fc
lea eax, [ebp - 0x2c]
push eax
push 4
pop ecx
call fcn.0047feaf
pop ecx
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x2c]
call fcn.004037d0
mov byte [ebp - 4], bl
lea eax, [ebp - 0xf0]
call fcn.004027ed
mov edi, dword [ebp - 0x58]
mov eax, edi
call fcn.004d1826
cmp dword [edi + 8], ebx
jl 0x4d1ca1
add edi, 0x20
push edi
push 0x5c237c
push 1
push ebx
push 0x5c244c
call dword [sym.imp.ole32.dll_CoCreateInstance]
mov esi, eax
cmp esi, ebx
je 0x4d19ec
lea eax, [ebp - 0xf0]
push eax
call fcn.00403aba
mov edi, eax
mov byte [ebp - 4], 3
push str.CoCreateInstance_failed__
push edi
call fcn.0040635f
pop ecx
pop ecx
cmp edi, ebx
jne 0x4d197b
xor eax, eax
jmp 0x4d1982
mov eax, dword [edi]
mov eax, dword [eax + 4]
add eax, edi
mov ecx, dword [eax + 0x14]
and ecx, 0xfffff9ff
push esi
or ecx, 0x800
push edi
mov dword [eax + 0x14], ecx
call fcn.004108f3
push str.__in_updtWmiHelperClass::Initialize_
push edi
call fcn.0040635f
pop ecx
pop ecx
lea eax, [ebp - 0x2c]
push eax
mov eax, edi
call fcn.00403b24
mov byte [ebp - 4], 4
cmp dword [ebp - 0x18], 8
mov eax, dword [ebp - 0x2c]
jae 0x4d19c3
lea eax, [ebp - 0x2c]
xor ecx, ecx
push eax
inc ecx
call fcn.0047feaf
pop ecx
mov byte [ebp - 4], 3
lea ecx, [ebp - 0x2c]
call fcn.004037d0
mov byte [ebp - 4], bl
lea eax, [ebp - 0xf0]
call fcn.004027ed
jmp 0x4d1ca1
push str.CoCreateInstance_success_n
push 4
pop ecx
call fcn.0047feaf
pop ecx
push dword [ebp - 0x50]
lea eax, [ebp - 0x48]
push eax
call fcn.00404560
cmp dword [ebp - 0x34], 8
mov ecx, dword [ebp - 0x48]
jae 0x4d1a12
lea ecx, [ebp - 0x48]
mov esi, dword [ebp - 0x58]
mov eax, dword [edi]
mov edx, dword [eax]
add esi, 0x24
push esi
push ebx
push ebx
push ebx
push ebx
push ebx
push ebx
push ecx
push eax
call dword [edx + 0xc]
mov edi, eax
cmp edi, ebx
jge 0x4d1ab4
lea eax, [ebp - 0xf0]
push eax
call fcn.00403aba
mov esi, eax
mov byte [ebp - 4], 5
push str.ConnectServer_failed__
push esi
call fcn.0040635f
pop ecx
pop ecx
cmp esi, ebx
jne 0x4d1a59
xor eax, eax
jmp 0x4d1a60
mov eax, dword [esi]
mov eax, dword [eax + 4]
add eax, esi
mov ecx, dword [eax + 0x14]
and ecx, 0xfffff9ff
push edi
or ecx, 0x800
push esi
mov dword [eax + 0x14], ecx
call fcn.004108f3
push str.__in_updtWmiHelperClass::Initialize_
push esi
call fcn.0040635f
pop ecx
pop ecx
lea eax, [ebp - 0x2c]
push eax
mov eax, esi
call fcn.00403b24
mov byte [ebp - 4], 6
cmp dword [ebp - 0x18], 8
mov eax, dword [ebp - 0x2c]
jae 0x4d1aa1
lea eax, [ebp - 0x2c]
xor ecx, ecx
push eax
inc ecx
call fcn.0047feaf
pop ecx
mov byte [ebp - 4], 5
jmp 0x4d19d1
push str.ConnectServer_success
push 4
pop ecx
call fcn.0047feaf
pop ecx
push ebx
push ebx
push 3
push 3
push ebx
push ebx
push 0xa
push dword [esi]
call dword [sym.imp.ole32.dll_CoSetProxyBlanket]
mov edi, eax
cmp edi, ebx
jge 0x4d1b60
lea eax, [ebp - 0xf0]
push eax
call fcn.00403aba
mov esi, eax
mov byte [ebp - 4], 7
push str.CoSetProxyBlanket_failed__
push esi
call fcn.0040635f
pop ecx
pop ecx
cmp esi, ebx
jne 0x4d1b05
xor eax, eax
jmp 0x4d1b0c
mov eax, dword [esi]
mov eax, dword [eax + 4]
add eax, esi
mov ecx, dword [eax + 0x14]
and ecx, 0xfffff9ff
push edi
or ecx, 0x800
push esi
mov dword [eax + 0x14], ecx
call fcn.004108f3
push str._in_updtWmiHelperClass::Initialize_
push esi
call fcn.0040635f
pop ecx
pop ecx
lea eax, [ebp - 0x2c]
push eax
mov eax, esi
call fcn.00403b24
mov byte [ebp - 4], 8
cmp dword [ebp - 0x18], 8
mov eax, dword [ebp - 0x2c]
jae 0x4d1b4d
lea eax, [ebp - 0x2c]
xor ecx, ecx
push eax
inc ecx
call fcn.0047feaf
pop ecx
mov byte [ebp - 4], 7
jmp 0x4d19d1
push str.CoSetProxyBlanket_success
push 4
pop ecx
call fcn.0047feaf
pop ecx
push dword [ebp - 0x4c]
lea eax, [ebp - 0x48]
push eax
call fcn.00404560
push 0x5f31a4
lea edi, [ebp - 0x50]
call fcn.004d1573
mov byte [ebp - 4], 9
push dword [ebp - 0x4c]
lea edi, [ebp - 0x4c]
call fcn.004d1573
mov byte [ebp - 4], 0xa
mov eax, dword [ebp - 0x4c]
cmp eax, ebx
je 0x4d1ba8
mov eax, dword [eax]
mov dword [ebp - 0x54], eax
jmp 0x4d1bab
mov dword [ebp - 0x54], ebx
mov eax, dword [ebp - 0x50]
cmp eax, ebx
je 0x4d1bb6
mov eax, dword [eax]
jmp 0x4d1bb8
xor eax, eax
mov edi, dword [ebp - 0x58]
mov esi, dword [esi]
mov ecx, dword [esi]
lea edx, [edi + 0x28]
push edx
push ebx
push 0x10
push dword [ebp - 0x54]
push eax
push esi
call dword [ecx + 0x50]
mov dword [ebp - 0x54], eax
cmp eax, ebx
jge 0x4d1c71
lea eax, [ebp - 0xf0]
push eax
call fcn.00403aba
mov esi, eax
mov byte [ebp - 4], 0xb
push str.ExecQuery_failed__
push esi
call fcn.0040635f
pop ecx
pop ecx
cmp esi, ebx
jne 0x4d1c00
xor eax, eax
jmp 0x4d1c07
mov eax, dword [esi]
mov eax, dword [eax + 4]
add eax, esi
mov ecx, dword [eax + 0x14]
push dword [ebp - 0x54]
and ecx, 0xfffff9ff
or ecx, 0x800
push esi
mov dword [eax + 0x14], ecx
call fcn.004108f3
push str._in_updtWmiHelperClass::Initialize_
push esi
call fcn.0040635f
pop ecx
pop ecx
lea eax, [ebp - 0x2c]
push eax
mov eax, esi
call fcn.00403b24
mov byte [ebp - 4], 0xc
cmp dword [ebp - 0x18], 8
mov eax, dword [ebp - 0x2c]
jae 0x4d1c4a
lea eax, [ebp - 0x2c]
xor ecx, ecx
push eax
inc ecx
call fcn.0047feaf
pop ecx
mov byte [ebp - 4], 0xb
lea ecx, [ebp - 0x2c]
call fcn.004037d0
mov byte [ebp - 4], 0xa
lea eax, [ebp - 0xf0]
call fcn.004027ed
jmp 0x4d1c8a
push str.Begin_MoveNextRecord
push 4
pop ecx
call fcn.0047feaf
pop ecx
mov ecx, edi
call fcn.004d22fc
test al, al
jne 0x4d1cc7
mov byte [ebp - 4], 9
lea edi, [ebp - 0x4c]
call fcn.004d162c
mov byte [ebp - 4], bl
lea edi, [ebp - 0x50]
call fcn.004d162c
mov eax, dword [ebp - 0x58]
call fcn.004d1826
push str.Exit_updtWmiHelperClass::Initialize_with_error_n
push 4
pop ecx
call fcn.0047feaf
pop ecx
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x48]
call fcn.004037d0
xor al, al
jmp 0x4d1cfa
push str.Exit_updtWmiHelperClass::Initialize
push 4
pop ecx
call fcn.0047feaf
pop ecx
mov byte [ebp - 4], 9
lea edi, [ebp - 0x4c]
call fcn.004d162c
mov byte [ebp - 4], bl
lea edi, [ebp - 0x50]
call fcn.004d162c
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x48]
call fcn.004037d0
mov al, 1
call fcn.0056bf2e
ret 8