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

Disassembly:
push ebp
lea ebp, [esp - 0x1a8]
sub esp, 0x228
mov eax, dword [0x40c17c]
xor eax, ebp
mov dword [ebp + 0x1a4], eax
mov eax, dword [section..data]
cmp eax, 0x80000002
push ebx
push esi
mov ebx, ecx
push edi
mov dword [ebp - 0x6c], ebx
mov dword [ebp - 0x68], str.HKEY_LOCAL_MACHINE
je 0x402cff
mov dword [ebp - 0x68], str.HKEY_CURRENT_USER
xor edi, edi
push edi
lea ecx, [ebp - 0x74]
push ecx
push edi
push 4
push edi
push edi
push edi
mov esi, str.SoftwareMicrosoftWindowsCurrentVersionUninstall
push esi
push eax
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExA]
cmp eax, edi
je 0x402d52
cmp eax, 5
jne 0x402d3e
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 0x402fc7
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 edi, dword [sym.imp.MSVCR80.dll_sprintf]
mov esi, 0x40c7a0
push esi
push ebx
lea eax, [ebp + 0x9c]
push str._s_s_wininst.log
push eax
call edi
lea eax, [ebp + 0x9c]
push 0x4078c0
push eax
call dword [sym.imp.MSVCR80.dll_fopen]
mov dword [0x40dbe8], eax
lea eax, [ebp - 0x80]
push eax
call dword [sym.imp.MSVCR80.dll__time64]
mov ebx, dword [sym.imp.MSVCR80.dll__localtime64]
lea eax, [ebp - 0x80]
push eax
call ebx
lea eax, [ebp - 0x80]
push eax
call ebx
push eax
push str._Installation_started__Y__m__d__H:_M__n
lea eax, [ebp + 0x9c]
push 0x105
push eax
call dword [sym.imp.MSVCR80.dll_strftime]
mov ebx, dword [sym.imp.MSVCR80.dll_fprintf]
lea eax, [ebp + 0x9c]
push eax
push dword [0x40dbe8]
call ebx
push 0x40c800
push str.Source:__s_n
push dword [0x40dbe8]
call ebx
add esp, 0x48
push dword [ebp - 0x68]
push str.999_Root_Key:__s_n
push dword [0x40dbe8]
call ebx
push dword [0x40da60]
lea eax, [ebp - 0x64]
push dword [0x40da48]
push esi
push str._s_py_d._d
push eax
call edi
add esp, 0x20
lea eax, [ebp - 0x78]
push eax
lea eax, [ebp - 0x70]
push eax
xor eax, eax
push eax
push 0x20006
push eax
push eax
push eax
lea eax, [ebp - 0x64]
push eax
push dword [ebp - 0x74]
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExA]
test eax, eax
je 0x402e49
push 0
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 0x402e71
lea eax, [ebp - 0x64]
push eax
push str.SoftwareMicrosoftWindowsCurrentVersionUninstall
push str.020_Reg_DB_Key:___s__s_n
push dword [0x40dbe8]
call ebx
add esp, 0x10
push 0x40c620
push dword [0x40da60]
lea eax, [ebp + 0x9c]
push dword [0x40da48]
push str.Python__d._d__s
push eax
call edi
lea eax, [ebp + 0x9c]
push eax
call sub.MSVCR80.dll_strlen
add esp, 0x18
inc eax
push eax
lea eax, [ebp + 0x9c]
push eax
push 1
push 0
push str.DisplayName
push dword [ebp - 0x70]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
test eax, eax
je 0x402ed9
push 0
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 str.DisplayName
lea eax, [ebp - 0x64]
push eax
push str.SoftwareMicrosoftWindowsCurrentVersionUninstall
push str.040_Reg_DB_Value:___s_s__s_s_n
push dword [0x40dbe8]
call ebx
push esi
push dword [ebp - 0x6c]
lea eax, [ebp + 0x9c]
push str._sRemove_s.exe
push eax
call edi
lea eax, [ebp + 0x9c]
push 0x407c10
push eax
call dword [sym.imp.MSVCR80.dll_fopen]
push eax
push 1
push dword [0x40c678]
mov dword [ebp - 0x68], eax
push dword [0x40dad4]
call dword [sym.imp.MSVCR80.dll_fwrite]
add esp, 0x40
push dword [ebp - 0x68]
call dword [sym.imp.MSVCR80.dll_fclose]
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 edi
lea eax, [ebp + 0x9c]
push eax
call sub.MSVCR80.dll_strlen
add esp, 0x20
inc eax
push eax
lea eax, [ebp + 0x9c]
push eax
push 1
push 0
mov esi, str.UninstallString
push esi
push dword [ebp - 0x70]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
test eax, eax
je 0x402fa3
push 0
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 str.SoftwareMicrosoftWindowsCurrentVersionUninstall
push str.040_Reg_DB_Value:___s_s__s_s_n
push dword [0x40dbe8]
call ebx
xor eax, eax
add esp, 0x18
inc eax
mov ecx, dword [ebp + 0x1a4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.004065b0
add ebp, 0x1a8
leave
ret