Function at 0x409e10
Capabilities:
Query or enumerate registry value
Set registry value

Disassembly:
sub esp, 0x210
push 0x4d9784
lea eax, [esp + 0xc]
push str.SoftwareSysinternals_s
push eax
mov dword [esp + 0xc], 0
call fcn.0049ec88
add esp, 0xc
lea ecx, [esp]
push ecx
lea edx, [esp + 0xc]
push edx
push reloc.WS2_32.dll_accept
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyW]
test eax, eax
jne 0x409e75
mov edx, dword [esp]
lea eax, [esp + 4]
push eax
lea ecx, [esp + 0x218]
push ecx
push 0
push 0
push str.EulaAccepted
push edx
mov dword [esp + 0x1c], 4
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
cmp dword [esp + 0x214], 0
jne 0x40a131
push ebx
push esi
push edi
push 0x3e8
push 0x40
call dword [sym.imp.KERNEL32.dll_LocalAlloc]
mov esi, eax
push str.Riched32.dll
lea edi, [esi + 0x12]
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
xor eax, eax
mov word [esi + 0xa], ax
xor ecx, ecx
mov edx, 0x138
mov word [esi + 0xe], dx
mov word [esi + 0xc], cx
mov eax, 0xb4
mov word [esi + 0x10], ax
mov word [esi + 8], cx
mov dword [esi], 0x80c808d0
xor edx, edx
mov word [edi], dx
add edi, 2
xor eax, eax
mov word [edi], ax
add edi, 2
push edi
mov ecx, 0x4dbf7c
call fcn.00409dd0
lea edi, [edi + eax*2]
mov ecx, 8
mov word [edi], cx
add edi, 2
push edi
mov ecx, str.MS_Shell_Dlg
call fcn.00409dd0
lea eax, [edi + eax*2 + 3]
and eax, 0xfffffffc
mov edx, 7
mov word [eax + 8], dx
mov ecx, 3
mov word [eax + 0xa], cx
mov edx, 0x12a
mov word [eax + 0xc], dx
mov ecx, 0xe
mov word [eax + 0xe], cx
mov edx, 0x1f6
mov word [eax + 0x10], dx
mov dword [eax], 0x50000000
lea edi, [eax + 0x12]
mov eax, 0xffff
mov word [edi], ax
add edi, 2
mov ecx, 0x82
mov word [edi], cx
add edi, 2
push edi
mov ecx, 0x4dbfc0
call fcn.00409dd0
lea eax, [edi + eax*2]
xor edx, edx
mov word [eax], dx
add eax, 5
and eax, 0xfffffffc
mov ebx, 1
add word [esi + 8], bx
mov ecx, 0xc9
mov word [eax + 8], cx
mov edx, 0x9f
mov word [eax + 0xa], dx
mov ecx, 0x32
mov edx, 0xe
mov word [eax + 0xc], cx
mov word [eax + 0xe], dx
mov ecx, ebx
lea edi, [eax + 0x12]
mov edx, 0xffff
mov word [eax + 0x10], cx
mov dword [eax], 0x50010000
mov word [edi], dx
add edi, 2
mov eax, 0x80
mov word [edi], ax
add edi, 2
push edi
mov ecx, 0x4dc054
call fcn.00409dd0
lea eax, [edi + eax*2]
xor ecx, ecx
mov word [eax], cx
add word [esi + 8], bx
add eax, 5
and eax, 0xfffffffc
mov edx, 0xff
mov word [eax + 8], dx
mov ecx, 0x9f
mov word [eax + 0xa], cx
mov edx, 0x32
mov word [eax + 0xc], dx
mov edx, 2
mov ecx, 0xe
mov word [eax + 0xe], cx
mov word [eax + 0x10], dx
mov dword [eax], 0x50010000
lea edi, [eax + 0x12]
mov eax, 0xffff
mov word [edi], ax
add edi, edx
mov ecx, 0x80
mov word [edi], cx
add edi, edx
push edi
mov ecx, 0x4dc064
call fcn.00409dd0
lea eax, [edi + eax*2]
xor edx, edx
mov word [eax], dx
add word [esi + 8], bx
add eax, 5
and eax, 0xfffffffc
mov ecx, 7
mov word [eax + 8], cx
mov edx, 0x9f
mov word [eax + 0xa], dx
mov ecx, 0x32
mov word [eax + 0xc], cx
mov edx, 0xe
mov word [eax + 0xe], dx
lea edi, [eax + 0x12]
mov ecx, 0x1f5
mov word [eax + 0x10], cx
mov dword [eax], 0x50010000
mov edx, 0xffff
mov word [edi], dx
add edi, 2
mov eax, 0x80
mov word [edi], ax
add edi, 2
push edi
mov ecx, str.SbpS_
call fcn.00409dd0
lea eax, [edi + eax*2]
xor ecx, ecx
mov word [eax], cx
add word [esi + 8], bx
add eax, 5
and eax, 0xfffffffc
mov edx, 7
mov word [eax + 8], dx
mov ecx, 0xe
mov word [eax + 0xa], cx
mov edx, 0x12a
mov ecx, 0x8c
mov word [eax + 0xc], dx
lea edi, [eax + 0x12]
mov word [eax + 0xe], cx
mov edx, 0x1f4
push edi
mov ecx, str.RICHEDIT
mov word [eax + 0x10], dx
mov dword [eax], 0x50a11844
call fcn.00409dd0
lea edi, [edi + eax*2]
push edi
mov ecx, 0x4dc064
call fcn.00409dd0
push 0x4d9784
xor ecx, ecx
push 0x409c30
push ecx
push esi
mov word [edi + eax*2], cx
add word [esi + 8], bx
push ecx
call dword [sym.imp.USER32.dll_DialogBoxIndirectParamW]
push esi
mov dword [esp + 0x224], eax
call dword [sym.imp.KERNEL32.dll_LocalFree]
cmp dword [esp + 0x220], 0
pop edi
pop esi
pop ebx
je 0x40a14e
mov eax, dword [esp]
push 4
lea edx, [esp + 0x218]
push edx
push 4
push 0
push str.EulaAccepted
push eax
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
mov ecx, dword [esp]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
xor eax, eax
cmp dword [esp + 0x214], eax
setne al
add esp, 0x210
ret 4