Function at 0x4a6af1
Capabilities:
Delete registry value

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x5507a3
mov eax, dword fs:[0]
push eax
mov eax, 0x2258
call fcn.00536760
mov eax, dword [0x5f931c]
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, ecx
mov eax, dword [ebp + 0xc]
mov edi, dword [ebp + 8]
mov dword [ebp - 0x221c], eax
xor eax, eax
mov dword [ebp - 0x2230], eax
mov dword [ebp - 0x222c], eax
mov dword [ebp - 0x2228], eax
mov dword [ebp - 4], eax
push edi
mov ecx, ebx
call fcn.004a6295
mov esi, eax
test esi, esi
js 0x4a707f
push 0x7d
pop eax
cmp word [edi], ax
je 0x4a707f
xor eax, eax
push 0x559f74
inc eax
push edi
mov dword [ebp - 0x2224], eax
call dword [sym.imp.KERNEL32.dll_lstrcmpiW]
neg eax
push 0x559f48
sbb esi, esi
inc esi
push edi
mov dword [ebp - 0x2220], esi
call dword [sym.imp.KERNEL32.dll_lstrcmpiW]
test eax, eax
je 0x4a6b9e
test esi, esi
je 0x4a6c5e
push edi
mov ecx, ebx
call fcn.004a6295
mov esi, eax
test esi, esi
js 0x4a707f
xor esi, esi
cmp dword [ebp + 0x10], esi
je 0x4a6c60
push 0x5c
push edi
mov dword [ebp - 0x223c], esi
mov dword [ebp - 0x2238], esi
mov dword [ebp - 0x2234], esi
call fcn.004a7294
pop ecx
pop ecx
test eax, eax
jne 0x4a706f
push edi
mov ecx, ebx
call fcn.004a5daf
test eax, eax
je 0x4a6c15
mov eax, dword [ebp - 0x221c]
lea ecx, [ebp - 0x223c]
push edi
mov dword [ebp - 0x223c], eax
call fcn.00492a9c
mov dword [ebp - 0x223c], esi
mov dword [ebp - 0x2238], esi
mov dword [ebp - 0x2234], esi
cmp dword [ebp - 0x2220], esi
je 0x4a6c51
push edi
mov ecx, ebx
call fcn.004a6295
mov esi, eax
test esi, esi
js 0x4a7067
push edi
mov ecx, ebx
call fcn.004a720d
lea ecx, [ebp - 0x223c]
mov esi, eax
call fcn.004056f5
test esi, esi
js 0x4a707f
jmp 0x4a7022
lea ecx, [ebp - 0x223c]
call fcn.004056f5
jmp 0x4a6c60
xor esi, esi
push str.NoRemove
push edi
call dword [sym.imp.KERNEL32.dll_lstrcmpiW]
test eax, eax
jne 0x4a6c88
push edi
mov ecx, ebx
mov dword [ebp - 0x2224], esi
call fcn.004a6295
mov esi, eax
test esi, esi
js 0x4a707f
push 0x559f40
push edi
call dword [sym.imp.KERNEL32.dll_lstrcmpiW]
test eax, eax
jne 0x4a6db4
lea eax, [ebp - 0x2218]
mov ecx, ebx
push eax
call fcn.004a6295
mov esi, eax
test esi, esi
js 0x4a707f
push edi
mov ecx, ebx
call fcn.004a6295
mov esi, eax
test esi, esi
js 0x4a707f
push 0x3d
pop eax
cmp word [edi], ax
jne 0x4a707a
cmp dword [ebp + 0x10], 0
je 0x4a6d3a
and dword [ebp - 0x2248], 0
xor eax, eax
and dword [ebp - 0x2244], 0
inc eax
mov byte [ebp - 4], al
mov ecx, ebx
mov eax, dword [ebp - 0x221c]
mov dword [ebp - 0x224c], eax
lea eax, [ebp - 0x2218]
push edi
push eax
lea eax, [ebp - 0x224c]
push eax
call fcn.004a5828
mov esi, eax
lea ecx, [ebp - 0x224c]
xor eax, eax
mov dword [ebp - 0x224c], eax
mov dword [ebp - 0x2248], eax
mov dword [ebp - 0x2244], eax
test esi, esi
js 0x4a70b7
mov byte [ebp - 4], al
jmp 0x4a701d
cmp dword [ebp + 0x14], 0
jne 0x4a6da7
cmp dword [ebp - 0x2224], 0
je 0x4a6da7
xor eax, eax
lea ecx, [ebp - 0x2258]
push 0x20006
push eax
push dword [ebp - 0x221c]
mov dword [ebp - 0x2258], eax
mov dword [ebp - 0x2254], eax
mov dword [ebp - 0x2250], eax
call fcn.004062ba
test eax, eax
jne 0x4a70a8
lea eax, [ebp - 0x2218]
push eax
push dword [ebp - 0x2258]
call dword [sym.imp.ADVAPI32.dll_RegDeleteValueW]
test eax, eax
je 0x4a6d9c
cmp eax, 2
jne 0x4a70a8
lea ecx, [ebp - 0x2258]
call fcn.004056f5
push edi
mov ecx, ebx
call fcn.004a720d
jmp 0x4a6b50
push 0x5c
push edi
call fcn.004a7294
pop ecx
pop ecx
test eax, eax
jne 0x4a707a
cmp dword [ebp + 0x10], eax
je 0x4a6e57
mov esi, dword [ebp - 0x221c]
lea ecx, [ebp - 0x2230]
push 0x2001f
push edi
push esi
call fcn.004062ba
test eax, eax
je 0x4a6e21
push 0x20019
push edi
push esi
lea ecx, [ebp - 0x2230]
call fcn.004062ba
test eax, eax
je 0x4a6e21
xor eax, eax
lea ecx, [ebp - 0x2230]
push eax
push eax
push 0x2001f
push eax
push eax
push edi
push esi
call fcn.00492621
test eax, eax
jne 0x4a6f3f
push edi
mov ecx, ebx
call fcn.004a6295
mov esi, eax
test esi, esi
js 0x4a707f
push 0x3d
pop eax
cmp word [edi], ax
jne 0x4a7022
push edi
push 0
lea eax, [ebp - 0x2230]
mov ecx, ebx
push eax
call fcn.004a5828
mov esi, eax
jmp 0x4a6c44
cmp dword [ebp + 0x14], 0
jne 0x4a6e76
push 0x20019
push edi
push dword [ebp - 0x221c]
lea ecx, [ebp - 0x2230]
call fcn.004062ba
jmp 0x4a6e79
push 2
pop eax
mov ecx, dword [ebp + 0x14]
test eax, eax
push 1
mov dword [ebp - 0x2220], eax
pop eax
push 0xffffffffffffffff
cmovne ecx, eax
lea eax, [ebp - 0x218]
push edi
push 0x104
push eax
mov dword [ebp - 0x2240], ecx
call dword [sym.imp.api_ms_win_crt_string_l1_1_0.dll_wcsncpy_s]
push eax
call fcn.00405360
add esp, 0x14
mov ecx, ebx
push edi
call fcn.004a6295
mov esi, eax
test esi, esi
js 0x4a707f
push edi
mov ecx, ebx
call fcn.004a720d
mov esi, eax
test esi, esi
js 0x4a707f
push 0x7b
pop eax
cmp word [edi], ax
jne 0x4a6f22
push edi
call dword [sym.imp.api_ms_win_crt_string_l1_1_0.dll_wcslen]
pop ecx
cmp eax, 1
jne 0x4a6f22
push dword [ebp - 0x2240]
mov ecx, ebx
push 0
push dword [ebp - 0x2230]
push edi
call fcn.004a6af1
mov esi, eax
test esi, esi
jns 0x4a6f10
cmp dword [ebp - 0x2240], 0
je 0x4a707f
push edi
mov ecx, ebx
call fcn.004a6295
mov esi, eax
test esi, esi
js 0x4a707f
mov eax, dword [ebp - 0x2220]
cmp eax, 2
je 0x4a6b5a
test eax, eax
je 0x4a6f4d
cmp dword [ebp + 0x14], 0
jne 0x4a6b5a
push eax
call fcn.004a5d9a
pop ecx
mov esi, eax
jmp 0x4a707f
cmp dword [ebp + 0x14], 0
je 0x4a6f9e
push dword [ebp - 0x2230]
mov ecx, ebx
call fcn.004a6134
test eax, eax
je 0x4a6f9e
lea eax, [ebp - 0x218]
mov ecx, ebx
push eax
call fcn.004a5daf
test eax, eax
je 0x4a6b5a
cmp dword [ebp - 0x2224], 0
je 0x4a6b5a
lea eax, [ebp - 0x218]
push eax
lea ecx, [ebp - 0x2230]
call fcn.00492a9c
jmp 0x4a6b5a
push dword [ebp - 0x2230]
mov ecx, ebx
call fcn.004a6134
lea ecx, [ebp - 0x2230]
mov dword [ebp - 0x2220], eax
call fcn.004056f5
test eax, eax
jne 0x4a6f3f
cmp dword [ebp - 0x2224], eax
je 0x4a6b5a
cmp dword [ebp - 0x2220], eax
jne 0x4a6b5a
mov eax, dword [ebp - 0x221c]
lea ecx, [ebp - 0x2264]
and dword [ebp - 0x2260], 0
and dword [ebp - 0x225c], 0
mov dword [ebp - 0x2264], eax
lea eax, [ebp - 0x218]
push eax
call fcn.00492690
and dword [ebp - 0x2264], 0
test eax, eax
jne 0x4a70be
lea ecx, [ebp - 0x2264]
call fcn.004056f5
cmp dword [ebp + 0x10], 0
je 0x4a6b5a
push 0x7b
pop eax
cmp word [edi], ax
jne 0x4a6b5a
push edi
call dword [sym.imp.api_ms_win_crt_string_l1_1_0.dll_wcslen]
pop ecx
cmp eax, 1
jne 0x4a6b5a
push 0
push dword [ebp + 0x10]
mov ecx, ebx
push dword [ebp - 0x2230]
push edi
call fcn.004a6af1
mov esi, eax
test esi, esi
js 0x4a707f
jmp 0x4a6b48
lea ecx, [ebp - 0x223c]
jmp 0x4a70b7
lea ecx, [ebp - 0x223c]
call fcn.004056f5
mov esi, 0x80020009
lea ecx, [ebp - 0x2230]
call fcn.004056f5
mov eax, esi
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.005364e2
leave
ret 0x10
push eax
call fcn.004a5d9a
pop ecx
lea ecx, [ebp - 0x2258]
mov esi, eax
call fcn.004056f5
jmp 0x4a707f
push eax
call fcn.004a5d9a
pop ecx
lea ecx, [ebp - 0x2264]
jmp 0x4a70b5