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

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x110
mov eax, dword [0x43c650]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
mov ebx, dword [ebp + 8]
push ebx
lea eax, [ebp - 0x108]
push str.SoftwareSysinternals_s
push eax
mov dword [ebp - 0x10c], 0
call fcn.0040aa42
add esp, 0xc
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 0x4015ed
lea eax, [ebp - 0x110]
push eax
lea eax, [ebp + 0xc]
push eax
push 0
push 0
push str.EulaAccepted
push dword [ebp - 0x10c]
mov dword [ebp - 0x110], 4
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
cmp dword [ebp + 0xc], 0
jne 0x4017ec
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.00401010
lea esi, [esi + eax*2]
mov eax, 8
mov word [esi], ax
add esi, 2
push str.MS_Shell_Dlg
push esi
call fcn.00401010
lea eax, [esi + eax*2]
push eax
call fcn.00401000
lea esi, [eax + 0x12]
mov ecx, 0x1f6
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 str.You_can_also_use_the__accepteula_command_line_switch_to_accept_the_EULA.
push esi
call fcn.00401010
lea eax, [esi + eax*2]
xor ecx, ecx
mov word [eax], cx
inc word [edi + 8]
add eax, 2
push eax
call fcn.00401000
lea esi, [eax + 0x12]
mov ecx, 1
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 str.Agree
push esi
call fcn.00401010
lea eax, [esi + eax*2]
xor ecx, ecx
mov word [eax], cx
inc word [edi + 8]
add eax, 2
push eax
call fcn.00401000
lea esi, [eax + 0x12]
mov ecx, 2
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 str.Decline
push esi
call fcn.00401010
lea eax, [esi + eax*2]
xor ecx, ecx
mov word [eax], cx
inc word [edi + 8]
add eax, 2
push eax
call fcn.00401000
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.00401010
lea eax, [esi + eax*2]
xor ecx, ecx
mov word [eax], cx
inc word [edi + 8]
add esp, 0x40
add eax, 2
push eax
call fcn.00401000
lea esi, [eax + 0x12]
mov ecx, 0x1f4
push str.RICHEDIT
push esi
mov dword [eax + 8], 0xe0007
mov dword [eax + 0xc], 0x8c012a
mov word [eax + 0x10], cx
mov dword [eax], 0x50a11844
call fcn.00401010
lea esi, [esi + eax*2]
push str.Decline
push esi
call fcn.00401010
add esp, 0x14
xor ecx, ecx
push ebx
push 0x401060
push ecx
push edi
mov word [esi + eax*2], cx
inc word [edi + 8]
push ecx
call dword [sym.imp.USER32.dll_DialogBoxIndirectParamA]
push edi
mov dword [ebp + 0xc], eax
call dword [sym.imp.KERNEL32.dll_LocalFree]
cmp dword [ebp + 0xc], 0
pop edi
pop esi
je 0x401807
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.0040aae0
mov esp, ebp
pop ebp