Function at 0x42cc50
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 0x4f32cf
mov eax, dword fs:[0]
push eax
mov eax, 0x164c
call fcn.004455f0
mov eax, dword [0x536204]
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.0046fc30
add esp, 0xc
lea eax, [ebp - 0x218]
push 0x104
push eax
push dword [0x53b850]
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.0042ba40
mov edi, eax
or esi, 0xffffffff
cmp dword [edi], 0
jne 0x42cd4d
lea eax, [ebp - 0x218]
push eax
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov dword [edi], eax
test eax, eax
je 0x42ceb8
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 0x42cd4a
call eax
mov dword [edi + 0xc], eax
or esi, 0xffffffff
cmp dword [edi + 8], 0
je 0x42ceb8
cmp dword [edi + 4], 0
je 0x42ceb8
cmp dword [edi + 0xc], 0
je 0x42ceb8
push 0x208
lea eax, [ebp - 0x420]
push 0
push eax
call fcn.0046fc30
add esp, 0xc
lea eax, [ebp - 0x420]
push 0x104
push eax
push dword [0x53b850]
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
call fcn.0041cdd0
mov ecx, eax
test ecx, ecx
je 0x42d5fb
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.0041cdd0
mov ecx, eax
test ecx, ecx
je 0x42d605
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.00406e30
test al, al
jne 0x42ce23
lea ecx, [ebp - 0x420]
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x42ce01
sub ecx, edx
lea eax, [ebp - 0x420]
sar ecx, 1
push ecx
push eax
lea ecx, [ebp - 0x1640]
call fcn.00408980
lea eax, [ebp - 0x1644]
mov byte [ebp - 4], 2
push eax
lea eax, [ebp - 0x1640]
push eax
call fcn.00423a40
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 0x42ce5e
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.00424990
push eax
mov ecx, esi
call fcn.00406a20
push ecx
lea eax, [ebp - 0x1644]
mov byte [ebp - 4], 3
mov ecx, esp
push eax
call fcn.00422910
mov byte [ebp - 4], 0
call fcn.004c1d30
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 0x42ceb8
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], 0x42c170
mov dword [ebp - 0x62c], edi
lea eax, [ebp - 0x634]
mov dword [ebp - 4], 4
push eax
call fcn.0041d100
push 0x502fcc
mov dword [ebp - 4], 0xffffffff
call fcn.004224b0
push 0x208
lea eax, [ebp - 0x840]
mov dword [ebp - 0x1648], 1
push 0
push eax
mov dword [ebp - 0x1640], 0x104
call fcn.0046fc30
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.SOFTWARESmartWriter
push reloc.OLEAUT32.dll_SysReAllocString
call dword [sym.imp.SHLWAPI.dll_SHGetValueW]
push str.SOFTWARESmartWriter
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 0x42cf70
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.SOFTWARESmartWriter
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.0041cdd0
mov ecx, eax
test ecx, ecx
je 0x42d60f
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.00407310
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.SOFTWARESmartWriter
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 0x42d065
mov ecx, dword [esi]
push esi
mov eax, dword [ecx]
call dword [eax + 4]
push 1
mov ecx, edi
call fcn.0042c050
push str.start_call_program
call fcn.004224b0
add esp, 4
mov ecx, edi
push 4
call fcn.0042c050
push str.start_close_all_processes
call fcn.004224b0
add esp, 4
lea esi, [edi + 8]
mov dword [ebp - 0x1644], esi
push esi
call fcn.0041d690
mov ecx, eax
call fcn.0041d5c0
push eax
call fcn.004327d0
add esp, 8
mov ecx, edi
push 5
call fcn.0042c050
push 0x210
lea eax, [ebp - 0x848]
push 0
push eax
call fcn.0046fc30
add esp, 0xc
call fcn.0041cdd0
mov ecx, eax
test ecx, ecx
je 0x42d619
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.0042bef0
test al, al
lea eax, [ebp - 0x848]
je 0x42d111
push str.UtilsSWriterSDrv_x64.sys
jmp 0x42d116
push str.UtilsSWriterSDrv.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 0x42d151
push str.SWriterSDrvs
call fcn.00431900
push str.SWriterSDrvs
call fcn.00434410
push str.SWriterSDrvs
call fcn.00434060
add esp, 8
push str.SmartWriterSvc
call fcn.00434410
push str.SmartWriterSvc
call fcn.00434060
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 0x42d18a
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
push str.remove_desktop_shortcuts
call fcn.004224b0
push 0x800
lea eax, [ebp - 0xe38]
push 0
push eax
call fcn.0046fc30
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.0042b400
push 0x800
lea eax, [ebp - 0x1638]
push 0
push eax
call fcn.0046fc30
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.0042b400
push 6
mov ecx, edi
call fcn.0042c050
push str.remove_start_menu_shortcuts
call fcn.004224b0
push 0x800
lea eax, [ebp - 0x1638]
push 0
push eax
call fcn.0046fc30
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.0046fc30
add esp, 0xc
lea eax, [ebp - 0x1638]
push 0x50326c
push eax
lea eax, [ebp - 0xe38]
push eax
call dword [sym.imp.SHLWAPI.dll_PathCombineW]
lea eax, [ebp - 0xe38]
push eax
call fcn.0042e3a0
add esp, 4
mov ecx, edi
push 7
call fcn.0042c050
push str.remove_appdata
call fcn.004224b0
push 0x800
lea eax, [ebp - 0x1638]
push 0
push eax
call fcn.0046fc30
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.0046fc30
add esp, 0xc
lea eax, [ebp - 0x1638]
push 0x502e8c
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 0x42d2fd
lea eax, [ebp - 0x844]
push eax
call fcn.0042e3a0
add esp, 4
push 8
mov ecx, edi
call fcn.0042c050
push str.remove_autorun
call fcn.004224b0
add esp, 4
lea ecx, [ebp - 0x1639]
call fcn.00433470
push dword [edi + 8]
lea ecx, [ebp - 0x1639]
mov dword [ebp - 4], 7
call fcn.00433780
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.004224b0
mov eax, dword [ebp - 0x1644]
lea ecx, [ebp - 0x1639]
add esp, 0xc
push dword [eax]
call fcn.00433690
mov esi, eax
call edi
push eax
push esi
push str.Delete_AutoRun:_d__err:_u
call fcn.004224b0
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 0x42d3a5
push str.SmartWriterTray
push dword [ebp - 0x1648]
call dword [sym.imp.ADVAPI32.dll_RegDeleteValueW]
lea ecx, [ebp - 0x1639]
mov dword [ebp - 4], 0xffffffff
call fcn.00433480
mov edi, dword [ebp - 0x164c]
mov ecx, edi
push 9
call fcn.0042c050
mov esi, dword [sym.imp.SHLWAPI.dll_SHDeleteKeyW]
push str.SOFTWAREMicrosoftWindowsCurrentVersionUninstallSmartWriter
push reloc.OLEAUT32.dll_SysReAllocString
call esi
cmp byte [edi + 0x98], 0
je 0x42d3ed
push str.SOFTWAREMicrosoftWindowsCurrentVersionUninstallSmartWriterLenovo
push reloc.OLEAUT32.dll_SysReAllocString
call esi
push str.Delete_uninstall_registry
call fcn.004224b0
push dword [edi + 8]
push str.start_delete_all_files_in__s
call fcn.004224b0
add esp, 0xc
mov ecx, edi
push dword [edi + 8]
call fcn.0042c230
push dword [edi + 8]
push str.end_delete_all_files_in__s
call fcn.004224b0
push str..tmp
push dword [edi + 8]
call fcn.0042e040
add esp, 0x10
mov ecx, edi
push 0x62
call fcn.0042c050
push str.start_create_runonce_bat
call fcn.004224b0
push dword [edi + 8]
lea eax, [edi + 0xc]
push eax
call fcn.0041f6e0
add esp, 0xc
mov ecx, edi
push 0x63
call fcn.0042c050
push 0x208
lea eax, [ebp - 0x628]
push 0
push eax
call fcn.0046fc30
add esp, 0xc
lea eax, [ebp - 0x628]
push str.SmartWriter.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.0041cdd0
mov ecx, eax
test ecx, ecx
je 0x42d623
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.00406e30
test al, al
jne 0x42d4f7
lea ecx, [ebp - 0x628]
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x42d4d5
sub ecx, edx
lea eax, [ebp - 0x628]
sar ecx, 1
push ecx
push eax
lea ecx, [ebp - 0x1640]
call fcn.00408980
mov dword [ebp - 4], 9
call fcn.0041cdd0
mov ecx, eax
test ecx, ecx
je 0x42d62d
mov eax, dword [ecx]
mov eax, dword [eax + 0xc]
call eax
add eax, 0x10
mov dword [ebp - 0x1644], eax
push 0x502e8c
lea ecx, [ebp - 0x1644]
mov byte [ebp - 4], 0xa
call fcn.00406e30
test al, al
jne 0x42d547
push 0xb
push 0x502e8c
lea ecx, [ebp - 0x1644]
call fcn.00408980
mov esi, dword [ebp - 0x1644]
lea ecx, [ebp - 0x1639]
push esi
push dword [ebp - 0x1640]
mov byte [ebp - 4], 0xb
call fcn.0042bc90
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 0x42d581
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 0x42d5a3
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
push 0x64
mov ecx, edi
call fcn.0042c050
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], 0x42c140
mov dword [ebp - 0x1650], edi
lea eax, [ebp - 0x1658]
mov dword [ebp - 4], 0xc
push eax
call fcn.0041d100
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.004455da
mov esp, ebp
pop ebp
ret 8
push 0x80004005
call fcn.00403b30
push 0x80004005
call fcn.00403b30
push 0x80004005
call fcn.00403b30
push 0x80004005
call fcn.00403b30
push 0x80004005
call fcn.00403b30
push 0x80004005
call fcn.00403b30
int3