Function at 0x470010
Capabilities:
Connect to wmi namespace via wbemlocator
Set registry value via stdregprov

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x5d5e60
mov eax, dword fs:[0]
push eax
sub esp, 0x34
push ebx
push esi
push edi
mov eax, dword [0x6609c4]
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 0x470076
mov edx, str.Failed_to_initialize_COM_library.
mov ecx, 0x669210
call fcn.00474d80
push eax
call fcn.00475030
add esp, 4
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 0x4700c7
mov edx, 0x63c508
mov ecx, 0x6692d0
call fcn.00474d80
push eax
call fcn.00475030
add esp, 4
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 0x6248f8
push 1
push 0
push 0x6249c8
call dword [sym.imp.ole32.dll_CoCreateInstance]
mov edi, eax
test edi, edi
jns 0x47011e
mov edx, str.Failed_to_create_IWbemLocator_object.
mov ecx, 0x669210
call fcn.00474d80
push eax
call fcn.00475030
add esp, 4
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
push str.ROOTDEFAULT
lea ecx, [ebp - 0x2c]
mov dword [ebp - 0x14], 0
call fcn.004089e0
mov dword [ebp - 4], 0
mov eax, dword [eax]
test eax, eax
je 0x470143
mov edx, dword [eax]
jmp 0x470145
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 - 0x2c]
test ecx, ecx
je 0x470174
call fcn.00408c90
test edi, edi
jns 0x4701b3
mov edx, str.Could_not_connect_to_WMI_server.
mov ecx, 0x669210
call fcn.00474d80
push eax
call fcn.00475030
mov eax, dword [ebp - 0x18]
add esp, 4
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
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
push str.StdRegProv
lea ecx, [ebp - 0x2c]
mov dword [ebp - 0x20], 0
call fcn.00408950
mov dword [ebp - 4], 1
mov edx, dword [eax]
test edx, edx
je 0x4701d8
mov edx, dword [edx]
jmp 0x4701da
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 - 0x2c]
test ecx, ecx
je 0x470201
call fcn.00408c90
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 0x63c55c
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 - 0x40]
push eax
call ebx
mov eax, 3
mov dword [ebp - 0x38], reloc.WS2_32.dll_accept
push 0
mov word [ebp - 0x40], ax
lea edx, [ebp - 0x40]
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 - 0x40]
push eax
call edi
lea eax, [ebp - 0x40]
push eax
call ebx
mov eax, 8
mov word [ebp - 0x40], ax
cmp dword [esi + 0x14], eax
jb 0x470288
mov esi, dword [esi]
push esi
lea ecx, [ebp - 0x2c]
call fcn.004089e0
mov eax, dword [eax]
test eax, eax
je 0x47029e
mov eax, dword [eax]
mov dword [ebp - 0x38], eax
jmp 0x4702a5
mov dword [ebp - 0x38], 0
mov ecx, dword [ebp - 0x2c]
test ecx, ecx
je 0x4702b1
call fcn.00408c90
mov eax, dword [ebp - 0x10]
lea edx, [ebp - 0x40]
push 0
push edx
push 0
mov ecx, dword [eax]
push str.sSubKeyName
push eax
call dword [ecx + 0x14]
lea eax, [ebp - 0x40]
push eax
call edi
lea eax, [ebp - 0x40]
push eax
call ebx
mov eax, dword [ebp + 8]
mov esi, 8
mov word [ebp - 0x40], si
cmp dword [eax + 0x14], esi
jb 0x4702e6
mov eax, dword [eax]
push eax
lea ecx, [ebp - 0x2c]
call fcn.004089e0
mov eax, dword [eax]
test eax, eax
je 0x4702fc
mov eax, dword [eax]
mov dword [ebp - 0x38], eax
jmp 0x470303
mov dword [ebp - 0x38], 0
mov ecx, dword [ebp - 0x2c]
test ecx, ecx
je 0x47030f
call fcn.00408c90
mov eax, dword [ebp - 0x10]
lea edx, [ebp - 0x40]
push 0
push edx
push 0
mov ecx, dword [eax]
push str.sValueName
push eax
call dword [ecx + 0x14]
lea eax, [ebp - 0x40]
push eax
call edi
lea eax, [ebp - 0x40]
push eax
call ebx
mov eax, dword [ebp + 0xc]
mov word [ebp - 0x40], si
cmp dword [eax + 0x14], esi
jb 0x47033f
mov eax, dword [eax]
push eax
lea ecx, [ebp - 0x2c]
call fcn.004089e0
mov eax, dword [eax]
test eax, eax
je 0x470355
mov eax, dword [eax]
mov dword [ebp - 0x38], eax
jmp 0x47035c
mov dword [ebp - 0x38], 0
mov ecx, dword [ebp - 0x2c]
test ecx, ecx
je 0x470368
call fcn.00408c90
mov eax, dword [ebp - 0x10]
lea edx, [ebp - 0x40]
push 0
push edx
push 0
mov ecx, dword [eax]
push str.sValue
push eax
call dword [ecx + 0x14]
lea eax, [ebp - 0x40]
push eax
call edi
push str.SetStringValue
lea ecx, [ebp - 0x28]
call fcn.00408950
mov esi, eax
push str.StdRegProv
lea ecx, [ebp - 0x24]
mov dword [ebp - 4], 2
call fcn.00408950
mov byte [ebp - 4], 3
mov esi, dword [esi]
test esi, esi
je 0x4703b5
mov esi, dword [esi]
jmp 0x4703b7
xor esi, esi
mov eax, dword [eax]
test eax, eax
je 0x4703c1
mov edx, dword [eax]
jmp 0x4703c3
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 esi, eax
test ecx, ecx
je 0x4703ee
call fcn.00408c90
mov dword [ebp - 0x24], 0
mov dword [ebp - 4], 0xffffffff
mov ecx, dword [ebp - 0x28]
test ecx, ecx
je 0x470408
call fcn.00408c90
mov dword [ebp - 0x28], 0
test esi, esi
jns 0x470418
mov edx, str.Could_not_execute_method.
mov ecx, 0x669210
jmp 0x470422
mov edx, str.Registry_value_set_successfully.
mov ecx, 0x6692d0
call fcn.00474d80
push eax
call fcn.00475030
mov ecx, dword [ebp - 0x10]
add esp, 4
test ecx, ecx
je 0x470444
mov eax, dword [ecx]
push ecx
call dword [eax + 8]
mov dword [ebp - 0x10], 0
mov ecx, dword [ebp - 0x1c]
test ecx, ecx
je 0x470458
mov eax, dword [ecx]
push ecx
call dword [eax + 8]
mov dword [ebp - 0x1c], 0
mov ecx, dword [ebp - 0x20]
test ecx, ecx
je 0x47046c
mov eax, dword [ecx]
push ecx
call dword [eax + 8]
mov dword [ebp - 0x20], 0
mov ecx, dword [ebp - 0x14]
test ecx, ecx
je 0x470480
mov eax, dword [ecx]
push ecx
call dword [eax + 8]
mov dword [ebp - 0x14], 0
mov ecx, dword [ebp - 0x18]
test ecx, ecx
je 0x470494
mov eax, dword [ecx]
push ecx
call dword [eax + 8]
mov dword [ebp - 0x18], 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 esp, ebp
pop ebp
ret