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

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x21c
mov eax, dword [0x40b0b8]
mov dword [ebp - 4], str.HKEY_LOCAL_MACHINE
cmp eax, 0x80000002
je 0x402bd5
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 0x402c2a
cmp eax, 5
jne 0x402c16
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 0x402eb5
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.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 0x40ba78
push eax
call dword [sym.imp.MSVCR71.dll_fopen]
mov dword [0x40d824], 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 [0x40d824]
call ebx
push 0x40c460
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 0x402d2d
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 0x402d58
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.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 0x402dc0
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 0x40bb70
push eax
call dword [sym.imp.MSVCR71.dll_fopen]
push eax
push 1
push dword [0x40d8fc]
mov dword [ebp - 4], eax
push dword [0x40c564]
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 0x402e8d
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