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

Disassembly:
sub esp, 0x5c
mov eax, dword [0x4d9540]
push ebx
push ebp
push esi
lea ecx, [esp + 0x14]
push edi
push ecx
xor ebp, ebp
push 0x4d591c
push 1
push ebp
push 0x4d59ec
mov dword [esp + 0x24], eax
mov dword [esp + 0x2c], ebp
call dword [sym.imp.ole32.dll_CoCreateInstance]
test eax, eax
jge 0x494f40
mov edi, dword [esp + 0x70]
mov edx, dword [0x4d9540]
mov eax, str.ERR_1
test eax, eax
mov dword [edi], edx
je 0x494eff
push eax
call dword [sym.imp.KERNEL32.dll_lstrlenA]
mov esi, eax
cmp esi, ebp
je 0x494eff
push esi
mov ecx, edi
call fcn.004012f0
test eax, eax
je 0x494eff
mov ecx, dword [edi]
inc esi
push esi
push str.ERR_1
push ecx
call fcn.004011c0
add esp, 0xc
mov ecx, edi
push 0xffffffffffffffff
call fcn.00401970
mov eax, dword [esp + 0x10]
mov ecx, dword [0x4d9544]
lea edx, [eax - 0xc]
cmp edx, ecx
je 0x494fc2
add eax, 0xfffffff4
push eax
call dword [sym.imp.KERNEL32.dll_InterlockedDecrement]
test eax, eax
jg 0x494fc2
mov eax, dword [esp + 0x10]
add eax, 0xfffffff4
push eax
call fcn.004c5432
add esp, 4
mov eax, edi
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x5c
ret
cmp dword [esp + 0x18], ebp
jne 0x494fcc
mov edi, dword [esp + 0x70]
mov ecx, dword [0x4d9540]
mov edx, str.No_OS_Info
test edx, edx
mov dword [edi], ecx
je 0x494f93
push edx
call dword [sym.imp.KERNEL32.dll_lstrlenA]
mov esi, eax
cmp esi, ebp
je 0x494f93
push esi
mov ecx, edi
call fcn.004012f0
test eax, eax
je 0x494f93
mov eax, dword [edi]
inc esi
push esi
push str.No_OS_Info
push eax
call fcn.004011c0
add esp, 0xc
mov ecx, edi
push 0xffffffffffffffff
call fcn.00401970
mov eax, dword [esp + 0x10]
mov edx, dword [0x4d9544]
lea ecx, [eax - 0xc]
cmp ecx, edx
je 0x494fc2
add eax, 0xfffffff4
push eax
call dword [sym.imp.KERNEL32.dll_InterlockedDecrement]
test eax, eax
jg 0x494fc2
mov edx, dword [esp + 0x10]
add edx, 0xfffffff4
push edx
call fcn.004c5432
add esp, 4
mov eax, edi
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x5c
ret
mov eax, dword [0x4d9540]
mov ebx, dword [sym.imp.KERNEL32.dll_lstrlenA]
mov ecx, 0x4dcf70
mov dword [esp + 0x30], ebp
test ecx, ecx
mov dword [esp + 0x2c], eax
je 0x49501e
push ecx
call ebx
mov esi, eax
cmp esi, ebp
je 0x49501e
push esi
lea ecx, [esp + 0x30]
call fcn.004012f0
test eax, eax
je 0x49501e
mov edx, dword [esp + 0x2c]
inc esi
push esi
push 0x4dcf70
push edx
call fcn.004011c0
add esp, 0xc
lea ecx, [esp + 0x2c]
push 0xffffffffffffffff
call fcn.00401970
mov eax, dword [0x4d9540]
mov ecx, 0x4df334
test ecx, ecx
mov dword [esp + 0x28], eax
je 0x495066
push ecx
call ebx
mov esi, eax
cmp esi, ebp
je 0x495066
push esi
lea ecx, [esp + 0x2c]
call fcn.004012f0
test eax, eax
je 0x495066
mov edx, dword [esp + 0x28]
inc esi
push esi
push 0x4df334
push edx
call fcn.004011c0
add esp, 0xc
lea ecx, [esp + 0x28]
push 0xffffffffffffffff
call fcn.00401970
mov eax, dword [0x4d9540]
mov ecx, 0x4df330
test ecx, ecx
mov dword [esp + 0x24], eax
je 0x4950ae
push ecx
call ebx
mov esi, eax
cmp esi, ebp
je 0x4950ae
push esi
lea ecx, [esp + 0x28]
call fcn.004012f0
test eax, eax
je 0x4950ae
mov edx, dword [esp + 0x24]
inc esi
push esi
push 0x4df330
push edx
call fcn.004011c0
add esp, 0xc
lea ecx, [esp + 0x24]
push 0xffffffffffffffff
call fcn.00401970
mov eax, dword [0x4d9540]
mov ecx, 0x4da060
test ecx, ecx
mov dword [esp + 0x20], eax
je 0x4950f6
push ecx
call ebx
mov esi, eax
cmp esi, ebp
je 0x4950f6
push esi
lea ecx, [esp + 0x24]
call fcn.004012f0
test eax, eax
je 0x4950f6
mov edx, dword [esp + 0x20]
inc esi
push esi
push 0x4da060
push edx
call fcn.004011c0
add esp, 0xc
lea ecx, [esp + 0x20]
push 0xffffffffffffffff
call fcn.00401970
mov eax, dword [0x4d9540]
mov ecx, str.ROOT
test ecx, ecx
mov dword [esp + 0x1c], eax
je 0x49513e
push ecx
call ebx
mov esi, eax
cmp esi, ebp
je 0x49513e
push esi
lea ecx, [esp + 0x20]
call fcn.004012f0
test eax, eax
je 0x49513e
mov edx, dword [esp + 0x1c]
inc esi
push esi
push str.ROOT
push edx
call fcn.004011c0
add esp, 0xc
lea ecx, [esp + 0x1c]
push 0xffffffffffffffff
call fcn.00401970
mov eax, dword [0x4d9540]
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.004017b0
lea eax, [esp + 0x3c]
lea ecx, [esp + 0x54]
push eax
call fcn.00401200
lea ecx, [esp + 0x3c]
call fcn.004014c0
mov ecx, dword [0x4d9540]
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.004017b0
lea ecx, [esp + 0x40]
push ecx
lea ecx, [esp + 0x54]
call fcn.00401200
lea ecx, [esp + 0x40]
call fcn.004014c0
mov edx, dword [0x4d9540]
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.004017b0
lea edx, [esp + 0x44]
lea ecx, [esp + 0x4c]
push edx
call fcn.00401200
lea ecx, [esp + 0x44]
call fcn.004014c0
mov eax, dword [0x4d9540]
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.004017b0
lea eax, [esp + 0x48]
lea ecx, [esp + 0x14]
push eax
call fcn.00401200
lea ecx, [esp + 0x48]
call fcn.004014c0
mov eax, dword [esp + 0x4c]
mov edx, dword [0x4d9544]
mov edi, dword [sym.imp.KERNEL32.dll_InterlockedDecrement]
lea ecx, [eax - 0xc]
cmp ecx, edx
je 0x49525d
add eax, 0xfffffff4
push eax
call edi
test eax, eax
jg 0x49525d
mov edx, dword [esp + 0x4c]
add edx, 0xfffffff4
push edx
call fcn.004c5432
add esp, 4
mov eax, dword [esp + 0x50]
mov edx, dword [0x4d9544]
lea ecx, [eax - 0xc]
cmp ecx, edx
je 0x495288
add eax, 0xfffffff4
push eax
call edi
test eax, eax
jg 0x495288
mov edx, dword [esp + 0x50]
add edx, 0xfffffff4
push edx
call fcn.004c5432
add esp, 4
mov eax, dword [esp + 0x54]
mov edx, dword [0x4d9544]
lea ecx, [eax - 0xc]
cmp ecx, edx
je 0x4952b3
add eax, 0xfffffff4
push eax
call edi
test eax, eax
jg 0x4952b3
mov edx, dword [esp + 0x54]
add edx, 0xfffffff4
push edx
call fcn.004c5432
add esp, 4
mov eax, dword [esp + 0x1c]
mov edx, dword [0x4d9544]
lea ecx, [eax - 0xc]
cmp ecx, edx
je 0x4952de
add eax, 0xfffffff4
push eax
call edi
test eax, eax
jg 0x4952de
mov edx, dword [esp + 0x1c]
add edx, 0xfffffff4
push edx
call fcn.004c5432
add esp, 4
mov eax, dword [esp + 0x20]
mov edx, dword [0x4d9544]
lea ecx, [eax - 0xc]
cmp ecx, edx
je 0x495309
add eax, 0xfffffff4
push eax
call edi
test eax, eax
jg 0x495309
mov edx, dword [esp + 0x20]
add edx, 0xfffffff4
push edx
call fcn.004c5432
add esp, 4
mov eax, dword [esp + 0x24]
mov edx, dword [0x4d9544]
lea ecx, [eax - 0xc]
cmp ecx, edx
je 0x495334
add eax, 0xfffffff4
push eax
call edi
test eax, eax
jg 0x495334
mov edx, dword [esp + 0x24]
add edx, 0xfffffff4
push edx
call fcn.004c5432
add esp, 4
mov eax, dword [esp + 0x28]
mov edx, dword [0x4d9544]
lea ecx, [eax - 0xc]
cmp ecx, edx
je 0x49535f
add eax, 0xfffffff4
push eax
call edi
test eax, eax
jg 0x49535f
mov edx, dword [esp + 0x28]
add edx, 0xfffffff4
push edx
call fcn.004c5432
add esp, 4
mov eax, dword [esp + 0x2c]
mov edx, dword [0x4d9544]
lea ecx, [eax - 0xc]
cmp ecx, edx
je 0x49538a
add eax, 0xfffffff4
push eax
call edi
test eax, eax
jg 0x49538a
mov edx, dword [esp + 0x2c]
add edx, 0xfffffff4
push edx
call fcn.004c5432
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 0x49545a
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 0x4953e2
push eax
mov dword [esi], ecx
call dword [sym.imp.KERNEL32.dll_InterlockedIncrement]
jmp 0x4953f2
mov edx, dword [0x4d9540]
push ecx
mov ecx, esi
mov dword [esi], edx
call fcn.004016e0
mov eax, dword [esp + 0x14]
mov edx, dword [0x4d9544]
lea ecx, [eax - 0xc]
cmp ecx, edx
je 0x49541d
add eax, 0xfffffff4
push eax
call edi
test eax, eax
jg 0x49541d
mov edx, dword [esp + 0x14]
add edx, 0xfffffff4
push edx
call fcn.004c5432
add esp, 4
mov eax, dword [esp + 0x10]
mov edx, dword [0x4d9544]
lea ecx, [eax - 0xc]
cmp ecx, edx
je 0x4957f0
add eax, 0xfffffff4
push eax
call edi
test eax, eax
jg 0x4957f0
mov edx, dword [esp + 0x10]
add edx, 0xfffffff4
push edx
call fcn.004c5432
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 0x4954e7
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 [0x4d9540]
mov ecx, 0x4df324
test ecx, ecx
mov dword [edi], eax
je 0x4954cb
push ecx
call ebx
mov esi, eax
cmp esi, ebp
je 0x4954cb
push esi
mov ecx, edi
call fcn.004012f0
test eax, eax
je 0x4954cb
mov edx, dword [edi]
inc esi
push esi
push 0x4df324
push edx
call fcn.004011c0
add esp, 0xc
mov ecx, edi
push 0xffffffffffffffff
call fcn.00401970
lea ecx, [esp + 0x14]
call fcn.004014c0
lea ecx, [esp + 0x10]
call fcn.004014c0
mov eax, edi
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x5c
ret
push str.OperatingSystem
lea ecx, [esp + 0x2c]
call fcn.004014f0
push eax
push 0x4d9c50
lea ecx, [esp + 0x34]
call fcn.004014f0
push eax
push str.FROM_win32
lea ecx, [esp + 0x48]
call fcn.004014f0
push eax
push 0x4df304
lea ecx, [esp + 0x50]
call fcn.004014f0
push eax
push str.SELECT
lea ecx, [esp + 0x58]
call fcn.004014f0
push eax
lea eax, [esp + 0x5c]
push eax
call fcn.0040f0a0
lea ecx, [esp + 0x58]
push eax
push ecx
call fcn.0040f0a0
lea edx, [esp + 0x58]
push eax
push edx
call fcn.0040f0a0
push eax
lea eax, [esp + 0x5c]
push eax
call fcn.0040f0a0
push eax
lea ecx, [esp + 0x18]
call fcn.0040ec90
lea ecx, [esp + 0x54]
call fcn.004014c0
lea ecx, [esp + 0x50]
call fcn.004014c0
lea ecx, [esp + 0x4c]
call fcn.004014c0
lea ecx, [esp + 0x48]
call fcn.004014c0
lea ecx, [esp + 0x44]
call fcn.004014c0
lea ecx, [esp + 0x40]
call fcn.004014c0
lea ecx, [esp + 0x3c]
call fcn.004014c0
lea ecx, [esp + 0x2c]
call fcn.004014c0
lea ecx, [esp + 0x28]
call fcn.004014c0
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 0x4df2f4
push ecx
call dword [edx + 0x50]
cmp eax, ebp
jge 0x49560c
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 0x4e3a5c
mov ecx, esi
call fcn.004014f0
jmp 0x4957de
mov eax, dword [esp + 0x38]
mov dword [esp + 0x58], ebp
cmp eax, ebp
je 0x4957b0
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 0x4957b0
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.004016e0
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 0x4df2cc
push eax
call dword [edx + 0x10]
mov edx, dword [esp + 0x64]
lea ecx, [esp + 0x50]
push edx
call fcn.0040ea20
mov eax, dword [esp + 0x50]
cmp dword [eax - 8], edi
jle 0x4956c4
push 0x4df2c8
lea ecx, [esp + 0x58]
call fcn.004014f0
lea ecx, [esp + 0x54]
push ecx
lea ecx, [esp + 0x14]
call fcn.0040f810
lea ecx, [esp + 0x54]
call fcn.004014c0
mov edx, dword [esp + 0x64]
lea ecx, [esp + 0x10]
push edx
call fcn.004217a0
lea eax, [esp + 0x5c]
push eax
call esi
lea ecx, [esp + 0x50]
call fcn.004014c0
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 0x4df2c8
lea ecx, [esp + 0x50]
call fcn.004014f0
lea eax, [esp + 0x4c]
lea ecx, [esp + 0x10]
push eax
call fcn.0040f810
lea ecx, [esp + 0x4c]
call fcn.004014c0
mov ecx, dword [esp + 0x64]
push ecx
lea ecx, [esp + 0x14]
call fcn.004217a0
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 0x4df290
push eax
call dword [ecx + 0x10]
mov eax, dword [esp + 0x64]
lea ecx, [esp + 0x44]
push eax
call fcn.0040ea20
mov ecx, dword [esp + 0x44]
cmp dword [ecx - 8], edi
jle 0x495786
push 0x4df2c8
lea ecx, [esp + 0x4c]
call fcn.004014f0
lea edx, [esp + 0x48]
lea ecx, [esp + 0x10]
push edx
call fcn.0040f810
lea ecx, [esp + 0x48]
call fcn.004014c0
mov eax, dword [esp + 0x64]
lea ecx, [esp + 0x10]
push eax
call fcn.004217a0
lea ecx, [esp + 0x5c]
push ecx
call esi
lea ecx, [esp + 0x44]
call fcn.004014c0
mov eax, dword [esp + 0x38]
cmp eax, ebp
jne 0x495627
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.00401200
lea ecx, [esp + 0x14]
call fcn.004014c0
lea ecx, [esp + 0x10]
call fcn.004014c0
mov eax, esi
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x5c
ret