Function at 0x4040e0
Capabilities:
Delete registry value

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x224c
call fcn.00494a40
push esi
push edi
mov edi, dword [ebp + 8]
mov eax, ecx
push edi
mov dword [ebp - 4], eax
mov dword [ebp - 0x10], 0
mov dword [ebp - 0xc], 0
mov dword [ebp - 8], 0
call fcn.00403820
mov esi, eax
test esi, esi
js 0x4046b7
cmp word [edi], 0x7d
push ebx
je 0x4046a6
nop word [eax + eax]
push str.Delete
push edi
mov dword [ebp + 8], 1
call dword [sym.imp.KERNEL32.dll_lstrcmpiW]
neg eax
push 0x4becf0
sbb ebx, ebx
push edi
inc ebx
call dword [sym.imp.KERNEL32.dll_lstrcmpiW]
test eax, eax
je 0x404160
test ebx, ebx
je 0x40424e
mov ecx, dword [ebp - 4]
push edi
call fcn.00403820
mov esi, eax
test esi, esi
js 0x4046a6
cmp dword [ebp + 0x10], 0
je 0x40424e
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 0x4041c1
nop dword [eax]
cmp ax, 0x5c
je 0x4041b9
push ecx
call dword [sym.imp.USER32.dll_CharNextW]
mov ecx, eax
movzx eax, word [ecx]
test ax, ax
jne 0x4041a0
jmp 0x4041c1
test ecx, ecx
jne 0x40464e
mov esi, 0x4bed84
push dword [esi]
push edi
call dword [sym.imp.KERNEL32.dll_lstrcmpiW]
test eax, eax
je 0x404210
add esi, 4
cmp esi, 0x4bedb4
jl 0x4041c6
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.00403d70
mov dword [ebp - 0x1c], 0
mov dword [ebp - 0x18], 0
mov dword [ebp - 0x14], 0
test ebx, ebx
je 0x404247
mov ebx, dword [ebp - 4]
mov ecx, ebx
push edi
call fcn.00403820
mov esi, eax
test esi, esi
js 0x40465d
push edi
mov ecx, ebx
call fcn.004050c0
mov esi, eax
test esi, esi
js 0x40465d
mov dword [ebp - 0x18], 0
jmp 0x404453
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 0x404276
push edi
mov ecx, ebx
mov dword [ebp + 8], eax
call fcn.00403820
mov esi, eax
test esi, esi
js 0x4046a6
push 0x4bece8
push edi
call dword [sym.imp.KERNEL32.dll_lstrcmpiW]
test eax, eax
jne 0x40439f
lea eax, [ebp - 0x224c]
mov ecx, ebx
push eax
call fcn.00403820
mov esi, eax
test esi, esi
js 0x4046a6
push edi
mov ecx, ebx
call fcn.00403820
mov esi, eax
test esi, esi
js 0x4046a6
cmp word [edi], 0x3d
jne 0x404656
cmp dword [ebp + 0x10], 0
je 0x404316
mov eax, dword [ebp + 0xc]
mov ecx, ebx
mov dword [ebp - 0x2c], eax
lea eax, [ebp - 0x224c]
push edi
push eax
lea eax, [ebp - 0x2c]
mov dword [ebp - 0x28], 0
push eax
mov dword [ebp - 0x24], 0
call fcn.004023c0
mov esi, eax
mov dword [ebp - 0x2c], 0
mov dword [ebp - 0x28], 0
mov dword [ebp - 0x24], 0
test esi, esi
js 0x404667
mov dword [ebp - 0x28], 0
jmp 0x404453
cmp dword [ebp + 0x14], 0
jne 0x404388
cmp dword [ebp + 8], 0
je 0x404388
push 0x20006
push 0
push dword [ebp + 0xc]
lea ecx, [ebp - 0x38]
mov dword [ebp - 0x38], 0
mov dword [ebp - 0x34], 0
mov dword [ebp - 0x30], 0
call fcn.004039c0
test eax, eax
jne 0x404671
mov esi, dword [ebp - 0x38]
lea eax, [ebp - 0x224c]
push eax
push esi
call dword [sym.imp.ADVAPI32.dll_RegDeleteValueW]
test eax, eax
je 0x40436f
cmp eax, 2
jne 0x404671
test esi, esi
je 0x404381
push esi
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov dword [ebp - 0x38], 0
mov dword [ebp - 0x34], 0
push edi
mov ecx, ebx
call fcn.004050c0
mov esi, eax
test esi, esi
js 0x4046a6
jmp 0x404642
movzx eax, word [edi]
mov ecx, edi
test ax, ax
je 0x4043d1
nop dword [eax]
cmp ax, 0x5c
je 0x4043c9
push ecx
call dword [sym.imp.USER32.dll_CharNextW]
mov ecx, eax
movzx eax, word [ecx]
test ax, ax
jne 0x4043b0
jmp 0x4043d1
test ecx, ecx
jne 0x404656
cmp dword [ebp + 0x10], 0
je 0x4044ab
mov esi, dword [ebp + 0xc]
lea ecx, [ebp - 0x10]
push 0x2001f
push edi
push esi
call fcn.004039c0
test eax, eax
je 0x404423
push 0x20019
push edi
push esi
lea ecx, [ebp - 0x10]
call fcn.004039c0
test eax, eax
je 0x404423
push 0
push 0
push 0x2001f
push 0
push 0
push edi
push esi
lea ecx, [ebp - 0x10]
call fcn.00402d10
test eax, eax
jne 0x40469b
push edi
mov ecx, ebx
call fcn.00403820
mov esi, eax
test esi, esi
js 0x4046a6
cmp word [edi], 0x3d
jne 0x404453
push edi
push 0
lea eax, [ebp - 0x10]
mov ecx, ebx
push eax
call fcn.004023c0
mov esi, eax
test esi, esi
js 0x4046a6
cmp word [edi], 0x7b
jne 0x404642
mov ecx, edi
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x404462
sub ecx, edx
sar ecx, 1
cmp ecx, 1
jne 0x404642
push 0
push dword [ebp + 0x10]
mov ecx, ebx
push dword [ebp - 0x10]
push edi
call fcn.004040e0
mov esi, eax
test esi, esi
js 0x4046a6
push edi
mov ecx, ebx
call fcn.00403820
mov esi, eax
test esi, esi
js 0x4046a6
jmp 0x404642
mov esi, dword [ebp + 0x14]
test esi, esi
jne 0x4044c7
push 0x20019
push edi
push dword [ebp + 0xc]
lea ecx, [ebp - 0x10]
call fcn.004039c0
mov ebx, eax
jmp 0x4044cc
mov ebx, 2
test ebx, ebx
mov ecx, 1
push 0xffffffffffffffff
mov eax, esi
cmovne eax, ecx
push edi
mov dword [ebp - 0x20], eax
lea eax, [ebp - 0x24c]
push 0x104
push eax
call fcn.0049a8fa
push eax
call fcn.004028d0
mov ecx, dword [ebp - 4]
add esp, 0x14
push edi
call fcn.00403820
mov esi, eax
test esi, esi
js 0x4046a6
mov ecx, dword [ebp - 4]
push edi
call fcn.004050c0
mov esi, eax
test esi, esi
js 0x4046a6
cmp word [edi], 0x7b
jne 0x404578
mov ecx, edi
lea edx, [ecx + 2]
nop dword [eax]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x404530
sub ecx, edx
sar ecx, 1
cmp ecx, 1
jne 0x404578
push dword [ebp - 0x20]
mov ecx, dword [ebp - 4]
push 0
push dword [ebp - 0x10]
push edi
call fcn.004040e0
mov esi, eax
test esi, esi
jns 0x404565
cmp dword [ebp - 0x20], 0
je 0x4046a6
mov ecx, dword [ebp - 4]
push edi
call fcn.00403820
mov esi, eax
test esi, esi
js 0x4046a6
cmp ebx, 2
je 0x404642
test ebx, ebx
je 0x404595
cmp dword [ebp + 0x14], 0
jne 0x404642
push ebx
jmp 0x40469c
cmp dword [ebp + 0x14], 0
mov ebx, dword [ebp - 4]
je 0x4045d9
push dword [ebp - 0x10]
mov ecx, ebx
call fcn.00403130
test eax, eax
je 0x4045d9
lea eax, [ebp - 0x24c]
mov ecx, ebx
push eax
call fcn.00402b10
test eax, eax
je 0x404642
cmp dword [ebp + 8], 0
je 0x404642
lea eax, [ebp - 0x24c]
push eax
lea ecx, [ebp - 0x10]
call fcn.00403d70
jmp 0x404642
push dword [ebp - 0x10]
mov ecx, ebx
call fcn.00403130
mov ecx, dword [ebp - 0x10]
mov ebx, eax
xor eax, eax
test ecx, ecx
je 0x4045fa
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 0x40469b
cmp dword [ebp + 8], eax
je 0x404642
test ebx, ebx
jne 0x404642
mov eax, dword [ebp + 0xc]
lea ecx, [ebp - 0x44]
mov dword [ebp - 0x44], eax
lea eax, [ebp - 0x24c]
push eax
mov dword [ebp - 0x40], ebx
mov dword [ebp - 0x3c], ebx
call fcn.00402df0
mov dword [ebp - 0x44], ebx
mov dword [ebp - 0x40], ebx
mov dword [ebp - 0x3c], ebx
test eax, eax
jne 0x404686
lea ecx, [ebp - 0x44]
call fcn.00401f90
cmp word [edi], 0x7d
jne 0x404130
jmp 0x4046a6
lea ecx, [ebp - 0x1c]
call fcn.00401f90
mov esi, 0x80020009
jmp 0x4046a6
lea ecx, [ebp - 0x1c]
call fcn.00401f90
jmp 0x4046a6
lea ecx, [ebp - 0x2c]
call fcn.00401f90
jmp 0x4046a6
push eax
call fcn.00402990
add esp, 4
lea ecx, [ebp - 0x38]
mov esi, eax
call fcn.00401f90
jmp 0x4046a6
push eax
call fcn.00402990
add esp, 4
lea ecx, [ebp - 0x44]
mov esi, eax
call fcn.00401f90
jmp 0x4046a6
push eax
call fcn.00402990
add esp, 4
mov esi, eax
mov eax, dword [ebp - 0x10]
pop ebx
test eax, eax
je 0x4046b5
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, esi
pop edi
pop esi
mov esp, ebp
pop ebp
ret 0x10