Function at 0x4031f4
Capabilities:
Link many functions at runtime
Read 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 0x403014
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 [0x40700c]
cmp eax, edi
je 0x403069
cmp eax, 5
jne 0x403055
push 0x10
push edi
push str.You_do_not_seem_to_have_sufficient_access_rights_non_this_machine_to_install_this_software
call dword [0x40724c]
push eax
call dword [0x407250]
xor eax, eax
jmp 0x4032f4
push edi
push str.Could_not_open_key
push esi
call dword [0x40724c]
push eax
call dword [0x407250]
mov esi, 0x40d840
mov edi, dword [0x4071d4]
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 [0x4071b0]
mov dword [0x40d824], eax
lea eax, [ebp - 0x10]
push eax
call dword [0x4071d0]
mov ebx, dword [0x4071cc]
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 [0x4071c8]
mov ebx, dword [0x407180]
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 [0x40700c]
test eax, eax
je 0x40316c
push 0
lea eax, [ebp - 0x21c]
push str.Could_not_create_key
push eax
call dword [0x40724c]
push eax
call dword [0x407250]
push dword [ebp - 0xc]
call dword [section..rdata]
cmp dword [ebp - 0x14], 1
jne 0x403197
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 0x40709a
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 [0x407010]
test eax, eax
je 0x4031ff
push 0
lea eax, [ebp - 0x11c]
push str.Could_not_set_key_value
push eax
call dword [0x40724c]
push eax
call dword [0x407250]
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 [0x4071b0]
push eax
push 1
push dword [0x40d8fc]
mov dword [ebp - 4], eax
push dword [0x40c564]
call dword [0x4071c4]
add esp, 0x40
push dword [ebp - 4]
call dword [0x4071b4]
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 0x40709a
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 [0x407010]
test eax, eax
je 0x4032cc
push 0
lea eax, [ebp - 0x11c]
push str.Could_not_set_key_value
push eax
call dword [0x40724c]
push eax
call dword [0x407250]
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