Function at 0x40a1c3
Capabilities:
Set registry value

Disassembly:
mov eax, 0x40c87a
call sub.MSVCRT.dll__EH_prolog
sub esp, 0x18
push ebx
xor ebx, ebx
push esi
push edi
mov dword [ebp - 0x1c], ebx
mov dword [ebp - 4], ebx
mov dword [ebp - 0x14], ebx
mov dword [ebp - 0x18], ebx
mov dword [ebp - 0x10], ebx
lea eax, [ebp - 0x20]
mov esi, 0xf003f
push eax
push esi
push ebx
push 0x410cb4
push reloc.OLEAUT32.dll_SysReAllocString
mov byte [ebp - 4], 3
mov dword [ebp - 0x20], ebx
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
cmp eax, ebx
jne 0x40a21c
lea ecx, [ebp - 0x1c]
call fcn.0040a747
mov ecx, dword [ebp - 0x20]
cmp eax, ebx
mov dword [ebp - 0x1c], ecx
je 0x40a250
lea ecx, [ebp - 0x10]
mov byte [ebp - 4], 2
call fcn.0040a747
lea ecx, [ebp - 0x18]
mov byte [ebp - 4], 1
call fcn.0040a747
lea ecx, [ebp - 0x14]
mov byte [ebp - 4], bl
call fcn.0040a747
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x1c]
call fcn.0040a747
jmp 0x40a31d
lea eax, [ebp - 0x24]
mov edi, dword [sym.imp.ADVAPI32.dll_RegCreateKeyExA]
push eax
lea eax, [ebp - 0x20]
push eax
push ebx
push esi
push ebx
push ebx
push ebx
push 0x410cc0
push ecx
mov dword [ebp - 0x20], ebx
call edi
cmp eax, ebx
jne 0x40a21c
lea ecx, [ebp - 0x14]
call fcn.0040a747
mov ecx, dword [ebp - 0x20]
cmp eax, ebx
mov dword [ebp - 0x14], ecx
jne 0x40a21c
lea eax, [ebp - 0x24]
mov dword [ebp - 0x20], ebx
push eax
lea eax, [ebp - 0x20]
push eax
push ebx
push esi
push ebx
push ebx
push ebx
push 0x410ccc
push ecx
call edi
cmp eax, ebx
jne 0x40a21c
lea ecx, [ebp - 0x18]
call fcn.0040a747
mov ecx, dword [ebp - 0x20]
cmp eax, ebx
mov dword [ebp - 0x18], ecx
jne 0x40a21c
lea eax, [ebp - 0x24]
mov dword [ebp - 0x20], ebx
push eax
lea eax, [ebp - 0x20]
push eax
push ebx
push esi
push ebx
push ebx
push ebx
push 0x410cd8
push ecx
call edi
cmp eax, ebx
jne 0x40a2e8
lea ecx, [ebp - 0x10]
call fcn.0040a747
mov ecx, dword [ebp - 0x20]
cmp eax, ebx
mov dword [ebp - 0x10], ecx
je 0x40a327
lea ecx, [ebp - 0x10]
mov byte [ebp - 4], 2
call fcn.0040a747
lea ecx, [ebp - 0x18]
mov byte [ebp - 4], 1
call fcn.0040a747
cmp dword [ebp - 0x14], ebx
mov esi, dword [sym.imp.ADVAPI32.dll_RegCloseKey]
je 0x40a313
push dword [ebp - 0x14]
call esi
mov dword [ebp - 0x14], ebx
cmp dword [ebp - 0x1c], ebx
je 0x40a31d
push dword [ebp - 0x1c]
call esi
mov eax, 0x80004005
jmp 0x40a3d7
cmp dword [ebp + 8], ebx
jne 0x40a347
mov esi, dword [sym.imp.KERNEL32.dll_lstrlenA]
mov edi, 0x411eb0
push edi
call esi
inc eax
push eax
push edi
push 1
push ebx
push 0x410ce0
jmp 0x40a35f
push dword [ebp + 8]
mov esi, dword [sym.imp.KERNEL32.dll_lstrlenA]
call esi
inc eax
push eax
push dword [ebp + 8]
push 1
push ebx
push str.InstallOptions
push dword [ebp - 0x10]
mov edi, dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
call edi
cmp dword [ebp + 0xc], ebx
jne 0x40a387
push 0x411eb4
call esi
inc eax
push eax
push 0x411eb4
push 1
push ebx
push 0x410d00
jmp 0x40a399
push dword [ebp + 0xc]
call esi
inc eax
push eax
push dword [ebp + 0xc]
push 1
push ebx
push str.UpdateDescription
push dword [ebp - 0x10]
call edi
cmp dword [ebp - 0x10], ebx
mov esi, dword [sym.imp.ADVAPI32.dll_RegCloseKey]
je 0x40a3b1
push dword [ebp - 0x10]
call esi
mov dword [ebp - 0x10], ebx
cmp dword [ebp - 0x18], ebx
je 0x40a3be
push dword [ebp - 0x18]
call esi
mov dword [ebp - 0x18], ebx
cmp dword [ebp - 0x14], ebx
je 0x40a3cb
push dword [ebp - 0x14]
call esi
mov dword [ebp - 0x14], ebx
cmp dword [ebp - 0x1c], ebx
je 0x40a3d5
push dword [ebp - 0x1c]
call esi
xor eax, eax
mov ecx, dword [ebp - 0xc]
pop edi
pop esi
pop ebx
mov dword fs:[0], ecx
leave
ret