Function at 0x40d040
Capabilities:
Delete registry value

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x54a1b9
mov eax, dword fs:[0]
push eax
mov eax, 0x2258
call fcn.00530440
mov eax, dword [0x5b01a0]
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 ebx, ecx
mov eax, dword [ebp + 0xc]
mov edi, dword [ebp + 8]
mov dword [ebp - 0x2220], eax
xor eax, eax
mov dword [ebp - 0x222c], eax
mov dword [ebp - 0x2228], eax
mov dword [ebp - 0x2224], eax
mov dword [ebp - 4], eax
mov eax, dword [ebp + 0x14]
mov dword [ebp - 0x2264], eax
jmp 0x40d59f
push str.Delete
push edi
mov dword [ebp - 0x223c], 1
call dword [sym.imp.KERNEL32.dll_lstrcmpiW]
neg eax
push 0x55c454
sbb esi, esi
inc esi
push edi
mov dword [ebp - 0x221c], esi
call dword [sym.imp.KERNEL32.dll_lstrcmpiW]
test eax, eax
je 0x40d0de
test esi, esi
je 0x40d1aa
push edi
mov ecx, ebx
call fcn.0040c7c8
mov esi, eax
test esi, esi
js 0x40d5d3
xor esi, esi
cmp dword [ebp + 0x10], esi
je 0x40d1ac
push 0x5c
push edi
mov dword [ebp - 0x2238], esi
mov dword [ebp - 0x2234], esi
mov dword [ebp - 0x2230], esi
call fcn.0040d842
pop ecx
pop ecx
test eax, eax
jne 0x40d5c3
push edi
mov ecx, ebx
call fcn.0040c31b
test eax, eax
je 0x40d161
mov eax, dword [ebp - 0x2220]
lea ecx, [ebp - 0x2238]
push edi
mov dword [ebp - 0x2238], eax
mov dword [ebp - 0x2234], esi
mov dword [ebp - 0x2230], esi
call fcn.0040cbb0
mov dword [ebp - 0x2238], esi
mov dword [ebp - 0x2234], esi
mov dword [ebp - 0x2230], esi
cmp dword [ebp - 0x221c], esi
je 0x40d19d
push edi
mov ecx, ebx
call fcn.0040c7c8
mov esi, eax
test esi, esi
js 0x40d5bb
push edi
mov ecx, ebx
call fcn.0040d7b9
lea ecx, [ebp - 0x2238]
mov esi, eax
call fcn.0040c3ea
test esi, esi
js 0x40d5d3
jmp 0x40d56c
lea ecx, [ebp - 0x2238]
call fcn.0040c3ea
jmp 0x40d1ac
xor esi, esi
push str.NoRemove
push edi
call dword [sym.imp.KERNEL32.dll_lstrcmpiW]
test eax, eax
jne 0x40d1d4
push edi
mov ecx, ebx
mov dword [ebp - 0x223c], esi
call fcn.0040c7c8
mov esi, eax
test esi, esi
js 0x40d5d3
push 0x55c44c
push edi
call dword [sym.imp.KERNEL32.dll_lstrcmpiW]
test eax, eax
jne 0x40d2fe
lea eax, [ebp - 0x2218]
mov ecx, ebx
push eax
call fcn.0040c7c8
mov esi, eax
test esi, esi
js 0x40d5d3
push edi
mov ecx, ebx
call fcn.0040c7c8
mov esi, eax
test esi, esi
js 0x40d5d3
push 0x3d
pop eax
cmp word [edi], ax
jne 0x40d5ce
cmp dword [ebp + 0x10], 0
je 0x40d284
mov eax, dword [ebp - 0x2220]
mov ecx, ebx
and dword [ebp - 0x2250], 0
and dword [ebp - 0x224c], 0
mov dword [ebp - 0x2254], eax
lea eax, [ebp - 0x2218]
push edi
push eax
lea eax, [ebp - 0x2254]
mov byte [ebp - 4], 1
push eax
call fcn.0040bd84
mov esi, eax
lea ecx, [ebp - 0x2254]
xor eax, eax
mov dword [ebp - 0x2254], eax
mov dword [ebp - 0x2250], eax
mov dword [ebp - 0x224c], eax
test esi, esi
js 0x40d60d
mov byte [ebp - 4], al
jmp 0x40d567
cmp dword [ebp + 0x14], 0
jne 0x40d2f1
cmp dword [ebp - 0x223c], 0
je 0x40d2f1
xor eax, eax
lea ecx, [ebp - 0x2260]
push 0x20006
push eax
push dword [ebp - 0x2220]
mov dword [ebp - 0x2260], eax
mov dword [ebp - 0x225c], eax
mov dword [ebp - 0x2258], eax
call fcn.0040c903
test eax, eax
jne 0x40d5fe
lea eax, [ebp - 0x2218]
push eax
push dword [ebp - 0x2260]
call dword [sym.imp.ADVAPI32.dll_RegDeleteValueW]
test eax, eax
je 0x40d2e6
cmp eax, 2
jne 0x40d5fe
lea ecx, [ebp - 0x2260]
call fcn.0040c3ea
push edi
mov ecx, ebx
call fcn.0040d7b9
jmp 0x40d5a7
push 0x5c
push edi
call fcn.0040d842
pop ecx
pop ecx
test eax, eax
jne 0x40d5ce
cmp dword [ebp + 0x10], eax
je 0x40d3a1
mov esi, dword [ebp - 0x2220]
lea ecx, [ebp - 0x222c]
push 0x2001f
push edi
push esi
call fcn.0040c903
test eax, eax
je 0x40d36b
push 0x20019
push edi
push esi
lea ecx, [ebp - 0x222c]
call fcn.0040c903
test eax, eax
je 0x40d36b
xor eax, eax
lea ecx, [ebp - 0x222c]
push eax
push eax
push 0x2001f
push eax
push eax
push edi
push esi
call fcn.0040c404
test eax, eax
jne 0x40d482
push edi
mov ecx, ebx
call fcn.0040c7c8
mov esi, eax
test esi, esi
js 0x40d5d3
push 0x3d
pop eax
cmp word [edi], ax
jne 0x40d56c
push edi
push 0
lea eax, [ebp - 0x222c]
mov ecx, ebx
push eax
call fcn.0040bd84
mov esi, eax
jmp 0x40d190
cmp dword [ebp + 0x14], 0
jne 0x40d3c0
push 0x20019
push edi
push dword [ebp - 0x2220]
lea ecx, [ebp - 0x222c]
call fcn.0040c903
jmp 0x40d3c3
push 2
pop eax
mov dword [ebp - 0x221c], eax
test eax, eax
je 0x40d3d4
mov dword [ebp + 0x14], 1
push 0xffffffffffffffff
push edi
lea eax, [ebp - 0x218]
push 0x104
push eax
call fcn.0053037b
push eax
call fcn.0040341e
add esp, 0x14
mov ecx, ebx
push edi
call fcn.0040c7c8
mov esi, eax
test esi, esi
js 0x40d5d3
push edi
mov ecx, ebx
call fcn.0040d7b9
mov esi, eax
test esi, esi
js 0x40d5d3
push 0x7b
pop eax
cmp word [edi], ax
jne 0x40d45e
push edi
call fcn.0052eb7a
pop ecx
cmp eax, 1
jne 0x40d45e
push dword [ebp + 0x14]
mov ecx, ebx
push 0
push dword [ebp - 0x222c]
push edi
call fcn.0040d040
mov esi, eax
test esi, esi
jns 0x40d44c
cmp dword [ebp + 0x14], 0
je 0x40d5d3
push edi
mov ecx, ebx
call fcn.0040c7c8
mov esi, eax
test esi, esi
js 0x40d5d3
mov eax, dword [ebp - 0x221c]
mov ecx, dword [ebp - 0x2264]
mov dword [ebp + 0x14], ecx
cmp eax, 2
je 0x40d5ad
test eax, eax
je 0x40d490
test ecx, ecx
jne 0x40d5ad
push eax
call fcn.0040c307
pop ecx
mov esi, eax
jmp 0x40d5d3
test ecx, ecx
je 0x40d4df
push dword [ebp - 0x222c]
mov ecx, ebx
call fcn.0040c671
test eax, eax
je 0x40d4df
lea eax, [ebp - 0x218]
mov ecx, ebx
push eax
call fcn.0040c31b
test eax, eax
je 0x40d5ad
cmp dword [ebp - 0x223c], 0
je 0x40d5ad
lea eax, [ebp - 0x218]
push eax
lea ecx, [ebp - 0x222c]
call fcn.0040cbb0
jmp 0x40d5ad
push dword [ebp - 0x222c]
mov ecx, ebx
call fcn.0040c671
lea ecx, [ebp - 0x222c]
mov dword [ebp - 0x221c], eax
call fcn.0040c3ea
test eax, eax
jne 0x40d482
cmp dword [ebp - 0x223c], eax
je 0x40d5ad
cmp dword [ebp - 0x221c], eax
jne 0x40d5ad
mov eax, dword [ebp - 0x2220]
lea ecx, [ebp - 0x2248]
and dword [ebp - 0x2244], 0
and dword [ebp - 0x2240], 0
mov dword [ebp - 0x2248], eax
lea eax, [ebp - 0x218]
push eax
call fcn.0040c475
xor ecx, ecx
mov dword [ebp - 0x2248], ecx
mov dword [ebp - 0x2244], ecx
mov dword [ebp - 0x2240], ecx
test eax, eax
jne 0x40d614
lea ecx, [ebp - 0x2248]
call fcn.0040c3ea
cmp dword [ebp + 0x10], 0
je 0x40d5ad
push 0x7b
pop eax
cmp word [edi], ax
jne 0x40d5ad
push edi
call fcn.0052eb7a
pop ecx
cmp eax, 1
jne 0x40d5ad
push 0
push dword [ebp + 0x10]
mov ecx, ebx
push dword [ebp - 0x222c]
push edi
call fcn.0040d040
mov esi, eax
test esi, esi
js 0x40d5d3
push edi
mov ecx, ebx
call fcn.0040c7c8
mov esi, eax
test esi, esi
js 0x40d5d3
push 0x7d
pop eax
cmp word [edi], ax
jne 0x40d0a5
jmp 0x40d5d3
lea ecx, [ebp - 0x2238]
jmp 0x40d60d
lea ecx, [ebp - 0x2238]
call fcn.0040c3ea
mov esi, 0x80020009
lea ecx, [ebp - 0x222c]
call fcn.0040c3ea
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.0052cad4
mov esp, ebp
pop ebp
ret 0x10
push eax
call fcn.0040c307
pop ecx
lea ecx, [ebp - 0x2260]
mov esi, eax
call fcn.0040c3ea
jmp 0x40d5d3
push eax
call fcn.0040c307
pop ecx
lea ecx, [ebp - 0x2248]
jmp 0x40d60b