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

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x328
mov eax, dword [0x431c38]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
mov esi, dword [ebp + 8]
lea eax, [ebp - 0x108]
push esi
push str.SoftwareSysinternals_s
push 0x104
push eax
mov dword [ebp - 0x328], esi
mov dword [ebp - 0x320], 0
call fcn.00401db0
mov ebx, dword [sym.imp.ADVAPI32.dll_RegCloseKey]
add esp, 0x10
cmp dword [ebp + 0xc], 0
jne 0x401cd0
push esi
call fcn.00401450
add esp, 4
mov dword [ebp + 0xc], eax
test eax, eax
jne 0x401cd0
push edi
mov edi, dword [sym.imp.ADVAPI32.dll_RegOpenKeyA]
xor esi, esi
mov dword [ebp - 0x314], eax
lea eax, [ebp - 0x314]
push eax
push str.SoftwareMicrosoftwindows_ntcurrentversion
push 0x80000002
mov dword [ebp - 0x31c], 0x208
mov dword [ebp - 0x318], esi
call edi
test eax, eax
jne 0x401a40
lea eax, [ebp - 0x31c]
push eax
lea eax, [ebp - 0x310]
push eax
lea eax, [ebp - 0x318]
push eax
push esi
push 0x427404
push dword [ebp - 0x314]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x4019c9
lea eax, [ebp - 0x310]
push eax
push str.iotuap
call fcn.00409f7a
add esp, 8
test eax, eax
mov eax, 1
cmove esi, eax
push dword [ebp - 0x314]
call ebx
test esi, esi
je 0x401a40
push dword [0x4310c4]
xor edi, edi
xor esi, esi
call fcn.00401de0
add esp, 4
nop word [eax + eax]
push str.Accept_Eula__Y_N__
call fcn.00401d80
call fcn.00410643
mov bl, al
movsx eax, bl
push eax
push 0x427494
call fcn.00401d80
add esp, 0xc
cmp bl, 0x79
je 0x401a1c
cmp bl, 0x59
jne 0x401a23
mov edi, 1
mov esi, edi
cmp bl, 0x6e
je 0x401a32
cmp bl, 0x4e
je 0x401a32
cmp esi, 1
jne 0x4019f0
mov ebx, dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov dword [ebp + 0xc], edi
jmp 0x401cc9
lea eax, [ebp - 0x314]
mov dword [ebp - 0x314], 0
push eax
push str.SoftwareMicrosoftWindows_NTCurrentVersionServerServerLevels
xor esi, esi
mov dword [ebp - 0x31c], 0
push 0x80000002
mov dword [ebp - 0x324], 4
mov dword [ebp - 0x318], esi
call edi
test eax, eax
jne 0x401ad0
lea eax, [ebp - 0x324]
push eax
lea eax, [ebp - 0x31c]
push eax
lea eax, [ebp - 0x318]
push eax
push esi
push str.NanoServer
push dword [ebp - 0x314]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0x401ac0
cmp dword [ebp - 0x318], 4
jne 0x401ac0
cmp dword [ebp - 0x31c], 1
mov eax, 1
cmove esi, eax
push dword [ebp - 0x314]
call ebx
test esi, esi
jne 0x401d28
push 0xfffffffffffffff5
call dword [sym.imp.KERNEL32.dll_GetStdHandle]
push eax
call dword [sym.imp.KERNEL32.dll_GetFileType]
cmp eax, 3
je 0x401d28
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.00401040
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.00401100
push str.MS_Shell_Dlg
lea esi, [esi + eax*2]
mov eax, 8
mov word [esi], ax
add esi, 2
push esi
call fcn.00401100
push str.You_can_also_use_the__accepteula_command_line_switch_to_accept_the_EULA.
lea esi, [esi + eax*2]
mov eax, 0x82
add esi, 3
and esi, 0xfffffffc
mov dword [esi + 8], 0x30007
mov dword [esi + 0xc], 0xe012a
mov dword [esi + 0x10], 0xffff01f6
mov dword [esi], 0x50000000
mov word [esi + 0x14], ax
add esi, 0x16
push esi
call fcn.00401100
xor ecx, ecx
mov word [esi + eax*2], cx
inc word [edi + 8]
lea eax, [esi + eax*2]
lea esi, [eax + 5]
mov eax, 0x80
and esi, 0xfffffffc
push str.Agree
mov dword [esi + 8], 0x9f00c9
mov dword [esi + 0xc], 0xe0032
mov dword [esi + 0x10], 0xffff0001
mov dword [esi], 0x50010000
mov word [esi + 0x14], ax
add esi, 0x16
push esi
call fcn.00401100
xor ecx, ecx
mov word [esi + eax*2], cx
inc word [edi + 8]
lea eax, [esi + eax*2]
lea esi, [eax + 5]
mov eax, 0x80
and esi, 0xfffffffc
push str.Decline
mov dword [esi + 8], 0x9f00ff
mov dword [esi + 0xc], 0xe0032
mov dword [esi + 0x10], 0xffff0002
mov dword [esi], 0x50010000
mov word [esi + 0x14], ax
add esi, 0x16
push esi
call fcn.00401100
xor ecx, ecx
mov word [esi + eax*2], cx
inc word [edi + 8]
lea eax, [esi + eax*2]
lea esi, [eax + 5]
mov eax, 0x80
and esi, 0xfffffffc
mov dword [esi + 8], 0x9f0007
mov dword [esi + 0xc], 0xe0032
mov dword [esi + 0x10], 0xffff01f5
mov dword [esi], 0x50010000
mov word [esi + 0x14], ax
add esi, 0x16
push str.Print
push esi
call fcn.00401100
xor ecx, ecx
mov word [esi + eax*2], cx
inc word [edi + 8]
lea eax, [esi + eax*2]
lea esi, [eax + 5]
mov eax, 0x1f4
and esi, 0xfffffffc
push str.RICHEDIT
mov dword [esi + 8], 0xe0007
mov dword [esi + 0xc], 0x8c012a
mov word [esi + 0x10], ax
mov dword [esi], 0x50a11844
add esi, 0x12
push esi
call fcn.00401100
add esp, 0x40
lea esi, [esi + eax*2]
push str.Decline
push esi
call fcn.00401100
add esp, 8
xor ecx, ecx
mov word [esi + eax*2], cx
push dword [ebp - 0x328]
inc word [edi + 8]
push 0x401150
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]
cmp dword [ebp + 0xc], 0
pop edi
je 0x401d10
lea eax, [ebp - 0x320]
push eax
lea eax, [ebp - 0x108]
push eax
push 0x80000001
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyA]
test eax, eax
jne 0x401d10
push 4
lea eax, [ebp + 0xc]
push eax
push 4
push 0
push str.EulaAccepted
push dword [ebp - 0x320]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
push dword [ebp - 0x320]
call ebx
mov ecx, dword [ebp - 4]
xor eax, eax
cmp dword [ebp + 0xc], eax
pop esi
setne al
xor ecx, ebp
pop ebx
call fcn.00406b74
mov esp, ebp
pop ebp
call fcn.004018b0
int3