Function at 0x505f40
Capabilities:
Delete registry value

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x224c
call fcn.0052ad70
push esi
mov eax, ecx
mov dword [ebp - 0x10], 0
mov ecx, dword [ebp + 0x14]
push edi
mov edi, dword [ebp + 8]
mov dword [ebp - 0x44], ecx
mov ecx, eax
push edi
mov dword [ebp - 4], eax
mov dword [ebp - 0xc], 0
mov dword [ebp - 8], 0
call fcn.00505610
mov esi, eax
test esi, esi
js 0x50650d
cmp word [edi], 0x7d
push ebx
je 0x5064fc
nop
push 0x581f5c
push edi
mov dword [ebp + 8], 1
call dword [sym.imp.KERNEL32.dll_lstrcmpiW]
neg eax
push 0x581f30
sbb ebx, ebx
push edi
inc ebx
call dword [sym.imp.KERNEL32.dll_lstrcmpiW]
test eax, eax
je 0x505fc0
test ebx, ebx
je 0x5060ae
mov ecx, dword [ebp - 4]
push edi
call fcn.00505610
mov esi, eax
test esi, esi
js 0x5064fc
cmp dword [ebp + 0x10], 0
je 0x5060ae
movzx eax, word [edi]
mov ecx, edi
mov dword [ebp - 0x1c], 0
mov dword [ebp - 0x18], 0
mov dword [ebp - 0x14], 0
test ax, ax
je 0x506021
lea esp, [esp]
cmp ax, 0x5c
je 0x506019
push ecx
call dword [sym.imp.USER32.dll_CharNextW]
mov ecx, eax
movzx eax, word [ecx]
test ax, ax
jne 0x506000
jmp 0x506021
test ecx, ecx
jne 0x5064a4
mov esi, 0x581b88
push dword [esi]
push edi
call dword [sym.imp.KERNEL32.dll_lstrcmpiW]
test eax, eax
je 0x506070
add esi, 4
cmp esi, 0x581bb8
jl 0x506026
mov eax, dword [ebp + 0xc]
lea ecx, [ebp - 0x1c]
push edi
mov dword [ebp - 0x1c], eax
mov dword [ebp - 0x18], 0
mov dword [ebp - 0x14], 0
call fcn.00505b70
mov dword [ebp - 0x1c], 0
mov dword [ebp - 0x18], 0
mov dword [ebp - 0x14], 0
test ebx, ebx
je 0x5060a7
mov ebx, dword [ebp - 4]
mov ecx, ebx
push edi
call fcn.00505610
mov esi, eax
test esi, esi
js 0x5064b3
push edi
mov ecx, ebx
call fcn.00506a40
mov esi, eax
test esi, esi
js 0x5064b3
mov dword [ebp - 0x18], 0
jmp 0x5062b3
mov dword [ebp - 0x18], 0
push str.NoRemove
push edi
call dword [sym.imp.KERNEL32.dll_lstrcmpiW]
mov ebx, dword [ebp - 4]
test eax, eax
jne 0x5060d6
push edi
mov ecx, ebx
mov dword [ebp + 8], eax
call fcn.00505610
mov esi, eax
test esi, esi
js 0x5064fc
push 0x581f28
push edi
call dword [sym.imp.KERNEL32.dll_lstrcmpiW]
test eax, eax
jne 0x5061ff
lea eax, [ebp - 0x224c]
mov ecx, ebx
push eax
call fcn.00505610
mov esi, eax
test esi, esi
js 0x5064fc
push edi
mov ecx, ebx
call fcn.00505610
mov esi, eax
test esi, esi
js 0x5064fc
cmp word [edi], 0x3d
jne 0x5064ac
cmp dword [ebp + 0x10], 0
je 0x506176
mov eax, dword [ebp + 0xc]
mov ecx, ebx
mov dword [ebp - 0x28], eax
lea eax, [ebp - 0x224c]
push edi
push eax
lea eax, [ebp - 0x28]
mov dword [ebp - 0x24], 0
push eax
mov dword [ebp - 0x20], 0
call fcn.00504630
mov esi, eax
mov dword [ebp - 0x28], 0
mov dword [ebp - 0x24], 0
mov dword [ebp - 0x20], 0
test esi, esi
js 0x5064bd
mov dword [ebp - 0x24], 0
jmp 0x5062b3
cmp dword [ebp + 0x14], 0
jne 0x5061e8
cmp dword [ebp + 8], 0
je 0x5061e8
push 0x20006
push 0
push dword [ebp + 0xc]
lea ecx, [ebp - 0x40]
mov dword [ebp - 0x40], 0
mov dword [ebp - 0x3c], 0
mov dword [ebp - 0x38], 0
call fcn.0044f44e
test eax, eax
jne 0x5064c7
mov esi, dword [ebp - 0x40]
lea eax, [ebp - 0x224c]
push eax
push esi
call dword [sym.imp.ADVAPI32.dll_RegDeleteValueW]
test eax, eax
je 0x5061cf
cmp eax, 2
jne 0x5064c7
test esi, esi
je 0x5061e1
push esi
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov dword [ebp - 0x40], 0
mov dword [ebp - 0x3c], 0
push edi
mov ecx, ebx
call fcn.00506a40
mov esi, eax
test esi, esi
js 0x5064fc
jmp 0x506498
movzx eax, word [edi]
mov ecx, edi
test ax, ax
je 0x506231
lea esp, [esp]
cmp ax, 0x5c
je 0x506229
push ecx
call dword [sym.imp.USER32.dll_CharNextW]
mov ecx, eax
movzx eax, word [ecx]
test ax, ax
jne 0x506210
jmp 0x506231
test ecx, ecx
jne 0x5064ac
cmp dword [ebp + 0x10], 0
je 0x50630b
mov esi, dword [ebp + 0xc]
lea ecx, [ebp - 0x10]
push 0x2001f
push edi
push esi
call fcn.0044f44e
test eax, eax
je 0x506283
push 0x20019
push edi
push esi
lea ecx, [ebp - 0x10]
call fcn.0044f44e
test eax, eax
je 0x506283
push 0
push 0
push 0x2001f
push 0
push 0
push edi
push esi
lea ecx, [ebp - 0x10]
call fcn.0045f6cc
test eax, eax
jne 0x5064f1
push edi
mov ecx, ebx
call fcn.00505610
mov esi, eax
test esi, esi
js 0x5064fc
cmp word [edi], 0x3d
jne 0x5062b3
push edi
push 0
lea eax, [ebp - 0x10]
mov ecx, ebx
push eax
call fcn.00504630
mov esi, eax
test esi, esi
js 0x5064fc
cmp word [edi], 0x7b
jne 0x506498
mov ecx, edi
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x5062c2
sub ecx, edx
sar ecx, 1
cmp ecx, 1
jne 0x506498
push 0
push dword [ebp + 0x10]
mov ecx, ebx
push dword [ebp - 0x10]
push edi
call fcn.00505f40
mov esi, eax
test esi, esi
js 0x5064fc
push edi
mov ecx, ebx
call fcn.00505610
mov esi, eax
test esi, esi
js 0x5064fc
jmp 0x506498
cmp dword [ebp + 0x14], 0
jne 0x50632a
push 0x20019
push edi
push dword [ebp + 0xc]
lea ecx, [ebp - 0x10]
call fcn.0044f44e
mov ebx, eax
test ebx, ebx
jne 0x50632f
jmp 0x506336
mov ebx, 2
mov dword [ebp + 0x14], 1
push 0xffffffffffffffff
push edi
lea eax, [ebp - 0x24c]
push 0x104
push eax
call fcn.0052a4c7
push eax
call fcn.0041ca7e
mov ecx, dword [ebp - 4]
add esp, 0x14
push edi
call fcn.00505610
mov esi, eax
test esi, esi
js 0x5064fc
mov ecx, dword [ebp - 4]
push edi
call fcn.00506a40
mov esi, eax
test esi, esi
js 0x5064fc
cmp word [edi], 0x7b
jne 0x5063cc
mov ecx, edi
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x506384
sub ecx, edx
sar ecx, 1
cmp ecx, 1
jne 0x5063cc
push dword [ebp + 0x14]
mov ecx, dword [ebp - 4]
push 0
push dword [ebp - 0x10]
push edi
call fcn.00505f40
mov esi, eax
test esi, esi
jns 0x5063b9
cmp dword [ebp + 0x14], 0
je 0x5064fc
mov ecx, dword [ebp - 4]
push edi
call fcn.00505610
mov esi, eax
test esi, esi
js 0x5064fc
mov eax, dword [ebp - 0x44]
mov dword [ebp + 0x14], eax
cmp ebx, 2
je 0x506498
test ebx, ebx
je 0x5063ed
test eax, eax
jne 0x506498
push ebx
jmp 0x5064f2
mov ebx, dword [ebp - 4]
test eax, eax
je 0x50642f
push dword [ebp - 0x10]
mov ecx, ebx
call fcn.00505280
test eax, eax
je 0x50642f
lea eax, [ebp - 0x24c]
mov ecx, ebx
push eax
call fcn.00504d40
test eax, eax
je 0x506498
cmp dword [ebp + 8], 0
je 0x506498
lea eax, [ebp - 0x24c]
push eax
lea ecx, [ebp - 0x10]
call fcn.00505b70
jmp 0x506498
push dword [ebp - 0x10]
mov ecx, ebx
call fcn.00505280
mov ecx, dword [ebp - 0x10]
mov ebx, eax
xor eax, eax
test ecx, ecx
je 0x506450
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
xor ecx, ecx
mov dword [ebp - 0x10], ecx
mov dword [ebp - 0xc], 0
test eax, eax
jne 0x5064f1
cmp dword [ebp + 8], eax
je 0x506498
test ebx, ebx
jne 0x506498
mov eax, dword [ebp + 0xc]
lea ecx, [ebp - 0x34]
mov dword [ebp - 0x34], eax
lea eax, [ebp - 0x24c]
push eax
mov dword [ebp - 0x30], ebx
mov dword [ebp - 0x2c], ebx
call fcn.00504ed0
mov dword [ebp - 0x34], ebx
mov dword [ebp - 0x30], ebx
mov dword [ebp - 0x2c], ebx
test eax, eax
jne 0x5064dc
lea ecx, [ebp - 0x34]
call fcn.0044f4bf
cmp word [edi], 0x7d
jne 0x505f90
jmp 0x5064fc
lea ecx, [ebp - 0x1c]
call fcn.0044f4bf
mov esi, 0x80020009
jmp 0x5064fc
lea ecx, [ebp - 0x1c]
call fcn.0044f4bf
jmp 0x5064fc
lea ecx, [ebp - 0x28]
call fcn.0044f4bf
jmp 0x5064fc
push eax
call fcn.00504cc0
add esp, 4
lea ecx, [ebp - 0x40]
mov esi, eax
call fcn.0044f4bf
jmp 0x5064fc
push eax
call fcn.00504cc0
add esp, 4
lea ecx, [ebp - 0x34]
mov esi, eax
call fcn.0044f4bf
jmp 0x5064fc
push eax
call fcn.00504cc0
add esp, 4
mov esi, eax
mov eax, dword [ebp - 0x10]
pop ebx
test eax, eax
je 0x50650b
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, esi
pop edi
pop esi
mov esp, ebp
pop ebp
ret 0x10