Function at 0x4a7fe9
Capabilities:
Delete registry value

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x2260
call fcn.004b3cc0
mov eax, dword [0x6a9a60]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
mov eax, ecx
xor ebx, ebx
mov ecx, dword [ebp + 0xc]
and dword [ebp - 0x2224], ebx
and dword [ebp - 0x2220], ebx
push edi
mov edi, dword [ebp + 8]
mov dword [ebp - 0x2218], ecx
mov ecx, eax
push edi
mov dword [ebp - 0x2210], eax
mov dword [ebp - 0x2228], ebx
call fcn.004a26c1
mov esi, eax
test esi, esi
js 0x4a8627
jmp 0x4a85d8
push str.Delete
push edi
mov dword [ebp - 0x2214], 1
call dword [sym.imp.KERNEL32.dll_lstrcmpiW]
neg eax
push 0x698738
sbb esi, esi
inc esi
push edi
mov dword [ebp - 0x221c], esi
call dword [sym.imp.KERNEL32.dll_lstrcmpiW]
test eax, eax
je 0x4a807b
test esi, esi
je 0x4a8140
mov ecx, dword [ebp - 0x2210]
push edi
call fcn.004a26c1
mov esi, eax
test esi, esi
js 0x4a861c
cmp dword [ebp + 0x10], 0
je 0x4a8140
and dword [ebp - 0x2244], 0
and dword [ebp - 0x223c], 0
push 0x5c
push edi
call fcn.004ac256
pop ecx
pop ecx
test eax, eax
jne 0x4a8617
mov esi, dword [ebp - 0x2210]
mov ecx, esi
push edi
call fcn.0049844f
test eax, eax
je 0x4a80fa
mov eax, dword [ebp - 0x2218]
lea ecx, [ebp - 0x2244]
and dword [ebp - 0x2240], 0
push edi
mov dword [ebp - 0x2244], eax
call fcn.0042f9db
and dword [ebp - 0x2244], 0
and dword [ebp - 0x223c], 0
cmp dword [ebp - 0x221c], 0
je 0x4a8137
push edi
mov ecx, esi
call fcn.004a26c1
mov esi, eax
test esi, esi
js 0x4a861c
mov ecx, dword [ebp - 0x2210]
push edi
call fcn.004abecc
mov esi, eax
test esi, esi
js 0x4a861c
and dword [ebp - 0x2240], 0
jmp 0x4a83c0
and dword [ebp - 0x2240], 0
jmp 0x4a8146
mov esi, dword [ebp - 0x2210]
push str.NoRemove
push edi
call dword [sym.imp.KERNEL32.dll_lstrcmpiW]
test eax, eax
jne 0x4a816e
and dword [ebp - 0x2214], eax
mov ecx, esi
push edi
call fcn.004a26c1
mov esi, eax
test esi, esi
js 0x4a861c
push 0x698730
push edi
call dword [sym.imp.KERNEL32.dll_lstrcmpiW]
test eax, eax
jne 0x4a82b4
mov ecx, dword [ebp - 0x2210]
lea eax, [ebp - 0x220c]
push eax
call fcn.004a26c1
mov esi, eax
test esi, esi
js 0x4a861c
mov ecx, dword [ebp - 0x2210]
push edi
call fcn.004a26c1
mov esi, eax
test esi, esi
js 0x4a861c
push 0x3d
pop eax
cmp word [edi], ax
jne 0x4a8617
cmp dword [ebp + 0x10], 0
je 0x4a821d
mov eax, dword [ebp - 0x2218]
mov ecx, dword [ebp - 0x2210]
and dword [ebp - 0x224c], 0
and dword [ebp - 0x2248], 0
mov dword [ebp - 0x2250], eax
lea eax, [ebp - 0x220c]
push edi
push eax
lea eax, [ebp - 0x2250]
push eax
call fcn.00497891
mov esi, eax
xor eax, eax
mov dword [ebp - 0x2250], eax
mov dword [ebp - 0x2248], eax
test esi, esi
js 0x4a861c
mov dword [ebp - 0x224c], eax
jmp 0x4a83c0
cmp dword [ebp + 0x14], 0
jne 0x4a8299
cmp dword [ebp - 0x2214], 0
je 0x4a8299
xor eax, eax
lea ecx, [ebp - 0x2234]
push 0x20006
push eax
push dword [ebp - 0x2218]
mov dword [ebp - 0x2234], eax
mov dword [ebp - 0x2230], eax
mov dword [ebp - 0x222c], eax
call fcn.00402130
test eax, eax
jne 0x4a85e6
mov esi, dword [ebp - 0x2234]
lea eax, [ebp - 0x220c]
push eax
push esi
call dword [sym.imp.ADVAPI32.dll_RegDeleteValueW]
test eax, eax
je 0x4a8280
cmp eax, 2
jne 0x4a85e6
test esi, esi
je 0x4a8292
push esi
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
and dword [ebp - 0x2234], 0
and dword [ebp - 0x2230], 0
mov ecx, dword [ebp - 0x2210]
push edi
call fcn.004abecc
mov esi, eax
test esi, esi
js 0x4a861c
jmp 0x4a85d8
push 0x5c
push edi
call fcn.004ac256
pop ecx
pop ecx
test eax, eax
jne 0x4a8617
cmp dword [ebp + 0x10], eax
je 0x4a840a
mov ebx, dword [ebp - 0x2218]
lea ecx, [ebp - 0x2228]
push 0x2001f
push edi
push ebx
call fcn.00402130
test eax, eax
je 0x4a8377
push 0x20019
push edi
push ebx
lea ecx, [ebp - 0x2228]
call fcn.00402130
test eax, eax
je 0x4a8377
mov ecx, dword [ebp - 0x2220]
lea eax, [ebp - 0x2254]
push eax
xor esi, esi
lea eax, [ebp - 0x2214]
mov dword [ebp - 0x2214], esi
push eax
push esi
push 0x2001f
push esi
push esi
push esi
push edi
push ebx
test ecx, ecx
je 0x4a8337
call fcn.004020a0
jmp 0x4a833d
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExW]
test eax, eax
jne 0x4a8606
mov eax, esi
cmp dword [ebp - 0x2228], eax
je 0x4a835b
push dword [ebp - 0x2228]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov ebx, dword [ebp - 0x2214]
mov dword [ebp - 0x2228], ebx
mov dword [ebp - 0x2224], esi
test eax, eax
jne 0x4a860c
jmp 0x4a837d
mov ebx, dword [ebp - 0x2228]
mov ecx, dword [ebp - 0x2210]
push edi
call fcn.004a26c1
mov esi, eax
test esi, esi
js 0x4a861c
push 0x3d
pop eax
cmp word [edi], ax
jne 0x4a83c0
mov ecx, dword [ebp - 0x2210]
lea eax, [ebp - 0x2228]
push edi
push 0
push eax
call fcn.00497891
mov ebx, dword [ebp - 0x2228]
mov esi, eax
test esi, esi
js 0x4a861c
push 0x7b
pop eax
cmp word [edi], ax
jne 0x4a85d8
push edi
call dword [sym.imp.api_ms_win_crt_string_l1_1_0.dll_wcslen]
pop ecx
cmp eax, 1
jne 0x4a85d8
mov ecx, dword [ebp - 0x2210]
push 0
push dword [ebp + 0x10]
push ebx
push edi
call fcn.004a7fe9
mov esi, eax
test esi, esi
js 0x4a861c
mov ecx, dword [ebp - 0x2210]
push edi
call fcn.004a26c1
jmp 0x4a82a5
cmp dword [ebp + 0x14], 0
jne 0x4a842f
push 0x20019
push edi
push dword [ebp - 0x2218]
lea ecx, [ebp - 0x2228]
call fcn.00402130
mov ebx, dword [ebp - 0x2228]
jmp 0x4a8432
push 2
pop eax
xor ecx, ecx
mov dword [ebp - 0x221c], eax
push 0xffffffffffffffff
inc ecx
test eax, eax
push edi
cmove ecx, dword [ebp + 0x14]
lea eax, [ebp - 0x20c]
push 0x104
push eax
mov dword [ebp - 0x2238], ecx
call dword [sym.imp.api_ms_win_crt_string_l1_1_0.dll_wcsncpy_s]
push eax
call fcn.00401ef0
mov ecx, dword [ebp - 0x2210]
add esp, 0x14
push edi
call fcn.004a26c1
mov esi, eax
test esi, esi
js 0x4a861c
mov ecx, dword [ebp - 0x2210]
push edi
call fcn.004abecc
mov esi, eax
test esi, esi
js 0x4a861c
push 0x7b
pop eax
cmp word [edi], ax
jne 0x4a84e4
push edi
call dword [sym.imp.api_ms_win_crt_string_l1_1_0.dll_wcslen]
pop ecx
cmp eax, 1
jne 0x4a84e4
push dword [ebp - 0x2238]
mov ecx, dword [ebp - 0x2210]
push 0
push ebx
push edi
call fcn.004a7fe9
mov esi, eax
test esi, esi
jns 0x4a84ce
cmp dword [ebp - 0x2238], 0
je 0x4a861c
mov ecx, dword [ebp - 0x2210]
push edi
call fcn.004a26c1
mov esi, eax
test esi, esi
js 0x4a861c
mov eax, dword [ebp - 0x221c]
cmp eax, 2
je 0x4a85d8
test eax, eax
je 0x4a8506
cmp dword [ebp + 0x14], 0
je 0x4a860c
jmp 0x4a85d8
cmp dword [ebp + 0x14], 0
je 0x4a855d
mov ecx, dword [ebp - 0x2210]
push ebx
call fcn.004a03a3
test eax, eax
je 0x4a855d
mov ecx, dword [ebp - 0x2210]
lea eax, [ebp - 0x20c]
push eax
call fcn.0049844f
test eax, eax
je 0x4a85d8
cmp dword [ebp - 0x2214], 0
je 0x4a85d8
lea eax, [ebp - 0x20c]
push eax
lea ecx, [ebp - 0x2228]
call fcn.0042f9db
mov ebx, dword [ebp - 0x2228]
jmp 0x4a85d8
mov ecx, dword [ebp - 0x2210]
push ebx
call fcn.004a03a3
mov ecx, eax
xor eax, eax
mov dword [ebp - 0x221c], ecx
test ebx, ebx
je 0x4a858c
push ebx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov ecx, dword [ebp - 0x221c]
xor ebx, ebx
mov dword [ebp - 0x2228], ebx
and dword [ebp - 0x2224], 0
test eax, eax
jne 0x4a860c
cmp dword [ebp - 0x2214], eax
je 0x4a85d8
test ecx, ecx
jne 0x4a85d8
mov eax, dword [ebp - 0x2218]
and dword [ebp - 0x225c], ecx
and dword [ebp - 0x2258], ecx
lea ecx, [ebp - 0x2260]
mov dword [ebp - 0x2260], eax
lea eax, [ebp - 0x20c]
push eax
call fcn.0042f962
and dword [ebp - 0x2260], 0
test eax, eax
jne 0x4a860c
push 0x7d
pop eax
cmp word [edi], ax
jne 0x4a8042
jmp 0x4a861c
push eax
call fcn.004982f9
cmp dword [ebp - 0x2234], 0
mov esi, eax
pop ecx
je 0x4a861c
push dword [ebp - 0x2234]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
jmp 0x4a861c
mov ebx, dword [ebp - 0x2228]
push eax
call fcn.004982f9
pop ecx
mov esi, eax
jmp 0x4a861c
mov esi, 0x80020009
test ebx, ebx
je 0x4a8627
push ebx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov ecx, dword [ebp - 4]
mov eax, esi
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.004b3004
leave
ret 0x10