Function at 0x40dcd0
Capabilities:
Delete registry value

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x46cfb7
mov eax, dword fs:[0]
push eax
push ecx
mov eax, 0x225c
call fcn.0045fd90
mov eax, dword [0x48c74c]
xor eax, esp
mov dword [esp + 0x2258], eax
push ebx
push esi
push edi
mov eax, dword [0x48c74c]
xor eax, esp
push eax
lea eax, [esp + 0x2270]
mov dword fs:[0], eax
mov eax, ecx
mov dword [esp + 0x10], eax
mov ecx, dword [ebp + 0xc]
xorps xmm0, xmm0
mov edi, dword [ebp + 8]
movq qword [esp + 0x20], xmm0
mov dword [esp + 0x20], 0
mov dword [esp + 0x28], 0
mov dword [esp + 0x14], ecx
mov dword [esp + 0x24], 0
mov dword [esp + 0x28], 0
mov dword [esp + 0x2278], 0
mov ecx, dword [ebp + 0x14]
mov dword [esp + 0x18], ecx
mov ecx, eax
push edi
call fcn.0040db50
mov esi, eax
test esi, esi
js 0x40e4b9
cmp word [edi], 0x7d
je 0x40e4b9
lea esp, [esp]
push str.Delete
push edi
mov dword [esp + 0x24], 1
call dword [sym.imp.KERNEL32.dll_lstrcmpiW]
neg eax
push 0x47c0fc
sbb ebx, ebx
push edi
inc ebx
call dword [sym.imp.KERNEL32.dll_lstrcmpiW]
test eax, eax
je 0x40ddb1
test ebx, ebx
je 0x40ded9
mov ecx, dword [esp + 0x10]
push edi
call fcn.0040db50
mov esi, eax
test esi, esi
js 0x40e4b9
cmp dword [ebp + 0x10], 0
je 0x40ded9
xorps xmm0, xmm0
mov dword [esp + 0x34], 0
movq qword [esp + 0x2c], xmm0
mov dword [esp + 0x2c], 0
mov dword [esp + 0x30], 0
mov dword [esp + 0x34], 0
mov byte [esp + 0x2278], 1
mov ecx, edi
movzx eax, word [edi]
test ax, ax
je 0x40de31
lea ebx, [ebx]
cmp ax, 0x5c
je 0x40de29
push ecx
call dword [sym.imp.USER32.dll_CharNextW]
mov ecx, eax
movzx eax, word [ecx]
test ax, ax
jne 0x40de10
jmp 0x40de31
test ecx, ecx
jne 0x40e43a
mov esi, 0x47c320
push dword [esi]
push edi
call dword [sym.imp.KERNEL32.dll_lstrcmpiW]
test eax, eax
je 0x40de88
add esi, 4
cmp esi, 0x47c350
jl 0x40de36
mov eax, dword [esp + 0x14]
lea ecx, [esp + 0x2c]
push edi
mov dword [esp + 0x30], eax
mov dword [esp + 0x34], 0
mov dword [esp + 0x38], 0
call fcn.0040d850
mov dword [esp + 0x2c], 0
mov dword [esp + 0x30], 0
mov dword [esp + 0x34], 0
test ebx, ebx
je 0x40dec9
mov ebx, dword [esp + 0x10]
mov ecx, ebx
push edi
call fcn.0040db50
mov esi, eax
test esi, esi
js 0x40e452
push edi
mov ecx, ebx
call fcn.0040d690
mov esi, eax
test esi, esi
js 0x40e452
mov byte [esp + 0x2278], 0
mov dword [esp + 0x30], 0
jmp 0x40e205
mov byte [esp + 0x2278], 0
mov dword [esp + 0x30], 0
push str.NoRemove
push edi
call dword [sym.imp.KERNEL32.dll_lstrcmpiW]
test eax, eax
jne 0x40df05
mov ecx, dword [esp + 0x10]
xor ebx, ebx
push edi
mov dword [esp + 0x20], ebx
call fcn.0040db50
mov esi, eax
test esi, esi
js 0x40e4b9
jmp 0x40df09
mov ebx, dword [esp + 0x1c]
push 0x47c0f4
push edi
call dword [sym.imp.KERNEL32.dll_lstrcmpiW]
test eax, eax
jne 0x40e0b4
mov ecx, dword [esp + 0x10]
lea eax, [esp + 0x264]
push eax
call fcn.0040db50
mov esi, eax
test esi, esi
js 0x40e4b9
mov ecx, dword [esp + 0x10]
push edi
call fcn.0040db50
mov esi, eax
test esi, esi
js 0x40e4b9
cmp word [edi], 0x3d
jne 0x40e44b
cmp dword [ebp + 0x10], 0
je 0x40dff9
xorps xmm0, xmm0
mov dword [esp + 0x40], 0
movq qword [esp + 0x38], xmm0
mov dword [esp + 0x38], 0
mov dword [esp + 0x3c], 0
mov dword [esp + 0x40], 0
mov byte [esp + 0x2278], 2
mov eax, dword [esp + 0x14]
mov ebx, dword [esp + 0x10]
mov ecx, ebx
mov dword [esp + 0x38], eax
lea eax, [esp + 0x264]
push edi
push eax
lea eax, [esp + 0x40]
mov dword [esp + 0x44], 0
push eax
mov dword [esp + 0x4c], 0
call fcn.0040d160
mov esi, eax
mov dword [esp + 0x38], 0
mov dword [esp + 0x3c], 0
mov dword [esp + 0x40], 0
test esi, esi
js 0x40e465
mov byte [esp + 0x2278], 0
mov dword [esp + 0x3c], 0
jmp 0x40e205
cmp dword [ebp + 0x14], 0
jne 0x40e09b
test ebx, ebx
je 0x40e09b
xorps xmm0, xmm0
mov dword [esp + 0x58], 0
movq qword [esp + 0x50], xmm0
mov dword [esp + 0x50], 0
mov dword [esp + 0x54], 0
mov dword [esp + 0x58], 0
mov byte [esp + 0x2278], 3
lea ecx, [esp + 0x50]
push 0x20006
push 0
push dword [esp + 0x1c]
call fcn.0040d7c0
test eax, eax
jne 0x40e478
mov esi, dword [esp + 0x50]
lea eax, [esp + 0x264]
push eax
push esi
call dword [sym.imp.ADVAPI32.dll_RegDeleteValueW]
test eax, eax
je 0x40e078
cmp eax, 2
jne 0x40e478
mov byte [esp + 0x2278], 0
test esi, esi
je 0x40e093
push esi
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov dword [esp + 0x50], 0
mov dword [esp + 0x54], 0
mov ecx, dword [esp + 0x10]
push edi
call fcn.0040d690
mov esi, eax
test esi, esi
js 0x40e4b9
jmp 0x40e42b
movzx eax, word [edi]
mov ecx, edi
test ax, ax
je 0x40e0e1
mov edi, edi
cmp ax, 0x5c
je 0x40e0d9
push ecx
call dword [sym.imp.USER32.dll_CharNextW]
mov ecx, eax
movzx eax, word [ecx]
test ax, ax
jne 0x40e0c0
jmp 0x40e0e1
test ecx, ecx
jne 0x40e44b
cmp dword [ebp + 0x10], 0
je 0x40e25e
mov eax, dword [esp + 0x28]
mov dword [esp + 0x1c], 0
test eax, eax
je 0x40e15f
cmp dword [eax], 0
je 0x40e14a
push str.Advapi32.dll
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test eax, eax
jne 0x40e11a
mov esi, dword [esp + 0x14]
mov eax, 1
jmp 0x40e177
push str.RegOpenKeyTransactedW
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov ecx, eax
test ecx, ecx
je 0x40e154
mov eax, dword [esp + 0x28]
mov esi, dword [esp + 0x14]
push 0
push dword [eax]
lea eax, [esp + 0x24]
push eax
push 0x2001f
push 0
push edi
push esi
call ecx
jmp 0x40e177
mov eax, dword [esp + 0x28]
cmp dword [eax + 4], 0
jne 0x40e15f
mov esi, dword [esp + 0x14]
mov eax, 1
jmp 0x40e177
mov esi, dword [esp + 0x14]
lea eax, [esp + 0x1c]
push eax
push 0x2001f
push 0
push edi
push esi
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x40e1a6
mov ecx, dword [esp + 0x20]
test ecx, ecx
je 0x40e192
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov dword [esp + 0x20], 0
mov ebx, dword [esp + 0x1c]
mov dword [esp + 0x24], 0
mov dword [esp + 0x20], ebx
test eax, eax
je 0x40e1d0
push 0x20019
push edi
push esi
lea ecx, [esp + 0x2c]
call fcn.0040d7c0
test eax, eax
je 0x40e1d0
sub esp, 0x14
lea ecx, [esp + 0x34]
push edi
push esi
call fcn.0040ce80
test eax, eax
jne 0x40e4b0
mov ebx, dword [esp + 0x10]
mov ecx, ebx
push edi
call fcn.0040db50
mov esi, eax
test esi, esi
js 0x40e4b9
cmp word [edi], 0x3d
jne 0x40e205
push edi
push 0
lea eax, [esp + 0x28]
mov ecx, ebx
push eax
call fcn.0040d160
mov esi, eax
test esi, esi
js 0x40e4b9
cmp word [edi], 0x7b
jne 0x40e42b
mov ecx, edi
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x40e214
sub ecx, edx
sar ecx, 1
cmp ecx, 1
jne 0x40e42b
push 0
push dword [ebp + 0x10]
mov ecx, ebx
push dword [esp + 0x28]
push edi
call fcn.0040dcd0
mov esi, eax
test esi, esi
js 0x40e4b9
push edi
mov ecx, ebx
call fcn.0040db50
mov esi, eax
test esi, esi
js 0x40e4b9
jmp 0x40e42b
cmp dword [ebp + 0x14], 0
jne 0x40e27f
push 0x20019
push edi
push dword [esp + 0x1c]
lea ecx, [esp + 0x2c]
call fcn.0040d7c0
mov ebx, eax
test ebx, ebx
jne 0x40e284
jmp 0x40e28b
mov ebx, 2
mov dword [ebp + 0x14], 1
push 0xffffffffffffffff
push edi
lea eax, [esp + 0x64]
push 0x104
push eax
call fcn.0044caff
push eax
call fcn.0040d5f0
mov ecx, dword [esp + 0x24]
add esp, 0x14
push edi
call fcn.0040db50
mov esi, eax
test esi, esi
js 0x40e4b9
mov ecx, dword [esp + 0x10]
push edi
call fcn.0040d690
mov esi, eax
test esi, esi
js 0x40e4b9
cmp word [edi], 0x7b
jne 0x40e32b
mov ecx, edi
lea edx, [ecx + 2]
lea esp, [esp]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x40e2e0
sub ecx, edx
sar ecx, 1
cmp ecx, 1
jne 0x40e32b
push dword [ebp + 0x14]
mov ecx, dword [esp + 0x14]
push 0
push dword [esp + 0x28]
push edi
call fcn.0040dcd0
mov esi, eax
test esi, esi
jns 0x40e317
cmp dword [ebp + 0x14], 0
je 0x40e4b9
mov ecx, dword [esp + 0x10]
push edi
call fcn.0040db50
mov esi, eax
test esi, esi
js 0x40e4b9
mov eax, dword [esp + 0x18]
mov dword [ebp + 0x14], eax
cmp ebx, 2
je 0x40e42b
test ebx, ebx
je 0x40e34e
test eax, eax
jne 0x40e42b
mov ecx, ebx
jmp 0x40e4b2
mov ebx, dword [esp + 0x20]
test eax, eax
je 0x40e391
push ebx
call fcn.0040da30
test eax, eax
je 0x40e391
lea eax, [esp + 0x5c]
push eax
call fcn.0040d710
test eax, eax
je 0x40e42b
mov eax, dword [esp + 0x1c]
test eax, eax
je 0x40e42b
lea eax, [esp + 0x5c]
push eax
lea ecx, [esp + 0x24]
call fcn.0040d850
jmp 0x40e42b
push ebx
call fcn.0040da30
mov ecx, dword [esp + 0x20]
mov ebx, eax
xor eax, eax
test ecx, ecx
je 0x40e3b0
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
xor ecx, ecx
mov dword [esp + 0x20], ecx
mov dword [esp + 0x24], 0
test eax, eax
jne 0x40e4b0
mov eax, dword [esp + 0x1c]
test eax, eax
je 0x40e42b
test ebx, ebx
jne 0x40e42b
xorps xmm0, xmm0
mov dword [esp + 0x4c], ebx
movq qword [esp + 0x44], xmm0
mov dword [esp + 0x44], ebx
mov dword [esp + 0x48], ebx
mov dword [esp + 0x4c], ebx
mov byte [esp + 0x2278], 4
lea ecx, [esp + 0x44]
mov eax, dword [esp + 0x14]
mov dword [esp + 0x44], eax
lea eax, [esp + 0x5c]
push eax
mov dword [esp + 0x4c], ebx
mov dword [esp + 0x50], ebx
call fcn.0040dac0
mov dword [esp + 0x44], ebx
mov dword [esp + 0x48], ebx
mov dword [esp + 0x4c], ebx
test eax, eax
jne 0x40e494
mov byte [esp + 0x2278], al
lea ecx, [esp + 0x44]
call fcn.0040daa0
cmp word [edi], 0x7d
jne 0x40dd80
jmp 0x40e4b9
mov byte [esp + 0x2278], 0
lea ecx, [esp + 0x2c]
call fcn.0040daa0
mov esi, 0x80020009
jmp 0x40e4b9
mov byte [esp + 0x2278], 0
lea ecx, [esp + 0x2c]
call fcn.0040daa0
jmp 0x40e4b9
mov byte [esp + 0x2278], 0
lea ecx, [esp + 0x38]
call fcn.0040daa0
jmp 0x40e4b9
mov ecx, eax
call fcn.0040db40
mov esi, eax
mov byte [esp + 0x2278], 0
lea ecx, [esp + 0x50]
call fcn.0040daa0
jmp 0x40e4b9
mov ecx, eax
call fcn.0040db40
mov esi, eax
mov byte [esp + 0x2278], 0
lea ecx, [esp + 0x44]
call fcn.0040daa0
jmp 0x40e4b9
mov ecx, eax
call fcn.0040db40
mov esi, eax
mov dword [esp + 0x2278], 0xffffffff
mov eax, dword [esp + 0x20]
test eax, eax
je 0x40e4db
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov dword [esp + 0x20], 0
mov eax, esi
mov dword [esp + 0x24], 0
mov ecx, dword [esp + 0x2270]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x2258]
xor ecx, esp
call fcn.0044b642
mov esp, ebp
pop ebp
ret 0x10