Function at 0x41ebd0
Capabilities:
Set registry value

Disassembly:
push ebx
mov ebx, esp
sub esp, 8
and esp, 0xfffffff8
add esp, 4
push ebp
mov ebp, dword [ebx + 4]
mov dword [esp + 4], ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x605b35
mov eax, dword fs:[0]
push eax
push ebx
sub esp, 0x28
mov eax, dword [0x69f000]
xor eax, ebp
mov dword [ebp - 0x14], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
cmp byte [ebx + 0x14], 0
mov esi, dword [ebx + 8]
mov ecx, esi
mov eax, dword [ebx + 0xc]
mov edi, dword [ebx + 0x10]
mov dword [ebp - 0x38], eax
mov eax, dword [esi + 0x14]
je 0x41ed22
cmp eax, 8
jb 0x41ec30
mov ecx, dword [esi]
lea eax, [ebp - 0x34]
push eax
push 0xf023f
push 0
push ecx
push reloc.OLEAUT32.dll_SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
mov dword [ebp - 0x18], eax
cmp eax, 2
jne 0x41eca3
call fcn.00408570
cmp dword [esi + 0x14], 8
mov edx, esi
lea ecx, [eax + 0xf4]
jb 0x41ec64
mov edx, dword [esi]
mov eax, dword [ecx]
push edx
push str.registry_key_doesnt_exist_at_path__s
push 0x664cec
push ecx
call dword [eax]
add esp, 0x10
mov eax, esi
cmp dword [esi + 0x14], 8
jb 0x41ec81
mov eax, dword [esi]
push 0
lea ecx, [ebp - 0x34]
push ecx
push 0
push 0xf013f
push 0
push 0
push 0
push eax
push reloc.OLEAUT32.dll_SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExW]
mov dword [ebp - 0x18], eax
test eax, eax
je 0x41ece0
call fcn.00408570
cmp dword [esi + 0x14], 8
lea ecx, [eax + 0xf4]
jb 0x41ecba
mov esi, dword [esi]
mov eax, dword [ecx]
push esi
push dword [ebp - 0x18]
push str.Error_in_registry_key_creation_:__d_at_path__s
push 0x664cec
push ecx
call dword [eax]
add esp, 0x14
push dword [ebp - 0x34]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
xor al, al
jmp 0x41ee65
push 8
xorps xmm0, xmm0
mov dword [ebp - 0x20], 0
push str.MSUpdate
lea ecx, [ebp - 0x30]
mov dword [ebp - 0x1c], 0
movups xmmword [ebp - 0x30], xmm0
call fcn.0040c3f0
mov dword [ebp - 4], 0
mov eax, dword [ebp - 0x38]
mov ecx, dword [eax]
cmp ecx, 4
je 0x41edcc
push 4
push edi
push ecx
jmp 0x41edeb
cmp eax, 8
jb 0x41ed29
mov ecx, dword [esi]
lea eax, [ebp - 0x34]
push eax
push 0xf013f
push 0
push ecx
push reloc.OLEAUT32.dll_SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
mov dword [ebp - 0x18], eax
cmp eax, 2
jne 0x41ed9c
call fcn.00408570
cmp dword [esi + 0x14], 8
mov edx, esi
lea ecx, [eax + 0xf4]
jb 0x41ed5d
mov edx, dword [esi]
mov eax, dword [ecx]
push edx
push str.registry_key_doesnt_exist_at_path__s
push 0x664cec
push ecx
call dword [eax]
add esp, 0x10
mov eax, esi
cmp dword [esi + 0x14], 8
jb 0x41ed7a
mov eax, dword [esi]
push 0
lea ecx, [ebp - 0x34]
push ecx
push 0
push 0xf023f
push 0
push 0
push 0
push eax
push reloc.OLEAUT32.dll_SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExW]
mov dword [ebp - 0x18], eax
test eax, eax
jne 0x41eca7
push 8
xorps xmm0, xmm0
mov dword [ebp - 0x20], eax
push str.MSUpdate
lea ecx, [ebp - 0x30]
mov dword [ebp - 0x1c], eax
movups xmmword [ebp - 0x30], xmm0
call fcn.0040c3f0
mov dword [ebp - 4], 1
jmp 0x41ed0b
cmp dword [edi + 0x14], 8
jb 0x41edd4
mov edi, dword [edi]
push edi
call fcn.005e1035
add esp, 4
mov dword [ebp - 0x18], eax
lea ecx, [ebp - 0x18]
push 4
push ecx
mov ecx, dword [ebp - 0x38]
push dword [ecx]
cmp dword [ebp - 0x1c], 8
lea eax, [ebp - 0x30]
push 0
cmovae eax, dword [ebp - 0x30]
push eax
push dword [ebp - 0x34]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
mov edi, eax
test edi, edi
je 0x41ee4b
call fcn.00408570
cmp dword [esi + 0x14], 8
lea ecx, [eax + 0xf4]
jb 0x41ee1b
mov esi, dword [esi]
mov eax, dword [ecx]
push esi
push edi
push str.Error_in_updating_registry_key_:__d_at_path__s
push 0x664cec
push ecx
call dword [eax]
add esp, 0x14
push dword [ebp - 0x34]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x30]
call fcn.0040bd90
xor al, al
jmp 0x41ee65
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x30]
call fcn.0040bd90
push dword [ebp - 0x34]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov al, 1
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov ecx, dword [ebp - 0x14]
xor ecx, ebp
call fcn.005d077b
mov esp, ebp
pop ebp
mov esp, ebx
pop ebx
ret 0x10