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

Disassembly:
sub esp, 0x5c
mov eax, dword [0x546560]
push ebx
push ebp
push esi
lea ecx, [esp + 0x14]
push edi
push ecx
xor ebp, ebp
push 0x542ecc
push 1
push ebp
push 0x542f9c
mov dword [esp + 0x24], eax
mov dword [esp + 0x2c], ebp
call dword [sym.imp.ole32.dll_CoCreateInstance]
test eax, eax
jge 0x4cc920
mov edi, dword [esp + 0x70]
mov edx, dword [0x546560]
mov eax, str.ERR_1
test eax, eax
mov dword [edi], edx
je 0x4cc8df
push eax
call dword [sym.imp.KERNEL32.dll_lstrlenA]
mov esi, eax
cmp esi, ebp
je 0x4cc8df
push esi
mov ecx, edi
call fcn.00405530
test eax, eax
je 0x4cc8df
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 [0x546564]
lea edx, [eax - 0xc]
cmp edx, ecx
je 0x4cc9a2
add eax, 0xfffffff4
push eax
call dword [sym.imp.KERNEL32.dll_InterlockedDecrement]
test eax, eax
jg 0x4cc9a2
mov eax, dword [esp + 0x10]
add eax, 0xfffffff4
push eax
call fcn.00531732
add esp, 4
mov eax, edi
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x5c
ret
cmp dword [esp + 0x18], ebp
jne 0x4cc9ac
mov edi, dword [esp + 0x70]
mov ecx, dword [0x546560]
mov edx, str.No_OS_Info
test edx, edx
mov dword [edi], ecx
je 0x4cc973
push edx
call dword [sym.imp.KERNEL32.dll_lstrlenA]
mov esi, eax
cmp esi, ebp
je 0x4cc973
push esi
mov ecx, edi
call fcn.00405530
test eax, eax
je 0x4cc973
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 [0x546564]
lea ecx, [eax - 0xc]
cmp ecx, edx
je 0x4cc9a2
add eax, 0xfffffff4
push eax
call dword [sym.imp.KERNEL32.dll_InterlockedDecrement]
test eax, eax
jg 0x4cc9a2
mov edx, dword [esp + 0x10]
add edx, 0xfffffff4
push edx
call fcn.00531732
add esp, 4
mov eax, edi
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x5c
ret
mov eax, dword [0x546560]
mov ebx, dword [sym.imp.KERNEL32.dll_lstrlenA]
mov ecx, 0x54b8b0
mov dword [esp + 0x30], ebp
test ecx, ecx
mov dword [esp + 0x2c], eax
je 0x4cc9fe
push ecx
call ebx
mov esi, eax
cmp esi, ebp
je 0x4cc9fe
push esi
lea ecx, [esp + 0x30]
call fcn.00405530
test eax, eax
je 0x4cc9fe
mov edx, dword [esp + 0x2c]
inc esi
push esi
push 0x54b8b0
push edx
call fcn.00405400
add esp, 0xc
lea ecx, [esp + 0x2c]
push 0xffffffffffffffff
call fcn.00405bb0
mov eax, dword [0x546560]
mov ecx, 0x54e53c
test ecx, ecx
mov dword [esp + 0x28], eax
je 0x4cca46
push ecx
call ebx
mov esi, eax
cmp esi, ebp
je 0x4cca46
push esi
lea ecx, [esp + 0x2c]
call fcn.00405530
test eax, eax
je 0x4cca46
mov edx, dword [esp + 0x28]
inc esi
push esi
push 0x54e53c
push edx
call fcn.00405400
add esp, 0xc
lea ecx, [esp + 0x28]
push 0xffffffffffffffff
call fcn.00405bb0
mov eax, dword [0x546560]
mov ecx, 0x54e538
test ecx, ecx
mov dword [esp + 0x24], eax
je 0x4cca8e
push ecx
call ebx
mov esi, eax
cmp esi, ebp
je 0x4cca8e
push esi
lea ecx, [esp + 0x28]
call fcn.00405530
test eax, eax
je 0x4cca8e
mov edx, dword [esp + 0x24]
inc esi
push esi
push 0x54e538
push edx
call fcn.00405400
add esp, 0xc
lea ecx, [esp + 0x24]
push 0xffffffffffffffff
call fcn.00405bb0
mov eax, dword [0x546560]
mov ecx, 0x547308
test ecx, ecx
mov dword [esp + 0x20], eax
je 0x4ccad6
push ecx
call ebx
mov esi, eax
cmp esi, ebp
je 0x4ccad6
push esi
lea ecx, [esp + 0x24]
call fcn.00405530
test eax, eax
je 0x4ccad6
mov edx, dword [esp + 0x20]
inc esi
push esi
push 0x547308
push edx
call fcn.00405400
add esp, 0xc
lea ecx, [esp + 0x20]
push 0xffffffffffffffff
call fcn.00405bb0
mov eax, dword [0x546560]
mov ecx, str.ROOT
test ecx, ecx
mov dword [esp + 0x1c], eax
je 0x4ccb1e
push ecx
call ebx
mov esi, eax
cmp esi, ebp
je 0x4ccb1e
push esi
lea ecx, [esp + 0x20]
call fcn.00405530
test eax, eax
je 0x4ccb1e
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 [0x546560]
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 [0x546560]
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 [0x546560]
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 [0x546560]
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 [0x546564]
mov edi, dword [sym.imp.KERNEL32.dll_InterlockedDecrement]
lea ecx, [eax - 0xc]
cmp ecx, edx
je 0x4ccc3d
add eax, 0xfffffff4
push eax
call edi
test eax, eax
jg 0x4ccc3d
mov edx, dword [esp + 0x4c]
add edx, 0xfffffff4
push edx
call fcn.00531732
add esp, 4
mov eax, dword [esp + 0x50]
mov edx, dword [0x546564]
lea ecx, [eax - 0xc]
cmp ecx, edx
je 0x4ccc68
add eax, 0xfffffff4
push eax
call edi
test eax, eax
jg 0x4ccc68
mov edx, dword [esp + 0x50]
add edx, 0xfffffff4
push edx
call fcn.00531732
add esp, 4
mov eax, dword [esp + 0x54]
mov edx, dword [0x546564]
lea ecx, [eax - 0xc]
cmp ecx, edx
je 0x4ccc93
add eax, 0xfffffff4
push eax
call edi
test eax, eax
jg 0x4ccc93
mov edx, dword [esp + 0x54]
add edx, 0xfffffff4
push edx
call fcn.00531732
add esp, 4
mov eax, dword [esp + 0x1c]
mov edx, dword [0x546564]
lea ecx, [eax - 0xc]
cmp ecx, edx
je 0x4cccbe
add eax, 0xfffffff4
push eax
call edi
test eax, eax
jg 0x4cccbe
mov edx, dword [esp + 0x1c]
add edx, 0xfffffff4
push edx
call fcn.00531732
add esp, 4
mov eax, dword [esp + 0x20]
mov edx, dword [0x546564]
lea ecx, [eax - 0xc]
cmp ecx, edx
je 0x4ccce9
add eax, 0xfffffff4
push eax
call edi
test eax, eax
jg 0x4ccce9
mov edx, dword [esp + 0x20]
add edx, 0xfffffff4
push edx
call fcn.00531732
add esp, 4
mov eax, dword [esp + 0x24]
mov edx, dword [0x546564]
lea ecx, [eax - 0xc]
cmp ecx, edx
je 0x4ccd14
add eax, 0xfffffff4
push eax
call edi
test eax, eax
jg 0x4ccd14
mov edx, dword [esp + 0x24]
add edx, 0xfffffff4
push edx
call fcn.00531732
add esp, 4
mov eax, dword [esp + 0x28]
mov edx, dword [0x546564]
lea ecx, [eax - 0xc]
cmp ecx, edx
je 0x4ccd3f
add eax, 0xfffffff4
push eax
call edi
test eax, eax
jg 0x4ccd3f
mov edx, dword [esp + 0x28]
add edx, 0xfffffff4
push edx
call fcn.00531732
add esp, 4
mov eax, dword [esp + 0x2c]
mov edx, dword [0x546564]
lea ecx, [eax - 0xc]
cmp ecx, edx
je 0x4ccd6a
add eax, 0xfffffff4
push eax
call edi
test eax, eax
jg 0x4ccd6a
mov edx, dword [esp + 0x2c]
add edx, 0xfffffff4
push edx
call fcn.00531732
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 0x4cce3a
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 0x4ccdc2
push eax
mov dword [esi], ecx
call dword [sym.imp.KERNEL32.dll_InterlockedIncrement]
jmp 0x4ccdd2
mov edx, dword [0x546560]
push ecx
mov ecx, esi
mov dword [esi], edx
call fcn.00405920
mov eax, dword [esp + 0x14]
mov edx, dword [0x546564]
lea ecx, [eax - 0xc]
cmp ecx, edx
je 0x4ccdfd
add eax, 0xfffffff4
push eax
call edi
test eax, eax
jg 0x4ccdfd
mov edx, dword [esp + 0x14]
add edx, 0xfffffff4
push edx
call fcn.00531732
add esp, 4
mov eax, dword [esp + 0x10]
mov edx, dword [0x546564]
lea ecx, [eax - 0xc]
cmp ecx, edx
je 0x4cd1d0
add eax, 0xfffffff4
push eax
call edi
test eax, eax
jg 0x4cd1d0
mov edx, dword [esp + 0x10]
add edx, 0xfffffff4
push edx
call fcn.00531732
add esp, 4
mov eax, esi
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x5c
ret
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 0x4ccec7
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 [0x546560]
mov ecx, 0x54e52c
test ecx, ecx
mov dword [edi], eax
je 0x4cceab
push ecx
call ebx
mov esi, eax
cmp esi, ebp
je 0x4cceab
push esi
mov ecx, edi
call fcn.00405530
test eax, eax
je 0x4cceab
mov edx, dword [edi]
inc esi
push esi
push 0x54e52c
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 0x546ef8
lea ecx, [esp + 0x34]
call fcn.00405730
push eax
push str.FROM_win32
lea ecx, [esp + 0x48]
call fcn.00405730
push eax
push 0x54e50c
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.00412dc0
lea ecx, [esp + 0x58]
push eax
push ecx
call fcn.00412dc0
lea edx, [esp + 0x58]
push eax
push edx
call fcn.00412dc0
push eax
lea eax, [esp + 0x5c]
push eax
call fcn.00412dc0
push eax
lea ecx, [esp + 0x18]
call fcn.004129b0
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 0x54e4fc
push ecx
call dword [edx + 0x50]
cmp eax, ebp
jge 0x4ccfec
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 0x553dd8
mov ecx, esi
call fcn.00405730
jmp 0x4cd1be
mov eax, dword [esp + 0x38]
mov dword [esp + 0x58], ebp
cmp eax, ebp
je 0x4cd190
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 0x4cd190
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 0x54e4d4
push eax
call dword [edx + 0x10]
mov edx, dword [esp + 0x64]
lea ecx, [esp + 0x50]
push edx
call fcn.00412740
mov eax, dword [esp + 0x50]
cmp dword [eax - 8], edi
jle 0x4cd0a4
push 0x54e4d0
lea ecx, [esp + 0x58]
call fcn.00405730
lea ecx, [esp + 0x54]
push ecx
lea ecx, [esp + 0x14]
call fcn.00413220
lea ecx, [esp + 0x54]
call fcn.00405700
mov edx, dword [esp + 0x64]
lea ecx, [esp + 0x10]
push edx
call fcn.00429fe0
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 0x54e4d0
lea ecx, [esp + 0x50]
call fcn.00405730
lea eax, [esp + 0x4c]
lea ecx, [esp + 0x10]
push eax
call fcn.00413220
lea ecx, [esp + 0x4c]
call fcn.00405700
mov ecx, dword [esp + 0x64]
push ecx
lea ecx, [esp + 0x14]
call fcn.00429fe0
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.00412740
mov ecx, dword [esp + 0x44]
cmp dword [ecx - 8], edi
jle 0x4cd166
push 0x54e4d0
lea ecx, [esp + 0x4c]
call fcn.00405730
lea edx, [esp + 0x48]
lea ecx, [esp + 0x10]
push edx
call fcn.00413220
lea ecx, [esp + 0x48]
call fcn.00405700
mov eax, dword [esp + 0x64]
lea ecx, [esp + 0x10]
push eax
call fcn.00429fe0
lea ecx, [esp + 0x5c]
push ecx
call esi
lea ecx, [esp + 0x44]
call fcn.00405700
mov eax, dword [esp + 0x38]
cmp eax, ebp
jne 0x4cd007
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