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

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x21c
mov eax, dword [0x40b010]
mov dword [ebp - 4], str.HKEY_LOCAL_MACHINE
cmp eax, 0x80000002
je 0x402c14
mov dword [ebp - 4], str.HKEY_CURRENT_USER
push esi
push edi
xor edi, edi
lea ecx, [ebp - 0xc]
push edi
push ecx
push edi
push 4
push edi
push edi
mov esi, str.SoftwareMicrosoftWindowsCurrentVersionUninstall
push edi
push esi
push eax
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExA]
cmp eax, edi
je 0x402c69
cmp eax, 5
jne 0x402c55
push 0x10
push edi
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 0x402ef4
push edi
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, 0x40d840
mov edi, dword [sym.imp.MSVCRT.dll_sprintf]
push ebx
push esi
push dword [ebp + 8]
lea eax, [ebp - 0x11c]
push str._s_s_wininst.log
push eax
call edi
lea eax, [ebp - 0x11c]
push 0x40b9d4
push eax
call dword [sym.imp.MSVCRT.dll_fopen]
mov dword [0x40d824], eax
lea eax, [ebp - 0x10]
push eax
call dword [sym.imp.MSVCRT.dll_time]
mov ebx, dword [sym.imp.MSVCRT.dll_localtime]
lea eax, [ebp - 0x10]
push eax
call ebx
lea eax, [ebp - 0x10]
push eax
call ebx
push eax
push str._Installation_started__Y__m__d__H:_M__n
lea eax, [ebp - 0x11c]
push 0x105
push eax
call dword [sym.imp.MSVCRT.dll_strftime]
mov ebx, dword [sym.imp.MSVCRT.dll_fprintf]
lea eax, [ebp - 0x11c]
push eax
push dword [0x40d824]
call ebx
push str.C:UsersAdminAppDataLocalTemp_a46e99c5da3871c18bbddf7ec2c406a68c0d5e70cbcf96c85c54af0a9629eae6.exe
push str.Source:__s_n
push dword [0x40d824]
call ebx
add esp, 0x48
push dword [ebp - 4]
push str.999_Root_Key:__s_n
push dword [0x40d824]
call ebx
push dword [0x40d890]
lea eax, [ebp - 0x21c]
push dword [0x40da24]
push esi
push str._s_py_d._d
push eax
call edi
add esp, 0x20
lea eax, [ebp - 0x14]
push eax
lea eax, [ebp - 8]
push eax
xor eax, eax
push eax
push 0x20006
push eax
push eax
push eax
lea eax, [ebp - 0x21c]
push eax
push dword [ebp - 0xc]
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExA]
test eax, eax
je 0x402d6c
push 0
lea eax, [ebp - 0x21c]
push str.Could_not_create_key
push eax
call dword [sym.imp.USER32.dll_GetFocus]
push eax
call dword [sym.imp.USER32.dll_MessageBoxA]
push dword [ebp - 0xc]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
cmp dword [ebp - 0x14], 1
jne 0x402d97
lea eax, [ebp - 0x21c]
push eax
push str.SoftwareMicrosoftWindowsCurrentVersionUninstall
push str.020_Reg_DB_Key:___s__s_n
push dword [0x40d824]
call ebx
add esp, 0x10
push 0x40c580
lea eax, [ebp - 0x11c]
push dword [0x40d890]
push dword [0x40da24]
push str.Python__d._d__s
push eax
call edi
lea eax, [ebp - 0x11c]
push eax
call sub.MSVCRT.dll_strlen
add esp, 0x18
inc eax
push eax
lea eax, [ebp - 0x11c]
push eax
push 1
push 0
push str.DisplayName
push dword [ebp - 8]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
test eax, eax
je 0x402dff
push 0
lea eax, [ebp - 0x11c]
push str.Could_not_set_key_value
push eax
call dword [sym.imp.USER32.dll_GetFocus]
push eax
call dword [sym.imp.USER32.dll_MessageBoxA]
lea eax, [ebp - 0x11c]
push eax
lea eax, [ebp - 0x21c]
push str.DisplayName
push eax
push str.SoftwareMicrosoftWindowsCurrentVersionUninstall
push str.040_Reg_DB_Value:___s_s__s_s_n
push dword [0x40d824]
call ebx
push esi
lea eax, [ebp - 0x11c]
push dword [ebp + 8]
push str._sRemove_s.exe
push eax
call edi
lea eax, [ebp - 0x11c]
push 0x40bae0
push eax
call dword [sym.imp.MSVCRT.dll_fopen]
push eax
push 1
push dword [0x40d8fc]
mov dword [ebp - 4], eax
push dword [0x40c564]
call dword [sym.imp.MSVCRT.dll_fwrite]
add esp, 0x40
push dword [ebp - 4]
call dword [sym.imp.MSVCRT.dll_fclose]
push esi
lea eax, [ebp - 0x11c]
push dword [ebp + 8]
push esi
push dword [ebp + 8]
push str.__sRemove_s.exe___u___s_s_wininst.log_
push eax
call edi
lea eax, [ebp - 0x11c]
push eax
call sub.MSVCRT.dll_strlen
add esp, 0x20
inc eax
mov esi, str.UninstallString
push eax
lea eax, [ebp - 0x11c]
push eax
push 1
push 0
push esi
push dword [ebp - 8]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
test eax, eax
je 0x402ecc
push 0
lea eax, [ebp - 0x11c]
push str.Could_not_set_key_value
push eax
call dword [sym.imp.USER32.dll_GetFocus]
push eax
call dword [sym.imp.USER32.dll_MessageBoxA]
lea eax, [ebp - 0x11c]
push eax
lea eax, [ebp - 0x21c]
push esi
push eax
push str.SoftwareMicrosoftWindowsCurrentVersionUninstall
push str.040_Reg_DB_Value:___s_s__s_s_n
push dword [0x40d824]
call ebx
add esp, 0x18
push 1
pop eax
pop ebx
pop edi
pop esi
leave
ret