Function at 0x402f86
Capabilities:
Set registry value
Write file on windows

Disassembly:
push ebp
lea ebp, [esp - 0x1a8]
sub esp, 0x228
mov eax, dword [0x42f180]
xor eax, ebp
mov dword [ebp + 0x1a4], eax
mov eax, dword [ebp + 0x1b0]
mov dword [ebp - 0x6c], eax
mov eax, dword [section..data]
mov dword [ebp - 0x68], str.HKEY_LOCAL_MACHINE
cmp eax, 0x80000002
je 0x402fc4
mov dword [ebp - 0x68], str.HKEY_CURRENT_USER
push ebx
push esi
push edi
mov edi, dword [sym.imp.ADVAPI32.dll_RegCreateKeyExA]
xor ebx, ebx
push ebx
lea ecx, [ebp - 0x74]
push ecx
push ebx
push 4
push ebx
push ebx
push ebx
mov esi, str.SoftwareMicrosoftWindowsCurrentVersionUninstall
push esi
push eax
call edi
cmp eax, ebx
je 0x40301c
cmp eax, 5
jne 0x403008
push 0x10
push ebx
push str.You_do_not_seem_to_have_sufficient_access_rights_non_this_machine_to_install_this_software
call dword [sym.imp.USER32.dll_GetFocus]
push eax
call dword [sym.imp.USER32.dll_MessageBoxA]
xor eax, eax
jmp 0x40329d
push ebx
push str.Could_not_open_key
push esi
call dword [sym.imp.USER32.dll_GetFocus]
push eax
call dword [sym.imp.USER32.dll_MessageBoxA]
mov esi, 0x4312c0
push esi
push dword [ebp - 0x6c]
lea eax, [ebp + 0x9c]
push str._s_s_wininst.log
push eax
call fcn.0040cf9b
lea eax, [ebp + 0x9c]
push 0x425d6c
push eax
call fcn.0040cf9b
mov dword [0x432928], eax
lea eax, [ebp - 0x80]
push eax
call fcn.0040cf9b
lea eax, [ebp - 0x80]
push eax
call fcn.0040cf9b
lea eax, [ebp - 0x80]
push eax
call fcn.0040cf9b
push eax
push str._Installation_started__Y__m__d__H:_M__n
lea eax, [ebp + 0x9c]
push 0x105
push eax
call fcn.0040cf9b
lea eax, [ebp + 0x9c]
push eax
push dword [0x432928]
call fcn.00408778
push 0x431320
push str.Source:__s_n
push dword [0x432928]
call fcn.00408778
add esp, 0x48
push dword [ebp - 0x68]
push str.999_Root_Key:__s_n
push dword [0x432928]
call fcn.00408778
push dword [0x4327a8]
lea eax, [ebp - 0x64]
push dword [0x432588]
push esi
push str._s_py_d._d
push eax
call fcn.0040cf9b
add esp, 0x20
lea eax, [ebp - 0x78]
push eax
lea eax, [ebp - 0x70]
push eax
push ebx
push 0x20006
push ebx
push ebx
push ebx
lea eax, [ebp - 0x64]
push eax
push dword [ebp - 0x74]
call edi
test eax, eax
je 0x40310e
push ebx
push str.Could_not_create_key
lea eax, [ebp - 0x64]
push eax
call dword [sym.imp.USER32.dll_GetFocus]
push eax
call dword [sym.imp.USER32.dll_MessageBoxA]
push dword [ebp - 0x74]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
cmp dword [ebp - 0x78], 1
jne 0x403139
lea eax, [ebp - 0x64]
push eax
push str.SoftwareMicrosoftWindowsCurrentVersionUninstall
push str.020_Reg_DB_Key:___s__s_n
push dword [0x432928]
call fcn.00408778
add esp, 0x10
push 0x431140
push dword [0x4327a8]
lea eax, [ebp + 0x9c]
push dword [0x432588]
push str.Python__d._d__s
push eax
call fcn.0040cf9b
lea eax, [ebp + 0x9c]
add esp, 0x14
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
cmp cl, bl
jne 0x403167
sub eax, edx
inc eax
push eax
lea eax, [ebp + 0x9c]
push eax
push 1
push ebx
mov edi, str.DisplayName
push edi
push dword [ebp - 0x70]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
test eax, eax
je 0x4031a9
push ebx
push str.Could_not_set_key_value
lea eax, [ebp + 0x9c]
push eax
call dword [sym.imp.USER32.dll_GetFocus]
push eax
call dword [sym.imp.USER32.dll_MessageBoxA]
lea eax, [ebp + 0x9c]
push eax
push edi
lea eax, [ebp - 0x64]
push eax
mov edi, str.SoftwareMicrosoftWindowsCurrentVersionUninstall
push edi
push str.040_Reg_DB_Value:___s_s__s_s_n
push dword [0x432928]
call fcn.00408778
push esi
push dword [ebp - 0x6c]
lea eax, [ebp + 0x9c]
push str._sRemove_s.exe
push eax
call fcn.0040cf9b
lea eax, [ebp + 0x9c]
push 0x425c78
push eax
call fcn.0040cf9b
push eax
push 1
push dword [0x431198]
mov dword [ebp - 0x68], eax
push dword [0x432814]
call fcn.00409184
add esp, 0x40
push dword [ebp - 0x68]
call fcn.00408fa6
push esi
push dword [ebp - 0x6c]
lea eax, [ebp + 0x9c]
push esi
push dword [ebp - 0x6c]
push str.__sRemove_s.exe___u___s_s_wininst.log_
push eax
call fcn.0040cf9b
lea eax, [ebp + 0x9c]
add esp, 0x1c
lea esi, [eax + 1]
mov cl, byte [eax]
inc eax
cmp cl, bl
jne 0x403238
sub eax, esi
inc eax
push eax
lea eax, [ebp + 0x9c]
push eax
push 1
push ebx
mov esi, str.UninstallString
push esi
push dword [ebp - 0x70]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
test eax, eax
je 0x40327a
push ebx
push str.Could_not_set_key_value
lea eax, [ebp + 0x9c]
push eax
call dword [sym.imp.USER32.dll_GetFocus]
push eax
call dword [sym.imp.USER32.dll_MessageBoxA]
lea eax, [ebp + 0x9c]
push eax
push esi
lea eax, [ebp - 0x64]
push eax
push edi
push str.040_Reg_DB_Value:___s_s__s_s_n
push dword [0x432928]
call fcn.00408778
xor eax, eax
add esp, 0x18
inc eax
mov ecx, dword [ebp + 0x1a4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00407875
add ebp, 0x1a8
leave
ret