Function at 0x49f940
Capabilities:
Delete registry value

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x225c
call fcn.004c20e0
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.0049ef80
mov esi, eax
test esi, esi
js 0x4a00be
cmp word [edi], 0x7d
push ebx
je 0x4a00aa
jmp 0x49f9b0
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 0x49f9e3
test ebx, ebx
je 0x49faff
mov ecx, dword [ebp - 0x2210]
push edi
call fcn.0049ef80
mov esi, eax
test esi, esi
js 0x4a00aa
cmp dword [ebp + 0x10], 0
je 0x49faff
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 0x49fa51
mov edx, ecx
lea ecx, [ecx]
cmp dx, 0x5c
je 0x49fa49
push eax
call dword [sym.imp.USER32.dll_CharNextW]
movzx ecx, word [eax]
mov edx, ecx
test cx, cx
jne 0x49fa30
jmp 0x49fa51
test eax, eax
jne 0x4a0068
mov esi, 0x4fbef0
push dword [esi]
push edi
call dword [sym.imp.KERNEL32.dll_lstrcmpiW]
test eax, eax
je 0x49fab8
add esi, 4
cmp esi, 0x4fbf20
jl 0x49fa56
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.0049f4b0
mov dword [ebp - 0x2230], 0
mov dword [ebp - 0x222c], 0
mov dword [ebp - 0x2228], 0
test ebx, ebx
je 0x49faf5
mov ebx, dword [ebp - 0x2210]
mov ecx, ebx
push edi
call fcn.0049ef80
mov esi, eax
test esi, esi
js 0x4a007a
push edi
mov ecx, ebx
call fcn.004a00d0
mov esi, eax
test esi, esi
js 0x4a007a
mov dword [ebp - 0x222c], 0
jmp 0x49fe0d
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 0x49fb2d
push edi
mov ecx, ebx
mov dword [ebp - 0x2218], eax
call fcn.0049ef80
mov esi, eax
test esi, esi
js 0x4a00aa
push 0x4fbeac
push edi
call dword [sym.imp.KERNEL32.dll_lstrcmpiW]
test eax, eax
jne 0x49fc91
lea eax, [ebp - 0x220c]
mov ecx, ebx
push eax
call fcn.0049ef80
mov esi, eax
test esi, esi
js 0x4a00aa
push edi
mov ecx, ebx
call fcn.0049ef80
mov esi, eax
test esi, esi
js 0x4a00aa
cmp word [edi], 0x3d
jne 0x4a0073
cmp dword [ebp + 0x10], 0
je 0x49fbe9
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.0049e730
mov esi, eax
mov dword [ebp - 0x2250], 0
mov dword [ebp - 0x224c], 0
mov dword [ebp - 0x2248], 0
test esi, esi
jns 0x49fe0d
lea ecx, [ebp - 0x2250]
call fcn.0049e4f0
jmp 0x4a00aa
cmp dword [ebp + 0x14], 0
jne 0x49fc7a
cmp dword [ebp - 0x2218], 0
je 0x49fc7a
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.0048fe10
test eax, eax
jne 0x4a0087
mov esi, dword [ebp - 0x2244]
lea eax, [ebp - 0x220c]
push eax
push esi
call dword [sym.imp.ADVAPI32.dll_RegDeleteValueW]
test eax, eax
je 0x49fc5b
cmp eax, 2
jne 0x4a0087
test esi, esi
je 0x49fc70
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.004a00d0
mov esi, eax
test esi, esi
js 0x4a00aa
jmp 0x4a005c
movzx ecx, word [edi]
mov eax, edi
test cx, cx
je 0x49fcc1
mov edx, ecx
lea ecx, [ecx]
cmp dx, 0x5c
je 0x49fcb9
push eax
call dword [sym.imp.USER32.dll_CharNextW]
movzx ecx, word [eax]
mov edx, ecx
test cx, cx
jne 0x49fca0
jmp 0x49fcc1
test eax, eax
jne 0x4a0073
cmp dword [ebp + 0x10], 0
je 0x49fe6c
mov esi, dword [ebp - 0x2214]
lea ecx, [ebp - 0x2224]
push 0x2001f
push edi
push esi
call fcn.0048fe10
test eax, eax
je 0x49fdda
push 0x20019
push edi
push esi
lea ecx, [ebp - 0x2224]
call fcn.0048fe10
test eax, eax
je 0x49fdda
mov esi, dword [ebp - 0x221c]
mov dword [ebp - 0x2218], 0
test esi, esi
je 0x49fd7b
cmp dword [esi], 0
je 0x49fd6e
push str.Advapi32.dll
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test eax, eax
jne 0x49fd34
mov eax, 1
jmp 0x49fda3
push str.RegCreateKeyTransactedW
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
test eax, eax
je 0x49fd74
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 0x49fda3
cmp dword [esi + 4], 0
jne 0x49fd7b
mov eax, 1
jmp 0x49fda3
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 0x4a009f
mov ecx, dword [ebp - 0x2224]
test ecx, ecx
je 0x49fdbc
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 0x4a009f
push edi
mov ecx, ebx
call fcn.0049ef80
mov esi, eax
test esi, esi
js 0x4a00aa
cmp word [edi], 0x3d
jne 0x49fe0d
push edi
push 0
lea eax, [ebp - 0x2224]
mov ecx, ebx
push eax
call fcn.0049e730
mov esi, eax
test esi, esi
js 0x4a00aa
cmp word [edi], 0x7b
jne 0x4a005c
mov ecx, edi
lea edx, [ecx + 2]
lea esp, [esp]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x49fe20
sub ecx, edx
sar ecx, 1
cmp ecx, 1
jne 0x4a005c
push 0
push dword [ebp + 0x10]
mov ecx, ebx
push dword [ebp - 0x2224]
push edi
call fcn.0049f940
mov esi, eax
test esi, esi
js 0x4a00aa
push edi
mov ecx, ebx
call fcn.0049ef80
mov esi, eax
test esi, esi
js 0x4a00aa
jmp 0x4a005c
mov esi, dword [ebp + 0x14]
test esi, esi
jne 0x49fe8e
push 0x20019
push edi
push dword [ebp - 0x2214]
lea ecx, [ebp - 0x2224]
call fcn.0048fe10
mov ebx, eax
jmp 0x49fe93
mov ebx, 2
mov dword [ebp - 0x2234], esi
test ebx, ebx
je 0x49fea7
mov dword [ebp - 0x2234], 1
push 0xffffffffffffffff
push edi
lea eax, [ebp - 0x20c]
push 0x104
push eax
call fcn.004d393a
push eax
call fcn.00483910
mov ecx, dword [ebp - 0x2210]
add esp, 0x14
push edi
call fcn.0049ef80
mov esi, eax
test esi, esi
js 0x4a00aa
mov ecx, dword [ebp - 0x2210]
push edi
call fcn.004a00d0
mov esi, eax
test esi, esi
js 0x4a00aa
cmp word [edi], 0x7b
jne 0x49ff57
mov ecx, edi
lea edx, [ecx + 2]
jmp 0x49ff00
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x49ff00
sub ecx, edx
sar ecx, 1
cmp ecx, 1
jne 0x49ff57
push dword [ebp - 0x2234]
mov ecx, dword [ebp - 0x2210]
push 0
push dword [ebp - 0x2224]
push edi
call fcn.0049f940
mov esi, eax
test esi, esi
jns 0x49ff41
cmp dword [ebp - 0x2234], 0
je 0x4a00aa
mov ecx, dword [ebp - 0x2210]
push edi
call fcn.0049ef80
mov esi, eax
test esi, esi
js 0x4a00aa
cmp ebx, 2
je 0x4a005c
test ebx, ebx
je 0x49ff74
cmp dword [ebp + 0x14], 0
jne 0x4a005c
push ebx
jmp 0x4a00a0
cmp dword [ebp + 0x14], 0
mov ebx, dword [ebp - 0x2210]
je 0x49ffcb
push dword [ebp - 0x2224]
mov ecx, ebx
call fcn.0049ef30
test eax, eax
je 0x49ffcb
lea eax, [ebp - 0x20c]
mov ecx, ebx
push eax
call fcn.0049ecf0
test eax, eax
je 0x4a005c
cmp dword [ebp - 0x2218], 0
je 0x4a005c
lea eax, [ebp - 0x20c]
push eax
lea ecx, [ebp - 0x2224]
call fcn.0049f4b0
jmp 0x4a005c
push dword [ebp - 0x2224]
mov ecx, ebx
call fcn.0049ef30
mov ecx, dword [ebp - 0x2224]
mov ebx, eax
xor eax, eax
test ecx, ecx
je 0x49fff5
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 0x4a009f
cmp dword [ebp - 0x2218], eax
je 0x4a005c
test ebx, ebx
jne 0x4a005c
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.0049edc0
lea ecx, [ebp - 0x225c]
mov dword [ebp - 0x225c], 0
mov ebx, eax
call fcn.0049e4f0
test ebx, ebx
jne 0x49ff6e
cmp word [edi], 0x7d
jne 0x49f9b0
jmp 0x4a00aa
lea ecx, [ebp - 0x2230]
call fcn.0049e4f0
mov esi, 0x80020009
jmp 0x4a00aa
lea ecx, [ebp - 0x2230]
call fcn.0049e4f0
jmp 0x4a00aa
push eax
call fcn.004886f0
add esp, 4
lea ecx, [ebp - 0x2244]
mov esi, eax
call fcn.0049e4f0
jmp 0x4a00aa
push eax
call fcn.004886f0
add esp, 4
mov esi, eax
mov eax, dword [ebp - 0x2224]
pop ebx
test eax, eax
je 0x4a00bc
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.004c20c9
mov esp, ebp
pop ebp
ret 0x10