Function at 0x42842a
Capabilities:
Connect to wmi namespace via wbemlocator
Query or enumerate registry value
Reference wmi statements

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x5b3984
mov eax, dword fs:[0]
push eax
sub esp, 0x270
mov eax, dword [0x61dc40]
xor eax, esp
mov dword [esp + 0x268], eax
push ebx
push esi
push edi
mov eax, dword [0x61dc40]
xor eax, esp
push eax
lea eax, [esp + 0x280]
mov dword fs:[0], eax
xor ebx, ebx
push ebx
mov edi, ecx
push ebx
mov dword [esp + 0x30], edi
call dword [sym.imp.ole32.dll_CoInitializeEx]
push ebx
push ebx
push ebx
push 3
push ebx
push ebx
push ebx
push 0xffffffffffffffff
push ebx
call dword [sym.imp.ole32.dll_CoInitializeSecurity]
cmp eax, ebx
jge 0x42849a
cmp eax, 0x80010119
jne 0x4287b0
mov dword [esp + 0x2c], ebx
lea eax, [esp + 0x2c]
push eax
push 0x5cfe3c
push 1
push ebx
push 0x5cff0c
mov dword [esp + 0x29c], ebx
call dword [sym.imp.ole32.dll_CoCreateInstance]
cmp eax, ebx
jl 0x42879a
mov dword [esp + 0x10], ebx
mov byte [esp + 0x288], 1
mov esi, dword [esp + 0x2c]
push str.ROOTCIMV2
lea edi, [esp + 0x1c]
call fcn.004203a8
mov byte [esp + 0x288], 2
mov eax, dword [eax]
cmp eax, ebx
je 0x4284f5
mov eax, dword [eax]
jmp 0x4284f7
xor eax, eax
mov ecx, dword [esi]
lea edx, [esp + 0x10]
push edx
push ebx
push ebx
push ebx
push ebx
push ebx
push ebx
push eax
push esi
call dword [ecx + 0xc]
lea edi, [esp + 0x18]
mov esi, eax
call fcn.004204de
cmp esi, ebx
jl 0x428781
push ebx
push ebx
push 3
push 3
push ebx
push ebx
push 0xa
push dword [esp + 0x2c]
call dword [sym.imp.ole32.dll_CoSetProxyBlanket]
cmp eax, ebx
jl 0x428781
mov eax, str.SerialNumber
mov dword [esp + 0x3c], str.SELECT__FROM_Win32_BIOS
mov dword [esp + 0x40], eax
mov dword [esp + 0x44], str.SELECT__FROM_Win32_Processor
mov dword [esp + 0x48], str.ProcessorId
mov dword [esp + 0x4c], str.SELECT__FROM_Win32_BaseBoard
mov dword [esp + 0x50], eax
mov dword [esp + 0x54], str.SELECT__FROM_Win32_PhysicalMedia
mov dword [esp + 0x58], eax
mov dword [esp + 0x1c], ebx
mov dword [esp + 0x14], ebx
mov eax, dword [esp + 0x1c]
mov byte [esp + 0x288], 3
push dword [esp + eax + 0x3c]
mov esi, dword [esp + 0x14]
lea edi, [esp + 0x38]
call fcn.004203a8
mov dword [esp + 0x18], eax
push 0x5e2a08
lea edi, [esp + 0x3c]
mov byte [esp + 0x28c], 4
call fcn.0042e913
mov byte [esp + 0x288], 5
mov ecx, dword [esp + 0x18]
mov ecx, dword [ecx]
cmp ecx, ebx
je 0x4285c6
mov ecx, dword [ecx]
jmp 0x4285c8
xor ecx, ecx
mov eax, dword [eax]
cmp eax, ebx
je 0x4285d2
mov eax, dword [eax]
jmp 0x4285d4
xor eax, eax
mov edx, dword [esi]
lea edi, [esp + 0x14]
push edi
push ebx
push 0x30
push ecx
push eax
push esi
call dword [edx + 0x50]
lea edi, [esp + 0x38]
mov esi, eax
call fcn.004204de
lea edi, [esp + 0x34]
call fcn.004204de
cmp esi, ebx
jl 0x42875b
jmp 0x4286df
mov dword [esp + 0x20], ebx
lea ecx, [esp + 0x18]
push ecx
lea ecx, [esp + 0x24]
push ecx
mov byte [esp + 0x290], 6
mov eax, dword [esp + 0x1c]
push 1
push 0xffffffffffffffff
push dword [esp + 0x24]
mov dword [esp + 0x2c], ebx
mov eax, dword [eax]
call dword [eax + 0x10]
cmp eax, ebx
mov eax, dword [esp + 0x20]
jl 0x428749
cmp eax, ebx
je 0x428749
cmp dword [esp + 0x18], ebx
je 0x428749
lea eax, [esp + 0x5c]
push eax
call dword [sym.imp.OLEAUT32.dll_VariantClear]
mov eax, dword [esp + 0x1c]
mov byte [esp + 0x288], 7
push dword [esp + eax + 0x40]
mov esi, dword [esp + 0x24]
lea edi, [esp + 0x34]
call fcn.004203a8
mov byte [esp + 0x288], 8
mov eax, dword [eax]
cmp eax, ebx
je 0x428688
mov eax, dword [eax]
jmp 0x42868a
xor eax, eax
mov ecx, dword [esi]
push ebx
push ebx
lea edx, [esp + 0x64]
push edx
push ebx
push eax
push esi
call dword [ecx + 0x10]
lea edi, [esp + 0x30]
mov esi, eax
mov byte [esp + 0x288], 7
call fcn.004204de
cmp esi, ebx
jl 0x4286be
cmp word [esp + 0x5c], 8
jne 0x4286be
cmp dword [esp + 0x64], ebx
jne 0x4286eb
lea eax, [esp + 0x5c]
push eax
call dword [sym.imp.OLEAUT32.dll_VariantCopy]
mov byte [esp + 0x288], 3
mov eax, dword [esp + 0x20]
cmp eax, ebx
je 0x4286df
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
cmp dword [esp + 0x14], ebx
jne 0x428605
jmp 0x42875b
push dword [esp + 0x64]
lea eax, [esp + 0x28]
push eax
call fcn.0040be27
lea eax, [esp + 0x24]
mov byte [esp + 0x288], 9
call fcn.0040c20b
lea eax, [esp + 0x24]
call fcn.0040c1ba
mov eax, dword [esp + 0x24]
push dword [eax - 0xc]
push eax
mov eax, dword [esp + 0x30]
call fcn.0040c427
mov eax, dword [esp + 0x24]
add eax, 0xfffffff0
call fcn.00407b6b
lea eax, [esp + 0x5c]
push eax
call dword [sym.imp.OLEAUT32.dll_VariantCopy]
mov byte [esp + 0x288], 3
mov eax, dword [esp + 0x20]
jmp 0x428751
mov byte [esp + 0x288], 3
cmp eax, ebx
je 0x42875b
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
mov byte [esp + 0x288], 1
mov eax, dword [esp + 0x14]
cmp eax, ebx
je 0x428771
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
add dword [esp + 0x1c], 8
cmp dword [esp + 0x1c], 0x20
jl 0x428575
mov byte [esp + 0x288], bl
mov eax, dword [esp + 0x10]
cmp eax, ebx
je 0x428796
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
mov edi, dword [esp + 0x28]
or dword [esp + 0x288], 0xffffffff
mov eax, dword [esp + 0x2c]
cmp eax, ebx
je 0x4287b0
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
mov eax, dword [edi]
cmp dword [eax - 0xc], ebx
jne 0x428818
xor eax, eax
mov esi, 0x206
push esi
mov word [esp + 0x70], ax
lea eax, [esp + 0x72]
push ebx
push eax
call fcn.00596530
add esp, 0xc
lea eax, [esp + 0x30]
push eax
lea eax, [esp + 0x70]
push eax
lea eax, [esp + 0x3c]
push eax
push str.Default_User_ID
push str.Identities
push 0x80000001
mov dword [esp + 0x4c], 1
mov dword [esp + 0x48], esi
call dword [sym.imp.SHLWAPI.dll_SHGetValueW]
test eax, eax
jne 0x428818
cmp word [esp + 0x6c], bx
je 0x428818
lea eax, [esp + 0x6c]
push eax
push edi
call fcn.0040be65
mov eax, dword [edi]
cmp dword [eax - 0xc], ebx
jne 0x42886a
mov esi, 0x5e4e3c
lea edi, [esp + 0x5c]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
lea eax, [esp + 0x5c]
push eax
movsd dword es:[edi], dword [esi]
call dword [sym.imp.ole32.dll_CoCreateGuid]
test eax, eax
jl 0x42886a
lea eax, [esp + 0x10]
push eax
lea eax, [esp + 0x60]
push eax
mov dword [esp + 0x18], ebx
call dword [sym.imp.ole32.dll_StringFromIID]
test eax, eax
jl 0x42886a
push dword [esp + 0x10]
push dword [esp + 0x2c]
call fcn.0040be65
push dword [esp + 0x10]
call dword [sym.imp.ole32.dll_CoTaskMemFree]
xor eax, eax
inc eax
mov ecx, dword [esp + 0x280]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x268]
xor ecx, esp
call fcn.0058f3cf
mov esp, ebp
pop ebp
ret