Function at 0x40f000
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x52c96e
mov eax, dword fs:[0]
push eax
sub esp, 0x42c
mov eax, dword [0x57e7c0]
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 ebx, dword [ebp + 8]
lea eax, [ebp - 0x218]
push 0x208
push 0
push eax
mov dword [ebp - 0x428], ebx
call fcn.005020d0
add esp, 0xc
lea eax, [ebp - 0x218]
push 0x53a6dc
push dword [ebx]
push eax
call dword [sym.imp.SHLWAPI.dll_PathCombineW]
call fcn.004067b0
mov ecx, eax
test ecx, ecx
je 0x40f453
mov eax, dword [ecx]
call dword [eax + 0xc]
add eax, 0x10
mov dword [ebp - 0x430], eax
lea eax, [ebp - 0x218]
mov dword [ebp - 4], 0
push eax
lea ecx, [ebp - 0x430]
call fcn.004063a0
test al, al
jne 0x40f0c6
lea ecx, [ebp - 0x218]
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x40f0a4
sub ecx, edx
lea eax, [ebp - 0x218]
sar ecx, 1
push ecx
push eax
lea ecx, [ebp - 0x430]
call fcn.0040ef20
mov dword [ebp - 4], 1
mov edi, str.SOFTWAREMicrosoftWindowsCurrentVersionUninstallTabXExplorer
call fcn.0041e8e0
test al, al
mov esi, str.SOFTWAREMicrosoftWindowsCurrentVersionUninstallTabXExplorerLenovo
mov eax, dword [ebp - 0x430]
cmove esi, edi
mov edi, dword [sym.imp.SHLWAPI.dll_SHSetValueW]
mov dword [ebp - 0x438], esi
mov ecx, dword [eax - 0xc]
add ecx, ecx
push ecx
push eax
push 1
push str.DisplayIcon
push esi
push reloc.OLEAUT32.dll_SysReAllocString
call edi
call fcn.004067b0
mov ecx, eax
test ecx, ecx
je 0x40f45d
mov eax, dword [ecx]
call dword [eax + 0xc]
add eax, 0x10
mov dword [ebp - 0x42c], eax
push 0x53a75c
lea ecx, [ebp - 0x42c]
mov byte [ebp - 4], 2
call fcn.004063a0
test al, al
jne 0x40f150
push 0xd
push 0x53a75c
lea ecx, [ebp - 0x42c]
call fcn.0040ef20
mov eax, dword [ebp - 0x42c]
mov byte [ebp - 4], 3
mov ecx, dword [eax - 0xc]
add ecx, ecx
push ecx
push eax
push 1
push str.DisplayName
push esi
push reloc.OLEAUT32.dll_SysReAllocString
call edi
call fcn.004067b0
mov ecx, eax
test ecx, ecx
je 0x40f467
mov eax, dword [ecx]
call dword [eax + 0xc]
add eax, 0x10
mov dword [ebp - 0x434], eax
mov byte [ebp - 4], 4
call fcn.004067b0
mov ecx, eax
test ecx, ecx
je 0x40f471
mov eax, dword [ecx]
call dword [eax + 0xc]
add eax, 0x10
mov dword [ebp - 0x424], eax
lea eax, [ebp - 0x218]
mov byte [ebp - 4], 5
push eax
lea ecx, [ebp - 0x424]
call fcn.004063a0
test al, al
jne 0x40f1f3
lea ecx, [ebp - 0x218]
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x40f1d1
sub ecx, edx
lea eax, [ebp - 0x218]
sar ecx, 1
push ecx
push eax
lea ecx, [ebp - 0x424]
call fcn.0040ef20
lea eax, [ebp - 0x434]
mov byte [ebp - 4], 6
push eax
lea eax, [ebp - 0x424]
push eax
call fcn.0040e5f0
mov edx, dword [ebp - 0x424]
or ebx, 0xffffffff
add esp, 8
mov byte [ebp - 4], 4
add edx, 0xfffffff0
mov eax, ebx
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x40f231
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov eax, dword [ebp - 0x434]
mov ecx, dword [eax - 0xc]
add ecx, ecx
push ecx
push eax
push 1
push str.DisplayVersion
push esi
push reloc.OLEAUT32.dll_SysReAllocString
call edi
lea eax, [ebp - 0x218]
push eax
call dword [sym.imp.SHLWAPI.dll_PathRemoveFileSpecW]
call fcn.004067b0
mov ecx, eax
test ecx, ecx
je 0x40f47b
mov eax, dword [ecx]
call dword [eax + 0xc]
add eax, 0x10
mov dword [ebp - 0x424], eax
lea eax, [ebp - 0x218]
mov byte [ebp - 4], 7
push eax
lea ecx, [ebp - 0x424]
call fcn.004063a0
test al, al
jne 0x40f2c2
lea ecx, [ebp - 0x218]
lea edx, [ecx + 2]
nop word [eax + eax]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x40f2a0
sub ecx, edx
lea eax, [ebp - 0x218]
sar ecx, 1
push ecx
push eax
lea ecx, [ebp - 0x424]
call fcn.0040ef20
mov edi, dword [ebp - 0x424]
mov byte [ebp - 4], 8
mov eax, dword [edi - 0xc]
add eax, eax
push eax
push edi
push 1
push str.InstallLocation
push esi
push reloc.OLEAUT32.dll_SysReAllocString
call dword [sym.imp.SHLWAPI.dll_SHSetValueW]
push 0x208
lea eax, [ebp - 0x420]
push 0
push eax
call fcn.005020d0
mov eax, dword [ebp - 0x428]
add esp, 0xc
push str.uninst.exe
push dword [eax]
lea eax, [ebp - 0x420]
push eax
call dword [sym.imp.SHLWAPI.dll_PathCombineW]
call fcn.004067b0
mov ecx, eax
test ecx, ecx
je 0x40f485
mov eax, dword [ecx]
call dword [eax + 0xc]
add eax, 0x10
mov dword [ebp - 0x428], eax
lea eax, [ebp - 0x420]
mov byte [ebp - 4], 9
push eax
lea ecx, [ebp - 0x428]
call fcn.004063a0
test al, al
jne 0x40f378
lea ecx, [ebp - 0x420]
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x40f356
sub ecx, edx
lea eax, [ebp - 0x420]
sar ecx, 1
push ecx
push eax
lea ecx, [ebp - 0x428]
call fcn.0040ef20
mov esi, dword [ebp - 0x428]
mov byte [ebp - 4], 8
mov eax, dword [esi - 0xc]
add eax, eax
push eax
push esi
push 1
push str.UninstallString
push dword [ebp - 0x438]
push reloc.OLEAUT32.dll_SysReAllocString
call dword [sym.imp.SHLWAPI.dll_SHSetValueW]
add esi, 0xfffffff0
mov eax, ebx
lock xadd dword [esi + 0xc], eax
dec eax
test eax, eax
jg 0x40f3b8
mov ecx, dword [esi]
push esi
mov eax, dword [ecx]
call dword [eax + 4]
mov byte [ebp - 4], 4
add edi, 0xfffffff0
mov eax, ebx
lock xadd dword [edi + 0xc], eax
dec eax
test eax, eax
jg 0x40f3d3
mov ecx, dword [edi]
push edi
mov eax, dword [ecx]
call dword [eax + 4]
mov edx, dword [ebp - 0x434]
mov eax, ebx
mov byte [ebp - 4], 3
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x40f3f4
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov edx, dword [ebp - 0x42c]
mov eax, ebx
mov byte [ebp - 4], 1
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x40f415
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov edx, dword [ebp - 0x430]
mov dword [ebp - 4], 0xffffffff
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], ebx
dec ebx
test ebx, ebx
jg 0x40f437
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
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.004bf660
mov esp, ebp
pop ebp
ret
push 0x80004005
call fcn.00406380
push 0x80004005
call fcn.00406380
push 0x80004005
call fcn.00406380
push 0x80004005
call fcn.00406380
push 0x80004005
call fcn.00406380
push 0x80004005
call fcn.00406380
int3