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

Disassembly:
push 0xe4
mov eax, 0x52683b
call fcn.004f4139
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.0040318b
xor ebx, ebx
mov dword [ebp - 4], ebx
lea eax, [ebp - 0xf0]
push eax
call fcn.004036d7
mov edi, eax
mov byte [ebp - 4], 1
push str.Enter_updtWmiHelperClass::Initialize._NameSpace:
push edi
call fcn.00406897
push dword [ebp - 0x50]
push edi
call fcn.00406897
push str.__Query:
push edi
call fcn.00406897
push esi
push edi
call fcn.00406897
add esp, 0x20
lea eax, [ebp - 0x2c]
push eax
mov eax, edi
call fcn.00403741
mov byte [ebp - 4], 2
cmp dword [ebp - 0x18], 8
mov eax, dword [ebp - 0x2c]
jae 0x4598f7
lea eax, [ebp - 0x2c]
push eax
push 4
pop ecx
call fcn.004284f3
pop ecx
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x2c]
call fcn.004014ad
mov byte [ebp - 4], bl
lea eax, [ebp - 0xf0]
call fcn.004025ae
mov edi, dword [ebp - 0x58]
mov eax, edi
call fcn.00459821
cmp dword [edi + 8], ebx
jl 0x459c9c
add edi, 0x20
push edi
push 0x533ed8
push 1
push ebx
push 0x533fa8
call dword [sym.imp.ole32.dll_CoCreateInstance]
mov esi, eax
cmp esi, ebx
je 0x4599e7
lea eax, [ebp - 0xf0]
push eax
call fcn.004036d7
mov edi, eax
mov byte [ebp - 4], 3
push str.CoCreateInstance_failed__
push edi
call fcn.00406897
pop ecx
pop ecx
cmp edi, ebx
jne 0x459976
xor eax, eax
jmp 0x45997d
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.0041b3d0
push str.__in_updtWmiHelperClass::Initialize_
push edi
call fcn.00406897
pop ecx
pop ecx
lea eax, [ebp - 0x2c]
push eax
mov eax, edi
call fcn.00403741
mov byte [ebp - 4], 4
cmp dword [ebp - 0x18], 8
mov eax, dword [ebp - 0x2c]
jae 0x4599be
lea eax, [ebp - 0x2c]
xor ecx, ecx
push eax
inc ecx
call fcn.004284f3
pop ecx
mov byte [ebp - 4], 3
lea ecx, [ebp - 0x2c]
call fcn.004014ad
mov byte [ebp - 4], bl
lea eax, [ebp - 0xf0]
call fcn.004025ae
jmp 0x459c9c
push str.CoCreateInstance_success_n
push 4
pop ecx
call fcn.004284f3
pop ecx
push dword [ebp - 0x50]
lea eax, [ebp - 0x48]
push eax
call fcn.00403fad
cmp dword [ebp - 0x34], 8
mov ecx, dword [ebp - 0x48]
jae 0x459a0d
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 0x459aaf
lea eax, [ebp - 0xf0]
push eax
call fcn.004036d7
mov esi, eax
mov byte [ebp - 4], 5
push str.ConnectServer_failed__
push esi
call fcn.00406897
pop ecx
pop ecx
cmp esi, ebx
jne 0x459a54
xor eax, eax
jmp 0x459a5b
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.0041b3d0
push str.__in_updtWmiHelperClass::Initialize_
push esi
call fcn.00406897
pop ecx
pop ecx
lea eax, [ebp - 0x2c]
push eax
mov eax, esi
call fcn.00403741
mov byte [ebp - 4], 6
cmp dword [ebp - 0x18], 8
mov eax, dword [ebp - 0x2c]
jae 0x459a9c
lea eax, [ebp - 0x2c]
xor ecx, ecx
push eax
inc ecx
call fcn.004284f3
pop ecx
mov byte [ebp - 4], 5
jmp 0x4599cc
push str.ConnectServer_success
push 4
pop ecx
call fcn.004284f3
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 0x459b5b
lea eax, [ebp - 0xf0]
push eax
call fcn.004036d7
mov esi, eax
mov byte [ebp - 4], 7
push str.CoSetProxyBlanket_failed__
push esi
call fcn.00406897
pop ecx
pop ecx
cmp esi, ebx
jne 0x459b00
xor eax, eax
jmp 0x459b07
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.0041b3d0
push str._in_updtWmiHelperClass::Initialize_
push esi
call fcn.00406897
pop ecx
pop ecx
lea eax, [ebp - 0x2c]
push eax
mov eax, esi
call fcn.00403741
mov byte [ebp - 4], 8
cmp dword [ebp - 0x18], 8
mov eax, dword [ebp - 0x2c]
jae 0x459b48
lea eax, [ebp - 0x2c]
xor ecx, ecx
push eax
inc ecx
call fcn.004284f3
pop ecx
mov byte [ebp - 4], 7
jmp 0x4599cc
push str.CoSetProxyBlanket_success
push 4
pop ecx
call fcn.004284f3
pop ecx
push dword [ebp - 0x4c]
lea eax, [ebp - 0x48]
push eax
call fcn.00403fad
push 0x549a84
lea edi, [ebp - 0x50]
call fcn.00459562
mov byte [ebp - 4], 9
push dword [ebp - 0x4c]
lea edi, [ebp - 0x4c]
call fcn.00459562
mov byte [ebp - 4], 0xa
mov eax, dword [ebp - 0x4c]
cmp eax, ebx
je 0x459ba3
mov eax, dword [eax]
mov dword [ebp - 0x54], eax
jmp 0x459ba6
mov dword [ebp - 0x54], ebx
mov eax, dword [ebp - 0x50]
cmp eax, ebx
je 0x459bb1
mov eax, dword [eax]
jmp 0x459bb3
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 0x459c6c
lea eax, [ebp - 0xf0]
push eax
call fcn.004036d7
mov esi, eax
mov byte [ebp - 4], 0xb
push str.ExecQuery_failed__
push esi
call fcn.00406897
pop ecx
pop ecx
cmp esi, ebx
jne 0x459bfb
xor eax, eax
jmp 0x459c02
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.0041b3d0
push str._in_updtWmiHelperClass::Initialize_
push esi
call fcn.00406897
pop ecx
pop ecx
lea eax, [ebp - 0x2c]
push eax
mov eax, esi
call fcn.00403741
mov byte [ebp - 4], 0xc
cmp dword [ebp - 0x18], 8
mov eax, dword [ebp - 0x2c]
jae 0x459c45
lea eax, [ebp - 0x2c]
xor ecx, ecx
push eax
inc ecx
call fcn.004284f3
pop ecx
mov byte [ebp - 4], 0xb
lea ecx, [ebp - 0x2c]
call fcn.004014ad
mov byte [ebp - 4], 0xa
lea eax, [ebp - 0xf0]
call fcn.004025ae
jmp 0x459c85
push str.Begin_MoveNextRecord
push 4
pop ecx
call fcn.004284f3
pop ecx
mov ecx, edi
call fcn.0045a2f7
test al, al
jne 0x459cc2
mov byte [ebp - 4], 9
lea edi, [ebp - 0x4c]
call fcn.0045961b
mov byte [ebp - 4], bl
lea edi, [ebp - 0x50]
call fcn.0045961b
mov eax, dword [ebp - 0x58]
call fcn.00459821
push str.Exit_updtWmiHelperClass::Initialize_with_error_n
push 4
pop ecx
call fcn.004284f3
pop ecx
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x48]
call fcn.004014ad
xor al, al
jmp 0x459cf5
push str.Exit_updtWmiHelperClass::Initialize
push 4
pop ecx
call fcn.004284f3
pop ecx
mov byte [ebp - 4], 9
lea edi, [ebp - 0x4c]
call fcn.0045961b
mov byte [ebp - 4], bl
lea edi, [ebp - 0x50]
call fcn.0045961b
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x48]
call fcn.004014ad
mov al, 1
call fcn.004f41bc
ret 8