Function at 0x40dd70
Capabilities:
Delete registry value

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x46d167
mov eax, dword fs:[0]
push eax
push ecx
mov eax, 0x225c
call fcn.004600f0
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.0040dbf0
mov esi, eax
test esi, esi
js 0x40e559
cmp word [edi], 0x7d
je 0x40e559
lea esp, [esp]
push str.Delete
push edi
mov dword [esp + 0x24], 1
call dword [sym.imp.KERNEL32.dll_lstrcmpiW]
neg eax
push 0x47c10c
sbb ebx, ebx
push edi
inc ebx
call dword [sym.imp.KERNEL32.dll_lstrcmpiW]
test eax, eax
je 0x40de51
test ebx, ebx
je 0x40df79
mov ecx, dword [esp + 0x10]
push edi
call fcn.0040dbf0
mov esi, eax
test esi, esi
js 0x40e559
cmp dword [ebp + 0x10], 0
je 0x40df79
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 0x40ded1
lea ebx, [ebx]
cmp ax, 0x5c
je 0x40dec9
push ecx
call dword [sym.imp.USER32.dll_CharNextW]
mov ecx, eax
movzx eax, word [ecx]
test ax, ax
jne 0x40deb0
jmp 0x40ded1
test ecx, ecx
jne 0x40e4da
mov esi, 0x47c330
push dword [esi]
push edi
call dword [sym.imp.KERNEL32.dll_lstrcmpiW]
test eax, eax
je 0x40df28
add esi, 4
cmp esi, 0x47c360
jl 0x40ded6
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.0040d8f0
mov dword [esp + 0x2c], 0
mov dword [esp + 0x30], 0
mov dword [esp + 0x34], 0
test ebx, ebx
je 0x40df69
mov ebx, dword [esp + 0x10]
mov ecx, ebx
push edi
call fcn.0040dbf0
mov esi, eax
test esi, esi
js 0x40e4f2
push edi
mov ecx, ebx
call fcn.0040d730
mov esi, eax
test esi, esi
js 0x40e4f2
mov byte [esp + 0x2278], 0
mov dword [esp + 0x30], 0
jmp 0x40e2a5
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 0x40dfa5
mov ecx, dword [esp + 0x10]
xor ebx, ebx
push edi
mov dword [esp + 0x20], ebx
call fcn.0040dbf0
mov esi, eax
test esi, esi
js 0x40e559
jmp 0x40dfa9
mov ebx, dword [esp + 0x1c]
push 0x47c104
push edi
call dword [sym.imp.KERNEL32.dll_lstrcmpiW]
test eax, eax
jne 0x40e154
mov ecx, dword [esp + 0x10]
lea eax, [esp + 0x264]
push eax
call fcn.0040dbf0
mov esi, eax
test esi, esi
js 0x40e559
mov ecx, dword [esp + 0x10]
push edi
call fcn.0040dbf0
mov esi, eax
test esi, esi
js 0x40e559
cmp word [edi], 0x3d
jne 0x40e4eb
cmp dword [ebp + 0x10], 0
je 0x40e099
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.0040d200
mov esi, eax
mov dword [esp + 0x38], 0
mov dword [esp + 0x3c], 0
mov dword [esp + 0x40], 0
test esi, esi
js 0x40e505
mov byte [esp + 0x2278], 0
mov dword [esp + 0x3c], 0
jmp 0x40e2a5
cmp dword [ebp + 0x14], 0
jne 0x40e13b
test ebx, ebx
je 0x40e13b
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.0040d860
test eax, eax
jne 0x40e518
mov esi, dword [esp + 0x50]
lea eax, [esp + 0x264]
push eax
push esi
call dword [sym.imp.ADVAPI32.dll_RegDeleteValueW]
test eax, eax
je 0x40e118
cmp eax, 2
jne 0x40e518
mov byte [esp + 0x2278], 0
test esi, esi
je 0x40e133
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.0040d730
mov esi, eax
test esi, esi
js 0x40e559
jmp 0x40e4cb
movzx eax, word [edi]
mov ecx, edi
test ax, ax
je 0x40e181
mov edi, edi
cmp ax, 0x5c
je 0x40e179
push ecx
call dword [sym.imp.USER32.dll_CharNextW]
mov ecx, eax
movzx eax, word [ecx]
test ax, ax
jne 0x40e160
jmp 0x40e181
test ecx, ecx
jne 0x40e4eb
cmp dword [ebp + 0x10], 0
je 0x40e2fe
mov eax, dword [esp + 0x28]
mov dword [esp + 0x1c], 0
test eax, eax
je 0x40e1ff
cmp dword [eax], 0
je 0x40e1ea
push str.Advapi32.dll
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test eax, eax
jne 0x40e1ba
mov esi, dword [esp + 0x14]
mov eax, 1
jmp 0x40e217
push str.RegOpenKeyTransactedW
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov ecx, eax
test ecx, ecx
je 0x40e1f4
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 0x40e217
mov eax, dword [esp + 0x28]
cmp dword [eax + 4], 0
jne 0x40e1ff
mov esi, dword [esp + 0x14]
mov eax, 1
jmp 0x40e217
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 0x40e246
mov ecx, dword [esp + 0x20]
test ecx, ecx
je 0x40e232
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 0x40e270
push 0x20019
push edi
push esi
lea ecx, [esp + 0x2c]
call fcn.0040d860
test eax, eax
je 0x40e270
sub esp, 0x14
lea ecx, [esp + 0x34]
push edi
push esi
call fcn.0040cf20
test eax, eax
jne 0x40e550
mov ebx, dword [esp + 0x10]
mov ecx, ebx
push edi
call fcn.0040dbf0
mov esi, eax
test esi, esi
js 0x40e559
cmp word [edi], 0x3d
jne 0x40e2a5
push edi
push 0
lea eax, [esp + 0x28]
mov ecx, ebx
push eax
call fcn.0040d200
mov esi, eax
test esi, esi
js 0x40e559
cmp word [edi], 0x7b
jne 0x40e4cb
mov ecx, edi
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x40e2b4
sub ecx, edx
sar ecx, 1
cmp ecx, 1
jne 0x40e4cb
push 0
push dword [ebp + 0x10]
mov ecx, ebx
push dword [esp + 0x28]
push edi
call fcn.0040dd70
mov esi, eax
test esi, esi
js 0x40e559
push edi
mov ecx, ebx
call fcn.0040dbf0
mov esi, eax
test esi, esi
js 0x40e559
jmp 0x40e4cb
cmp dword [ebp + 0x14], 0
jne 0x40e31f
push 0x20019
push edi
push dword [esp + 0x1c]
lea ecx, [esp + 0x2c]
call fcn.0040d860
mov ebx, eax
test ebx, ebx
jne 0x40e324
jmp 0x40e32b
mov ebx, 2
mov dword [ebp + 0x14], 1
push 0xffffffffffffffff
push edi
lea eax, [esp + 0x64]
push 0x104
push eax
call fcn.0044cd7f
push eax
call fcn.0040d690
mov ecx, dword [esp + 0x24]
add esp, 0x14
push edi
call fcn.0040dbf0
mov esi, eax
test esi, esi
js 0x40e559
mov ecx, dword [esp + 0x10]
push edi
call fcn.0040d730
mov esi, eax
test esi, esi
js 0x40e559
cmp word [edi], 0x7b
jne 0x40e3cb
mov ecx, edi
lea edx, [ecx + 2]
lea esp, [esp]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x40e380
sub ecx, edx
sar ecx, 1
cmp ecx, 1
jne 0x40e3cb
push dword [ebp + 0x14]
mov ecx, dword [esp + 0x14]
push 0
push dword [esp + 0x28]
push edi
call fcn.0040dd70
mov esi, eax
test esi, esi
jns 0x40e3b7
cmp dword [ebp + 0x14], 0
je 0x40e559
mov ecx, dword [esp + 0x10]
push edi
call fcn.0040dbf0
mov esi, eax
test esi, esi
js 0x40e559
mov eax, dword [esp + 0x18]
mov dword [ebp + 0x14], eax
cmp ebx, 2
je 0x40e4cb
test ebx, ebx
je 0x40e3ee
test eax, eax
jne 0x40e4cb
mov ecx, ebx
jmp 0x40e552
mov ebx, dword [esp + 0x20]
test eax, eax
je 0x40e431
push ebx
call fcn.0040dad0
test eax, eax
je 0x40e431
lea eax, [esp + 0x5c]
push eax
call fcn.0040d7b0
test eax, eax
je 0x40e4cb
mov eax, dword [esp + 0x1c]
test eax, eax
je 0x40e4cb
lea eax, [esp + 0x5c]
push eax
lea ecx, [esp + 0x24]
call fcn.0040d8f0
jmp 0x40e4cb
push ebx
call fcn.0040dad0
mov ecx, dword [esp + 0x20]
mov ebx, eax
xor eax, eax
test ecx, ecx
je 0x40e450
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 0x40e550
mov eax, dword [esp + 0x1c]
test eax, eax
je 0x40e4cb
test ebx, ebx
jne 0x40e4cb
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.0040db60
mov dword [esp + 0x44], ebx
mov dword [esp + 0x48], ebx
mov dword [esp + 0x4c], ebx
test eax, eax
jne 0x40e534
mov byte [esp + 0x2278], al
lea ecx, [esp + 0x44]
call fcn.0040db40
cmp word [edi], 0x7d
jne 0x40de20
jmp 0x40e559
mov byte [esp + 0x2278], 0
lea ecx, [esp + 0x2c]
call fcn.0040db40
mov esi, 0x80020009
jmp 0x40e559
mov byte [esp + 0x2278], 0
lea ecx, [esp + 0x2c]
call fcn.0040db40
jmp 0x40e559
mov byte [esp + 0x2278], 0
lea ecx, [esp + 0x38]
call fcn.0040db40
jmp 0x40e559
mov ecx, eax
call fcn.0040dbe0
mov esi, eax
mov byte [esp + 0x2278], 0
lea ecx, [esp + 0x50]
call fcn.0040db40
jmp 0x40e559
mov ecx, eax
call fcn.0040dbe0
mov esi, eax
mov byte [esp + 0x2278], 0
lea ecx, [esp + 0x44]
call fcn.0040db40
jmp 0x40e559
mov ecx, eax
call fcn.0040dbe0
mov esi, eax
mov dword [esp + 0x2278], 0xffffffff
mov eax, dword [esp + 0x20]
test eax, eax
je 0x40e57b
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.0044b7e1
mov esp, ebp
pop ebp
ret 0x10