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

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x535ad9
mov eax, dword fs:[0]
push eax
sub esp, 0x34
push ebx
push esi
push edi
mov eax, dword [0x584460]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
xor ebx, ebx
push ebx
push ebx
mov dword [ebp - 0x24], ebx
mov dword [ebp - 0x1c], ebx
mov dword [ebp - 0x14], ebx
call dword [sym.imp.ole32.dll_CoInitializeEx]
push ebx
push ebx
push ebx
push 3
push ebx
push ebx
push ebx
or edi, 0xffffffff
push edi
push ebx
call dword [sym.imp.ole32.dll_CoInitializeSecurity]
lea eax, [ebp - 0x1c]
push eax
push 0x562768
push 1
push ebx
push 0x562838
call dword [sym.imp.ole32.dll_CoCreateInstance]
push 0xc
mov dword [ebp - 0x14], ebx
call fcn.0041deb6
mov esi, eax
add esp, 4
mov dword [ebp - 0x2c], esi
mov dword [ebp - 4], ebx
cmp esi, ebx
je 0x412523
push str.ROOTCIMV2
mov dword [esi + 4], ebx
mov dword [esi + 8], 1
call dword [sym.imp.OLEAUT32.dll_SysReAllocString]
mov dword [esi], eax
cmp eax, ebx
jne 0x412525
push 0x8007000e
call fcn.00529050
xor esi, esi
mov dword [ebp - 4], edi
mov dword [ebp - 0x2c], esi
cmp esi, ebx
jne 0x412539
push 0x8007000e
call fcn.00529050
lea edx, [ebp - 0x14]
push edx
push ebx
push ebx
push ebx
push ebx
mov dword [ebp - 4], 1
mov eax, dword [ebp - 0x1c]
mov edx, dword [esi]
mov ecx, dword [eax]
push ebx
push ebx
push edx
push eax
mov eax, dword [ecx + 0xc]
call eax
lea ecx, [esi + 8]
push ecx
mov dword [ebp - 4], edi
call dword [sym.imp.KERNEL32.dll_InterlockedDecrement]
cmp eax, ebx
jne 0x41258f
mov eax, dword [esi]
cmp eax, ebx
je 0x412576
push eax
call dword [sym.imp.OLEAUT32.dll_SysStringLen]
mov eax, dword [esi + 4]
cmp eax, ebx
je 0x412586
push eax
call fcn.0041dee5
add esp, 4
push esi
call fcn.0041dee5
add esp, 4
mov edx, dword [ebp - 0x14]
push ebx
push ebx
push 3
push 3
push ebx
push ebx
push 0xa
push edx
call dword [sym.imp.ole32.dll_CoSetProxyBlanket]
push 0xc
mov dword [ebp - 0x18], ebx
call fcn.0041deb6
mov esi, eax
add esp, 4
mov dword [ebp - 0x2c], esi
mov dword [ebp - 4], 2
cmp esi, ebx
je 0x4125e9
push str.SELECT__FROM_WIN32_ComputerSystem
mov dword [esi + 4], ebx
mov dword [esi + 8], 1
call dword [sym.imp.OLEAUT32.dll_SysReAllocString]
mov dword [esi], eax
cmp eax, ebx
jne 0x4125e5
push 0x8007000e
call fcn.00529050
mov edi, esi
jmp 0x4125eb
xor edi, edi
mov dword [ebp - 4], 0xffffffff
mov dword [ebp - 0x2c], edi
cmp edi, ebx
jne 0x412603
push 0x8007000e
call fcn.00529050
push 0xc
mov dword [ebp - 4], 3
call fcn.0041deb6
mov esi, eax
add esp, 4
mov dword [ebp - 0x28], esi
mov byte [ebp - 4], 4
cmp esi, ebx
je 0x412639
push 0x5645e0
mov dword [esi + 4], ebx
mov dword [esi + 8], 1
call fcn.00529070
mov dword [esi], eax
jmp 0x41263b
xor esi, esi
mov byte [ebp - 4], 3
mov dword [ebp - 0x28], esi
cmp esi, ebx
jne 0x412650
push 0x8007000e
call fcn.00529050
lea edx, [ebp - 0x18]
push edx
mov byte [ebp - 4], 5
mov edx, dword [edi]
mov eax, dword [ebp - 0x14]
mov ecx, dword [eax]
push ebx
push 0x30
push edx
mov edx, dword [esi]
push edx
push eax
mov eax, dword [ecx + 0x50]
call eax
lea ecx, [esi + 8]
push ecx
mov ebx, eax
call dword [sym.imp.KERNEL32.dll_InterlockedDecrement]
test eax, eax
jne 0x4126a2
mov eax, dword [esi]
test eax, eax
je 0x412689
push eax
call dword [sym.imp.OLEAUT32.dll_SysStringLen]
mov eax, dword [esi + 4]
test eax, eax
je 0x412699
push eax
call fcn.0041dee5
add esp, 4
push esi
call fcn.0041dee5
add esp, 4
lea edx, [edi + 8]
push edx
mov dword [ebp - 4], 0xffffffff
call dword [sym.imp.KERNEL32.dll_InterlockedDecrement]
test eax, eax
jne 0x4126dd
mov eax, dword [edi]
test eax, eax
je 0x4126c4
push eax
call dword [sym.imp.OLEAUT32.dll_SysStringLen]
mov eax, dword [edi + 4]
test eax, eax
je 0x4126d4
push eax
call fcn.0041dee5
add esp, 4
push edi
call fcn.0041dee5
add esp, 4
test ebx, ebx
js 0x4128b8
mov eax, dword [ebp - 0x18]
mov dword [ebp - 0x20], 0
test eax, eax
je 0x4128b8
mov ecx, dword [eax]
lea edx, [ebp - 0x20]
push edx
lea edx, [ebp - 0x28]
push edx
push 1
push 0xffffffffffffffff
push eax
mov eax, dword [ecx + 0x10]
call eax
cmp dword [ebp - 0x20], 0
je 0x4128b8
lea ecx, [ebp - 0x40]
push ecx
call dword [sym.imp.OLEAUT32.dll_VariantClear]
call fcn.0041df57
xor ecx, ecx
test eax, eax
setne cl
test ecx, ecx
je 0x412881
mov edx, dword [eax]
mov ecx, eax
mov eax, dword [edx + 0xc]
call eax
lea edi, [eax + 0x10]
mov dword [ebp - 0x10], edi
push 0
push 0
lea edx, [ebp - 0x40]
push edx
mov dword [ebp - 4], 6
mov eax, dword [ebp - 0x28]
mov ecx, dword [eax]
push 0
push 0x5645e4
push eax
mov eax, dword [ecx + 0x10]
call eax
lea ecx, [ebp - 0x40]
push ecx
lea esi, [ebp - 0x2c]
call fcn.004123c0
mov byte [ebp - 4], 7
mov ecx, dword [eax]
lea eax, [ecx - 0x10]
lea esi, [edi - 0x10]
cmp eax, esi
je 0x4127c7
cmp dword [esi + 0xc], 0
lea edi, [esi + 0xc]
jl 0x4127b7
mov edx, dword [eax]
cmp edx, dword [esi]
jne 0x4127b7
push eax
call fcn.00406da0
mov ebx, eax
add esp, 4
or eax, 0xffffffff
lock xadd dword [edi], eax
dec eax
test eax, eax
jg 0x4127af
mov ecx, dword [esi]
mov edx, dword [ecx]
mov eax, dword [edx + 4]
push esi
call eax
lea edi, [ebx + 0x10]
mov dword [ebp - 0x10], edi
jmp 0x4127c7
mov eax, dword [ecx - 0xc]
push eax
push ecx
lea ecx, [ebp - 0x10]
call fcn.00406ef0
mov edi, dword [ebp - 0x10]
mov byte [ebp - 4], 6
mov eax, dword [ebp - 0x2c]
add eax, 0xfffffff0
or ebx, 0xffffffff
lea ecx, [eax + 0xc]
mov edx, ebx
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x4127ec
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov esi, dword [edi - 0xc]
test esi, esi
js 0x41288b
mov eax, dword [edi - 8]
mov ecx, 1
sub ecx, dword [edi - 4]
sub eax, esi
or eax, ecx
jge 0x412814
push esi
lea ecx, [ebp - 0x10]
call fcn.00402d50
mov edi, dword [ebp - 0x10]
lea ecx, [esi + 1]
push ecx
push edi
call fcn.00512bdb
add esp, 8
cmp esi, dword [edi - 8]
jg 0x41288b
xor edx, edx
mov dword [edi - 0xc], esi
mov word [edi + esi*2], dx
cmp dword [edi - 0xc], edx
jl 0x41284e
push str.SAMSUNG
push edi
call fcn.00512931
add esp, 8
test eax, eax
je 0x41284e
sub eax, edi
sar eax, 1
cmp eax, ebx
jne 0x412895
lea eax, [ebp - 0x40]
push eax
call dword [sym.imp.OLEAUT32.dll_VariantCopy]
lea eax, [edi - 0x10]
mov dword [ebp - 4], ebx
lea ecx, [eax + 0xc]
lock xadd dword [ecx], ebx
dec ebx
test ebx, ebx
jg 0x412874
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, dword [ebp - 0x18]
test eax, eax
jne 0x4126f7
jmp 0x4128b8
push 0x80004005
call fcn.00402e30
push 0x80070057
call fcn.00402e30
lea eax, [edi - 0x10]
mov dword [ebp - 0x24], 1
mov dword [ebp - 4], ebx
lea ecx, [eax + 0xc]
lock xadd dword [ecx], ebx
dec ebx
test ebx, ebx
jg 0x4128b8
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, dword [ebp - 0x14]
mov ecx, dword [eax]
mov edx, dword [ecx + 8]
push eax
call edx
mov eax, dword [ebp - 0x1c]
mov ecx, dword [eax]
mov edx, dword [ecx + 8]
push eax
call edx
call dword [sym.imp.ole32.dll_CoUninitialize]
mov eax, dword [ebp - 0x24]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret