Function at 0x42d260
Capabilities:
Check if file exists
Delete registry key
Delete registry value
Get common file path
Get startup folder
Link many functions at runtime
Persist via run registry key
Query or enumerate registry value
Set registry value

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x5005cf
mov eax, dword fs:[0]
push eax
mov eax, 0x164c
call fcn.00445cc0
mov eax, dword [0x546204]
xor eax, ebp
mov dword [ebp - 0x10], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, dword [ebp + 8]
lea eax, [ebp - 0x218]
push 0x208
push 0
push eax
mov dword [ebp - 0x164c], edi
call fcn.00470310
add esp, 0xc
lea eax, [ebp - 0x218]
push 0x104
push eax
push dword [0x54b950]
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
lea eax, [ebp - 0x218]
push eax
call dword [sym.imp.SHLWAPI.dll_PathRemoveFileSpecW]
push str.netul.dll
lea eax, [ebp - 0x218]
push eax
call dword [sym.imp.SHLWAPI.dll_PathAppendW]
call fcn.0042c050
mov edi, eax
or esi, 0xffffffff
cmp dword [edi], 0
jne 0x42d35d
lea eax, [ebp - 0x218]
push eax
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov dword [edi], eax
test eax, eax
je 0x42d4c8
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.HttpInit
push eax
call esi
push str.HttpUninit
push dword [edi]
mov dword [edi + 4], eax
call esi
push str.zlib_uncompress
push dword [edi]
mov dword [edi + 8], eax
call esi
push str.zlib_compress
push dword [edi]
mov dword [edi + 0x10], eax
call esi
push str.zlib_compressBound
push dword [edi]
mov dword [edi + 0x14], eax
call esi
mov dword [edi + 0x18], eax
mov eax, dword [edi + 4]
test eax, eax
je 0x42d35a
call eax
mov dword [edi + 0xc], eax
or esi, 0xffffffff
cmp dword [edi + 8], 0
je 0x42d4c8
cmp dword [edi + 4], 0
je 0x42d4c8
cmp dword [edi + 0xc], 0
je 0x42d4c8
push 0x208
lea eax, [ebp - 0x420]
push 0
push eax
call fcn.00470310
add esp, 0xc
lea eax, [ebp - 0x420]
push 0x104
push eax
push dword [0x54b950]
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
call fcn.00417270
mov ecx, eax
test ecx, ecx
je 0x42dc0b
mov eax, dword [ecx]
mov eax, dword [eax + 0xc]
call eax
add eax, 0x10
mov dword [ebp - 0x1644], eax
mov dword [ebp - 4], 0
call fcn.00417270
mov ecx, eax
test ecx, ecx
je 0x42dc15
mov eax, dword [ecx]
mov eax, dword [eax + 0xc]
call eax
add eax, 0x10
mov dword [ebp - 0x1640], eax
lea eax, [ebp - 0x420]
mov byte [ebp - 4], 1
push eax
lea ecx, [ebp - 0x1640]
call fcn.00406da0
test al, al
jne 0x42d433
lea ecx, [ebp - 0x420]
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x42d411
sub ecx, edx
lea eax, [ebp - 0x420]
sar ecx, 1
push ecx
push eax
lea ecx, [ebp - 0x1640]
call fcn.004088f0
lea eax, [ebp - 0x1644]
mov byte [ebp - 4], 2
push eax
lea eax, [ebp - 0x1640]
push eax
call fcn.00424050
mov edx, dword [ebp - 0x1640]
add esp, 8
mov byte [ebp - 4], 0
add edx, 0xfffffff0
mov eax, esi
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x42d46e
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
push ecx
mov esi, esp
mov dword [ebp - 0x1648], esp
call fcn.00424fa0
push eax
mov ecx, esi
call fcn.00406990
push ecx
lea eax, [ebp - 0x1644]
mov byte [ebp - 4], 3
mov ecx, esp
push eax
call fcn.00422f10
mov byte [ebp - 4], 0
call fcn.004cf460
mov edx, dword [ebp - 0x1644]
add esp, 8
mov dword [ebp - 4], 0xffffffff
add edx, 0xfffffff0
or eax, 0xffffffff
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x42d4c8
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov edi, dword [ebp - 0x164c]
mov dword [ebp - method.mf_bind_t_class_CUninstaller__class_CUninstaller___void_.virtual_0], vtable.mf_bind_t_class_CUninstaller__class_CUninstaller___void_.0
mov dword [ebp - 0x630], 0x42c780
mov dword [ebp - 0x62c], edi
lea eax, [ebp - 0x634]
mov dword [ebp - 4], 4
push eax
call fcn.0041d180
push 0x510134
mov dword [ebp - 4], 0xffffffff
call fcn.00422ab0
push 0x208
lea eax, [ebp - 0x840]
mov dword [ebp - 0x1648], 1
push 0
push eax
mov dword [ebp - 0x1640], 0x104
call fcn.00470310
add esp, 0x14
lea eax, [ebp - 0x1640]
push eax
lea eax, [ebp - 0x840]
push eax
lea eax, [ebp - 0x1648]
push eax
push str.InstallDate
push str.SOFTWARESmartChat
push reloc.OLEAUT32.dll_SysReAllocString
call dword [sym.imp.SHLWAPI.dll_SHGetValueW]
push str.SOFTWARESmartChat
push reloc.OLEAUT32.dll_SysReAllocString
call dword [sym.imp.SHLWAPI.dll_SHDeleteKeyW]
lea ecx, [ebp - 0x840]
lea edx, [ecx + 2]
nop dword [eax]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x42d580
sub ecx, edx
sar ecx, 1
lea eax, [ecx + ecx]
push eax
lea eax, [ebp - 0x840]
push eax
push 1
push str.InstallDate
push str.SOFTWARESmartChat
push reloc.OLEAUT32.dll_SysReAllocString
call dword [sym.imp.SHLWAPI.dll_SHSetValueW]
lea eax, [ebp - 0x638]
xorps xmm0, xmm0
push eax
movups xmmword [ebp - 0x638], xmm0
call dword [sym.imp.KERNEL32.dll_GetLocalTime]
call fcn.00417270
mov ecx, eax
test ecx, ecx
je 0x42dc1f
mov eax, dword [ecx]
mov eax, dword [eax + 0xc]
call eax
add eax, 0x10
mov dword [ebp - 0x1644], eax
movzx eax, word [ebp - 0x62c]
push eax
movzx eax, word [ebp - 0x62e]
push eax
movzx eax, word [ebp - 0x630]
push eax
movzx eax, word [ebp - 0x632]
push eax
movzx eax, word [ebp - 0x636]
push eax
movzx eax, word [ebp - 0x638]
push eax
lea eax, [ebp - 0x1644]
mov dword [ebp - 4], 5
push str._04d__02d__02d__02d:_02d:_02d
push eax
call fcn.00407280
mov esi, dword [ebp - 0x1644]
add esp, 0x20
mov eax, dword [esi - 0xc]
add eax, eax
push eax
push esi
push 1
push str.LastUninstallDate
push str.SOFTWARESmartChat
push reloc.OLEAUT32.dll_SysReAllocString
call dword [sym.imp.SHLWAPI.dll_SHSetValueW]
mov dword [ebp - 4], 0xffffffff
add esi, 0xfffffff0
or eax, 0xffffffff
lock xadd dword [esi + 0xc], eax
dec eax
test eax, eax
jg 0x42d675
mov ecx, dword [esi]
push esi
mov eax, dword [ecx]
call dword [eax + 4]
push 1
mov ecx, edi
call fcn.0042c660
push str.start_call_program
call fcn.00422ab0
add esp, 4
mov ecx, edi
push 4
call fcn.0042c660
push str.start_close_all_processes
call fcn.00422ab0
add esp, 4
lea esi, [edi + 8]
mov dword [ebp - 0x1644], esi
push esi
call fcn.0041d710
mov ecx, eax
call fcn.0041d640
push eax
call fcn.00432de0
add esp, 8
mov ecx, edi
push 5
call fcn.0042c660
push 0x210
lea eax, [ebp - 0x848]
push 0
push eax
call fcn.00470310
add esp, 0xc
call fcn.00417270
mov ecx, eax
test ecx, ecx
je 0x42dc29
mov eax, dword [ecx]
mov eax, dword [eax + 0xc]
call eax
mov dword [ebp - 0x1648], eax
lea ecx, [eax + 0x10]
mov dword [ebp - 0x1640], ecx
mov dword [ebp - 4], 6
call fcn.0042c500
test al, al
lea eax, [ebp - 0x848]
je 0x42d721
push str.UtilsSChatSDrv_x64.sys
jmp 0x42d726
push str.UtilsSChatSDrv.sys
push dword [esi]
push eax
call dword [sym.imp.SHLWAPI.dll_PathCombineW]
lea eax, [ebp - 0x848]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x42d761
push str.SChatSDrvs
call fcn.00431f10
push str.SChatSDrvs
call fcn.00434a20
push str.SChatSDrvs
call fcn.00434670
add esp, 8
push str.SmartChatSvc
call fcn.00434a20
push str.SmartChatSvc
call fcn.00434670
mov edx, dword [ebp - 0x1648]
add esp, 8
mov dword [ebp - 4], 0xffffffff
or eax, 0xffffffff
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x42d79a
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
push str.remove_desktop_shortcuts
call fcn.00422ab0
push 0x800
lea eax, [ebp - 0xe38]
push 0
push eax
call fcn.00470310
mov esi, dword [sym.imp.SHELL32.dll_SHGetSpecialFolderPathW]
lea eax, [ebp - 0xe38]
add esp, 0x10
push 1
push 0x19
push eax
push 0
call esi
lea eax, [ebp - 0xe38]
mov ecx, edi
push eax
call fcn.0042ba10
push 0x800
lea eax, [ebp - 0x1638]
push 0
push eax
call fcn.00470310
add esp, 0xc
lea eax, [ebp - 0x1638]
push 1
push 0x10
push eax
push 0
call esi
lea eax, [ebp - 0x1638]
mov ecx, edi
push eax
call fcn.0042ba10
push 6
mov ecx, edi
call fcn.0042c660
push str.remove_start_menu_shortcuts
call fcn.00422ab0
push 0x800
lea eax, [ebp - 0x1638]
push 0
push eax
call fcn.00470310
add esp, 0x10
lea eax, [ebp - 0x1638]
push 1
push 0x17
push eax
push 0
call esi
push 0x800
lea eax, [ebp - 0xe38]
push 0
push eax
call fcn.00470310
add esp, 0xc
lea eax, [ebp - 0x1638]
push 0x50fff4
push eax
lea eax, [ebp - 0xe38]
push eax
call dword [sym.imp.SHLWAPI.dll_PathCombineW]
lea eax, [ebp - 0xe38]
push eax
call fcn.0042e9b0
add esp, 4
mov ecx, edi
push 7
call fcn.0042c660
push str.remove_appdata
call fcn.00422ab0
push 0x800
lea eax, [ebp - 0x1638]
push 0
push eax
call fcn.00470310
add esp, 0x10
push 1
push 0x1a
lea eax, [ebp - 0x1638]
push eax
push 0
call esi
push 0x20a
lea eax, [ebp - 0x844]
push 0
push eax
call fcn.00470310
add esp, 0xc
lea eax, [ebp - 0x1638]
push 0x50fff4
push eax
lea eax, [ebp - 0x844]
push eax
call dword [sym.imp.SHLWAPI.dll_PathCombineW]
lea eax, [ebp - 0x844]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x42d90d
lea eax, [ebp - 0x844]
push eax
call fcn.0042e9b0
add esp, 4
push 8
mov ecx, edi
call fcn.0042c660
push str.remove_autorun
call fcn.00422ab0
add esp, 4
lea ecx, [ebp - 0x1639]
call fcn.00433a80
push dword [edi + 8]
lea ecx, [ebp - 0x1639]
mov dword [ebp - 4], 7
call fcn.00433d90
mov edi, dword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, eax
call edi
push eax
push esi
push str.Delete_IsAutoRun:_d__err:_u
call fcn.00422ab0
mov eax, dword [ebp - 0x1644]
lea ecx, [ebp - 0x1639]
add esp, 0xc
push dword [eax]
call fcn.00433ca0
mov esi, eax
call edi
push eax
push esi
push str.Delete_AutoRun:_d__err:_u
call fcn.00422ab0
add esp, 0xc
lea eax, [ebp - 0x1648]
push eax
push 0x20106
push 0
push str.SoftwareMicrosoftWindowsCurrentVersionRun
push reloc.OLEAUT32.dll_SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x42d9b5
push str.SmartChatTray
push dword [ebp - 0x1648]
call dword [sym.imp.ADVAPI32.dll_RegDeleteValueW]
lea ecx, [ebp - 0x1639]
mov dword [ebp - 4], 0xffffffff
call fcn.00433a90
mov edi, dword [ebp - 0x164c]
mov ecx, edi
push 9
call fcn.0042c660
mov esi, dword [sym.imp.SHLWAPI.dll_SHDeleteKeyW]
push str.SOFTWAREMicrosoftWindowsCurrentVersionUninstallSmartChat
push reloc.OLEAUT32.dll_SysReAllocString
call esi
cmp byte [edi + 0x98], 0
je 0x42d9fd
push str.SOFTWAREMicrosoftWindowsCurrentVersionUninstallSmartChatLenovo
push reloc.OLEAUT32.dll_SysReAllocString
call esi
push str.Delete_uninstall_registry
call fcn.00422ab0
push dword [edi + 8]
push str.start_delete_all_files_in__s
call fcn.00422ab0
add esp, 0xc
mov ecx, edi
push dword [edi + 8]
call fcn.0042c840
push dword [edi + 8]
push str.end_delete_all_files_in__s
call fcn.00422ab0
push str..tmp
push dword [edi + 8]
call fcn.0042e650
add esp, 0x10
mov ecx, edi
push 0x62
call fcn.0042c660
push str.start_create_runonce_bat
call fcn.00422ab0
push dword [edi + 8]
lea eax, [edi + 0xc]
push eax
call fcn.0041f920
add esp, 0xc
mov ecx, edi
push 0x63
call fcn.0042c660
push 0x208
lea eax, [ebp - 0x628]
push 0
push eax
call fcn.00470310
add esp, 0xc
lea eax, [ebp - 0x628]
push str.SmartChat.exe
push dword [edi + 8]
push eax
call dword [sym.imp.SHLWAPI.dll_PathCombineW]
lea eax, [ebp - 0x1640]
mov dword [ebp - 0x1648], eax
call fcn.00417270
mov ecx, eax
test ecx, ecx
je 0x42dc33
mov eax, dword [ecx]
mov eax, dword [eax + 0xc]
call eax
add eax, 0x10
mov dword [ebp - 0x1640], eax
lea eax, [ebp - 0x628]
mov dword [ebp - 4], 8
push eax
lea ecx, [ebp - 0x1640]
call fcn.00406da0
test al, al
jne 0x42db07
lea ecx, [ebp - 0x628]
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x42dae5
sub ecx, edx
lea eax, [ebp - 0x628]
sar ecx, 1
push ecx
push eax
lea ecx, [ebp - 0x1640]
call fcn.004088f0
mov dword [ebp - 4], 9
call fcn.00417270
mov ecx, eax
test ecx, ecx
je 0x42dc3d
mov eax, dword [ecx]
mov eax, dword [eax + 0xc]
call eax
add eax, 0x10
mov dword [ebp - 0x1644], eax
push 0x50fff4
lea ecx, [ebp - 0x1644]
mov byte [ebp - 4], 0xa
call fcn.00406da0
test al, al
jne 0x42db57
push 9
push 0x50fff4
lea ecx, [ebp - 0x1644]
call fcn.004088f0
mov esi, dword [ebp - 0x1644]
lea ecx, [ebp - 0x1639]
push esi
push dword [ebp - 0x1640]
mov byte [ebp - 4], 0xb
call fcn.0042c2a0
lea edx, [esi - 0x10]
mov byte [ebp - 4], 9
or esi, 0xffffffff
mov eax, esi
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x42db91
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov edx, dword [ebp - 0x1640]
mov dword [ebp - 4], 0xffffffff
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], esi
dec esi
test esi, esi
jg 0x42dbb3
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
push 0x64
mov ecx, edi
call fcn.0042c660
mov dword [ebp - method.mf_bind_t_class_CUninstaller__class_CUninstaller___void_.virtual_0], vtable.mf_bind_t_class_CUninstaller__class_CUninstaller___void_.0
mov dword [ebp - 0x1654], 0x42c750
mov dword [ebp - 0x1650], edi
lea eax, [ebp - 0x1658]
mov dword [ebp - 4], 0xc
push eax
call fcn.0041d180
add esp, 4
xor eax, eax
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.00445caa
mov esp, ebp
pop ebp
ret 8
push 0x80004005
call fcn.00403aa0
push 0x80004005
call fcn.00403aa0
push 0x80004005
call fcn.00403aa0
push 0x80004005
call fcn.00403aa0
push 0x80004005
call fcn.00403aa0
push 0x80004005
call fcn.00403aa0
int3