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

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x5757b8
mov eax, dword fs:[0]
push eax
sub esp, 0x2c
push ebx
push esi
push edi
mov eax, dword [0x5c4104]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, edx
push 0
push 0
call dword [sym.imp.ole32.dll_CoInitializeEx]
mov edi, eax
test edi, edi
jns 0x40a770
call fcn.00406e20
mov ecx, eax
test ecx, ecx
jne 0x40a70f
push 0x80004005
call fcn.004071e0
mov eax, dword [ecx]
mov edx, dword [eax + 0xc]
cmp eax, vtable.ATL::CAtlStringMgr.0
jne 0x40a724
lock inc dword [ecx + 0x14]
lea eax, [ecx + 8]
jmp 0x40a726
call edx
add eax, 0x10
mov dword [ebp - 0x24], eax
mov dword [ebp - 4], 0
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
lea eax, [ebp - 0x24]
push str._______XD999_initialize_COM_Error_d
push eax
call fcn.0041f560
add esp, 0xc
push dword [ebp - 0x24]
call dword [sym.imp.KERNEL32.dll_OutputDebugStringW]
lea ecx, [ebp - 0x24]
call fcn.00404e00
mov eax, edi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
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 0x40a7e1
lea ecx, [ebp - 0x24]
call fcn.00404f80
mov dword [ebp - 4], 1
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
lea eax, [ebp - 0x24]
push str._______XD999_initialize_COM_Error2:_d
push eax
call fcn.0041f560
add esp, 0xc
push dword [ebp - 0x24]
call dword [sym.imp.KERNEL32.dll_OutputDebugStringW]
lea ecx, [ebp - 0x24]
call fcn.00404e00
call dword [sym.imp.ole32.dll_CoUninitialize]
mov eax, 1
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
lea eax, [ebp - 0x18]
mov dword [ebp - 0x18], 0
push eax
push 0x58e4a0
push 1
push 0
push 0x58e570
call dword [sym.imp.ole32.dll_CoCreateInstance]
mov edi, eax
lea ecx, [ebp - 0x24]
test edi, edi
jns 0x40a843
call fcn.00404f80
mov dword [ebp - 4], 2
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
lea eax, [ebp - 0x24]
push str._______XD999_create_IWbemLocator_d
push eax
call fcn.0041f560
add esp, 0xc
push dword [ebp - 0x24]
call dword [sym.imp.KERNEL32.dll_OutputDebugStringW]
lea ecx, [ebp - 0x24]
call fcn.00404e00
jmp 0x40ac3e
push str.ROOTDEFAULT
mov dword [ebp - 0x14], 0
call fcn.0040a140
mov dword [ebp - 4], 3
mov eax, dword [eax]
test eax, eax
je 0x40a865
mov edx, dword [eax]
jmp 0x40a867
xor edx, edx
mov eax, dword [ebp - 0x18]
lea edi, [ebp - 0x14]
push edi
push 0
push 0
mov ecx, dword [eax]
push 0
push 0
push 0
push 0
push edx
push eax
call dword [ecx + 0xc]
mov dword [ebp - 4], 0xffffffff
mov edi, eax
mov ecx, dword [ebp - 0x24]
test ecx, ecx
je 0x40a896
call fcn.0040a2a0
lea ecx, [ebp - 0x24]
test edi, edi
jns 0x40a8e7
call fcn.00404f80
mov dword [ebp - 4], 4
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
lea eax, [ebp - 0x24]
push str._______XD999_Could_not_connect_to_WMI_server_d
push eax
call fcn.0041f560
add esp, 0xc
push dword [ebp - 0x24]
call dword [sym.imp.KERNEL32.dll_OutputDebugStringW]
lea ecx, [ebp - 0x24]
mov dword [ebp - 4], 0xffffffff
call fcn.00404e00
mov eax, dword [ebp - 0x18]
push eax
mov ecx, dword [eax]
call dword [ecx + 8]
jmp 0x40ac3e
push str.StdRegProv
mov dword [ebp - 0x20], 0
call fcn.0040a0b0
mov dword [ebp - 4], 5
mov edx, dword [eax]
test edx, edx
je 0x40a909
mov edx, dword [edx]
jmp 0x40a90b
xor edx, edx
mov eax, dword [ebp - 0x14]
lea edi, [ebp - 0x20]
push 0
push edi
push 0
mov ecx, dword [eax]
push 0
push edx
push eax
call dword [ecx + 0x18]
mov dword [ebp - 4], 0xffffffff
mov ecx, dword [ebp - 0x24]
test ecx, ecx
je 0x40a932
call fcn.0040a2a0
mov eax, dword [ebp - 0x20]
lea edx, [ebp - 0x1c]
push 0
push edx
push 0
mov dword [ebp - 0x1c], 0
mov ecx, dword [eax]
push 0x59e11c
push eax
call dword [ecx + 0x4c]
mov eax, dword [ebp - 0x1c]
lea edx, [ebp - 0x10]
push edx
mov dword [ebp - 0x10], 0
push 0
mov ecx, dword [eax]
push eax
call dword [ecx + 0x3c]
mov ebx, dword [sym.imp.OLEAUT32.dll_VariantClear]
lea eax, [ebp - 0x38]
push eax
call ebx
mov eax, 3
mov dword [ebp - 0x30], SysReAllocStringLen
push 0
mov word [ebp - 0x38], ax
lea edx, [ebp - 0x38]
mov eax, dword [ebp - 0x10]
push edx
push 0
push str.hDefKey
mov ecx, dword [eax]
push eax
call dword [ecx + 0x14]
mov edi, dword [sym.imp.OLEAUT32.dll_VariantCopy]
lea eax, [ebp - 0x38]
push eax
call edi
lea eax, [ebp - 0x38]
push eax
call ebx
mov eax, 8
mov word [ebp - 0x38], ax
cmp dword [esi + 0x14], eax
jb 0x40a9b9
mov esi, dword [esi]
push esi
lea ecx, [ebp - 0x24]
call fcn.0040a140
mov eax, dword [eax]
test eax, eax
je 0x40a9cf
mov eax, dword [eax]
mov dword [ebp - 0x30], eax
jmp 0x40a9d6
mov dword [ebp - 0x30], 0
mov ecx, dword [ebp - 0x24]
test ecx, ecx
je 0x40a9e2
call fcn.0040a2a0
mov eax, dword [ebp - 0x10]
lea edx, [ebp - 0x38]
push 0
push edx
push 0
mov ecx, dword [eax]
push str.sSubKeyName
push eax
call dword [ecx + 0x14]
lea eax, [ebp - 0x38]
push eax
call edi
lea eax, [ebp - 0x38]
push eax
call ebx
mov eax, dword [ebp + 8]
mov esi, 8
mov word [ebp - 0x38], si
cmp dword [eax + 0x14], esi
jb 0x40aa17
mov eax, dword [eax]
push eax
lea ecx, [ebp - 0x24]
call fcn.0040a140
mov eax, dword [eax]
test eax, eax
je 0x40aa2d
mov eax, dword [eax]
mov dword [ebp - 0x30], eax
jmp 0x40aa34
mov dword [ebp - 0x30], 0
mov ecx, dword [ebp - 0x24]
test ecx, ecx
je 0x40aa40
call fcn.0040a2a0
mov eax, dword [ebp - 0x10]
lea edx, [ebp - 0x38]
push 0
push edx
push 0
mov ecx, dword [eax]
push str.sValueName
push eax
call dword [ecx + 0x14]
lea eax, [ebp - 0x38]
push eax
call edi
lea eax, [ebp - 0x38]
push eax
call ebx
mov eax, dword [ebp + 0xc]
mov word [ebp - 0x38], si
cmp dword [eax + 0x14], esi
jb 0x40aa70
mov eax, dword [eax]
push eax
lea ecx, [ebp - 0x24]
call fcn.0040a140
mov eax, dword [eax]
test eax, eax
je 0x40aa86
mov eax, dword [eax]
mov dword [ebp - 0x30], eax
jmp 0x40aa8d
mov dword [ebp - 0x30], 0
mov ecx, dword [ebp - 0x24]
test ecx, ecx
je 0x40aa99
call fcn.0040a2a0
mov eax, dword [ebp - 0x10]
lea edx, [ebp - 0x38]
push 0
push edx
push 0
mov ecx, dword [eax]
push str.sValue
push eax
call dword [ecx + 0x14]
lea eax, [ebp - 0x38]
push eax
call edi
push str.SetStringValue
lea ecx, [ebp - 0x28]
call fcn.0040a0b0
mov esi, eax
push str.StdRegProv
lea ecx, [ebp - 0x24]
mov dword [ebp - 4], 6
call fcn.0040a0b0
mov byte [ebp - 4], 7
mov esi, dword [esi]
test esi, esi
je 0x40aae6
mov esi, dword [esi]
jmp 0x40aae8
xor esi, esi
mov eax, dword [eax]
test eax, eax
je 0x40aaf2
mov edx, dword [eax]
jmp 0x40aaf4
xor edx, edx
mov eax, dword [ebp - 0x14]
push 0
push 0
push dword [ebp - 0x10]
mov ecx, dword [eax]
push 0
push 0
push esi
push edx
push eax
call dword [ecx + 0x60]
mov ecx, dword [ebp - 0x24]
mov edi, eax
test ecx, ecx
je 0x40ab1f
call fcn.0040a2a0
mov dword [ebp - 0x24], 0
mov dword [ebp - 4], 0xffffffff
mov ecx, dword [ebp - 0x28]
test ecx, ecx
je 0x40ab32
call fcn.0040a2a0
test edi, edi
jns 0x40aba9
mov edx, str.Could_not_execute_method.
mov ecx, 0x5c79c8
call fcn.0041f700
mov esi, eax
push 0xa
mov ecx, dword [esi]
mov ecx, dword [ecx + 4]
add ecx, esi
call fcn.00420640
movzx ecx, al
push ecx
mov ecx, esi
call fcn.00420440
mov ecx, esi
call fcn.00420360
lea ecx, [ebp - 0x24]
call fcn.00404f80
mov dword [ebp - 4], 8
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push edi
lea eax, [ebp - 0x24]
push str._______XD999_ExecMethod_Error_d__d
push eax
call fcn.0041f560
add esp, 0x10
push dword [ebp - 0x24]
call dword [sym.imp.KERNEL32.dll_OutputDebugStringW]
lea ecx, [ebp - 0x24]
mov dword [ebp - 4], 0xffffffff
call fcn.00404e00
jmp 0x40abda
mov edx, str.Registry_value_set_successfully.
mov ecx, 0x5c7a88
call fcn.0041f700
mov esi, eax
push 0xa
mov ecx, dword [esi]
mov ecx, dword [ecx + 4]
add ecx, esi
call fcn.00420640
movzx ecx, al
push ecx
mov ecx, esi
call fcn.00420440
mov ecx, esi
call fcn.00420360
mov ecx, dword [ebp - 0x10]
test ecx, ecx
je 0x40abee
mov eax, dword [ecx]
push ecx
call dword [eax + 8]
mov dword [ebp - 0x10], 0
mov ecx, dword [ebp - 0x1c]
test ecx, ecx
je 0x40ac02
mov eax, dword [ecx]
push ecx
call dword [eax + 8]
mov dword [ebp - 0x1c], 0
mov ecx, dword [ebp - 0x20]
test ecx, ecx
je 0x40ac16
mov eax, dword [ecx]
push ecx
call dword [eax + 8]
mov dword [ebp - 0x20], 0
mov ecx, dword [ebp - 0x14]
test ecx, ecx
je 0x40ac2a
mov eax, dword [ecx]
push ecx
call dword [eax + 8]
mov dword [ebp - 0x14], 0
mov ecx, dword [ebp - 0x18]
test ecx, ecx
je 0x40ac3e
mov eax, dword [ecx]
push ecx
call dword [eax + 8]
mov dword [ebp - 0x18], 0
call dword [sym.imp.ole32.dll_CoUninitialize]
mov eax, edi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret