Function at 0x4be8a0
Capabilities:
Delete registry value

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4f944b
mov eax, dword fs:[0]
push eax
mov eax, 0x2250
call fcn.004c38f0
mov eax, dword [0x53ba20]
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 dword [ebp - 0x2224], ecx
mov eax, dword [ebp + 0xc]
mov ebx, dword [ebp + 8]
mov dword [ebp - 0x2220], eax
mov dword [ebp - 0x2230], 0
mov dword [ebp - 0x222c], 0
mov dword [ebp - 0x2228], 0
push ebx
mov dword [ebp - 4], 0
call fcn.004bd9f0
mov esi, eax
test esi, esi
js 0x4bf300
cmp word [ebx], 0x7d
je 0x4bf2ed
nop dword [eax]
nop word [eax + eax]
push 0x50c3ac
push ebx
mov dword [ebp - 0x2234], 1
call dword [sym.imp.KERNEL32.dll_lstrcmpiW]
neg eax
push 0x5164d4
sbb edi, edi
push ebx
inc edi
call dword [sym.imp.KERNEL32.dll_lstrcmpiW]
test eax, eax
je 0x4be963
test edi, edi
je 0x4bea6f
mov ecx, dword [ebp - 0x2224]
push ebx
call fcn.004bd9f0
mov esi, eax
test esi, esi
js 0x4bf2ed
cmp dword [ebp + 0x10], 0
je 0x4bea6f
movzx eax, word [ebx]
mov edx, ebx
mov dword [ebp - 0x2240], 0
mov dword [ebp - 0x2238], 0
test ax, ax
je 0x4be9c4
cmp ax, 0x5c
je 0x4be9bc
push edx
call dword [sym.imp.USER32.dll_CharNextW]
mov edx, eax
movzx ecx, word [edx]
mov eax, ecx
test cx, cx
jne 0x4be9a1
jmp 0x4be9c4
test edx, edx
jne 0x4bf2db
mov esi, 0x51712c
nop dword [eax]
push dword [esi]
push ebx
call dword [sym.imp.KERNEL32.dll_lstrcmpiW]
test eax, eax
je 0x4bea28
add esi, 4
cmp esi, 0x51715c
jl 0x4be9d0
mov eax, dword [ebp - 0x2220]
lea ecx, [ebp - 0x2240]
push ebx
mov dword [ebp - 0x2240], eax
mov dword [ebp - 0x223c], 0
mov dword [ebp - 0x2238], 0
call fcn.004be330
mov dword [ebp - 0x2240], 0
mov dword [ebp - 0x2238], 0
test edi, edi
je 0x4bea65
mov edi, dword [ebp - 0x2224]
mov ecx, edi
push ebx
call fcn.004bd9f0
mov esi, eax
test esi, esi
js 0x4bf2ed
push ebx
mov ecx, edi
call fcn.004bf470
mov esi, eax
test esi, esi
js 0x4bf2ed
mov dword [ebp - 0x223c], 0
jmp 0x4beefa
mov dword [ebp - 0x223c], 0
push 0x5164ec
push ebx
call dword [sym.imp.KERNEL32.dll_lstrcmpiW]
test eax, eax
jne 0x4bea9f
mov ecx, dword [ebp - 0x2224]
xor edi, edi
push ebx
mov dword [ebp - 0x2234], edi
call fcn.004bd9f0
mov esi, eax
test esi, esi
js 0x4bf2ed
jmp 0x4beaa5
mov edi, dword [ebp - 0x2234]
push 0x5164cc
push ebx
call dword [sym.imp.KERNEL32.dll_lstrcmpiW]
test eax, eax
jne 0x4bec1d
mov ecx, dword [ebp - 0x2224]
lea eax, [ebp - 0x2218]
push eax
call fcn.004bd9f0
mov esi, eax
test esi, esi
js 0x4bf2ed
mov ecx, dword [ebp - 0x2224]
push ebx
call fcn.004bd9f0
mov esi, eax
test esi, esi
js 0x4bf2ed
cmp word [ebx], 0x3d
jne 0x4bf2db
cmp dword [ebp + 0x10], 0
je 0x4beb76
mov eax, dword [ebp - 0x2220]
mov edi, dword [ebp - 0x2224]
mov ecx, edi
mov dword [ebp - 0x2250], eax
lea eax, [ebp - 0x2218]
push ebx
push eax
lea eax, [ebp - 0x2250]
mov byte [ebp - 4], 1
push eax
mov dword [ebp - 0x224c], 0
mov dword [ebp - 0x2248], 0
call fcn.004bd060
mov esi, eax
mov dword [ebp - 0x2250], 0
mov dword [ebp - 0x224c], 0
mov dword [ebp - 0x2248], 0
test esi, esi
js 0x4bf2ed
mov byte [ebp - 4], 0
mov dword [ebp - 0x224c], 0
jmp 0x4beefa
cmp dword [ebp + 0x14], 0
jne 0x4bec02
test edi, edi
je 0x4bec02
push 0x20006
push 0
push dword [ebp - 0x2220]
lea ecx, [ebp - 0x225c]
mov dword [ebp - 0x225c], 0
mov dword [ebp - 0x2258], 0
mov dword [ebp - 0x2254], 0
call fcn.004bdbd0
test eax, eax
jne 0x4bf2bd
mov edi, dword [ebp - 0x225c]
lea eax, [ebp - 0x2218]
push eax
push edi
call dword [sym.imp.ADVAPI32.dll_RegDeleteValueW]
test eax, eax
je 0x4bebe3
cmp eax, 2
jne 0x4bf2a5
test edi, edi
je 0x4bebf8
push edi
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov dword [ebp - 0x225c], 0
mov dword [ebp - 0x2258], 0
mov ecx, dword [ebp - 0x2224]
push ebx
call fcn.004bf470
mov esi, eax
test esi, esi
js 0x4bf2ed
jmp 0x4bf299
movzx ecx, word [ebx]
mov eax, ebx
test cx, cx
je 0x4bec51
mov edx, ecx
nop dword [eax]
cmp dx, 0x5c
je 0x4bec49
push eax
call dword [sym.imp.USER32.dll_CharNextW]
movzx ecx, word [eax]
mov edx, ecx
test cx, cx
jne 0x4bec30
jmp 0x4bec51
test eax, eax
jne 0x4bf2db
cmp dword [ebp + 0x10], 0
je 0x4bef5c
mov esi, dword [ebp - 0x2228]
mov byte [ebp - 4], 2
mov dword [ebp - 0x221c], 0
test esi, esi
je 0x4bed1c
cmp dword [esi], 0
je 0x4bed0f
push 0x4fbe00
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test eax, eax
jne 0x4bece2
mov eax, 1
mov edi, dword [ebp - 0x2230]
mov byte [ebp - 4], 0
test eax, eax
je 0x4beec1
mov byte [ebp - 4], 3
mov dword [ebp - 0x221c], 0
test esi, esi
je 0x4beda5
cmp dword [esi], 0
je 0x4bed98
push 0x4fbe00
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test eax, eax
jne 0x4bed6b
mov eax, 1
jmp 0x4bede5
push 0x51743c
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
test eax, eax
je 0x4bed15
push 0
push dword [esi]
lea ecx, [ebp - 0x221c]
push ecx
push 0x2001f
push 0
push ebx
push dword [ebp - 0x2220]
call eax
jmp 0x4bed37
cmp dword [esi + 4], 0
jne 0x4bed1c
mov eax, 1
jmp 0x4bed37
lea eax, [ebp - 0x221c]
push eax
push 0x2001f
push 0
push ebx
push dword [ebp - 0x2220]
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x4bec94
mov ecx, dword [ebp - 0x2230]
test ecx, ecx
je 0x4bed50
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov edi, dword [ebp - 0x221c]
mov dword [ebp - 0x2230], edi
mov dword [ebp - 0x222c], 0
jmp 0x4bec9a
push 0x51743c
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
test eax, eax
je 0x4bed9e
push 0
push dword [esi]
lea ecx, [ebp - 0x221c]
push ecx
push 0x20019
push 0
push ebx
push dword [ebp - 0x2220]
call eax
jmp 0x4bedc0
cmp dword [esi + 4], 0
jne 0x4beda5
mov eax, 1
jmp 0x4bedc0
lea eax, [ebp - 0x221c]
push eax
push 0x20019
push 0
push ebx
push dword [ebp - 0x2220]
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x4bede5
test edi, edi
je 0x4bedcf
push edi
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov edi, dword [ebp - 0x221c]
mov dword [ebp - 0x2230], edi
mov dword [ebp - 0x222c], 0
mov byte [ebp - 4], 0
test eax, eax
je 0x4beec1
mov byte [ebp - 4], 4
mov dword [ebp - 0x221c], 0
test esi, esi
je 0x4bee68
cmp dword [esi], 0
je 0x4bee5b
push 0x4fbe00
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test eax, eax
jne 0x4bee21
mov eax, 1
jmp 0x4beeb5
push 0x4fbe1c
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
test eax, eax
je 0x4bee61
push 0
push dword [esi]
lea ecx, [ebp - 0x2244]
push ecx
lea ecx, [ebp - 0x221c]
push ecx
push 0
push 0x2001f
push 0
push 0
push 0
push ebx
push dword [ebp - 0x2220]
call eax
jmp 0x4bee90
cmp dword [esi + 4], 0
jne 0x4bee68
mov eax, 1
jmp 0x4bee90
lea eax, [ebp - 0x2244]
push eax
lea eax, [ebp - 0x221c]
push eax
push 0
push 0x2001f
push 0
push 0
push 0
push ebx
push dword [ebp - 0x2220]
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExW]
test eax, eax
jne 0x4beeb5
test edi, edi
je 0x4bee9f
push edi
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov ecx, dword [ebp - 0x221c]
mov dword [ebp - 0x2230], ecx
mov dword [ebp - 0x222c], 0
mov byte [ebp - 4], 0
test eax, eax
jne 0x4bf2e2
mov edi, dword [ebp - 0x2224]
mov ecx, edi
push ebx
call fcn.004bd9f0
mov esi, eax
test esi, esi
js 0x4bf2ed
cmp word [ebx], 0x3d
jne 0x4beefa
push ebx
push 0
lea eax, [ebp - 0x2230]
mov ecx, edi
push eax
call fcn.004bd060
mov esi, eax
test esi, esi
js 0x4bf2ed
cmp word [ebx], 0x7b
jne 0x4bf299
mov ecx, ebx
lea edx, [ecx + 2]
nop dword [eax]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x4bef10
sub ecx, edx
sar ecx, 1
cmp ecx, 1
jne 0x4bf299
push 0
push dword [ebp + 0x10]
mov ecx, edi
push dword [ebp - 0x2230]
push ebx
call fcn.004be8a0
mov esi, eax
test esi, esi
js 0x4bf2ed
push ebx
mov ecx, edi
call fcn.004bd9f0
mov esi, eax
test esi, esi
js 0x4bf2ed
jmp 0x4bf299
cmp dword [ebp + 0x14], 0
jne 0x4bf027
mov esi, dword [ebp - 0x2228]
mov byte [ebp - 4], 5
mov dword [ebp - 0x221c], 0
test esi, esi
je 0x4befd7
cmp dword [esi], 0
je 0x4befca
push 0x4fbe00
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test eax, eax
jne 0x4bef9d
lea edi, [eax + 1]
mov byte [ebp - 4], al
jmp 0x4bf02c
push 0x51743c
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
test eax, eax
je 0x4befd0
push 0
push dword [esi]
lea ecx, [ebp - 0x221c]
push ecx
push 0x20019
push 0
push ebx
push dword [ebp - 0x2220]
call eax
jmp 0x4beff2
cmp dword [esi + 4], 0
jne 0x4befd7
mov edi, 1
jmp 0x4beff4
lea eax, [ebp - 0x221c]
push eax
push 0x20019
push 0
push ebx
push dword [ebp - 0x2220]
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
mov edi, eax
test edi, edi
jne 0x4bf021
mov eax, dword [ebp - 0x2230]
test eax, eax
je 0x4bf00b
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov edi, eax
mov eax, dword [ebp - 0x221c]
mov dword [ebp - 0x2230], eax
mov dword [ebp - 0x222c], 0
mov byte [ebp - 4], 0
jmp 0x4bf02c
mov edi, 2
test edi, edi
mov eax, 1
push 0xffffffffffffffff
cmove eax, dword [ebp + 0x14]
push ebx
mov dword [ebp - 0x221c], eax
lea eax, [ebp - 0x218]
push 0x104
push eax
call fcn.004c927f
push eax
call fcn.0045e340
mov ecx, dword [ebp - 0x2224]
add esp, 0x14
push ebx
call fcn.004bd9f0
mov esi, eax
test esi, esi
js 0x4bf2ed
mov ecx, dword [ebp - 0x2224]
push ebx
call fcn.004bf470
mov esi, eax
test esi, esi
js 0x4bf2ed
cmp word [ebx], 0x7b
jne 0x4bf0e8
mov ecx, ebx
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x4bf091
sub ecx, edx
sar ecx, 1
cmp ecx, 1
jne 0x4bf0e8
push dword [ebp - 0x221c]
mov ecx, dword [ebp - 0x2224]
push 0
push dword [ebp - 0x2230]
push ebx
call fcn.004be8a0
mov esi, eax
test esi, esi
jns 0x4bf0d2
cmp dword [ebp - 0x221c], 0
je 0x4bf2ed
mov ecx, dword [ebp - 0x2224]
push ebx
call fcn.004bd9f0
mov esi, eax
test esi, esi
js 0x4bf2ed
cmp edi, 2
je 0x4bf299
test edi, edi
je 0x4bf105
cmp dword [ebp + 0x14], 0
jne 0x4bf299
push edi
jmp 0x4bf2e3
cmp dword [ebp + 0x14], 0
je 0x4bf19b
push 0
push 0
push 0
push 0
push 0
push 0
push 0
lea eax, [ebp - 0x221c]
mov dword [ebp - 0x221c], 0
push eax
push 0
push 0
push 0
push dword [ebp - 0x2230]
call dword [sym.imp.ADVAPI32.dll_RegQueryInfoKeyW]
test eax, eax
jne 0x4bf19b
cmp eax, dword [ebp - 0x221c]
sbb eax, eax
neg eax
je 0x4bf19b
mov edi, 0x51712c
push dword [edi]
lea eax, [ebp - 0x218]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcmpiW]
test eax, eax
je 0x4bf299
add edi, 4
cmp edi, 0x51715c
jl 0x4bf155
cmp dword [ebp - 0x2234], 0
je 0x4bf299
lea eax, [ebp - 0x218]
push eax
lea ecx, [ebp - 0x2230]
call fcn.004be330
jmp 0x4bf299
push 0
push 0
push 0
push 0
push 0
push 0
push 0
lea eax, [ebp - 0x221c]
mov dword [ebp - 0x221c], 0
push eax
push 0
push 0
push 0
push dword [ebp - 0x2230]
call dword [sym.imp.ADVAPI32.dll_RegQueryInfoKeyW]
test eax, eax
je 0x4bf1d4
xor edi, edi
jmp 0x4bf1e0
xor eax, eax
cmp eax, dword [ebp - 0x221c]
sbb edi, edi
neg edi
mov ecx, dword [ebp - 0x2230]
xor eax, eax
test ecx, ecx
je 0x4bf1fb
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
xor ecx, ecx
mov dword [ebp - 0x2230], ecx
mov dword [ebp - 0x222c], 0
test eax, eax
jne 0x4bf2e2
cmp dword [ebp - 0x2234], eax
je 0x4bf299
test edi, edi
jne 0x4bf299
mov byte [ebp - 4], 6
cmp byte [0x5703b0], al
jne 0x4bf260
push 0x4fbe00
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test eax, eax
je 0x4bf252
push 0x4fbe34
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov dword [0x5703ac], eax
mov byte [0x5703b0], 1
jmp 0x4bf265
mov eax, dword [0x5703ac]
mov byte [0x5703b0], 1
jmp 0x4bf265
mov eax, dword [0x5703ac]
test eax, eax
je 0x4bf27e
push 0
push 0
lea ecx, [ebp - 0x218]
push ecx
push dword [ebp - 0x2220]
call eax
jmp 0x4bf291
lea eax, [ebp - 0x218]
push eax
push dword [ebp - 0x2220]
call dword [sym.imp.ADVAPI32.dll_RegDeleteKeyW]
mov byte [ebp - 4], 0
test eax, eax
jne 0x4bf2e2
cmp word [ebx], 0x7d
jne 0x4be930
jmp 0x4bf2ed
push eax
call fcn.004bd650
add esp, 4
mov esi, eax
test edi, edi
je 0x4bf2ed
push edi
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
jmp 0x4bf2ed
push eax
call fcn.004bd650
mov esi, eax
add esp, 4
mov eax, dword [ebp - 0x225c]
test eax, eax
je 0x4bf2ed
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
jmp 0x4bf2ed
mov esi, 0x80020009
jmp 0x4bf2ed
push eax
call fcn.004bd650
add esp, 4
mov esi, eax
mov eax, dword [ebp - 0x2230]
test eax, eax
je 0x4bf2fe
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
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.004c3287
mov esp, ebp
pop ebp
ret 0x10