Function at 0x46b200
Capabilities:
Connect to wmi namespace via wbemlocator
Print debug messages
Set registry value via stdregprov

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4dce0d
mov eax, dword fs:[0]
push eax
sub esp, 0x38
mov eax, dword [0x50b0c0]
xor eax, ebp
mov dword [ebp - 0x14], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov ebx, edx
mov edi, dword [ebp + 8]
mov esi, dword [ebp + 0xc]
push 0
push 0
call dword [sym.imp.ole32.dll_CoInitializeEx]
mov dword [ebp - 0x40], eax
test eax, eax
jns 0x46b2ae
call fcn.0040a050
mov ecx, eax
test ecx, ecx
je 0x46b78d
mov eax, dword [ecx]
call dword [eax + 0xc]
add eax, 0x10
mov dword [ebp - 0x18], eax
mov dword [ebp - 4], 0
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
lea eax, [ebp - 0x18]
push str._______XD999_initialize_COM_Error_d
push eax
call fcn.004248c0
mov esi, dword [ebp - 0x18]
add esp, 0xc
push esi
call dword [sym.imp.KERNEL32.dll_OutputDebugStringW]
mov dword [ebp - 4], 0xffffffff
add esi, 0xfffffff0
or eax, 0xffffffff
lock xadd dword [esi + 0xc], eax
dec eax
test eax, eax
jg 0x46b2a6
mov ecx, dword [esi]
push esi
mov eax, dword [ecx]
call dword [eax + 4]
mov eax, dword [ebp - 0x40]
jmp 0x46b771
push 0
push 0
push 0
push 3
push 0
push 0
push 0
push 0xffffffffffffffff
push 0
call dword [sym.imp.ole32.dll_CoInitializeSecurity]
test eax, eax
jns 0x46b338
cmp eax, 0x80010119
je 0x46b338
lea ecx, [ebp - 0x18]
mov dword [ebp - 0x18], 0
call fcn.0040a140
mov dword [ebp - 4], 1
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
lea eax, [ebp - 0x18]
push str._______XD999_initialize_COM_Error2:_d
push eax
call fcn.004248c0
mov esi, dword [ebp - 0x18]
add esp, 0xc
push esi
call dword [sym.imp.KERNEL32.dll_OutputDebugStringW]
mov dword [ebp - 4], 0xffffffff
add esi, 0xfffffff0
or eax, 0xffffffff
lock xadd dword [esi + 0xc], eax
dec eax
test eax, eax
jg 0x46b328
mov ecx, dword [esi]
push esi
mov eax, dword [ecx]
call dword [eax + 4]
call dword [sym.imp.ole32.dll_CoUninitialize]
mov eax, 1
jmp 0x46b771
lea eax, [ebp - 0x24]
mov dword [ebp - 0x24], 0
push eax
push 0x4e4dc8
push 1
push 0
push 0x4e4dd8
call dword [sym.imp.ole32.dll_CoCreateInstance]
mov dword [ebp - 0x40], eax
test eax, eax
jns 0x46b3ce
call fcn.0040a050
mov ecx, eax
test ecx, ecx
je 0x46b78d
mov eax, dword [ecx]
call dword [eax + 0xc]
add eax, 0x10
mov dword [ebp - 0x18], eax
mov dword [ebp - 4], 2
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
lea eax, [ebp - 0x18]
push str._______XD999_create_IWbemLocator_d
push eax
call fcn.004248c0
mov esi, dword [ebp - 0x18]
add esp, 0xc
push esi
call dword [sym.imp.KERNEL32.dll_OutputDebugStringW]
mov dword [ebp - 4], 0xffffffff
add esi, 0xfffffff0
or eax, 0xffffffff
lock xadd dword [esi + 0xc], eax
dec eax
test eax, eax
jg 0x46b3c0
mov ecx, dword [esi]
push esi
mov eax, dword [ecx]
call dword [eax + 4]
call dword [sym.imp.ole32.dll_CoUninitialize]
mov eax, dword [ebp - 0x40]
jmp 0x46b771
push str.ROOTDEFAULT
lea ecx, [ebp - 0x18]
mov dword [ebp - 0x20], 0
call fcn.00465f70
mov dword [ebp - 4], 3
mov eax, dword [eax]
test eax, eax
je 0x46b3f3
mov edx, dword [eax]
jmp 0x46b3f5
xor edx, edx
mov eax, dword [ebp - 0x24]
mov ecx, dword [eax]
lea eax, [ebp - 0x20]
push eax
mov eax, dword [ebp - 0x24]
push 0
push 0
push 0
push 0
push 0
push 0
push edx
push eax
call dword [ecx + 0xc]
lea ecx, [ebp - 0x18]
mov dword [ebp - 0x40], eax
mov dword [ebp - 4], 0xffffffff
call fcn.00466020
cmp dword [ebp - 0x40], 0
jge 0x46b487
lea ecx, [ebp - 0x18]
mov dword [ebp - 0x18], 0
call fcn.0040a140
mov dword [ebp - 4], 4
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
lea eax, [ebp - 0x18]
push str._______XD999_Could_not_connect_to_WMI_server_d
push eax
call fcn.004248c0
add esp, 0xc
push dword [ebp - 0x18]
call dword [sym.imp.KERNEL32.dll_OutputDebugStringW]
lea ecx, [ebp - 0x18]
mov dword [ebp - 4], 0xffffffff
call fcn.004084a0
mov eax, dword [ebp - 0x24]
push eax
mov ecx, dword [eax]
call dword [ecx + 8]
call dword [sym.imp.ole32.dll_CoUninitialize]
mov eax, dword [ebp - 0x40]
jmp 0x46b771
push str.StdRegProv
lea ecx, [ebp - 0x40]
mov dword [ebp - 0x2c], 0
call fcn.0046ae00
mov dword [ebp - 4], 5
mov eax, dword [eax]
test eax, eax
je 0x46b4ac
mov edx, dword [eax]
jmp 0x46b4ae
xor edx, edx
mov eax, dword [ebp - 0x20]
push 0
mov ecx, dword [eax]
lea eax, [ebp - 0x2c]
push eax
mov eax, dword [ebp - 0x20]
push 0
push 0
push edx
push eax
call dword [ecx + 0x18]
lea ecx, [ebp - 0x40]
mov dword [ebp - 4], 0xffffffff
call fcn.00466020
mov eax, dword [ebp - 0x2c]
lea edx, [ebp - 0x28]
push 0
push edx
push 0
mov dword [ebp - 0x28], 0
mov ecx, dword [eax]
push 0x4f38e4
push eax
call dword [ecx + 0x4c]
mov eax, dword [ebp - 0x28]
lea edx, [ebp - 0x1c]
push edx
mov dword [ebp - 0x1c], 0
push 0
mov ecx, dword [eax]
push eax
call dword [ecx + 0x3c]
lea eax, [ebp - 0x3c]
push eax
call dword [sym.imp.OLEAUT32.dll_VariantClear]
mov eax, 3
mov dword [ebp - 0x34], SysReAllocString
push 0
mov word [ebp - 0x3c], ax
lea edx, [ebp - 0x3c]
mov eax, dword [ebp - 0x1c]
push edx
push 0
push str.hDefKey
mov ecx, dword [eax]
push eax
call dword [ecx + 0x14]
lea eax, [ebp - 0x3c]
push eax
call dword [sym.imp.OLEAUT32.dll_VariantCopy]
lea eax, [ebp - 0x3c]
push eax
call dword [sym.imp.OLEAUT32.dll_VariantClear]
cmp dword [ebx + 0x14], 7
mov eax, 8
mov word [ebp - 0x3c], ax
jbe 0x46b55c
mov ebx, dword [ebx]
push ebx
lea ecx, [ebp - 0x40]
call fcn.00465f70
mov eax, dword [eax]
test eax, eax
je 0x46b56f
mov eax, dword [eax]
jmp 0x46b571
xor eax, eax
lea ecx, [ebp - 0x40]
mov dword [ebp - 0x34], eax
call fcn.00466020
mov eax, dword [ebp - 0x1c]
lea edx, [ebp - 0x3c]
push 0
push edx
push 0
mov ecx, dword [eax]
push str.sSubKeyName
push eax
call dword [ecx + 0x14]
mov ebx, dword [sym.imp.OLEAUT32.dll_VariantCopy]
lea eax, [ebp - 0x3c]
push eax
call ebx
lea eax, [ebp - 0x3c]
push eax
call dword [sym.imp.OLEAUT32.dll_VariantClear]
cmp dword [edi + 0x14], 7
mov eax, 8
mov word [ebp - 0x3c], ax
jbe 0x46b5b9
mov edi, dword [edi]
push edi
lea ecx, [ebp - 0x40]
call fcn.00465f70
mov eax, dword [eax]
test eax, eax
je 0x46b5cc
mov eax, dword [eax]
jmp 0x46b5ce
xor eax, eax
lea ecx, [ebp - 0x40]
mov dword [ebp - 0x34], eax
call fcn.00466020
mov eax, dword [ebp - 0x1c]
lea edx, [ebp - 0x3c]
push 0
push edx
push 0
mov ecx, dword [eax]
push str.sValueName
push eax
call dword [ecx + 0x14]
lea eax, [ebp - 0x3c]
push eax
call ebx
lea eax, [ebp - 0x3c]
push eax
call dword [sym.imp.OLEAUT32.dll_VariantClear]
cmp dword [esi + 0x14], 7
mov eax, 8
mov word [ebp - 0x3c], ax
jbe 0x46b610
mov esi, dword [esi]
push esi
lea ecx, [ebp - 0x40]
call fcn.00465f70
mov eax, dword [eax]
test eax, eax
je 0x46b623
mov eax, dword [eax]
jmp 0x46b625
xor eax, eax
lea ecx, [ebp - 0x40]
mov dword [ebp - 0x34], eax
call fcn.00466020
mov eax, dword [ebp - 0x1c]
lea edx, [ebp - 0x3c]
push 0
push edx
push 0
mov ecx, dword [eax]
push str.sValue
push eax
call dword [ecx + 0x14]
lea eax, [ebp - 0x3c]
push eax
call ebx
push str.SetStringValue
lea ecx, [ebp - 0x18]
call fcn.0046ae00
mov esi, eax
push str.StdRegProv
lea ecx, [ebp - 0x40]
mov dword [ebp - 4], 6
call fcn.0046ae00
mov byte [ebp - 4], 7
mov esi, dword [esi]
test esi, esi
je 0x46b67d
mov esi, dword [esi]
jmp 0x46b67f
xor esi, esi
mov eax, dword [eax]
test eax, eax
je 0x46b689
mov edx, dword [eax]
jmp 0x46b68b
xor edx, edx
mov eax, dword [ebp - 0x20]
push 0
push 0
push dword [ebp - 0x1c]
mov ecx, dword [eax]
push 0
push 0
push esi
push edx
push eax
call dword [ecx + 0x60]
lea ecx, [ebp - 0x40]
mov esi, eax
call fcn.00466020
lea ecx, [ebp - 0x18]
mov dword [ebp - 4], 0xffffffff
call fcn.00466020
test esi, esi
jns 0x46b705
lea ecx, [ebp - 0x18]
mov dword [ebp - 0x18], 0
call fcn.0040a140
mov dword [ebp - 4], 8
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push esi
lea eax, [ebp - 0x18]
push str._______XD999_ExecMethod_Error_d__d
push eax
call fcn.004248c0
add esp, 0x10
push dword [ebp - 0x18]
call dword [sym.imp.KERNEL32.dll_OutputDebugStringW]
lea ecx, [ebp - 0x18]
mov dword [ebp - 4], 0xffffffff
call fcn.004084a0
mov ecx, dword [ebp - 0x1c]
test ecx, ecx
je 0x46b719
mov eax, dword [ecx]
push ecx
call dword [eax + 8]
mov dword [ebp - 0x1c], 0
mov ecx, dword [ebp - 0x28]
test ecx, ecx
je 0x46b72d
mov eax, dword [ecx]
push ecx
call dword [eax + 8]
mov dword [ebp - 0x28], 0
mov ecx, dword [ebp - 0x2c]
test ecx, ecx
je 0x46b741
mov eax, dword [ecx]
push ecx
call dword [eax + 8]
mov dword [ebp - 0x2c], 0
mov ecx, dword [ebp - 0x20]
test ecx, ecx
je 0x46b755
mov eax, dword [ecx]
push ecx
call dword [eax + 8]
mov dword [ebp - 0x20], 0
mov ecx, dword [ebp - 0x24]
test ecx, ecx
je 0x46b769
mov eax, dword [ecx]
push ecx
call dword [eax + 8]
mov dword [ebp - 0x24], 0
call dword [sym.imp.ole32.dll_CoUninitialize]
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x14]
xor ecx, ebp
call fcn.004a69a0
mov esp, ebp
pop ebp
ret
push 0x80004005
call fcn.00409e30
int3