Function at 0x409d80
Capabilities:
Delete registry value

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x43c367
mov eax, dword fs:[0]
push eax
mov eax, 0x225c
call fcn.00439830
mov eax, dword [0x45d01c]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov eax, ecx
mov dword [ebp - 0x2264], eax
mov ecx, dword [ebp + 0xc]
xorps xmm0, xmm0
mov edi, dword [ebp + 8]
movq qword [ebp - 0x2260], xmm0
mov dword [ebp - 0x2260], 0
mov dword [ebp - 0x2258], 0
mov dword [ebp - 0x2268], ecx
mov dword [ebp - 0x225c], 0
mov dword [ebp - 0x2258], 0
mov dword [ebp - 4], 0
mov ecx, eax
push edi
call fcn.00409000
mov esi, eax
test esi, esi
js 0x40a6da
cmp word [edi], 0x7d
je 0x40a6da
nop dword [eax]
push str.Delete
push edi
mov dword [ebp - 0x2254], 1
call dword [sym.imp.KERNEL32.dll_lstrcmpiW]
neg eax
push 0x44dd5c
sbb ebx, ebx
push edi
inc ebx
call dword [sym.imp.KERNEL32.dll_lstrcmpiW]
test eax, eax
je 0x409e53
test ebx, ebx
je 0x409f91
mov ecx, dword [ebp - 0x2264]
push edi
call fcn.00409000
mov esi, eax
test esi, esi
js 0x40a6da
cmp dword [ebp + 0x10], 0
je 0x409f91
xorps xmm0, xmm0
mov dword [ebp - 0x2220], 0
movq qword [ebp - 0x2228], xmm0
mov dword [ebp - 0x2228], 0
mov dword [ebp - 0x2224], 0
mov dword [ebp - 0x2220], 0
mov byte [ebp - 4], 1
mov ecx, edi
movzx eax, word [edi]
test ax, ax
je 0x409ed9
mov edx, eax
cmp dx, 0x5c
je 0x409ed1
push ecx
call dword [sym.imp.USER32.dll_CharNextW]
mov ecx, eax
movzx eax, word [ecx]
mov edx, eax
test ax, ax
jne 0x409eb6
jmp 0x409ed9
test ecx, ecx
jne 0x40a618
mov esi, 0x44ded4
nop
push dword [esi]
push edi
call dword [sym.imp.KERNEL32.dll_lstrcmpiW]
test eax, eax
je 0x409f42
add esi, 4
cmp esi, 0x44df04
jl 0x409ee0
mov eax, dword [ebp - 0x2268]
lea ecx, [ebp - 0x2228]
push edi
mov dword [ebp - 0x2228], eax
mov dword [ebp - 0x2224], 0
mov dword [ebp - 0x2220], 0
call fcn.00408540
mov dword [ebp - 0x2228], 0
mov dword [ebp - 0x2224], 0
mov dword [ebp - 0x2220], 0
test ebx, ebx
je 0x409f83
mov ebx, dword [ebp - 0x2264]
mov ecx, ebx
push edi
call fcn.00409000
mov esi, eax
test esi, esi
js 0x40a630
push edi
mov ecx, ebx
call fcn.004097b0
mov esi, eax
test esi, esi
js 0x40a630
mov byte [ebp - 4], 0
mov dword [ebp - 0x2224], 0
jmp 0x40a31d
mov byte [ebp - 4], 0
mov dword [ebp - 0x2224], 0
push str.NoRemove
push edi
call dword [sym.imp.KERNEL32.dll_lstrcmpiW]
mov ebx, dword [ebp - 0x2264]
test eax, eax
jne 0x409fbf
push edi
mov ecx, ebx
mov dword [ebp - 0x2254], eax
call fcn.00409000
mov esi, eax
test esi, esi
js 0x40a6da
push 0x44dd54
push edi
call dword [sym.imp.KERNEL32.dll_lstrcmpiW]
test eax, eax
jne 0x40a188
lea eax, [ebp - 0x2218]
mov ecx, ebx
push eax
call fcn.00409000
mov esi, eax
test esi, esi
js 0x40a6da
push edi
mov ecx, ebx
call fcn.00409000
mov esi, eax
test esi, esi
js 0x40a6da
cmp word [edi], 0x3d
jne 0x40a626
cmp dword [ebp + 0x10], 0
je 0x40a0b9
xorps xmm0, xmm0
mov dword [ebp - 0x222c], 0
movq qword [ebp - 0x2234], xmm0
mov dword [ebp - 0x2234], 0
mov dword [ebp - 0x2230], 0
mov dword [ebp - 0x222c], 0
mov byte [ebp - 4], 2
mov ecx, ebx
mov eax, dword [ebp - 0x2268]
mov dword [ebp - 0x2234], eax
lea eax, [ebp - 0x2218]
push edi
push eax
lea eax, [ebp - 0x2234]
mov dword [ebp - 0x2230], 0
push eax
mov dword [ebp - 0x222c], 0
call fcn.004091c0
mov esi, eax
mov dword [ebp - 0x2234], 0
mov dword [ebp - 0x2230], 0
mov dword [ebp - 0x222c], 0
test esi, esi
js 0x40a643
mov byte [ebp - 4], 0
mov dword [ebp - 0x2230], 0
jmp 0x40a31d
cmp dword [ebp + 0x14], 0
jne 0x40a171
cmp dword [ebp - 0x2254], 0
je 0x40a171
xorps xmm0, xmm0
mov dword [ebp - 0x2238], 0
movq qword [ebp - 0x2240], xmm0
mov dword [ebp - 0x2240], 0
mov dword [ebp - 0x223c], 0
mov dword [ebp - 0x2238], 0
mov byte [ebp - 4], 3
lea ecx, [ebp - 0x2240]
push 0x20006
push 0
push dword [ebp - 0x2268]
call fcn.00408470
test eax, eax
jne 0x40a684
mov ebx, dword [ebp - 0x2240]
lea eax, [ebp - 0x2218]
push eax
push ebx
call dword [sym.imp.ADVAPI32.dll_RegDeleteValueW]
test eax, eax
je 0x40a148
cmp eax, 2
jne 0x40a656
mov byte [ebp - 4], 0
test ebx, ebx
je 0x40a161
push ebx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov dword [ebp - 0x2240], 0
mov ebx, dword [ebp - 0x2264]
mov dword [ebp - 0x223c], 0
push edi
mov ecx, ebx
call fcn.004097b0
mov esi, eax
test esi, esi
js 0x40a6da
jmp 0x40a609
movzx eax, word [edi]
mov ecx, edi
test ax, ax
je 0x40a1b7
mov edx, eax
cmp dx, 0x5c
je 0x40a1af
push ecx
call dword [sym.imp.USER32.dll_CharNextW]
mov ecx, eax
movzx eax, word [ecx]
mov edx, eax
test ax, ax
jne 0x40a194
jmp 0x40a1b7
test ecx, ecx
jne 0x40a626
cmp dword [ebp + 0x10], 0
je 0x40a37c
mov esi, dword [ebp - 0x2268]
lea ecx, [ebp - 0x2260]
push 0x2001f
push edi
push esi
call fcn.00408470
test eax, eax
je 0x40a2ea
push 0x20019
push edi
push esi
lea ecx, [ebp - 0x2260]
call fcn.00408470
test eax, eax
je 0x40a2ea
mov esi, dword [ebp - 0x2258]
mov dword [ebp - 0x2254], 0
test esi, esi
je 0x40a271
cmp dword [esi], 0
je 0x40a264
push str.Advapi32.dll
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test eax, eax
jne 0x40a22a
mov eax, 1
jmp 0x40a299
push str.RegCreateKeyTransactedW
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
test eax, eax
je 0x40a26a
push 0
push dword [esi]
lea ecx, [ebp - 0x2250]
push ecx
lea ecx, [ebp - 0x2254]
push ecx
push 0
push 0x2001f
push 0
push 0
push 0
push edi
push dword [ebp - 0x2268]
call eax
jmp 0x40a299
cmp dword [esi + 4], 0
jne 0x40a271
mov eax, 1
jmp 0x40a299
lea eax, [ebp - 0x2250]
push eax
lea eax, [ebp - 0x2254]
push eax
push 0
push 0x2001f
push 0
push 0
push 0
push edi
push dword [ebp - 0x2268]
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExW]
test eax, eax
jne 0x40a6d1
mov ecx, dword [ebp - 0x2260]
test ecx, ecx
je 0x40a2bc
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov dword [ebp - 0x2260], 0
mov ebx, dword [ebp - 0x2254]
mov dword [ebp - 0x225c], 0
mov dword [ebp - 0x2260], ebx
mov dword [ebp - 0x225c], 0
test eax, eax
jne 0x40a6d1
mov ebx, dword [ebp - 0x2264]
push edi
mov ecx, ebx
call fcn.00409000
mov esi, eax
test esi, esi
js 0x40a6da
cmp word [edi], 0x3d
jne 0x40a31d
push edi
push 0
lea eax, [ebp - 0x2260]
mov ecx, ebx
push eax
call fcn.004091c0
mov esi, eax
test esi, esi
js 0x40a6da
cmp word [edi], 0x7b
jne 0x40a609
mov ecx, edi
lea edx, [ecx + 2]
nop dword [eax]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x40a330
sub ecx, edx
sar ecx, 1
cmp ecx, 1
jne 0x40a609
push 0
push dword [ebp + 0x10]
mov ecx, ebx
push dword [ebp - 0x2260]
push edi
call fcn.00409d80
mov esi, eax
test esi, esi
js 0x40a6da
push edi
mov ecx, ebx
call fcn.00409000
mov esi, eax
test esi, esi
js 0x40a6da
jmp 0x40a609
mov esi, dword [ebp + 0x14]
test esi, esi
jne 0x40a39e
push 0x20019
push edi
push dword [ebp - 0x2268]
lea ecx, [ebp - 0x2260]
call fcn.00408470
mov ebx, eax
jmp 0x40a3a3
mov ebx, 2
test ebx, ebx
mov ecx, 1
push 0xffffffffffffffff
mov eax, esi
cmovne eax, ecx
push edi
mov dword [ebp - 0x221c], eax
lea eax, [ebp - 0x218]
push 0x104
push eax
call fcn.0042d607
push eax
call fcn.00407fd0
mov ecx, dword [ebp - 0x2264]
add esp, 0x14
push edi
call fcn.00409000
mov esi, eax
test esi, esi
js 0x40a6da
mov ecx, dword [ebp - 0x2264]
push edi
call fcn.004097b0
mov esi, eax
test esi, esi
js 0x40a6da
cmp word [edi], 0x7b
jne 0x40a467
mov ecx, edi
lea edx, [ecx + 2]
nop dword [eax]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x40a410
sub ecx, edx
sar ecx, 1
cmp ecx, 1
jne 0x40a467
push dword [ebp - 0x221c]
mov ecx, dword [ebp - 0x2264]
push 0
push dword [ebp - 0x2260]
push edi
call fcn.00409d80
mov esi, eax
test esi, esi
jns 0x40a451
cmp dword [ebp - 0x221c], 0
je 0x40a6da
mov ecx, dword [ebp - 0x2264]
push edi
call fcn.00409000
mov esi, eax
test esi, esi
js 0x40a6da
cmp ebx, 2
je 0x40a609
test ebx, ebx
je 0x40a485
cmp dword [ebp + 0x14], 0
jne 0x40a609
mov ecx, ebx
jmp 0x40a6d3
cmp dword [ebp + 0x14], 0
je 0x40a517
push 0
push 0
push 0
push 0
push 0
push 0
push 0
lea eax, [ebp - 0x221c]
mov dword [ebp - 0x221c], 0
push eax
push 0
push 0
push 0
push dword [ebp - 0x2260]
call dword [sym.imp.ADVAPI32.dll_RegQueryInfoKeyW]
test eax, eax
jne 0x40a517
cmp dword [ebp - 0x221c], eax
jbe 0x40a517
mov ebx, 0x44ded4
push dword [ebx]
lea eax, [ebp - 0x218]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcmpiW]
test eax, eax
je 0x40a609
add ebx, 4
cmp ebx, 0x44df04
jl 0x40a4d1
cmp dword [ebp - 0x2254], 0
je 0x40a609
lea eax, [ebp - 0x218]
push eax
lea ecx, [ebp - 0x2260]
call fcn.00408540
jmp 0x40a609
push 0
push 0
push 0
push 0
push 0
push 0
push 0
lea eax, [ebp - 0x221c]
mov dword [ebp - 0x221c], 0
push eax
push 0
push 0
push 0
push dword [ebp - 0x2260]
call dword [sym.imp.ADVAPI32.dll_RegQueryInfoKeyW]
test eax, eax
je 0x40a550
xor ebx, ebx
jmp 0x40a55c
xor eax, eax
cmp eax, dword [ebp - 0x221c]
sbb ebx, ebx
neg ebx
mov ecx, dword [ebp - 0x2260]
xor eax, eax
test ecx, ecx
je 0x40a577
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
xor ecx, ecx
mov dword [ebp - 0x2260], ecx
mov dword [ebp - 0x225c], 0
test eax, eax
jne 0x40a6d1
cmp dword [ebp - 0x2254], eax
je 0x40a609
test ebx, ebx
jne 0x40a609
xorps xmm0, xmm0
mov dword [ebp - 0x2244], ebx
movq qword [ebp - 0x224c], xmm0
mov dword [ebp - 0x224c], ebx
mov dword [ebp - 0x2248], ebx
mov dword [ebp - 0x2244], ebx
mov byte [ebp - 4], 4
lea ecx, [ebp - 0x224c]
mov eax, dword [ebp - 0x2268]
mov dword [ebp - 0x224c], eax
lea eax, [ebp - 0x218]
push eax
mov dword [ebp - 0x2248], ebx
mov dword [ebp - 0x2244], ebx
call fcn.00408390
mov dword [ebp - 0x224c], ebx
mov dword [ebp - 0x2248], ebx
mov dword [ebp - 0x2244], ebx
test eax, eax
jne 0x40a6b8
mov byte [ebp - 4], al
mov dword [ebp - 0x2248], eax
cmp word [edi], 0x7d
jne 0x409e20
jmp 0x40a6da
mov byte [ebp - 4], 0
mov dword [ebp - 0x2224], 0
mov esi, 0x80020009
jmp 0x40a6da
mov byte [ebp - 4], 0
mov dword [ebp - 0x2224], 0
jmp 0x40a6da
mov byte [ebp - 4], 0
mov dword [ebp - 0x2230], 0
jmp 0x40a6da
mov ecx, eax
call fcn.004080b0
mov esi, eax
mov byte [ebp - 4], 0
test ebx, ebx
je 0x40a6ac
push ebx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov dword [ebp - 0x2240], 0
mov dword [ebp - 0x223c], 0
jmp 0x40a6da
mov ecx, eax
call fcn.004080b0
mov esi, eax
mov byte [ebp - 4], 0
mov eax, dword [ebp - 0x2240]
test eax, eax
je 0x40a6ac
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov dword [ebp - 0x2240], 0
mov dword [ebp - 0x223c], 0
jmp 0x40a6da
mov ecx, eax
call fcn.004080b0
mov esi, eax
mov byte [ebp - 4], 0
mov dword [ebp - 0x2248], 0
jmp 0x40a6da
mov ecx, eax
call fcn.004080b0
mov esi, eax
mov dword [ebp - 4], 0xffffffff
mov eax, dword [ebp - 0x2260]
test eax, eax
je 0x40a6fc
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov dword [ebp - 0x2260], 0
mov eax, esi
mov dword [ebp - 0x225c], 0
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.00427d5e
mov esp, ebp
pop ebp
ret 0x10