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

Disassembly:
push ebp
lea ebp, [esp - 0x1a8]
sub esp, 0x228
mov eax, dword [0x42f180]
xor eax, ebp
mov dword [ebp + 0x1a4], eax
mov eax, dword [ebp + 0x1b0]
mov dword [ebp - 0x6c], eax
mov eax, dword [section..data]
mov dword [ebp - 0x68], str.HKEY_LOCAL_MACHINE
cmp eax, 0x80000002
je 0x402f01
mov dword [ebp - 0x68], str.HKEY_CURRENT_USER
push ebx
push esi
push edi
mov edi, dword [sym.imp.ADVAPI32.dll_RegCreateKeyExA]
xor ebx, ebx
push ebx
lea ecx, [ebp - 0x74]
push ecx
push ebx
push 4
push ebx
push ebx
push ebx
mov esi, str.SoftwareMicrosoftWindowsCurrentVersionUninstall
push esi
push eax
call edi
cmp eax, ebx
je 0x402f59
cmp eax, 5
jne 0x402f45
push 0x10
push ebx
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 0x4031da
push ebx
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, 0x430ec0
push esi
push dword [ebp - 0x6c]
lea eax, [ebp + 0x9c]
push str._s_s_wininst.log
push eax
call fcn.0040a329
lea eax, [ebp + 0x9c]
push 0x425d6c
push eax
call fcn.0040a2bf
mov dword [0x432328], eax
lea eax, [ebp - 0x80]
push eax
call fcn.00407ab7
lea eax, [ebp - 0x80]
push eax
call fcn.00407a90
lea eax, [ebp - 0x80]
push eax
call fcn.00407a90
push eax
push str._Installation_started__Y__m__d__H:_M__n
lea eax, [ebp + 0x9c]
push 0x105
push eax
call fcn.0040a1bc
lea eax, [ebp + 0x9c]
push eax
push dword [0x432328]
call fcn.004086a8
push 0x430f20
push str.Source:__s_n
push dword [0x432328]
call fcn.004086a8
add esp, 0x48
push dword [ebp - 0x68]
push str.999_Root_Key:__s_n
push dword [0x432328]
call fcn.004086a8
push dword [0x4321a0]
lea eax, [ebp - 0x64]
push dword [0x432188]
push esi
push str._s_py_d._d
push eax
call fcn.0040a329
add esp, 0x20
lea eax, [ebp - 0x78]
push eax
lea eax, [ebp - 0x70]
push eax
push ebx
push 0x20006
push ebx
push ebx
push ebx
lea eax, [ebp - 0x64]
push eax
push dword [ebp - 0x74]
call edi
test eax, eax
je 0x40304b
push ebx
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 0x403076
lea eax, [ebp - 0x64]
push eax
push str.SoftwareMicrosoftWindowsCurrentVersionUninstall
push str.020_Reg_DB_Key:___s__s_n
push dword [0x432328]
call fcn.004086a8
add esp, 0x10
push 0x430d40
push dword [0x4321a0]
lea eax, [ebp + 0x9c]
push dword [0x432188]
push str.Python__d._d__s
push eax
call fcn.0040a329
lea eax, [ebp + 0x9c]
add esp, 0x14
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
cmp cl, bl
jne 0x4030a4
sub eax, edx
inc eax
push eax
lea eax, [ebp + 0x9c]
push eax
push 1
push ebx
mov edi, str.DisplayName
push edi
push dword [ebp - 0x70]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
test eax, eax
je 0x4030e6
push ebx
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 edi
lea eax, [ebp - 0x64]
push eax
mov edi, str.SoftwareMicrosoftWindowsCurrentVersionUninstall
push edi
push str.040_Reg_DB_Value:___s_s__s_s_n
push dword [0x432328]
call fcn.004086a8
push esi
push dword [ebp - 0x6c]
lea eax, [ebp + 0x9c]
push str._sRemove_s.exe
push eax
call fcn.0040a329
lea eax, [ebp + 0x9c]
push 0x425c78
push eax
call fcn.0040a2bf
push eax
push 1
push dword [0x430d98]
mov dword [ebp - 0x68], eax
push dword [0x432214]
call fcn.004090b4
add esp, 0x40
push dword [ebp - 0x68]
call fcn.00408ed6
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 fcn.0040a329
lea eax, [ebp + 0x9c]
add esp, 0x1c
lea esi, [eax + 1]
mov cl, byte [eax]
inc eax
cmp cl, bl
jne 0x403175
sub eax, esi
inc eax
push eax
lea eax, [ebp + 0x9c]
push eax
push 1
push ebx
mov esi, str.UninstallString
push esi
push dword [ebp - 0x70]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
test eax, eax
je 0x4031b7
push ebx
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 edi
push str.040_Reg_DB_Value:___s_s__s_s_n
push dword [0x432328]
call fcn.004086a8
xor eax, eax
add esp, 0x18
inc eax
mov ecx, dword [ebp + 0x1a4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.004077a5
add ebp, 0x1a8
leave
ret