Function at 0x416170
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x485d1e
mov eax, dword fs:[0]
push eax
sub esp, 0x42c
mov eax, dword [0x4b3630]
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.0044a6c0
add esp, 0xc
lea eax, [ebp - 0x218]
push str.JianDesk.exe
push dword [ebx]
push eax
call dword [sym.imp.SHLWAPI.dll_PathCombineW]
call fcn.00406280
mov ecx, eax
test ecx, ecx
je 0x4165f0
mov eax, dword [ecx]
call dword [eax + 0xc]
add eax, 0x10
mov dword [ebp - 0x430], eax
lea edi, [ebp - 0x218]
mov dword [ebp - 4], 0
shr edi, 0x10
test edi, edi
jne 0x416219
lea eax, [ebp - 0x218]
movzx eax, ax
lea ecx, [ebp - 0x430]
push eax
call fcn.00406740
jmp 0x416244
lea ecx, [ebp - 0x218]
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x416222
sub ecx, edx
lea eax, [ebp - 0x218]
sar ecx, 1
push ecx
push eax
lea ecx, [ebp - 0x430]
call fcn.0040ab00
mov dword [ebp - 4], 1
mov esi, str.SOFTWAREMicrosoftWindowsCurrentVersionUninstallJianDesk
call fcn.00428f30
test al, al
mov ebx, str.SOFTWAREMicrosoftWindowsCurrentVersionUninstallJianDeskLenovo
mov eax, dword [ebp - 0x430]
cmove ebx, esi
mov esi, dword [sym.imp.SHLWAPI.dll_SHSetValueW]
mov dword [ebp - 0x434], ebx
mov ecx, dword [eax - 0xc]
add ecx, ecx
push ecx
push eax
push 1
push str.DisplayIcon
push ebx
push reloc.OLEAUT32.dll_SysReAllocString
call esi
call fcn.00406280
mov ecx, eax
test ecx, ecx
je 0x4165fa
mov eax, dword [ecx]
call dword [eax + 0xc]
add eax, 0x10
mov dword [ebp - 0x42c], eax
mov eax, 0x48ee7c
mov byte [ebp - 4], 2
lea ecx, [ebp - 0x42c]
test eax, 0xffff0000
jne 0x4162c5
movzx eax, ax
push eax
call fcn.00406740
jmp 0x4162d1
push 3
push 0x48ee7c
call fcn.0040ab00
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 ebx
push reloc.OLEAUT32.dll_SysReAllocString
call esi
call fcn.00406280
mov ecx, eax
test ecx, ecx
je 0x416604
mov eax, dword [ecx]
call dword [eax + 0xc]
add eax, 0x10
mov dword [ebp - 0x438], eax
mov byte [ebp - 4], 4
call fcn.00406280
mov ecx, eax
test ecx, ecx
je 0x41660e
mov eax, dword [ecx]
call dword [eax + 0xc]
add eax, 0x10
mov dword [ebp - 0x424], eax
mov byte [ebp - 4], 5
test edi, edi
jne 0x41634e
lea eax, [ebp - 0x218]
movzx esi, ax
lea ecx, [ebp - 0x424]
push esi
call fcn.00406740
jmp 0x416382
lea ecx, [ebp - 0x218]
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x416357
sub ecx, edx
lea eax, [ebp - 0x218]
sar ecx, 1
push ecx
push eax
lea ecx, [ebp - 0x424]
call fcn.0040ab00
lea eax, [ebp - 0x218]
movzx esi, ax
lea eax, [ebp - 0x438]
mov byte [ebp - 4], 6
push eax
lea eax, [ebp - 0x424]
push eax
call fcn.00415630
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 0x4163c0
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov eax, dword [ebp - 0x438]
mov ecx, dword [eax - 0xc]
add ecx, ecx
push ecx
push eax
push 1
push str.DisplayVersion
push dword [ebp - 0x434]
push reloc.OLEAUT32.dll_SysReAllocString
call dword [sym.imp.SHLWAPI.dll_SHSetValueW]
lea eax, [ebp - 0x218]
push eax
call dword [sym.imp.SHLWAPI.dll_PathRemoveFileSpecW]
call fcn.00406280
mov ecx, eax
test ecx, ecx
je 0x416618
mov eax, dword [ecx]
call dword [eax + 0xc]
add eax, 0x10
mov dword [ebp - 0x424], eax
mov byte [ebp - 4], 7
test edi, edi
jne 0x416425
push esi
lea ecx, [ebp - 0x424]
call fcn.00406740
jmp 0x416452
lea ecx, [ebp - 0x218]
lea edx, [ecx + 2]
nop
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x416430
sub ecx, edx
lea eax, [ebp - 0x218]
sar ecx, 1
push ecx
push eax
lea ecx, [ebp - 0x424]
call fcn.0040ab00
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 dword [ebp - 0x434]
push reloc.OLEAUT32.dll_SysReAllocString
call dword [sym.imp.SHLWAPI.dll_SHSetValueW]
push 0x208
lea eax, [ebp - 0x420]
push 0
push eax
call fcn.0044a6c0
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.00406280
mov ecx, eax
test ecx, ecx
je 0x416622
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
test eax, 0xffff0000
jne 0x4164ea
movzx eax, ax
lea ecx, [ebp - 0x428]
push eax
call fcn.00406740
jmp 0x416515
lea ecx, [ebp - 0x420]
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x4164f3
sub ecx, edx
lea eax, [ebp - 0x420]
sar ecx, 1
push ecx
push eax
lea ecx, [ebp - 0x428]
call fcn.0040ab00
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 - 0x434]
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 0x416555
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 0x416570
mov ecx, dword [edi]
push edi
mov eax, dword [ecx]
call dword [eax + 4]
mov edx, dword [ebp - 0x438]
mov eax, ebx
mov byte [ebp - 4], 3
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x416591
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 0x4165b2
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 0x4165d4
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.00442126
mov esp, ebp
pop ebp
ret
push 0x80004005
call fcn.00405f60
push 0x80004005
call fcn.00405f60
push 0x80004005
call fcn.00405f60
push 0x80004005
call fcn.00405f60
push 0x80004005
call fcn.00405f60
push 0x80004005
call fcn.00405f60
int3