Function at 0x401e20
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10c
mov eax, dword [0x41e4d0]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
mov ebx, dword [ebp + 8]
lea eax, [ebp - 0x108]
push ebx
push str.SoftwareSysinternals_s
push eax
mov dword [ebp - 0x10c], 0
call fcn.0040336f
add esp, 0xc
cmp dword [ebp + 0xc], 0
jne 0x40209d
push ebx
call fcn.00401840
add esp, 4
mov dword [ebp + 0xc], eax
test eax, eax
jne 0x40209d
call fcn.00401950
test eax, eax
je 0x401e8a
call fcn.00401d90
mov dword [ebp + 0xc], eax
jmp 0x402097
call fcn.00401a10
test eax, eax
jne 0x4020f8
call fcn.00401a90
test eax, eax
jne 0x4020f8
push esi
push edi
push 0x3e8
push 0x40
call dword [sym.imp.KERNEL32.dll_LocalAlloc]
mov edi, eax
push str.Riched32.dll
lea esi, [edi + 0x12]
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
xor eax, eax
mov dword [edi], 0x80c808d0
mov dword [edi + 0xa], eax
mov dword [edi + 0xe], 0xb40138
mov word [edi + 8], ax
mov dword [esi], eax
add esi, 4
push str.License_Agreement
push esi
call fcn.00401520
push str.MS_Shell_Dlg
lea esi, [esi + eax*2]
mov eax, 8
mov word [esi], ax
add esi, 2
push esi
call fcn.00401520
lea eax, [esi + eax*2]
push eax
call fcn.00401510
mov ecx, 0x1f6
lea esi, [eax + 0x12]
push str.You_can_also_use_the__accepteula_command_line_switch_to_accept_the_EULA.
mov dword [eax + 8], 0x30007
mov dword [eax + 0xc], 0xe012a
mov word [eax + 0x10], cx
mov dword [eax], 0x50000000
mov dword [esi], 0x82ffff
add esi, 4
push esi
call fcn.00401520
xor ecx, ecx
mov word [esi + eax*2], cx
inc word [edi + 8]
lea eax, [esi + eax*2]
add eax, 2
push eax
call fcn.00401510
mov ecx, 1
lea esi, [eax + 0x12]
push str.Agree
mov dword [eax + 8], 0x9f00c9
mov dword [eax + 0xc], 0xe0032
mov word [eax + 0x10], cx
mov dword [eax], 0x50010000
mov dword [esi], 0x80ffff
add esi, 4
push esi
call fcn.00401520
xor ecx, ecx
mov word [esi + eax*2], cx
inc word [edi + 8]
lea eax, [esi + eax*2]
add eax, 2
push eax
call fcn.00401510
mov ecx, 2
lea esi, [eax + 0x12]
push str.Decline
mov dword [eax + 8], 0x9f00ff
mov dword [eax + 0xc], 0xe0032
mov word [eax + 0x10], cx
mov dword [eax], 0x50010000
mov dword [esi], 0x80ffff
add esi, 4
push esi
call fcn.00401520
xor ecx, ecx
mov word [esi + eax*2], cx
inc word [edi + 8]
lea eax, [esi + eax*2]
add eax, 2
push eax
call fcn.00401510
mov ecx, 0x1f5
lea esi, [eax + 0x12]
push str.Print
mov dword [eax + 8], 0x9f0007
mov dword [eax + 0xc], 0xe0032
mov word [eax + 0x10], cx
mov dword [eax], 0x50010000
mov dword [esi], 0x80ffff
add esi, 4
push esi
call fcn.00401520
add esp, 0x40
xor ecx, ecx
mov word [esi + eax*2], cx
inc word [edi + 8]
lea eax, [esi + eax*2]
add eax, 2
push eax
call fcn.00401510
mov ecx, 0x1f4
push str.RICHEDIT
lea esi, [eax + 0x12]
mov dword [eax + 8], 0xe0007
push esi
mov dword [eax + 0xc], 0x8c012a
mov word [eax + 0x10], cx
mov dword [eax], 0x50a11844
call fcn.00401520
push str.Decline
lea esi, [esi + eax*2]
push esi
call fcn.00401520
add esp, 0x14
xor ecx, ecx
mov word [esi + eax*2], cx
inc word [edi + 8]
push ebx
push 0x401570
push ecx
push edi
push ecx
call dword [sym.imp.USER32.dll_DialogBoxIndirectParamA]
push edi
mov dword [ebp + 0xc], eax
call dword [sym.imp.KERNEL32.dll_LocalFree]
pop edi
pop esi
cmp dword [ebp + 0xc], 0
je 0x4020e1
lea eax, [ebp - 0x10c]
push eax
lea eax, [ebp - 0x108]
push eax
push 0x80000001
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyA]
test eax, eax
jne 0x4020e1
push 4
lea eax, [ebp + 0xc]
push eax
push 4
push 0
push str.EulaAccepted
push dword [ebp - 0x10c]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
push dword [ebp - 0x10c]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov ecx, dword [ebp - 4]
xor eax, eax
cmp dword [ebp + 0xc], eax
pop ebx
setne al
xor ecx, ebp
call fcn.00403360
mov esp, ebp
pop ebp
ret
call fcn.00401df0
int3