Function at 0x402b50
Capabilities:
Delete registry key
Set registry value

Disassembly:
push ebp
mov ebp, esp
push edi
push esi
mov esi, ecx
push ebx
mov ecx, 0x200
sub esp, 0x8ac
mov dword [ebp - 0x890], eax
mov eax, dword [ebp + 8]
lea ebx, [ebp - 0x818]
mov edi, ebx
mov dword [ebp - 0x894], edx
mov dword [ebp - 0x88c], eax
xor eax, eax
rep stosd dword es:[edi], eax
mov dword [esp + 4], esi
mov dword [esp], 0x80000001
call dword [sym.imp.ADVAPI32.dll_RegDeleteKeyW]
lea eax, [ebp - 0x868]
sub esp, 8
mov dword [esp + 0x20], 0
mov dword [esp + 0x1c], eax
mov dword [esp + 0x18], 0
mov dword [esp + 0x14], 0x20006
mov dword [esp + 0x10], 0
mov dword [esp + 0xc], 0
mov dword [esp + 8], 0
mov dword [esp + 4], esi
mov dword [esp], 0x80000001
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExW]
sub esp, 0x24
test eax, eax
je 0x402d96
mov dword [esp], str.error:_could_not_create_registry_key_n
call sub.msvcrt.dll_wprintf_s
mov ecx, dword [0x408080]
test ecx, ecx
je 0x402d41
cmp dword [0x408070], 0x647
jg 0x402c21
cmp byte [ebp - 0x88c], 0
jne 0x402e4c
mov dword [esp], esi
call fcn.00402a20
mov edi, eax
call fcn.00402890
mov edx, dword [ebp - 0x894]
mov dword [esp + 0x1c], str.user_choice_set_via_windows_user_experience_d18b6dd5_6124_4341_9318_804003bafa0b
mov dword [esp + 0x18], edi
mov dword [esp + 8], str._s_s_s_s_s
mov dword [esp + 0x14], edx
mov dword [esp + 4], 0x800
mov dword [esp + 0x10], eax
mov eax, dword [ebp - 0x890]
mov dword [esp], ebx
mov dword [esp + 0xc], eax
call sub.msvcrt.dll_swprintf_s
mov dword [esp], ebx
call sub.msvcrt.dll_wcslen
mov dword [esp], ebx
lea edi, [eax + eax + 2]
mov dword [esp + 4], edi
call dword [sym.imp.msvcrt.dll__wcslwr_s]
lea ecx, [ebp - 0x878]
mov dword [esp + 8], ecx
mov dword [esp + 4], edi
mov dword [esp], ebx
mov dword [ebp - 0x890], ecx
call fcn.00401c50
mov ecx, dword [ebp - 0x890]
lea eax, [ebp - 0x880]
mov dword [esp + 0xc], eax
mov dword [esp + 4], edi
mov dword [esp], ebx
mov dword [esp + 8], ecx
mov dword [ebp - 0x88c], eax
call fcn.00402810
mov eax, dword [ebp - 0x88c]
mov dword [esp + 4], 8
mov dword [esp], eax
call fcn.00401f10
mov dword [esp + 8], 0x50
mov dword [esp + 4], eax
lea eax, [ebp - 0x868]
mov dword [esp], eax
call sub.msvcrt.dll_mbstowcs
lea eax, [ebp - 0x888]
mov dword [esp + 0x10], eax
mov dword [esp + 0xc], 2
mov dword [esp + 8], 0
mov dword [esp + 4], esi
mov dword [esp], 0x80000001
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
sub esp, 0x14
test eax, eax
je 0x402dab
mov dword [esp], str.error:_could_not_write_registry_key_n
call sub.msvcrt.dll_wprintf_s
lea esp, [ebp - 0xc]
pop ebx
pop esi
pop edi
pop ebp
ret
mov edx, dword [0x408090]
test edx, edx
je 0x402c6c
cmp byte [ebp - 0x88c], 0
jne 0x402ea4
call fcn.00402890
mov edx, dword [ebp - 0x894]
mov dword [esp + 8], str._s_s_s
mov dword [esp + 4], 0x800
mov dword [esp], ebx
mov dword [esp + 0x14], edx
mov dword [esp + 0x10], eax
mov eax, dword [ebp - 0x890]
mov dword [esp + 0xc], eax
call sub.msvcrt.dll_swprintf_s
jmp 0x402c6c
mov eax, dword [ebp - 0x868]
mov dword [esp], eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
push edi
jmp 0x402bfa
lea eax, [ebp - 0x868]
mov dword [esp], eax
call sub.msvcrt.dll_wcslen
mov ebx, dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
mov dword [esp + 0xc], 1
mov dword [esp + 8], 0
mov dword [esp + 4], str.Hash
lea eax, [eax + eax + 2]
mov dword [esp + 0x14], eax
lea eax, [ebp - 0x868]
mov dword [esp + 0x10], eax
mov eax, dword [ebp - 0x888]
mov dword [esp], eax
call ebx
mov esi, dword [ebp - 0x894]
sub esp, 0x18
mov dword [esp], esi
call sub.msvcrt.dll_wcslen
mov dword [esp + 0x10], esi
mov dword [esp + 0xc], 1
mov dword [esp + 8], 0
mov dword [esp + 4], str.ProgId
lea eax, [eax + eax + 2]
mov dword [esp + 0x14], eax
mov eax, dword [ebp - 0x888]
mov dword [esp], eax
call ebx
mov eax, dword [ebp - 0x888]
sub esp, 0x18
mov dword [esp], eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
push eax
jmp 0x402d39
mov dword [esp], esi
call fcn.00402a20
mov edi, eax
call fcn.00402890
mov edx, dword [ebp - 0x894]
mov dword [esp + 0x20], str.user_choice_set_via_windows_user_experience_d18b6dd5_6124_4341_9318_804003bafa0b
mov dword [esp + 0x1c], edi
mov dword [esp + 0x18], 0x4084e0
mov dword [esp + 0x14], edx
mov dword [esp + 8], str._s_s_s_s_s_s
mov dword [esp + 0x10], eax
mov eax, dword [ebp - 0x890]
mov dword [esp + 4], 0x800
mov dword [esp], ebx
mov dword [esp + 0xc], eax
call sub.msvcrt.dll_swprintf_s
jmp 0x402c6c
call fcn.00402890
mov edx, dword [ebp - 0x894]
mov dword [esp + 0x18], 0x4084e0
mov dword [esp + 8], str._s_s_s_s
mov dword [esp + 4], 0x800
mov dword [esp + 0x14], edx
mov dword [esp], ebx
mov dword [esp + 0x10], eax
mov eax, dword [ebp - 0x890]
mov dword [esp + 0xc], eax
call sub.msvcrt.dll_swprintf_s
jmp 0x402c6c