Function at 0x40317f
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x228
mov eax, dword [0x42e180]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
mov dword [ebp - 0x214], eax
mov eax, dword [section..data]
mov dword [ebp - 0x210], str.HKEY_LOCAL_MACHINE
cmp eax, 0x80000002
je 0x4031bb
mov dword [ebp - 0x210], str.HKEY_CURRENT_USER
push ebx
push esi
push edi
mov edi, dword [0x423014]
xor ebx, ebx
push ebx
lea ecx, [ebp - 0x21c]
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 0x403216
cmp eax, 5
jne 0x403202
push 0x10
push ebx
push str.You_do_not_seem_to_have_sufficient_access_rights_non_this_machine_to_install_this_software
call dword [0x423228]
push eax
call dword [0x42322c]
xor eax, eax
jmp 0x4034dc
push ebx
push str.Could_not_open_key
push esi
call dword [0x423228]
push eax
call dword [0x42322c]
mov esi, 0x430560
push esi
push dword [ebp - 0x214]
lea eax, [ebp - 0x10c]
push str._s_s_wininst.log
push eax
call fcn.0040a700
lea eax, [ebp - 0x10c]
push 0x423d5c
push eax
call fcn.0040a6a2
mov dword [0x431bc8], eax
lea eax, [ebp - 0x228]
push eax
call fcn.004080f4
lea eax, [ebp - 0x228]
push eax
call fcn.004080cd
lea eax, [ebp - 0x228]
push eax
call fcn.004080cd
push eax
push str._Installation_started__Y__m__d__H:_M__n
lea eax, [ebp - 0x10c]
push 0x105
push eax
call fcn.0040a5a7
lea eax, [ebp - 0x10c]
push eax
push dword [0x431bc8]
call fcn.00408baa
push 0x4305c0
push str.Source:__s_n
push dword [0x431bc8]
call fcn.00408baa
add esp, 0x48
push dword [ebp - 0x210]
push str.999_Root_Key:__s_n
push dword [0x431bc8]
call fcn.00408baa
push dword [0x431a48]
lea eax, [ebp - 0x20c]
push dword [0x431828]
push esi
push str._s_py_d._d
push eax
call fcn.0040a700
add esp, 0x20
lea eax, [ebp - 0x220]
push eax
lea eax, [ebp - 0x218]
push eax
push ebx
push 0x20006
push ebx
push ebx
push ebx
lea eax, [ebp - 0x20c]
push eax
push dword [ebp - 0x21c]
call edi
test eax, eax
je 0x403329
push ebx
push str.Could_not_create_key
lea eax, [ebp - 0x20c]
push eax
call dword [0x423228]
push eax
call dword [0x42322c]
push dword [ebp - 0x21c]
call dword [0x423004]
cmp dword [ebp - 0x220], 1
jne 0x40335d
lea eax, [ebp - 0x20c]
push eax
push str.SoftwareMicrosoftWindowsCurrentVersionUninstall
push str.020_Reg_DB_Key:___s__s_n
push dword [0x431bc8]
call fcn.00408baa
add esp, 0x10
push 0x4303e0
push dword [0x431a48]
lea eax, [ebp - 0x10c]
push dword [0x431828]
push str.Python__d._d__s
push eax
call fcn.0040a700
lea eax, [ebp - 0x10c]
add esp, 0x14
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
cmp cl, bl
jne 0x40338b
sub eax, edx
inc eax
push eax
lea eax, [ebp - 0x10c]
push eax
push 1
push ebx
mov edi, str.DisplayName
push edi
push dword [ebp - 0x218]
call dword [section..rdata]
test eax, eax
je 0x4033d0
push ebx
push str.Could_not_set_key_value
lea eax, [ebp - 0x10c]
push eax
call dword [0x423228]
push eax
call dword [0x42322c]
lea eax, [ebp - 0x10c]
push eax
push edi
lea eax, [ebp - 0x20c]
push eax
mov edi, str.SoftwareMicrosoftWindowsCurrentVersionUninstall
push edi
push str.040_Reg_DB_Value:___s_s__s_s_n
push dword [0x431bc8]
call fcn.00408baa
push esi
push dword [ebp - 0x214]
lea eax, [ebp - 0x10c]
push str._sRemove_s.exe
push eax
call fcn.0040a700
lea eax, [ebp - 0x10c]
push 0x423c68
push eax
call fcn.0040a6a2
push eax
push 1
push dword [0x430438]
mov dword [ebp - 0x210], eax
push dword [0x431ab4]
call fcn.0040958b
add esp, 0x40
push dword [ebp - 0x210]
call fcn.004093c0
push esi
push dword [ebp - 0x214]
lea eax, [ebp - 0x10c]
push esi
push dword [ebp - 0x214]
push str.__sRemove_s.exe___u___s_s_wininst.log_
push eax
call fcn.0040a700
lea eax, [ebp - 0x10c]
add esp, 0x1c
lea esi, [eax + 1]
mov cl, byte [eax]
inc eax
cmp cl, bl
jne 0x403471
sub eax, esi
inc eax
push eax
lea eax, [ebp - 0x10c]
push eax
push 1
push ebx
mov esi, str.UninstallString
push esi
push dword [ebp - 0x218]
call dword [section..rdata]
test eax, eax
je 0x4034b6
push ebx
push str.Could_not_set_key_value
lea eax, [ebp - 0x10c]
push eax
call dword [0x423228]
push eax
call dword [0x42322c]
lea eax, [ebp - 0x10c]
push eax
push esi
lea eax, [ebp - 0x20c]
push eax
push edi
push str.040_Reg_DB_Value:___s_s__s_s_n
push dword [0x431bc8]
call fcn.00408baa
xor eax, eax
add esp, 0x18
inc eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00407e15
leave
ret