Function at 0x402248
Capabilities:
Delete registry value

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x462eea
mov eax, dword fs:[0]
push eax
push ecx
mov eax, 0x226c
call fcn.0045b730
mov eax, dword [0x487010]
xor eax, esp
mov dword [esp + 0x2268], eax
push ebx
push esi
push edi
mov eax, dword [0x487010]
xor eax, esp
push eax
lea eax, [esp + 0x2280]
mov dword fs:[0], eax
mov esi, dword [ebp + 8]
mov eax, dword [ebp + 0xc]
xor ebx, ebx
mov dword [esp + 0x14], ecx
mov dword [esp + 0x34], esi
mov dword [esp + 0x2c], eax
mov dword [esp + 0x20], ebx
mov dword [esp + 0x24], ebx
mov dword [esp + 0x28], ebx
mov eax, dword [ebp + 0x14]
mov dword [esp + 0x30], eax
mov eax, esi
mov dword [esp + 0x2288], ebx
call fcn.00401a0e
mov edi, eax
cmp edi, ebx
jl 0x402742
cmp word [esi], 0x7d
je 0x402740
push str.Delete
push esi
mov dword [esp + 0x20], 1
call dword [sym.imp.KERNEL32.dll_lstrcmpiW]
mov edi, eax
neg edi
sbb edi, edi
push str.ForceRemove
inc edi
push esi
mov dword [esp + 0x24], edi
call dword [sym.imp.KERNEL32.dll_lstrcmpiW]
test eax, eax
je 0x40230d
cmp edi, ebx
je 0x4023eb
mov ecx, dword [esp + 0x14]
mov eax, esi
call fcn.00401a0e
mov edi, eax
cmp edi, ebx
jl 0x402730
cmp dword [ebp + 0x10], ebx
je 0x4023eb
push 0x5c
mov eax, esi
mov dword [esp + 0x3c], ebx
mov dword [esp + 0x40], ebx
mov dword [esp + 0x44], ebx
call fcn.004019c2
pop ecx
test eax, eax
jne 0x402818
push esi
call fcn.00401eb3
test eax, eax
je 0x402369
mov eax, dword [esp + 0x2c]
push esi
lea ecx, [esp + 0x3c]
mov dword [esp + 0x3c], eax
call fcn.004012c6
mov dword [esp + 0x38], ebx
cmp dword [esp + 0x1c], ebx
je 0x4023eb
mov ecx, dword [esp + 0x14]
mov eax, esi
call fcn.00401a0e
mov edi, eax
cmp edi, ebx
jl 0x402730
mov ecx, dword [esp + 0x14]
mov edi, esi
call fcn.00401f14
mov edi, eax
cmp edi, ebx
jl 0x402730
cmp word [esi], 0x7b
jne 0x4023dc
push esi
call dword [sym.imp.KERNEL32.dll_lstrlenW]
cmp eax, 1
jne 0x4023dc
mov ecx, dword [esp + 0x14]
push ebx
push dword [ebp + 0x10]
push dword [esp + 0x28]
push esi
call fcn.00402248
mov edi, eax
cmp edi, ebx
jl 0x402730
mov ecx, dword [esp + 0x14]
mov eax, esi
call fcn.00401a0e
mov edi, eax
cmp edi, ebx
jl 0x402730
cmp word [esi], 0x7d
jne 0x4022d6
jmp 0x402730
push str.NoRemove
push esi
call dword [sym.imp.KERNEL32.dll_lstrcmpiW]
test eax, eax
jne 0x402414
mov ecx, dword [esp + 0x14]
mov eax, esi
mov dword [esp + 0x18], ebx
call fcn.00401a0e
mov edi, eax
cmp edi, ebx
jl 0x402730
push 0x468ba4
push esi
call dword [sym.imp.KERNEL32.dll_lstrcmpiW]
test eax, eax
jne 0x40251f
mov ecx, dword [esp + 0x14]
lea eax, [esp + 0x274]
call fcn.00401a0e
mov edi, eax
cmp edi, ebx
jl 0x402730
mov ecx, dword [esp + 0x14]
mov eax, esi
call fcn.00401a0e
mov edi, eax
cmp edi, ebx
jl 0x402730
cmp word [esi], 0x3d
jne 0x402818
cmp dword [ebp + 0x10], ebx
je 0x4024ae
mov dword [esp + 0x48], ebx
mov dword [esp + 0x4c], ebx
mov eax, dword [esp + 0x2c]
mov ecx, dword [esp + 0x14]
mov byte [esp + 0x2288], 1
mov dword [esp + 0x44], eax
push esi
lea eax, [esp + 0x278]
push eax
lea edx, [esp + 0x4c]
call fcn.00401b32
mov edi, eax
cmp edi, ebx
mov dword [esp + 0x44], ebx
jl 0x402730
mov byte [esp + 0x2288], bl
jmp 0x402399
cmp dword [ebp + 0x14], ebx
jne 0x40250f
cmp dword [esp + 0x18], ebx
je 0x40250f
lea eax, [esp + 0x18]
push eax
push 0x20006
push ebx
push ebx
push dword [esp + 0x3c]
mov dword [esp + 0x2c], ebx
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
cmp eax, ebx
jne 0x402729
mov eax, dword [esp + 0x18]
lea ecx, [esp + 0x274]
push ecx
push eax
mov dword [esp + 0x58], eax
call dword [sym.imp.ADVAPI32.dll_RegDeleteValueW]
cmp eax, ebx
je 0x4024ff
cmp eax, 2
jne 0x402832
cmp dword [esp + 0x50], ebx
je 0x40250f
push dword [esp + 0x50]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov ecx, dword [esp + 0x14]
mov edi, esi
call fcn.00401f14
jmp 0x4023d2
push 0x5c
mov eax, esi
call fcn.004019c2
pop ecx
test eax, eax
jne 0x402818
cmp dword [ebp + 0x10], ebx
je 0x402631
lea eax, [esp + 0x18]
push eax
push 0x2001f
push ebx
push esi
push dword [esp + 0x3c]
mov dword [esp + 0x2c], ebx
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
cmp eax, ebx
jne 0x40257c
xor eax, eax
cmp dword [esp + 0x20], ebx
je 0x40256a
push dword [esp + 0x20]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov edi, dword [esp + 0x18]
mov dword [esp + 0x20], edi
cmp eax, ebx
je 0x4025fe
jmp 0x402580
mov edi, dword [esp + 0x20]
lea eax, [esp + 0x18]
push eax
push 0x20019
push ebx
push esi
push dword [esp + 0x3c]
mov dword [esp + 0x2c], ebx
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
cmp eax, ebx
jne 0x4025b7
xor eax, eax
cmp edi, ebx
je 0x4025ab
push edi
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov edi, dword [esp + 0x18]
mov dword [esp + 0x20], edi
cmp eax, ebx
je 0x4025fe
lea eax, [esp + 0x68]
push eax
lea eax, [esp + 0x1c]
push eax
push ebx
push 0x2001f
push ebx
push ebx
push ebx
push esi
push dword [esp + 0x4c]
mov dword [esp + 0x3c], ebx
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExW]
cmp eax, ebx
jne 0x402852
xor eax, eax
cmp edi, ebx
je 0x4025ee
push edi
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov edi, dword [esp + 0x18]
mov dword [esp + 0x20], edi
cmp eax, ebx
jne 0x402852
mov ecx, dword [esp + 0x14]
mov eax, esi
call fcn.00401a0e
mov edi, eax
cmp edi, ebx
jl 0x402730
cmp word [esi], 0x3d
jne 0x402399
mov ecx, dword [esp + 0x14]
push esi
push ebx
lea edx, [esp + 0x28]
call fcn.00401b32
jmp 0x40238f
cmp dword [ebp + 0x14], ebx
jne 0x402674
lea eax, [esp + 0x1c]
push eax
push 0x20019
push ebx
push esi
push dword [esp + 0x3c]
mov dword [esp + 0x30], ebx
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
cmp eax, ebx
jne 0x40266e
xor eax, eax
cmp dword [esp + 0x20], ebx
je 0x402666
push dword [esp + 0x20]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov ecx, dword [esp + 0x1c]
mov dword [esp + 0x20], ecx
mov dword [esp + 0x1c], eax
jmp 0x40267c
mov dword [esp + 0x1c], 2
cmp dword [esp + 0x1c], ebx
je 0x402689
mov dword [ebp + 0x14], 1
push 0xffffffffffffffff
push esi
lea eax, [esp + 0x74]
push 0x104
push eax
call fcn.0045ba0a
add esp, 0x10
call fcn.004010ad
mov ecx, dword [esp + 0x14]
mov eax, esi
call fcn.00401a0e
mov edi, eax
cmp edi, ebx
jl 0x402730
mov ecx, dword [esp + 0x14]
mov edi, esi
call fcn.00401f14
mov edi, eax
cmp edi, ebx
jl 0x402730
cmp word [esi], 0x7b
jne 0x402705
push esi
call dword [sym.imp.KERNEL32.dll_lstrlenW]
cmp eax, 1
jne 0x402705
push dword [ebp + 0x14]
mov ecx, dword [esp + 0x18]
push ebx
push dword [esp + 0x28]
push esi
call fcn.00402248
mov edi, eax
cmp edi, ebx
jge 0x4026f4
cmp dword [ebp + 0x14], ebx
je 0x402730
mov ecx, dword [esp + 0x14]
mov eax, esi
call fcn.00401a0e
mov edi, eax
cmp edi, ebx
jl 0x402730
cmp dword [esp + 0x1c], 2
mov eax, dword [esp + 0x30]
mov dword [ebp + 0x14], eax
je 0x4023dc
cmp dword [esp + 0x1c], ebx
je 0x402768
cmp eax, ebx
jne 0x4023dc
mov eax, dword [esp + 0x1c]
call fcn.004011b7
mov edi, eax
cmp dword [esp + 0x20], ebx
je 0x402740
push dword [esp + 0x20]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, edi
mov ecx, dword [esp + 0x2280]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x2268]
xor ecx, esp
call fcn.0045b700
mov esp, ebp
pop ebp
ret 0x10
cmp eax, ebx
je 0x4027a8
push dword [esp + 0x20]
call fcn.00401edf
test eax, eax
je 0x4027a8
lea eax, [esp + 0x6c]
push eax
call fcn.00401eb3
test eax, eax
je 0x4023dc
cmp dword [esp + 0x18], ebx
je 0x4023dc
lea eax, [esp + 0x6c]
push eax
lea ecx, [esp + 0x24]
call fcn.004012c6
jmp 0x4023dc
push dword [esp + 0x20]
call fcn.00401edf
mov dword [esp + 0x1c], eax
cmp dword [esp + 0x20], ebx
je 0x4027d1
push dword [esp + 0x20]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov dword [esp + 0x20], ebx
cmp eax, ebx
jne 0x40286b
cmp dword [esp + 0x18], ebx
je 0x4023dc
cmp dword [esp + 0x1c], ebx
jne 0x4023dc
mov eax, dword [esp + 0x2c]
mov dword [esp + 0x5c], eax
lea eax, [esp + 0x6c]
push eax
lea esi, [esp + 0x60]
mov dword [esp + 0x64], ebx
mov dword [esp + 0x68], ebx
call fcn.00401203
mov dword [esp + 0x5c], ebx
cmp eax, ebx
jne 0x402729
mov esi, dword [esp + 0x34]
jmp 0x4023dc
cmp dword [esp + 0x20], ebx
je 0x402828
push dword [esp + 0x20]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, 0x80020009
jmp 0x402742
call fcn.004011b7
mov edi, eax
cmp dword [esp + 0x50], ebx
je 0x402730
push dword [esp + 0x50]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
jmp 0x402730
call fcn.004011b7
mov esi, eax
cmp edi, ebx
je 0x402864
push edi
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, esi
jmp 0x402742
call fcn.004011b7
jmp 0x402742