Function at 0x49e860
Capabilities:
Delete registry key

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x5a667d
mov eax, dword fs:[0]
push eax
sub esp, 0x2c
push esi
push edi
mov eax, dword [0x639354]
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 [0x643da0]
mov ecx, dword [eax + ecx*4]
mov eax, dword [0x641f58]
cmp eax, dword [ecx + 4]
jg 0x49ea08
mov eax, dword [0x641f50]
mov edi, dword [0x641f4c]
mov dword [ebp - 0x24], eax
cmp edi, eax
je 0x49e9ed
mov eax, dword [edi]
sub eax, 0x10
push eax
call fcn.00429b80
add esp, 4
lea esi, [eax + 0x10]
mov dword [ebp - 0x28], esi
mov eax, dword [str.SoftwareClassesApplications_]
mov dword [ebp - 4], 5
mov dword [ebp - 0x18], eax
mov ecx, dword [esi - 0x10]
lea eax, [esi - 0x10]
mov dword [ebp - 0x20], eax
test ecx, ecx
je 0x49e901
mov eax, dword [ecx]
mov eax, dword [eax + 0x10]
call eax
mov ecx, eax
test ecx, ecx
jne 0x49e911
call fcn.00429250
mov ecx, eax
mov edx, dword [eax]
mov eax, dword [edx + 0x10]
call eax
mov ecx, eax
mov byte [ebp - 4], 7
test ecx, ecx
je 0x49e9fe
mov eax, dword [ecx]
mov eax, dword [eax + 0xc]
call eax
or dword [ebp - 0x14], 1
add eax, 0x10
mov dword [ebp - 0x1c], eax
mov eax, dword [ebp - 0x18]
mov byte [ebp - 4], 6
test eax, eax
je 0x49e94f
lea edx, [eax + 2]
lea esp, [esp]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x49e940
sub eax, edx
sar eax, 1
push dword [esi - 0xc]
push esi
push eax
mov eax, dword [ebp - 0x18]
push eax
lea eax, [ebp - 0x1c]
push eax
call fcn.0042b6f0
mov esi, dword [ebp - 0x1c]
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 0x49e999
mov ecx, dword [esi]
push esi
mov eax, dword [ecx]
call dword [eax + 4]
cmp byte [ebp - 0xd], 0
je 0x49e9c2
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push str.3776_tKUninstall::_DelRegedApplications_tdel_reged_app_id_failed__err_code:__lu
push str.D:pub_bh8h_rc_bug_mas_v12_2409Coding_support_newsetup_srccommonappKUninstallKUninstall.cpp
push str._ERROR_
push 0x641cc8
call fcn.0046b730
add esp, 0x14
mov edx, dword [ebp - 0x20]
or eax, 0xffffffff
mov dword [ebp - 4], 0xffffffff
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x49e9e1
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
add edi, 4
cmp edi, dword [ebp - 0x24]
jne 0x49e8c4
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov esp, ebp
pop ebp
ret
push 0x80004005
call fcn.00429b60
push 0x641f58
call fcn.0055c868
add esp, 4
cmp dword [0x641f58], 0xffffffff
jne 0x49e8ae
push 0x5c3424
lea ecx, [ebp - 0x2c]
mov dword [ebp - 4], 0
call fcn.004444c0
push str.wpspdf.exe
lea ecx, [ebp - 0x28]
mov byte [ebp - 4], 1
call fcn.004444c0
push 2
mov ecx, 0x641f4c
mov byte [ebp - 4], 2
mov dword [0x641f4c], 0
mov dword [0x641f50], 0
mov dword [0x641f54], 0
call fcn.0042e270
mov esi, eax
mov dword [ebp - 0x24], 0x641f4c
mov dword [0x641f4c], esi
mov dword [0x641f50], esi
lea ecx, [esi + 8]
mov dword [0x641f54], ecx
lea edi, [ebp - 0x2c]
mov dword [ebp - 0x38], esi
mov dword [ebp - 0x34], esi
mov dword [ebp - 0x30], 0x641f4c
mov byte [ebp - 4], 4
jmp 0x49eab0
mov eax, dword [edi]
sub eax, 0x10
push eax
call fcn.00429b80
add eax, 0x10
add edi, 4
mov dword [esi], eax
add esp, 4
add esi, 4
lea eax, [ebp - 0x24]
mov dword [ebp - 0x34], esi
cmp edi, eax
jne 0x49eab0
push fcn.004296c0
push 2
push 4
lea eax, [ebp - 0x2c]
mov dword [0x641f50], esi
push eax
mov byte [ebp - 4], 0
call fcn.0055c3df
push 0x5b4910
call fcn.0055cb7a
push 0x641f58
mov dword [ebp - 4], 0xffffffff
call fcn.0055c81e
add esp, 8
jmp 0x49e8ae