Function at 0x402030
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10c
mov eax, dword [0x44f0cc]
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.00402460
add esp, 0xc
cmp dword [ebp + 0xc], 0
jne 0x4022ae
push ebx
call fcn.00401a20
add esp, 4
mov dword [ebp + 0xc], eax
test eax, eax
jne 0x4022ae
call fcn.00401b30
test eax, eax
je 0x40209a
call fcn.00401fa0
mov dword [ebp + 0xc], eax
jmp 0x4022a8
call fcn.00401bf0
test eax, eax
jne 0x402309
call fcn.00401c70
test eax, eax
jne 0x402309
push esi
push edi
push 0x3e8
push 0x40
call dword [sym.imp.KERNEL32.dll_LocalAlloc]
mov edi, eax
push 1
push str.Riched32.dll
lea esi, [edi + 0x12]
call fcn.004016a0
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.00401700
push str.MS_Shell_Dlg
lea esi, [esi + eax*2]
mov eax, 8
mov word [esi], ax
add esi, 2
push esi
call fcn.00401700
lea eax, [esi + eax*2]
push eax
call fcn.004016f0
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.00401700
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.004016f0
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.00401700
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.004016f0
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.00401700
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.004016f0
add esp, 0x40
lea esi, [eax + 0x12]
mov ecx, 0x1f5
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 str.Print
push esi
call fcn.00401700
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.004016f0
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.00401700
push str.Decline
lea esi, [esi + eax*2]
push esi
call fcn.00401700
add esp, 0x1c
xor ecx, ecx
mov word [esi + eax*2], cx
inc word [edi + 8]
push ebx
push 0x401750
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 0x4022f2
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 0x4022f2
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.0040294b
mov esp, ebp
pop ebp
ret
call fcn.00402000
int3