Function at 0x49f9a0
Capabilities:
Delete registry value

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x225c
call fcn.004c2000
mov eax, dword [0x53ac84]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
mov eax, ecx
mov dword [ebp - 0x2224], 0
mov ecx, dword [ebp + 0xc]
push edi
mov edi, dword [ebp + 8]
mov dword [ebp - 0x2214], ecx
mov ecx, eax
push edi
mov dword [ebp - 0x2210], eax
mov dword [ebp - 0x2220], 0
mov dword [ebp - 0x221c], 0
call fcn.0049efe0
mov esi, eax
test esi, esi
js 0x4a011e
cmp word [edi], 0x7d
push ebx
je 0x4a010a
jmp 0x49fa10
push str.Delete
push edi
mov dword [ebp - 0x2218], 1
call dword [sym.imp.KERNEL32.dll_lstrcmpiW]
neg eax
push 0x4fbeb4
sbb ebx, ebx
push edi
inc ebx
call dword [sym.imp.KERNEL32.dll_lstrcmpiW]
test eax, eax
je 0x49fa43
test ebx, ebx
je 0x49fb5f
mov ecx, dword [ebp - 0x2210]
push edi
call fcn.0049efe0
mov esi, eax
test esi, esi
js 0x4a010a
cmp dword [ebp + 0x10], 0
je 0x49fb5f
movzx ecx, word [edi]
mov eax, edi
mov dword [ebp - 0x2230], 0
mov dword [ebp - 0x222c], 0
mov dword [ebp - 0x2228], 0
test cx, cx
je 0x49fab1
mov edx, ecx
lea ecx, [ecx]
cmp dx, 0x5c
je 0x49faa9
push eax
call dword [sym.imp.USER32.dll_CharNextW]
movzx ecx, word [eax]
mov edx, ecx
test cx, cx
jne 0x49fa90
jmp 0x49fab1
test eax, eax
jne 0x4a00c8
mov esi, 0x4fbef0
push dword [esi]
push edi
call dword [sym.imp.KERNEL32.dll_lstrcmpiW]
test eax, eax
je 0x49fb18
add esi, 4
cmp esi, 0x4fbf20
jl 0x49fab6
mov eax, dword [ebp - 0x2214]
lea ecx, [ebp - 0x2230]
push edi
mov dword [ebp - 0x2230], eax
mov dword [ebp - 0x222c], 0
mov dword [ebp - 0x2228], 0
call fcn.0049f510
mov dword [ebp - 0x2230], 0
mov dword [ebp - 0x222c], 0
mov dword [ebp - 0x2228], 0
test ebx, ebx
je 0x49fb55
mov ebx, dword [ebp - 0x2210]
mov ecx, ebx
push edi
call fcn.0049efe0
mov esi, eax
test esi, esi
js 0x4a00da
push edi
mov ecx, ebx
call fcn.004a0130
mov esi, eax
test esi, esi
js 0x4a00da
mov dword [ebp - 0x222c], 0
jmp 0x49fe6d
mov dword [ebp - 0x222c], 0
push str.NoRemove
push edi
call dword [sym.imp.KERNEL32.dll_lstrcmpiW]
mov ebx, dword [ebp - 0x2210]
test eax, eax
jne 0x49fb8d
push edi
mov ecx, ebx
mov dword [ebp - 0x2218], eax
call fcn.0049efe0
mov esi, eax
test esi, esi
js 0x4a010a
push 0x4fbeac
push edi
call dword [sym.imp.KERNEL32.dll_lstrcmpiW]
test eax, eax
jne 0x49fcf1
lea eax, [ebp - 0x220c]
mov ecx, ebx
push eax
call fcn.0049efe0
mov esi, eax
test esi, esi
js 0x4a010a
push edi
mov ecx, ebx
call fcn.0049efe0
mov esi, eax
test esi, esi
js 0x4a010a
cmp word [edi], 0x3d
jne 0x4a00d3
cmp dword [ebp + 0x10], 0
je 0x49fc49
mov eax, dword [ebp - 0x2214]
mov ecx, ebx
mov dword [ebp - 0x2250], eax
lea eax, [ebp - 0x220c]
push edi
push eax
lea eax, [ebp - 0x2250]
mov dword [ebp - 0x224c], 0
push eax
mov dword [ebp - 0x2248], 0
call fcn.0049e790
mov esi, eax
mov dword [ebp - 0x2250], 0
mov dword [ebp - 0x224c], 0
mov dword [ebp - 0x2248], 0
test esi, esi
jns 0x49fe6d
lea ecx, [ebp - 0x2250]
call fcn.0049e550
jmp 0x4a010a
cmp dword [ebp + 0x14], 0
jne 0x49fcda
cmp dword [ebp - 0x2218], 0
je 0x49fcda
push 0x20006
push 0
push dword [ebp - 0x2214]
lea ecx, [ebp - 0x2244]
mov dword [ebp - 0x2244], 0
mov dword [ebp - 0x2240], 0
mov dword [ebp - 0x223c], 0
call fcn.0048fe60
test eax, eax
jne 0x4a00e7
mov esi, dword [ebp - 0x2244]
lea eax, [ebp - 0x220c]
push eax
push esi
call dword [sym.imp.ADVAPI32.dll_RegDeleteValueW]
test eax, eax
je 0x49fcbb
cmp eax, 2
jne 0x4a00e7
test esi, esi
je 0x49fcd0
push esi
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov dword [ebp - 0x2244], 0
mov dword [ebp - 0x2240], 0
push edi
mov ecx, ebx
call fcn.004a0130
mov esi, eax
test esi, esi
js 0x4a010a
jmp 0x4a00bc
movzx ecx, word [edi]
mov eax, edi
test cx, cx
je 0x49fd21
mov edx, ecx
lea ecx, [ecx]
cmp dx, 0x5c
je 0x49fd19
push eax
call dword [sym.imp.USER32.dll_CharNextW]
movzx ecx, word [eax]
mov edx, ecx
test cx, cx
jne 0x49fd00
jmp 0x49fd21
test eax, eax
jne 0x4a00d3
cmp dword [ebp + 0x10], 0
je 0x49fecc
mov esi, dword [ebp - 0x2214]
lea ecx, [ebp - 0x2224]
push 0x2001f
push edi
push esi
call fcn.0048fe60
test eax, eax
je 0x49fe3a
push 0x20019
push edi
push esi
lea ecx, [ebp - 0x2224]
call fcn.0048fe60
test eax, eax
je 0x49fe3a
mov esi, dword [ebp - 0x221c]
mov dword [ebp - 0x2218], 0
test esi, esi
je 0x49fddb
cmp dword [esi], 0
je 0x49fdce
push str.Advapi32.dll
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test eax, eax
jne 0x49fd94
mov eax, 1
jmp 0x49fe03
push str.RegCreateKeyTransactedW
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
test eax, eax
je 0x49fdd4
push 0
push dword [esi]
lea ecx, [ebp - 0x2238]
push ecx
lea ecx, [ebp - 0x2218]
push ecx
push 0
push 0x2001f
push 0
push 0
push 0
push edi
push dword [ebp - 0x2214]
call eax
jmp 0x49fe03
cmp dword [esi + 4], 0
jne 0x49fddb
mov eax, 1
jmp 0x49fe03
lea eax, [ebp - 0x2238]
push eax
lea eax, [ebp - 0x2218]
push eax
push 0
push 0x2001f
push 0
push 0
push 0
push edi
push dword [ebp - 0x2214]
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExW]
test eax, eax
jne 0x4a00ff
mov ecx, dword [ebp - 0x2224]
test ecx, ecx
je 0x49fe1c
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov ecx, dword [ebp - 0x2218]
mov dword [ebp - 0x2224], ecx
mov dword [ebp - 0x2220], 0
test eax, eax
jne 0x4a00ff
push edi
mov ecx, ebx
call fcn.0049efe0
mov esi, eax
test esi, esi
js 0x4a010a
cmp word [edi], 0x3d
jne 0x49fe6d
push edi
push 0
lea eax, [ebp - 0x2224]
mov ecx, ebx
push eax
call fcn.0049e790
mov esi, eax
test esi, esi
js 0x4a010a
cmp word [edi], 0x7b
jne 0x4a00bc
mov ecx, edi
lea edx, [ecx + 2]
lea esp, [esp]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x49fe80
sub ecx, edx
sar ecx, 1
cmp ecx, 1
jne 0x4a00bc
push 0
push dword [ebp + 0x10]
mov ecx, ebx
push dword [ebp - 0x2224]
push edi
call fcn.0049f9a0
mov esi, eax
test esi, esi
js 0x4a010a
push edi
mov ecx, ebx
call fcn.0049efe0
mov esi, eax
test esi, esi
js 0x4a010a
jmp 0x4a00bc
mov esi, dword [ebp + 0x14]
test esi, esi
jne 0x49feee
push 0x20019
push edi
push dword [ebp - 0x2214]
lea ecx, [ebp - 0x2224]
call fcn.0048fe60
mov ebx, eax
jmp 0x49fef3
mov ebx, 2
mov dword [ebp - 0x2234], esi
test ebx, ebx
je 0x49ff07
mov dword [ebp - 0x2234], 1
push 0xffffffffffffffff
push edi
lea eax, [ebp - 0x20c]
push 0x104
push eax
call fcn.004d385a
push eax
call fcn.00483960
mov ecx, dword [ebp - 0x2210]
add esp, 0x14
push edi
call fcn.0049efe0
mov esi, eax
test esi, esi
js 0x4a010a
mov ecx, dword [ebp - 0x2210]
push edi
call fcn.004a0130
mov esi, eax
test esi, esi
js 0x4a010a
cmp word [edi], 0x7b
jne 0x49ffb7
mov ecx, edi
lea edx, [ecx + 2]
jmp 0x49ff60
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x49ff60
sub ecx, edx
sar ecx, 1
cmp ecx, 1
jne 0x49ffb7
push dword [ebp - 0x2234]
mov ecx, dword [ebp - 0x2210]
push 0
push dword [ebp - 0x2224]
push edi
call fcn.0049f9a0
mov esi, eax
test esi, esi
jns 0x49ffa1
cmp dword [ebp - 0x2234], 0
je 0x4a010a
mov ecx, dword [ebp - 0x2210]
push edi
call fcn.0049efe0
mov esi, eax
test esi, esi
js 0x4a010a
cmp ebx, 2
je 0x4a00bc
test ebx, ebx
je 0x49ffd4
cmp dword [ebp + 0x14], 0
jne 0x4a00bc
push ebx
jmp 0x4a0100
cmp dword [ebp + 0x14], 0
mov ebx, dword [ebp - 0x2210]
je 0x4a002b
push dword [ebp - 0x2224]
mov ecx, ebx
call fcn.0049ef90
test eax, eax
je 0x4a002b
lea eax, [ebp - 0x20c]
mov ecx, ebx
push eax
call fcn.0049ed50
test eax, eax
je 0x4a00bc
cmp dword [ebp - 0x2218], 0
je 0x4a00bc
lea eax, [ebp - 0x20c]
push eax
lea ecx, [ebp - 0x2224]
call fcn.0049f510
jmp 0x4a00bc
push dword [ebp - 0x2224]
mov ecx, ebx
call fcn.0049ef90
mov ecx, dword [ebp - 0x2224]
mov ebx, eax
xor eax, eax
test ecx, ecx
je 0x4a0055
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
xor ecx, ecx
mov dword [ebp - 0x2224], ecx
mov dword [ebp - 0x2220], 0
test eax, eax
jne 0x4a00ff
cmp dword [ebp - 0x2218], eax
je 0x4a00bc
test ebx, ebx
jne 0x4a00bc
mov eax, dword [ebp - 0x2214]
lea ecx, [ebp - 0x225c]
mov dword [ebp - 0x225c], eax
lea eax, [ebp - 0x20c]
push eax
mov dword [ebp - 0x2258], ebx
mov dword [ebp - 0x2254], ebx
call fcn.0049ee20
lea ecx, [ebp - 0x225c]
mov dword [ebp - 0x225c], 0
mov ebx, eax
call fcn.0049e550
test ebx, ebx
jne 0x49ffce
cmp word [edi], 0x7d
jne 0x49fa10
jmp 0x4a010a
lea ecx, [ebp - 0x2230]
call fcn.0049e550
mov esi, 0x80020009
jmp 0x4a010a
lea ecx, [ebp - 0x2230]
call fcn.0049e550
jmp 0x4a010a
push eax
call fcn.00488740
add esp, 4
lea ecx, [ebp - 0x2244]
mov esi, eax
call fcn.0049e550
jmp 0x4a010a
push eax
call fcn.00488740
add esp, 4
mov esi, eax
mov eax, dword [ebp - 0x2224]
pop ebx
test eax, eax
je 0x4a011c
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, esi
mov ecx, dword [ebp - 4]
pop edi
xor ecx, ebp
pop esi
call fcn.004c1fe9
mov esp, ebp
pop ebp
ret 0x10