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

Disassembly:
sub esp, 0x5c
mov eax, dword [0x547570]
push ebx
push ebp
push esi
lea ecx, [esp + 0x14]
push edi
push ecx
xor ebp, ebp
push 0x543ecc
push 1
push ebp
push 0x543f9c
mov dword [esp + 0x24], eax
mov dword [esp + 0x2c], ebp
call dword [sym.imp.ole32.dll_CoCreateInstance]
test eax, eax
jge 0x4cd940
mov edi, dword [esp + 0x70]
mov edx, dword [0x547570]
mov eax, str.ERR_1
test eax, eax
mov dword [edi], edx
je 0x4cd8ff
push eax
call dword [sym.imp.KERNEL32.dll_lstrlenA]
mov esi, eax
cmp esi, ebp
je 0x4cd8ff
push esi
mov ecx, edi
call fcn.00405530
test eax, eax
je 0x4cd8ff
mov ecx, dword [edi]
inc esi
push esi
push str.ERR_1
push ecx
call fcn.00405400
add esp, 0xc
mov ecx, edi
push 0xffffffffffffffff
call fcn.00405bb0
mov eax, dword [esp + 0x10]
mov ecx, dword [0x547574]
lea edx, [eax - 0xc]
cmp edx, ecx
je 0x4cd9c2
add eax, 0xfffffff4
push eax
call dword [sym.imp.KERNEL32.dll_InterlockedDecrement]
test eax, eax
jg 0x4cd9c2
mov eax, dword [esp + 0x10]
add eax, 0xfffffff4
push eax
call fcn.00532222
add esp, 4
mov eax, edi
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x5c
ret
cmp dword [esp + 0x18], ebp
jne 0x4cd9cc
mov edi, dword [esp + 0x70]
mov ecx, dword [0x547570]
mov edx, str.No_OS_Info
test edx, edx
mov dword [edi], ecx
je 0x4cd993
push edx
call dword [sym.imp.KERNEL32.dll_lstrlenA]
mov esi, eax
cmp esi, ebp
je 0x4cd993
push esi
mov ecx, edi
call fcn.00405530
test eax, eax
je 0x4cd993
mov eax, dword [edi]
inc esi
push esi
push str.No_OS_Info
push eax
call fcn.00405400
add esp, 0xc
mov ecx, edi
push 0xffffffffffffffff
call fcn.00405bb0
mov eax, dword [esp + 0x10]
mov edx, dword [0x547574]
lea ecx, [eax - 0xc]
cmp ecx, edx
je 0x4cd9c2
add eax, 0xfffffff4
push eax
call dword [sym.imp.KERNEL32.dll_InterlockedDecrement]
test eax, eax
jg 0x4cd9c2
mov edx, dword [esp + 0x10]
add edx, 0xfffffff4
push edx
call fcn.00532222
add esp, 4
mov eax, edi
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x5c
ret
mov eax, dword [0x547570]
mov ebx, dword [sym.imp.KERNEL32.dll_lstrlenA]
mov ecx, 0x54c8f8
mov dword [esp + 0x30], ebp
test ecx, ecx
mov dword [esp + 0x2c], eax
je 0x4cda1e
push ecx
call ebx
mov esi, eax
cmp esi, ebp
je 0x4cda1e
push esi
lea ecx, [esp + 0x30]
call fcn.00405530
test eax, eax
je 0x4cda1e
mov edx, dword [esp + 0x2c]
inc esi
push esi
push 0x54c8f8
push edx
call fcn.00405400
add esp, 0xc
lea ecx, [esp + 0x2c]
push 0xffffffffffffffff
call fcn.00405bb0
mov eax, dword [0x547570]
mov ecx, 0x54f5ac
test ecx, ecx
mov dword [esp + 0x28], eax
je 0x4cda66
push ecx
call ebx
mov esi, eax
cmp esi, ebp
je 0x4cda66
push esi
lea ecx, [esp + 0x2c]
call fcn.00405530
test eax, eax
je 0x4cda66
mov edx, dword [esp + 0x28]
inc esi
push esi
push 0x54f5ac
push edx
call fcn.00405400
add esp, 0xc
lea ecx, [esp + 0x28]
push 0xffffffffffffffff
call fcn.00405bb0
mov eax, dword [0x547570]
mov ecx, 0x54f5a8
test ecx, ecx
mov dword [esp + 0x24], eax
je 0x4cdaae
push ecx
call ebx
mov esi, eax
cmp esi, ebp
je 0x4cdaae
push esi
lea ecx, [esp + 0x28]
call fcn.00405530
test eax, eax
je 0x4cdaae
mov edx, dword [esp + 0x24]
inc esi
push esi
push 0x54f5a8
push edx
call fcn.00405400
add esp, 0xc
lea ecx, [esp + 0x24]
push 0xffffffffffffffff
call fcn.00405bb0
mov eax, dword [0x547570]
mov ecx, 0x548318
test ecx, ecx
mov dword [esp + 0x20], eax
je 0x4cdaf6
push ecx
call ebx
mov esi, eax
cmp esi, ebp
je 0x4cdaf6
push esi
lea ecx, [esp + 0x24]
call fcn.00405530
test eax, eax
je 0x4cdaf6
mov edx, dword [esp + 0x20]
inc esi
push esi
push 0x548318
push edx
call fcn.00405400
add esp, 0xc
lea ecx, [esp + 0x20]
push 0xffffffffffffffff
call fcn.00405bb0
mov eax, dword [0x547570]
mov ecx, str.ROOT
test ecx, ecx
mov dword [esp + 0x1c], eax
je 0x4cdb3e
push ecx
call ebx
mov esi, eax
cmp esi, ebp
je 0x4cdb3e
push esi
lea ecx, [esp + 0x20]
call fcn.00405530
test eax, eax
je 0x4cdb3e
mov edx, dword [esp + 0x1c]
inc esi
push esi
push str.ROOT
push edx
call fcn.00405400
add esp, 0xc
lea ecx, [esp + 0x1c]
push 0xffffffffffffffff
call fcn.00405bb0
mov eax, dword [0x547570]
mov dword [esp + 0x3c], eax
mov eax, dword [esp + 0x20]
push eax
mov ecx, dword [eax - 8]
mov eax, dword [esp + 0x20]
push ecx
push eax
mov edx, dword [eax - 8]
lea ecx, [esp + 0x48]
push edx
call fcn.004059f0
lea eax, [esp + 0x3c]
lea ecx, [esp + 0x54]
push eax
call fcn.00405440
lea ecx, [esp + 0x3c]
call fcn.00405700
mov ecx, dword [0x547570]
mov eax, dword [esp + 0x24]
mov dword [esp + 0x40], ecx
push eax
mov edx, dword [eax - 8]
mov eax, dword [esp + 0x58]
push edx
push eax
mov eax, dword [eax - 8]
lea ecx, [esp + 0x4c]
push eax
call fcn.004059f0
lea ecx, [esp + 0x40]
push ecx
lea ecx, [esp + 0x54]
call fcn.00405440
lea ecx, [esp + 0x40]
call fcn.00405700
mov edx, dword [0x547570]
mov eax, dword [esp + 0x28]
mov dword [esp + 0x44], edx
push eax
mov eax, dword [eax - 8]
push eax
mov eax, dword [esp + 0x58]
push eax
mov ecx, dword [eax - 8]
push ecx
lea ecx, [esp + 0x54]
call fcn.004059f0
lea edx, [esp + 0x44]
lea ecx, [esp + 0x4c]
push edx
call fcn.00405440
lea ecx, [esp + 0x44]
call fcn.00405700
mov eax, dword [0x547570]
mov dword [esp + 0x48], eax
mov eax, dword [esp + 0x2c]
push eax
mov ecx, dword [eax - 8]
mov eax, dword [esp + 0x50]
push ecx
push eax
mov edx, dword [eax - 8]
lea ecx, [esp + 0x54]
push edx
call fcn.004059f0
lea eax, [esp + 0x48]
lea ecx, [esp + 0x14]
push eax
call fcn.00405440
lea ecx, [esp + 0x48]
call fcn.00405700
mov eax, dword [esp + 0x4c]
mov edx, dword [0x547574]
mov edi, dword [sym.imp.KERNEL32.dll_InterlockedDecrement]
lea ecx, [eax - 0xc]
cmp ecx, edx
je 0x4cdc5d
add eax, 0xfffffff4
push eax
call edi
test eax, eax
jg 0x4cdc5d
mov edx, dword [esp + 0x4c]
add edx, 0xfffffff4
push edx
call fcn.00532222
add esp, 4
mov eax, dword [esp + 0x50]
mov edx, dword [0x547574]
lea ecx, [eax - 0xc]
cmp ecx, edx
je 0x4cdc88
add eax, 0xfffffff4
push eax
call edi
test eax, eax
jg 0x4cdc88
mov edx, dword [esp + 0x50]
add edx, 0xfffffff4
push edx
call fcn.00532222
add esp, 4
mov eax, dword [esp + 0x54]
mov edx, dword [0x547574]
lea ecx, [eax - 0xc]
cmp ecx, edx
je 0x4cdcb3
add eax, 0xfffffff4
push eax
call edi
test eax, eax
jg 0x4cdcb3
mov edx, dword [esp + 0x54]
add edx, 0xfffffff4
push edx
call fcn.00532222
add esp, 4
mov eax, dword [esp + 0x1c]
mov edx, dword [0x547574]
lea ecx, [eax - 0xc]
cmp ecx, edx
je 0x4cdcde
add eax, 0xfffffff4
push eax
call edi
test eax, eax
jg 0x4cdcde
mov edx, dword [esp + 0x1c]
add edx, 0xfffffff4
push edx
call fcn.00532222
add esp, 4
mov eax, dword [esp + 0x20]
mov edx, dword [0x547574]
lea ecx, [eax - 0xc]
cmp ecx, edx
je 0x4cdd09
add eax, 0xfffffff4
push eax
call edi
test eax, eax
jg 0x4cdd09
mov edx, dword [esp + 0x20]
add edx, 0xfffffff4
push edx
call fcn.00532222
add esp, 4
mov eax, dword [esp + 0x24]
mov edx, dword [0x547574]
lea ecx, [eax - 0xc]
cmp ecx, edx
je 0x4cdd34
add eax, 0xfffffff4
push eax
call edi
test eax, eax
jg 0x4cdd34
mov edx, dword [esp + 0x24]
add edx, 0xfffffff4
push edx
call fcn.00532222
add esp, 4
mov eax, dword [esp + 0x28]
mov edx, dword [0x547574]
lea ecx, [eax - 0xc]
cmp ecx, edx
je 0x4cdd5f
add eax, 0xfffffff4
push eax
call edi
test eax, eax
jg 0x4cdd5f
mov edx, dword [esp + 0x28]
add edx, 0xfffffff4
push edx
call fcn.00532222
add esp, 4
mov eax, dword [esp + 0x2c]
mov edx, dword [0x547574]
lea ecx, [eax - 0xc]
cmp ecx, edx
je 0x4cdd8a
add eax, 0xfffffff4
push eax
call edi
test eax, eax
jg 0x4cdd8a
mov edx, dword [esp + 0x2c]
add edx, 0xfffffff4
push edx
call fcn.00532222
add esp, 4
mov eax, dword [esp + 0x14]
mov esi, dword [sym.imp.OLEAUT32.dll_SysReAllocStringLen]
mov ecx, dword [eax - 8]
push ecx
push eax
call esi
mov ecx, dword [esp + 0x18]
lea ebp, [esp + 0x30]
push ebp
xor ebp, ebp
mov edx, dword [ecx]
push ebp
push ebp
push ebp
push ebp
push ebp
push ebp
push eax
push ecx
call dword [edx + 0xc]
test eax, eax
jge 0x4cde5a
mov eax, dword [esp + 0x18]
push eax
mov ecx, dword [eax]
call dword [ecx + 8]
mov ecx, dword [esp + 0x10]
mov esi, dword [esp + 0x70]
mov edx, dword [ecx - 0xc]
lea eax, [ecx - 0xc]
cmp edx, ebp
jl 0x4cdde2
push eax
mov dword [esi], ecx
call dword [sym.imp.KERNEL32.dll_InterlockedIncrement]
jmp 0x4cddf2
mov edx, dword [0x547570]
push ecx
mov ecx, esi
mov dword [esi], edx
call fcn.00405920
mov eax, dword [esp + 0x14]
mov edx, dword [0x547574]
lea ecx, [eax - 0xc]
cmp ecx, edx
je 0x4cde1d
add eax, 0xfffffff4
push eax
call edi
test eax, eax
jg 0x4cde1d
mov edx, dword [esp + 0x14]
add edx, 0xfffffff4
push edx
call fcn.00532222
add esp, 4
mov eax, dword [esp + 0x10]
mov edx, dword [0x547574]
lea ecx, [eax - 0xc]
cmp ecx, edx
je 0x4ce1f0
add eax, 0xfffffff4
push eax
call edi
test eax, eax
jg 0x4ce1f0
mov edx, dword [esp + 0x10]
add edx, 0xfffffff4
push edx
call fcn.00532222
add esp, 4
mov eax, esi
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x5c
mov eax, dword [esp + 0x30]
push ebp
push ebp
push 3
push 3
push ebp
push ebp
push 0xa
push eax
call dword [sym.imp.ole32.dll_CoSetProxyBlanket]
test eax, eax
jge 0x4cdee7
mov eax, dword [esp + 0x30]
push eax
mov ecx, dword [eax]
call dword [ecx + 8]
mov eax, dword [esp + 0x18]
push eax
mov edx, dword [eax]
call dword [edx + 8]
mov edi, dword [esp + 0x70]
mov eax, dword [0x547570]
mov ecx, 0x54f59c
test ecx, ecx
mov dword [edi], eax
je 0x4cdecb
push ecx
call ebx
mov esi, eax
cmp esi, ebp
je 0x4cdecb
push esi
mov ecx, edi
call fcn.00405530
test eax, eax
je 0x4cdecb
mov edx, dword [edi]
inc esi
push esi
push 0x54f59c
push edx
call fcn.00405400
add esp, 0xc
mov ecx, edi
push 0xffffffffffffffff
call fcn.00405bb0
lea ecx, [esp + 0x14]
call fcn.00405700
lea ecx, [esp + 0x10]
call fcn.00405700
mov eax, edi
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x5c
ret
push str.OperatingSystem
lea ecx, [esp + 0x2c]
call fcn.00405730
push eax
push 0x547f08
lea ecx, [esp + 0x34]
call fcn.00405730
push eax
push str.FROM_win32
lea ecx, [esp + 0x48]
call fcn.00405730
push eax
push 0x54f57c
lea ecx, [esp + 0x50]
call fcn.00405730
push eax
push str.SELECT
lea ecx, [esp + 0x58]
call fcn.00405730
push eax
lea eax, [esp + 0x5c]
push eax
call fcn.00412c10
lea ecx, [esp + 0x58]
push eax
push ecx
call fcn.00412c10
lea edx, [esp + 0x58]
push eax
push edx
call fcn.00412c10
push eax
lea eax, [esp + 0x5c]
push eax
call fcn.00412c10
push eax
lea ecx, [esp + 0x18]
call fcn.00412800
lea ecx, [esp + 0x54]
call fcn.00405700
lea ecx, [esp + 0x50]
call fcn.00405700
lea ecx, [esp + 0x4c]
call fcn.00405700
lea ecx, [esp + 0x48]
call fcn.00405700
lea ecx, [esp + 0x44]
call fcn.00405700
lea ecx, [esp + 0x40]
call fcn.00405700
lea ecx, [esp + 0x3c]
call fcn.00405700
lea ecx, [esp + 0x2c]
call fcn.00405700
lea ecx, [esp + 0x28]
call fcn.00405700
mov eax, dword [esp + 0x14]
mov dword [esp + 0x38], ebp
mov ecx, dword [eax - 8]
push ecx
push eax
call esi
mov ecx, dword [esp + 0x30]
lea esi, [esp + 0x38]
push esi
push ebp
mov edx, dword [ecx]
push 0x30
push eax
push 0x54f56c
push ecx
call dword [edx + 0x50]
cmp eax, ebp
jge 0x4ce00c
mov eax, dword [esp + 0x30]
push eax
mov ecx, dword [eax]
call dword [ecx + 8]
mov eax, dword [esp + 0x18]
push eax
mov edx, dword [eax]
call dword [edx + 8]
mov esi, dword [esp + 0x70]
push 0x554e48
mov ecx, esi
call fcn.00405730
jmp 0x4ce1de
mov eax, dword [esp + 0x38]
mov dword [esp + 0x58], ebp
cmp eax, ebp
je 0x4ce1b0
mov esi, dword [sym.imp.OLEAUT32.dll_VariantCopy]
mov edi, 2
mov ecx, dword [eax]
lea edx, [esp + 0x58]
push edx
lea edx, [esp + 0x38]
push edx
push 1
push 0xffffffffffffffff
push eax
call dword [ecx + 0x10]
cmp dword [esp + 0x58], ebp
je 0x4ce1b0
mov eax, dword [esp + 0x34]
push ebp
lea edx, [esp + 0x60]
push ebp
mov ecx, dword [eax]
push edx
push ebp
push str.Caption
push eax
call dword [ecx + 0x10]
mov eax, dword [esp + 0x64]
lea ecx, [esp + 0x10]
push eax
call fcn.00405920
lea ecx, [esp + 0x5c]
push ecx
call esi
mov eax, dword [esp + 0x34]
push ebp
lea ecx, [esp + 0x60]
push ebp
mov edx, dword [eax]
push ecx
push ebp
push 0x54f544
push eax
call dword [edx + 0x10]
mov edx, dword [esp + 0x64]
lea ecx, [esp + 0x50]
push edx
call fcn.00412590
mov eax, dword [esp + 0x50]
cmp dword [eax - 8], edi
jle 0x4ce0c4
push 0x54f540
lea ecx, [esp + 0x58]
call fcn.00405730
lea ecx, [esp + 0x54]
push ecx
lea ecx, [esp + 0x14]
call fcn.00413070
lea ecx, [esp + 0x54]
call fcn.00405700
mov edx, dword [esp + 0x64]
lea ecx, [esp + 0x10]
push edx
call fcn.0042a1a0
lea eax, [esp + 0x5c]
push eax
call esi
lea ecx, [esp + 0x50]
call fcn.00405700
mov eax, dword [esp + 0x34]
push ebp
lea edx, [esp + 0x60]
push ebp
mov ecx, dword [eax]
push edx
push ebp
push str.OSArchitecture
push eax
call dword [ecx + 0x10]
push 0x54f540
lea ecx, [esp + 0x50]
call fcn.00405730
lea eax, [esp + 0x4c]
lea ecx, [esp + 0x10]
push eax
call fcn.00413070
lea ecx, [esp + 0x4c]
call fcn.00405700
mov ecx, dword [esp + 0x64]
push ecx
lea ecx, [esp + 0x14]
call fcn.0042a1a0
lea edx, [esp + 0x5c]
push edx
call esi
mov eax, dword [esp + 0x34]
push ebp
lea edx, [esp + 0x60]
push ebp
mov ecx, dword [eax]
push edx
push ebp
push str.CSDVersion
push eax
call dword [ecx + 0x10]
mov eax, dword [esp + 0x64]
lea ecx, [esp + 0x44]
push eax
call fcn.00412590
mov ecx, dword [esp + 0x44]
cmp dword [ecx - 8], edi
jle 0x4ce186
push 0x54f540
lea ecx, [esp + 0x4c]
call fcn.00405730
lea edx, [esp + 0x48]
lea ecx, [esp + 0x10]
push edx
call fcn.00413070
lea ecx, [esp + 0x48]
call fcn.00405700
mov eax, dword [esp + 0x64]
lea ecx, [esp + 0x10]
push eax
call fcn.0042a1a0
lea ecx, [esp + 0x5c]
push ecx
call esi
lea ecx, [esp + 0x44]
call fcn.00405700
mov eax, dword [esp + 0x38]
cmp eax, ebp
jne 0x4ce027
mov eax, dword [esp + 0x30]
push eax
mov edx, dword [eax]
call dword [edx + 8]
mov eax, dword [esp + 0x18]
push eax
mov ecx, dword [eax]
call dword [ecx + 8]
mov eax, dword [esp + 0x38]
push eax
mov edx, dword [eax]
call dword [edx + 8]
mov esi, dword [esp + 0x70]
lea eax, [esp + 0x10]
push eax
mov ecx, esi
call fcn.00405440
lea ecx, [esp + 0x14]
call fcn.00405700
lea ecx, [esp + 0x10]
call fcn.00405700
mov eax, esi
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x5c
ret