Function at 0x4078e0
Capabilities:
Get file version info
Set registry value

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x539003
mov eax, dword fs:[0]
push eax
mov eax, 0x167c
call fcn.00516260
mov eax, dword [0x589c40]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 4], 4
mov eax, dword [ebp + 0xc]
push eax
push 0x567f8c
push 0xffffffffffffffff
lea ecx, [ebp - 0xa38]
push 0x104
push ecx
call fcn.005128f5
mov edx, dword [ebp + 0x10]
push str.Uninstall.exe
push edx
push 0x5686a4
push 0xffffffffffffffff
lea eax, [ebp - 0x1668]
push 0x104
push eax
call fcn.005128f5
mov ecx, dword [ebp + 0x10]
push ecx
push 0x567f8c
push 0xffffffffffffffff
lea edx, [ebp - 0x830]
push 0x104
push edx
call fcn.005128f5
mov eax, dword [ebp + 0x10]
add esp, 0x40
push str.Uninstall.exe
push eax
push str._s_s
push 0xffffffffffffffff
lea ecx, [ebp - 0x1258]
push 0x104
push ecx
call fcn.005128f5
mov eax, dword [0x5686fc]
mov edx, dword [str.1.0.0.0]
mov ecx, dword [0x568700]
push 0x1f8
mov dword [ebp - 0x214], eax
xor ebx, ebx
mov dword [ebp - 0x218], edx
mov edx, dword [0x568704]
lea eax, [ebp - 0x208]
push ebx
push eax
mov dword [ebp - 0x210], ecx
mov dword [ebp - 0x20c], edx
call fcn.00513920
push 0x208
lea ecx, [ebp - 0x628]
push ebx
push ecx
call fcn.00513920
mov eax, dword [ebp + 0x18]
add esp, 0x30
cmp dword [eax - 0xc], ebx
je 0x407b5a
push ebx
push eax
mov dword [ebp - 0x1688], ebx
mov dword [ebp - 0x167c], ebx
call dword [sym.imp.VERSION.dll_GetFileVersionInfoSizeW]
mov edi, eax
cmp edi, ebx
je 0x407b5a
push edi
call fcn.00413b60
mov edx, dword [ebp + 0x18]
add esp, 4
mov esi, eax
push esi
push edi
push ebx
push edx
call dword [sym.imp.VERSION.dll_GetFileVersionInfoW]
test eax, eax
je 0x407b4d
mov edi, dword [sym.imp.VERSION.dll_VerQueryValueW]
lea eax, [ebp - 0x1688]
push eax
lea ecx, [ebp - 0x167c]
push ecx
push 0x5682b0
push esi
call edi
test eax, eax
je 0x407a8b
mov eax, dword [ebp - 0x167c]
movzx edx, word [eax + 0xc]
movzx ecx, word [eax + 0xe]
push edx
movzx edx, word [eax + 8]
movzx eax, word [eax + 0xa]
push ecx
push edx
push eax
lea ecx, [ebp - 0x218]
push str._d._d._d._d
push ecx
mov edx, 0x104
call fcn.00409250
add esp, 0x18
lea edx, [ebp - 0x1678]
push edx
lea eax, [ebp - 0x1670]
push eax
push str.VarFileInfoTranslation
push esi
mov dword [ebp - 0x1670], ebx
mov dword [ebp - 0x1678], ebx
call edi
test eax, eax
je 0x407b4d
lea ecx, [ebp - 0x1674]
call fcn.0040ab80
mov byte [ebp - 4], 5
mov eax, dword [ebp - 0x1670]
movzx ecx, word [eax + 2]
movzx edx, word [eax]
push ecx
push edx
lea eax, [ebp - 0x1674]
push str.StringFileInfo_04x_04xCompanyName
push eax
call fcn.0040a810
add esp, 0x10
lea ecx, [ebp - 0x1678]
push ecx
lea edx, [ebp - 0x1680]
mov dword [ebp - 0x1680], ebx
mov ebx, dword [ebp - 0x1674]
push edx
push ebx
push esi
call edi
test eax, eax
je 0x407b2b
mov eax, dword [ebp - 0x1680]
push eax
push 0x567f8c
push 0xffffffffffffffff
lea ecx, [ebp - 0x628]
push 0x104
push ecx
call fcn.005128f5
add esp, 0x14
lea eax, [ebx - 0x10]
mov byte [ebp - 4], 4
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x407b4b
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
xor ebx, ebx
cmp esi, ebx
je 0x407b5a
push esi
call fcn.00413b6b
add esp, 4
mov ecx, dword [ebp + 0x14]
push ecx
push 0x567f8c
push 0xffffffffffffffff
lea edx, [ebp - 0x420]
push 0x104
push edx
call fcn.005128f5
mov eax, dword [ebp + 0x18]
push eax
push 0x567f8c
push 0xffffffffffffffff
lea ecx, [ebp - 0xc40]
push 0x104
push ecx
call fcn.005128f5
mov edx, dword [ebp + 0x18]
push edx
push 0x567f8c
push 0xffffffffffffffff
lea eax, [ebp - 0x1460]
push 0x104
push eax
call fcn.005128f5
mov ecx, dword [ebp + 0xc]
push ecx
push 0x568180
push 0xffffffffffffffff
lea edx, [ebp - 0xe48]
push 0x104
push edx
call fcn.005128f5
mov edi, dword [sym.imp.ADVAPI32.dll_RegCreateKeyW]
add esp, 0x50
lea eax, [ebp - 0x166c]
push eax
lea ecx, [ebp - 0xe48]
push ecx
push reloc.OLEAUT32.dll_SysReAllocString
call edi
mov eax, dword [ebp - 0x166c]
mov esi, dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
push 0x208
lea edx, [ebp - 0xa38]
push edx
push 1
push ebx
push str.DisplayName
push eax
call esi
mov edx, dword [ebp - 0x166c]
push 0x208
lea ecx, [ebp - 0x830]
push ecx
push 1
push ebx
push 0x5681f0
push edx
call esi
mov ecx, dword [ebp - 0x166c]
push 0x208
lea eax, [ebp - 0xc40]
push eax
push 1
push ebx
push str.DisplayIcon
push ecx
call esi
mov eax, dword [ebp - 0x166c]
push 0x208
lea edx, [ebp - 0x1258]
push edx
push 1
push ebx
push str.UninstallString
push eax
call esi
push 0x208
lea ecx, [ebp - 0x218]
push ecx
push 1
mov edx, dword [ebp - 0x166c]
push ebx
push str.DisplayVersion
push edx
call esi
mov ecx, dword [ebp - 0x166c]
push 0x208
lea eax, [ebp - 0x420]
push eax
push 1
push ebx
push str.URLInfoAbout
push ecx
call esi
mov eax, dword [ebp - 0x166c]
push 0x208
lea edx, [ebp - 0x420]
push edx
push 1
push ebx
push str.HelpLink
push eax
call esi
mov edx, dword [ebp - 0x166c]
push 0x208
lea ecx, [ebp - 0x628]
push ecx
push 1
push ebx
push str.Publisher
push edx
call esi
mov ecx, dword [ebp - 0x166c]
push 0x208
lea eax, [ebp - 0x1460]
push eax
push 1
push ebx
push str.MainShortcut
push ecx
call esi
mov edx, dword [ebp - 0x166c]
mov ebx, dword [sym.imp.ADVAPI32.dll_RegCloseKey]
push edx
call ebx
mov eax, dword [ebp + 8]
push eax
push 0x56822c
push 0xffffffffffffffff
lea ecx, [ebp - 0x1050]
push 0x104
push ecx
call fcn.005128f5
add esp, 0x14
lea edx, [ebp - 0x1684]
push edx
lea eax, [ebp - 0x1050]
push eax
push SysReAllocStringLen
call edi
mov edx, dword [ebp - 0x1684]
push 0x208
lea ecx, [ebp - 0x830]
push ecx
push 1
push 0
push 0x568258
push edx
call esi
mov eax, dword [ebp - 0x1684]
push eax
call ebx
mov byte [ebp - 4], 3
mov eax, dword [ebp + 8]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x407d80
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov byte [ebp - 4], 2
mov eax, dword [ebp + 0xc]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x407da3
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov byte [ebp - 4], 1
mov eax, dword [ebp + 0x10]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x407dc6
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov byte [ebp - 4], 0
mov eax, dword [ebp + 0x14]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x407de9
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov dword [ebp - 4], 0xffffffff
mov eax, dword [ebp + 0x18]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x407e0f
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.005121e3
mov esp, ebp
pop ebp
ret