Function at 0x402b9d
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 0x402bc0
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 0x402c15
cmp eax, 5
jne 0x402c01
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 0x402ea0
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, 0x40d7a0
mov edi, dword [sym.imp.MSVCR71.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.MSVCR71.dll_fopen]
mov dword [0x40d784], eax
lea eax, [ebp - 0x10]
push eax
call dword [sym.imp.MSVCR71.dll_time]
mov ebx, dword [sym.imp.MSVCR71.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.MSVCR71.dll_strftime]
mov ebx, dword [sym.imp.MSVCR71.dll_fprintf]
lea eax, [ebp - 0x11c]
push eax
push dword [0x40d784]
call ebx
push 0x40c3c0
push str.Source:__s_n
push dword [0x40d784]
call ebx
add esp, 0x48
push dword [ebp - 4]
push str.999_Root_Key:__s_n
push dword [0x40d784]
call ebx
push dword [0x40d7f0]
lea eax, [ebp - 0x21c]
push dword [0x40d984]
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 0x402d18
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 0x402d43
lea eax, [ebp - 0x21c]
push eax
push str.SoftwareMicrosoftWindowsCurrentVersionUninstall
push str.020_Reg_DB_Key:___s__s_n
push dword [0x40d784]
call ebx
add esp, 0x10
push 0x40c4e0
lea eax, [ebp - 0x11c]
push dword [0x40d7f0]
push dword [0x40d984]
push str.Python__d._d__s
push eax
call edi
lea eax, [ebp - 0x11c]
push eax
call sub.MSVCR71.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 0x402dab
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 [0x40d784]
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 0x40bacc
push eax
call dword [sym.imp.MSVCR71.dll_fopen]
push eax
push 1
push dword [0x40d85c]
mov dword [ebp - 4], eax
push dword [0x40c4c4]
call dword [sym.imp.MSVCR71.dll_fwrite]
add esp, 0x40
push dword [ebp - 4]
call dword [sym.imp.MSVCR71.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.MSVCR71.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 0x402e78
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 [0x40d784]
call ebx
add esp, 0x18
push 1
pop eax
pop ebx
pop edi
pop esi
leave
ret