Function at 0x7ce2970b
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x30
push ebx
push esi
lea eax, [ebp - 0xc]
push edi
push eax
lea eax, [ebp - 4]
xor esi, esi
mov edi, dword [sym.imp.ADVAPI32.dll_RegCreateKeyExW]
push eax
push esi
push 0x20006
mov ebx, 0x7cd71a80
push esi
push ebx
push esi
push 0x7cd83184
push 0x80000000
mov dword [ebp - 0x10], esi
mov dword [ebp - 0x14], esi
call edi
test eax, eax
jne 0x7ce29944
push 0x3a
push 0x7cd83148
push 1
push esi
push ebx
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
test eax, eax
jne 0x7ce298e6
lea eax, [ebp - 0xc]
push eax
lea eax, [ebp - 8]
push eax
push esi
push 0x20006
push esi
push ebx
push esi
push 0x7cd7262c
push dword [ebp - 4]
call edi
test eax, eax
jne 0x7ce298e6
push 5
mov esi, 0x7cd72708
pop ecx
lea edi, [ebp - 0x30]
lea eax, [ebp - 0x30]
rep movsd dword es:[edi], dword [esi]
push eax
call dword [sym.imp.KERNEL32.dll_lstrlenW]
lea eax, [eax + eax + 2]
mov edi, dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
push eax
lea eax, [ebp - 0x30]
push eax
xor esi, esi
push 1
push esi
push ebx
push dword [ebp - 8]
call edi
test eax, eax
jne 0x7ce29911
push 0xa
push 0x7cd726fc
push 1
push esi
push 0x7cd726dc
push dword [ebp - 8]
call edi
push dword [ebp - 8]
test eax, eax
jne 0x7ce29914
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
lea eax, [ebp - 0xc]
push eax
lea eax, [ebp - 0x1c]
push eax
push esi
push 0x20006
push esi
push ebx
push esi
push dword [0x7ce4d9a4]
push 0x80000000
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExW]
test eax, eax
jne 0x7ce29944
push dword [ebp - 0x1c]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
lea eax, [ebp - 0x10]
push eax
push 0x7cd76078
push 0x7cd82d90
call sym.ole32.dll_DllGetClassObject
cmp eax, esi
jl 0x7ce29955
mov eax, dword [ebp - 0x10]
lea edx, [ebp - 0x14]
push edx
push 0x7cd84518
mov ecx, dword [eax]
push esi
push eax
call dword [ecx + 0xc]
mov dword [ebp - 0x18], eax
mov eax, dword [ebp - 0x10]
push eax
mov ecx, dword [eax]
call dword [ecx + 8]
mov eax, dword [ebp - 0x18]
cmp eax, esi
jl 0x7ce29955
mov eax, dword [ebp - 0x14]
push 0x7ce4d438
push 5
push eax
mov ecx, dword [eax]
call dword [ecx + 0xc]
mov dword [ebp - 0x18], eax
mov eax, dword [ebp - 0x14]
push eax
mov ecx, dword [eax]
call dword [ecx + 8]
lea eax, [ebp - 0xc]
push eax
lea eax, [ebp - 4]
push eax
push esi
push 0x20006
push esi
push ebx
push esi
push 0x7cd830ec
push 0x80000000
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExW]
test eax, eax
jne 0x7ce29944
push 0x5c
push 0x7cd83090
push 1
push esi
push ebx
push dword [ebp - 4]
call edi
test eax, eax
jne 0x7ce298e6
lea eax, [ebp - 0xc]
push eax
lea eax, [ebp - 8]
push eax
push esi
push 0x20006
push esi
push ebx
push esi
push 0x7cd7262c
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExW]
test eax, eax
je 0x7ce298f1
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
jmp 0x7ce29944
lea eax, [ebp - 0x30]
push eax
call dword [sym.imp.KERNEL32.dll_lstrlenW]
lea eax, [eax + eax + 2]
push eax
lea eax, [ebp - 0x30]
push eax
push 1
push esi
push ebx
push dword [ebp - 8]
call edi
test eax, eax
je 0x7ce2991c
push dword [ebp - 8]
mov esi, dword [sym.imp.ADVAPI32.dll_RegCloseKey]
jmp 0x7ce2993d
push 0xa
push 0x7cd726fc
push 1
push esi
push 0x7cd726dc
push dword [ebp - 8]
call edi
push dword [ebp - 8]
mov esi, dword [sym.imp.ADVAPI32.dll_RegCloseKey]
test eax, eax
je 0x7ce2994b
call esi
push dword [ebp - 4]
call esi
mov eax, 0x8000ffff
jmp 0x7ce29955
call esi
push dword [ebp - 4]
call esi
mov eax, dword [ebp - 0x18]
pop edi
pop esi
pop ebx
leave
ret