Function at 0x494e80
Capabilities:
Delete registry key

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x59cec8
mov eax, dword fs:[0]
push eax
sub esp, 0x28
push ebx
push esi
push edi
mov eax, dword [0x62819c]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x14], 0
mov eax, dword fs:[0x2c]
mov ecx, dword [0x633954]
mov ecx, dword [eax + ecx*4]
mov eax, dword [0x631ae8]
cmp eax, dword [ecx + 4]
jg 0x49501b
mov eax, dword [0x631ae0]
mov edi, dword [0x631adc]
mov dword [ebp - 0x20], eax
cmp edi, eax
je 0x494fff
mov eax, dword [edi]
sub eax, 0x10
push eax
call fcn.004293f0
add esp, 4
lea esi, [eax + 0x10]
mov dword [ebp - 0x24], esi
mov eax, dword [str.SoftwareClassesApplications_]
mov dword [ebp - 4], 5
mov dword [ebp - 0x1c], eax
mov ecx, dword [esi - 0x10]
lea ebx, [esi - 0x10]
mov byte [ebp - 4], 6
test ecx, ecx
je 0x494f1f
mov eax, dword [ecx]
call dword [eax + 0x10]
test eax, eax
jne 0x494f33
call fcn.00428a90
mov ecx, eax
mov edx, dword [eax]
call dword [edx + 0x10]
test eax, eax
je 0x495011
mov edx, dword [eax]
mov ecx, eax
call dword [edx + 0xc]
or dword [ebp - 0x14], 1
add eax, 0x10
mov edx, dword [ebp - 0x1c]
mov dword [ebp - 0x18], eax
test edx, edx
jne 0x494f4f
xor eax, eax
jmp 0x494f67
mov eax, edx
lea ecx, [eax + 2]
mov dword [ebp - 0x1c], ecx
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x494f57
sub eax, dword [ebp - 0x1c]
sar eax, 1
push dword [esi - 0xc]
push esi
push eax
push edx
lea eax, [ebp - 0x18]
push eax
call fcn.0042ae30
mov esi, dword [ebp - 0x18]
add esp, 0x14
push esi
push 0x80000001
call dword [sym.imp.ADVAPI32.dll_RegDeleteTreeW]
test eax, eax
setne byte [ebp - 0xd]
and dword [ebp - 0x14], 0xfffffffe
mov byte [ebp - 4], 5
add esi, 0xfffffff0
or eax, 0xffffffff
lock xadd dword [esi + 0xc], eax
dec eax
test eax, eax
jg 0x494fae
mov ecx, dword [esi]
push esi
mov eax, dword [ecx]
call dword [eax + 4]
cmp byte [ebp - 0xd], 0
je 0x494fd7
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push str.3459_tKUninstall::_DelRegedApplications_tdel_reged_app_id_failed__err_code:__lu
push str.H:_rc_v11_i18n_20230711_branchCoding_support_newsetup_srccommonappKUninstallKUninstall.cpp
push str._ERROR_
push 0x631888
call fcn.004677c0
add esp, 0x14
mov dword [ebp - 4], 0xffffffff
or eax, 0xffffffff
lock xadd dword [ebx + 0xc], eax
dec eax
test eax, eax
jg 0x494ff3
mov ecx, dword [ebx]
push ebx
mov eax, dword [ecx]
call dword [eax + 4]
add edi, 4
cmp edi, dword [ebp - 0x20]
jne 0x494ee5
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
push 0x80004005
call fcn.004293d0
push 0x631ae8
call fcn.00546388
add esp, 4
cmp dword [0x631ae8], 0xffffffff
jne 0x494ecf
push 0x5b9690
lea ecx, [ebp - 0x28]
mov dword [ebp - 4], 0
call fcn.004434e0
push str.wpspdf.exe
lea ecx, [ebp - 0x24]
mov byte [ebp - 4], 1
call fcn.004434e0
push 2
mov ecx, 0x631adc
mov byte [ebp - 4], 2
mov dword [0x631adc], 0
mov dword [0x631ae0], 0
mov dword [0x631ae4], 0
call fcn.0042d9e0
mov esi, eax
mov dword [ebp - 0x20], 0x631adc
mov dword [0x631adc], esi
mov dword [0x631ae0], esi
lea ecx, [esi + 8]
mov dword [0x631ae4], ecx
lea edi, [ebp - 0x28]
mov dword [ebp - 0x34], esi
mov dword [ebp - 0x30], esi
mov dword [ebp - 0x2c], 0x631adc
mov byte [ebp - 4], 4
jmp 0x4950c0
mov eax, dword [edi]
sub eax, 0x10
push eax
call fcn.004293f0
add eax, 0x10
add edi, 4
mov dword [esi], eax
add esp, 4
add esi, 4
lea eax, [ebp - 0x20]
mov dword [ebp - 0x30], esi
cmp edi, eax
jne 0x4950c0
push fcn.00428fc0
push 2
push 4
lea eax, [ebp - 0x28]
mov dword [0x631ae0], esi
push eax
mov byte [ebp - 4], 0
call fcn.00545eff
push 0x5a9770
call fcn.0054669a
push 0x631ae8
mov dword [ebp - 4], 0xffffffff
call fcn.0054633e
add esp, 8
jmp 0x494ecf