Function at 0x40fdcf
Capabilities:
Set registry value

Disassembly:
push 0xac
mov eax, 0x452716
call fcn.00414391
mov edi, ecx
mov ebx, dword [ebp + 8]
lea eax, [ebp - 0xb8]
push 0x104
lea esi, [edi + 0x30]
push eax
mov ecx, esi
call fcn.004046d2
xor ecx, ecx
mov byte [eax + 4], 1
mov dword [ebp - 4], ecx
mov ecx, dword [eax]
call fcn.00404677
push 0x104
push dword [eax]
xor eax, eax
push eax
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0xb8]
call fcn.00403999
xor eax, eax
mov ecx, esi
push eax
push eax
lea eax, [ebp - 0x44]
push eax
call fcn.00404816
push eax
mov ecx, esi
mov dword [ebp - 4], 1
call fcn.00401abb
lea ecx, [ebp - 0x44]
call fcn.00401a1b
mov eax, dword [edi + 0x1c]
mov ecx, 0x90
sub eax, dword [edi + 0x18]
cdq
idiv ecx
mov dword [ebp - 4], 2
test eax, eax
je 0x410038
xor esi, esi
mov dword [ebp - 0xb8], esi
mov dword [ebp - 0xb4], esi
mov dword [ebp - 0xb0], esi
push esi
push esi
push 0x20006
push esi
push esi
push str.SoftwareInstallshield
push SysStringLen
lea ecx, [ebp - 0xb8]
mov byte [ebp - 4], 3
call fcn.004060aa
lea eax, [ebx + 4]
cmp dword [eax + 0x14], 8
jb 0x40feac
mov eax, dword [eax]
push 1
push eax
push str.RegProxy
lea ecx, [ebp - 0xb8]
call fcn.0040769d
xor eax, eax
cmp word [edi + 2], si
push 4
pop ebx
sete al
push ebx
mov dword [ebp - 0xa8], eax
lea eax, [ebp - 0xa8]
push eax
push ebx
push esi
push str.NoModify
push dword [ebp - 0xb8]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
mov eax, dword [edi + 8]
push ebx
mov dword [ebp - 0xa8], eax
lea eax, [ebp - 0xa8]
push eax
push ebx
push esi
push str.UseAPIRegistryHooks
push dword [ebp - 0xb8]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
mov esi, dword [edi + 0x18]
cmp esi, dword [edi + 0x1c]
je 0x41002d
cmp dword [edi + 8], 1
je 0x410074
push 4
lea eax, [ebp - 0xa8]
xor ebx, ebx
push eax
push 4
push ebx
push str.NoDeletedKeys
push dword [ebp - 0xb8]
mov dword [ebp - 0xa8], ebx
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
push ebx
push esi
lea ecx, [ebp - 0x74]
mov dword [ebp - 0x74], 0x453408
mov dword [ebp - 0x4c], 0x453410
call fcn.004014aa
lea eax, [ebp - 0xa4]
mov byte [ebp - 4], 4
push eax
lea ecx, [esi + 0x30]
call fcn.004108f8
push ebx
lea eax, [ebp - 0xa9]
mov byte [ebp - 4], 5
push eax
push str.regasm.exe
lea ecx, [ebp - 0x44]
mov dword [ebp - 0x44], 0x453408
mov dword [ebp - 0x1c], 0x453410
call fcn.0040157a
lea eax, [ebp - 0x44]
push eax
lea ecx, [ebp - 0x74]
call fcn.00410a1d
lea ecx, [ebp - 0x44]
mov bl, al
call fcn.00401a1b
test bl, bl
je 0x40ffd2
mov ebx, str.__unregister
push ebx
call fcn.0041f0ef
pop ecx
push eax
push ebx
lea ecx, [ebp - 0xa0]
call fcn.0040d09f
jmp 0x40ffe2
push str._Unregserver
lea ecx, [ebp - 0xa0]
call fcn.00402347
lea eax, [ebp - 0x44]
push eax
lea ecx, [ebp - 0xa4]
call fcn.004108c8
lea ecx, [esi + 0x60]
mov byte [ebp - 4], 6
push ecx
push eax
lea eax, [ebp - 0x74]
mov ecx, edi
push eax
call fcn.0040f087
test eax, eax
mov byte [ebp - 4], 5
lea ecx, [ebp - 0x44]
sets bl
call fcn.004019d6
lea ecx, [ebp - 0xa4]
call fcn.00401a1b
lea ecx, [ebp - 0x74]
test bl, bl
je 0x410042
call fcn.00401a1b
lea ecx, [ebp - 0xb8]
call fcn.00406090
xor eax, eax
call fcn.004142de
ret 4
mov byte [ebp - 4], 3
call fcn.00401a1b
push 4
lea eax, [ebp - 0xa8]
mov dword [ebp - 0xa8], 1
push eax
push 4
xor eax, eax
push eax
push str.NoDeletedKeys
push dword [ebp - 0xb8]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
lea ebx, [esi + 0x60]
mov ecx, edi
push ebx
lea eax, [esi + 0x30]
push eax
push esi
call fcn.0040f087
test eax, eax
js 0x41002d
lea eax, [ebp - 0xa8]
mov ecx, edi
push eax
push 0xffffffffffffffff
push ebx
push esi
call fcn.0040e7c3
add esi, 0x90
jmp 0x40ff13