Function at 0x40d4f0
Capabilities:
Set registry value

Disassembly:
sub esp, 0x268
mov eax, dword [0x4677a0]
xor eax, esp
mov dword [esp + 0x264], eax
push ebp
mov ebp, dword [esp + 0x270]
push esi
push edi
lea eax, [esp + 0x10]
push eax
push 0xf003f
push 0
push str.SoftwareMicrosoftWindowsCurrentVersionUninstall
push reloc.OLEAUT32.dll_SysReAllocString
mov edi, ecx
mov esi, edx
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x40d973
push ebx
push 0x46f0f8
push 0x45c0cc
lea ecx, [eax + 0x28]
lea ebx, [esp + 0x24]
call fcn.00402d10
add esp, 8
lea ecx, [esp + 0x18]
push ecx
mov ecx, dword [esp + 0x18]
lea edx, [esp + 0x14]
push edx
push 0
push 0xf003f
push 0
push 0
push 0
mov eax, ebx
push eax
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExW]
test eax, eax
jne 0x40d967
mov eax, esi
lea edx, [eax + 2]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x40d582
sub eax, edx
sar eax, 1
lea edx, [eax + eax]
mov eax, dword [esp + 0x10]
push edx
push esi
mov esi, dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
push 1
push 0
push str.RegOwner
push eax
call esi
mov eax, ebp
lea ecx, [eax + 2]
mov dx, word [eax]
add eax, 2
test dx, dx
jne 0x40d5b1
mov edx, dword [esp + 0x10]
sub eax, ecx
sar eax, 1
lea ecx, [eax + eax]
push ecx
push ebp
push 1
push 0
push str.RegCompany
push edx
call esi
lea ecx, [edi + 0x8c]
mov eax, ecx
lea edx, [eax + 2]
mov bx, word [eax]
add eax, 2
test bx, bx
jne 0x40d5e0
sub eax, edx
sar eax, 1
add eax, eax
push eax
push ecx
mov ecx, dword [esp + 0x18]
push 1
push 0
push str.DisplayName
push ecx
call esi
lea ecx, [edi + 0x22e]
mov eax, ecx
lea edx, [eax + 2]
mov edi, edi
mov bx, word [eax]
add eax, 2
test bx, bx
jne 0x40d610
sub eax, edx
sar eax, 1
lea edx, [eax + eax]
mov eax, dword [esp + 0x10]
push edx
push ecx
push 1
push 0
push str.Comments
push eax
call esi
lea ecx, [edi + 0x2be]
mov eax, ecx
lea edx, [eax + 2]
nop
mov bx, word [eax]
add eax, 2
test bx, bx
jne 0x40d640
sub eax, edx
sar eax, 1
lea edx, [eax + eax]
mov eax, dword [esp + 0x10]
push edx
push ecx
push 1
push 0
push str.DisplayVersion
push eax
call esi
lea ebp, [edi + 0x3bb4]
push ebp
push 0x458488
mov ecx, 0x104
lea ebx, [esp + 0x74]
call fcn.00402d10
mov eax, ebx
add esp, 8
lea ecx, [eax + 2]
mov dx, word [eax]
add eax, 2
test dx, dx
jne 0x40d686
sub eax, ecx
sar eax, 1
lea ecx, [eax + eax]
mov eax, dword [esp + 0x10]
push ecx
lea edx, [esp + 0x70]
push edx
push 1
push 0
push str.DisplayIcon
push eax
call esi
lea ecx, [edi + 0x90e]
mov eax, ecx
lea edx, [eax + 2]
lea esp, [esp]
mov bx, word [eax]
add eax, 2
test bx, bx
jne 0x40d6c0
sub eax, edx
sar eax, 1
lea edx, [eax + eax]
mov eax, dword [esp + 0x10]
push edx
push ecx
push 1
push 0
push str.Contact
push eax
call esi
lea ecx, [edi + 0x26e]
mov eax, ecx
lea edx, [eax + 2]
nop
mov bx, word [eax]
add eax, 2
test bx, bx
jne 0x40d6f0
sub eax, edx
sar eax, 1
lea edx, [eax + eax]
mov eax, dword [esp + 0x10]
push edx
push ecx
push 1
push 0
push str.Publisher
push eax
call esi
lea ecx, [edi + 0x50e]
mov eax, ecx
lea edx, [eax + 2]
nop
mov bx, word [eax]
add eax, 2
test bx, bx
jne 0x40d720
sub eax, edx
sar eax, 1
lea edx, [eax + eax]
mov eax, dword [esp + 0x10]
push edx
push ecx
push 1
push 0
push str.URLInfoAbout
push eax
call esi
lea ecx, [edi + 0x70e]
mov eax, ecx
lea ebx, [eax + 2]
nop
mov dx, word [eax]
add eax, 2
test dx, dx
jne 0x40d750
sub eax, ebx
sar eax, 1
lea edx, [eax + eax]
mov eax, dword [esp + 0x10]
push edx
push ecx
push 1
push 0
push 0x457ff8
push eax
call esi
cmp word [edi + 0x30e], 0
lea eax, [edi + 0x30e]
mov ecx, 0x104
lea ebx, [esp + 0x6c]
jne 0x40d795
push ebp
push str._smain.chm
jmp 0x40d79b
push eax
push 0x45c0cc
call fcn.00402d10
lea eax, [esp + 0x74]
add esp, 8
lea edx, [eax + 2]
lea ebx, [ebx]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x40d7b0
sub eax, edx
sar eax, 1
lea ecx, [eax + eax]
mov eax, dword [esp + 0x10]
push ecx
lea edx, [esp + 0x70]
push edx
push 1
push 0
push str.HelpLink
push eax
call esi
lea ecx, [edi + 0x95e]
mov eax, ecx
lea edx, [eax + 2]
mov bx, word [eax]
add eax, 2
test bx, bx
jne 0x40d7e3
sub eax, edx
sar eax, 1
lea edx, [eax + eax]
mov eax, dword [esp + 0x10]
push edx
push ecx
push 1
push 0
push str.HelpTelephone
push eax
call esi
push 0x46f0f8
push ebp
push str._sinstaller.exe__n__s__u
mov ecx, 0x104
lea ebx, [esp + 0x78]
call fcn.00402d10
mov eax, ebx
add esp, 0xc
lea ecx, [eax + 2]
jmp 0x40d830
mov dx, word [eax]
add eax, 2
test dx, dx
jne 0x40d830
sub eax, ecx
sar eax, 1
lea ecx, [eax + eax]
mov eax, dword [esp + 0x10]
push ecx
lea edx, [esp + 0x70]
push edx
push 1
push 0
push str.UninstallString
push eax
call esi
mov eax, ebp
lea edx, [eax + 2]
lea ecx, [ecx]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x40d860
sub eax, edx
mov edx, dword [esp + 0x10]
sar eax, 1
lea ecx, [eax + eax]
push ecx
push ebp
push 1
push 0
push str.InstallLocation
push edx
call esi
lea ebx, [edi + 0x39a8]
push str.file
push ebx
call fcn.0043588c
mov edi, eax
add esp, 8
test edi, edi
je 0x40d8e4
push 0x5d
push edi
call fcn.004367ce
add esp, 8
test eax, eax
je 0x40d8b2
xor ecx, ecx
mov word [eax], cx
add edi, 0xa
mov eax, edi
lea edx, [eax + 2]
lea ebx, [ebx]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x40d8c0
sub eax, edx
sar eax, 1
lea edx, [eax + eax]
mov eax, dword [esp + 0x10]
push edx
push edi
push 1
push 0
push str.InstallSource
push eax
jmp 0x40d912
mov eax, ebx
lea edx, [eax + 2]
lea esp, [esp]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x40d8f0
sub eax, edx
mov edx, dword [esp + 0x10]
sar eax, 1
lea ecx, [eax + eax]
push ecx
push ebx
push 1
push 0
push str.InstallSource
push edx
call esi
push 0x46f0f8
push ebp
push str._sinstaller.exe__n__s__u
mov ecx, 0x104
lea ebx, [esp + 0x78]
call fcn.00402d10
mov eax, ebx
add esp, 0xc
lea edx, [eax + 2]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x40d935
sub eax, edx
mov edx, dword [esp + 0x10]
sar eax, 1
add eax, eax
push eax
lea ecx, [esp + 0x70]
push ecx
push 1
push 0
push str.ModifyPath
push edx
call esi
mov eax, dword [esp + 0x10]
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov ecx, dword [esp + 0x14]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
pop ebx
mov ecx, dword [esp + 0x270]
pop edi
pop esi
pop ebp
xor ecx, esp
mov eax, 1
call fcn.00435010
add esp, 0x268
ret 4