Function at 0x40dd3b
Capabilities:
Delete registry key
Delete registry value

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4429bd
mov eax, dword fs:[0]
push eax
mov eax, 0x2244
call 0x43a5d0
mov eax, dword [0x458060]
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, dword [ebp + 0xc]
mov edi, dword [ebp + 8]
xor ebx, ebx
mov dword [ebp - 0x221c], ecx
mov dword [ebp - 0x2228], eax
mov dword [ebp - 0x2224], ebx
mov dword [ebp - 0x2220], ebx
mov eax, dword [ebp + 0x14]
mov dword [ebp - 0x2244], eax
mov eax, edi
mov dword [ebp - 4], ebx
call fcn.0040dc25
mov esi, eax
cmp esi, ebx
jl 0x40e268
cmp word [edi], 0x7d
je 0x40e266
mov esi, dword [sym.imp.KERNEL32.dll_lstrcmpiW]
push 0x44c844
push edi
mov dword [ebp - 0x2230], 1
call esi
mov ebx, eax
neg ebx
push 0x44c810
sbb ebx, ebx
push edi
inc ebx
call esi
test eax, eax
je 0x40dde7
test ebx, ebx
je 0x40def7
mov ecx, dword [ebp - 0x221c]
mov eax, edi
call fcn.0040dc25
mov esi, eax
test esi, esi
jl 0x40e251
xor esi, esi
cmp dword [ebp + 0x10], esi
je 0x40def9
push 0x5c
mov eax, edi
mov dword [ebp - 0x2240], esi
mov dword [ebp - 0x223c], esi
call fcn.0040d4cc
pop ecx
test eax, eax
jne 0x40e343
push edi
call fcn.0040da16
test eax, eax
je 0x40de5b
mov eax, dword [ebp - 0x2228]
push edi
lea ecx, [ebp - 0x2240]
mov dword [ebp - 0x2240], eax
mov dword [ebp - 0x223c], esi
call fcn.0040da75
mov dword [ebp - 0x2240], esi
mov dword [ebp - 0x223c], esi
cmp ebx, esi
je 0x40deef
mov ecx, dword [ebp - 0x221c]
mov eax, edi
call fcn.0040dc25
mov esi, eax
test esi, esi
jl 0x40e251
mov ecx, dword [ebp - 0x221c]
call fcn.0040d9b1
mov esi, eax
test esi, esi
jl 0x40e251
and dword [ebp - 0x223c], 0
cmp word [edi], 0x7b
jne 0x40dee0
push edi
call dword [sym.imp.KERNEL32.dll_lstrlenW]
cmp eax, 1
jne 0x40dee0
mov ecx, dword [ebp - 0x221c]
push 0
push dword [ebp + 0x10]
push dword [ebp - 0x2224]
push edi
call fcn.0040dd3b
mov esi, eax
test esi, esi
jl 0x40e251
mov ecx, dword [ebp - 0x221c]
mov eax, edi
call fcn.0040dc25
mov esi, eax
test esi, esi
jl 0x40e251
cmp word [edi], 0x7d
jne 0x40ddb4
jmp 0x40e251
mov dword [ebp - 0x223c], esi
jmp 0x40def9
xor esi, esi
push 0x44c82c
push edi
call dword [sym.imp.KERNEL32.dll_lstrcmpiW]
test eax, eax
jne 0x40df28
and dword [ebp - 0x2230], eax
mov ecx, dword [ebp - 0x221c]
mov eax, edi
call fcn.0040dc25
mov esi, eax
test esi, esi
jl 0x40e251
xor esi, esi
push 0x44c804
push edi
call dword [sym.imp.KERNEL32.dll_lstrcmpiW]
test eax, eax
jne 0x40e05e
mov ecx, dword [ebp - 0x221c]
lea eax, [ebp - 0x2218]
call fcn.0040dc25
mov esi, eax
test esi, esi
jl 0x40e251
mov ecx, dword [ebp - 0x221c]
mov eax, edi
call fcn.0040dc25
mov esi, eax
test esi, esi
jl 0x40e251
cmp word [edi], 0x3d
jne 0x40e361
xor ebx, ebx
cmp dword [ebp + 0x10], ebx
je 0x40dfd2
mov eax, dword [ebp - 0x2228]
mov ecx, dword [ebp - 0x221c]
mov byte [ebp - 4], 1
mov dword [ebp - 0x224c], eax
push edi
lea eax, [ebp - 0x2218]
push eax
lea edx, [ebp - 0x224c]
mov dword [ebp - 0x2248], ebx
call fcn.0040d634
mov esi, eax
cmp esi, ebx
mov dword [ebp - 0x224c], ebx
mov dword [ebp - 0x2248], ebx
jl 0x40e3b7
mov byte [ebp - 4], bl
mov dword [ebp - 0x2248], ebx
jmp 0x40de96
cmp dword [ebp + 0x14], ebx
jne 0x40e04a
cmp dword [ebp - 0x2230], ebx
je 0x40e04a
push 0x20006
push ebx
push dword [ebp - 0x2228]
lea eax, [ebp - 0x2238]
mov dword [ebp - 0x2238], ebx
mov dword [ebp - 0x2234], ebx
call fcn.0040da42
cmp eax, ebx
jne 0x40e36a
lea eax, [ebp - 0x2218]
push eax
push dword [ebp - 0x2238]
call dword [sym.imp.ADVAPI32.dll_RegDeleteValueW]
cmp eax, ebx
je 0x40e02a
cmp eax, 2
jne 0x40e36a
cmp dword [ebp - 0x2238], ebx
je 0x40e044
push dword [ebp - 0x2238]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov dword [ebp - 0x2238], ebx
mov dword [ebp - 0x2234], ebx
mov ecx, dword [ebp - 0x221c]
call fcn.0040d9b1
mov esi, eax
cmp esi, ebx
jmp 0x40deda
push 0x5c
mov eax, edi
call fcn.0040d4cc
pop ecx
test eax, eax
jne 0x40e343
cmp dword [ebp + 0x10], esi
je 0x40e152
mov ebx, 0x2001f
push ebx
push edi
push dword [ebp - 0x2228]
lea eax, [ebp - 0x2224]
call fcn.0040da42
test eax, eax
je 0x40e10e
push 0x20019
push edi
push dword [ebp - 0x2228]
lea eax, [ebp - 0x2224]
call fcn.0040da42
test eax, eax
je 0x40e10e
lea eax, [ebp - 0x2250]
push eax
lea eax, [ebp - 0x2230]
push eax
push esi
push ebx
push esi
push esi
push esi
push edi
push dword [ebp - 0x2228]
mov dword [ebp - 0x2230], esi
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExW]
cmp eax, esi
jne 0x40e38e
xor eax, eax
cmp dword [ebp - 0x2224], esi
je 0x40e0f4
push dword [ebp - 0x2224]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov ecx, dword [ebp - 0x2230]
mov dword [ebp - 0x2220], esi
mov dword [ebp - 0x2224], ecx
cmp eax, esi
jne 0x40e38e
mov ecx, dword [ebp - 0x221c]
mov eax, edi
call fcn.0040dc25
mov esi, eax
test esi, esi
jl 0x40e251
cmp word [edi], 0x3d
jne 0x40de96
mov ecx, dword [ebp - 0x221c]
push edi
push 0
lea edx, [ebp - 0x2224]
call fcn.0040d634
mov esi, eax
test esi, esi
jl 0x40e251
jmp 0x40de96
cmp dword [ebp + 0x14], esi
jne 0x40e176
push 0x20019
push edi
push dword [ebp - 0x2228]
lea eax, [ebp - 0x2224]
call fcn.0040da42
mov dword [ebp - 0x222c], eax
jmp 0x40e180
mov dword [ebp - 0x222c], 2
cmp dword [ebp - 0x222c], esi
je 0x40e18f
mov dword [ebp + 0x14], 1
push 0xffffffffffffffff
push edi
lea eax, [ebp - 0x218]
push 0x104
push eax
call fcn.00428040
push eax
call fcn.0040d97c
mov ecx, dword [ebp - 0x221c]
add esp, 0x14
mov eax, edi
call fcn.0040dc25
mov esi, eax
test esi, esi
jl 0x40e251
mov ecx, dword [ebp - 0x221c]
call fcn.0040d9b1
mov esi, eax
test esi, esi
jl 0x40e251
cmp word [edi], 0x7b
jne 0x40e21c
push edi
call dword [sym.imp.KERNEL32.dll_lstrlenW]
cmp eax, 1
jne 0x40e21c
push dword [ebp + 0x14]
mov ecx, dword [ebp - 0x221c]
push 0
push dword [ebp - 0x2224]
push edi
call fcn.0040dd3b
mov esi, eax
test esi, esi
jge 0x40e209
cmp dword [ebp + 0x14], 0
je 0x40e251
mov ecx, dword [ebp - 0x221c]
mov eax, edi
call fcn.0040dc25
mov esi, eax
test esi, esi
jl 0x40e251
cmp dword [ebp - 0x222c], 2
mov eax, dword [ebp - 0x2244]
mov dword [ebp + 0x14], eax
je 0x40dee0
xor ebx, ebx
cmp dword [ebp - 0x222c], ebx
je 0x40e284
cmp eax, ebx
jne 0x40dee0
mov eax, dword [ebp - 0x222c]
call fcn.0040dbf6
mov esi, eax
cmp dword [ebp - 0x2224], 0
je 0x40e266
push dword [ebp - 0x2224]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, esi
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.004273ec
leave
ret 0x10
cmp eax, ebx
je 0x40e2cf
push dword [ebp - 0x2224]
call fcn.0040dba5
test eax, eax
je 0x40e2cf
lea eax, [ebp - 0x218]
push eax
call fcn.0040da16
test eax, eax
je 0x40dee0
cmp dword [ebp - 0x2230], 0
je 0x40dee0
lea eax, [ebp - 0x218]
push eax
lea ecx, [ebp - 0x2224]
call fcn.0040da75
jmp 0x40dee0
push dword [ebp - 0x2224]
call fcn.0040dba5
mov dword [ebp - 0x222c], eax
xor eax, eax
cmp dword [ebp - 0x2224], ebx
je 0x40e2fc
push dword [ebp - 0x2224]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov dword [ebp - 0x2224], ebx
mov dword [ebp - 0x2220], ebx
cmp eax, ebx
jne 0x40e3b0
cmp dword [ebp - 0x2230], ebx
je 0x40dee0
cmp dword [ebp - 0x222c], 0
jne 0x40dee0
lea eax, [ebp - 0x218]
push eax
push dword [ebp - 0x2228]
call dword [sym.imp.ADVAPI32.dll_RegDeleteKeyW]
test eax, eax
jne 0x40e24a
jmp 0x40dee0
cmp dword [ebp - 0x2224], esi
je 0x40e357
push dword [ebp - 0x2224]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, 0x80020009
jmp 0x40e268
cmp dword [ebp - 0x2224], 0
jmp 0x40e349
call fcn.0040dbf6
mov esi, eax
cmp dword [ebp - 0x2238], ebx
je 0x40e251
push dword [ebp - 0x2238]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
jmp 0x40e251
call fcn.0040dbf6
mov edi, eax
cmp dword [ebp - 0x2224], esi
je 0x40e3a9
push dword [ebp - 0x2224]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, edi
jmp 0x40e268
call fcn.0040dbf6
mov esi, eax
cmp dword [ebp - 0x2224], ebx
jmp 0x40e258