Function at 0x40b803
Capabilities:
Delete registry value

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x225c
call fcn.004228b0
mov eax, dword [0x44c5a0]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 0xc]
push ebx
mov dword [ebp - 0x2214], eax
xor eax, eax
push esi
mov dword [ebp - 0x2240], eax
mov dword [ebp - 0x2230], eax
mov dword [ebp - 0x222c], eax
mov dword [ebp - 0x2228], eax
mov eax, dword [ebp + 0x14]
push edi
mov edi, dword [ebp + 8]
mov ebx, ecx
mov dword [ebp - 0x225c], eax
push edi
call fcn.0040af7c
mov esi, eax
test esi, esi
js 0x40bda9
push 0x7d
pop eax
cmp word [edi], ax
je 0x40bda9
xor eax, eax
push str.Delete
inc eax
push edi
mov dword [ebp - 0x2224], eax
call dword [sym.imp.KERNEL32.dll_lstrcmpiW]
neg eax
sbb esi, esi
push 0x43d61c
inc esi
push edi
mov dword [ebp - 0x2210], esi
call dword [sym.imp.KERNEL32.dll_lstrcmpiW]
test eax, eax
je 0x40b8a2
test esi, esi
je 0x40b96e
push edi
mov ecx, ebx
call fcn.0040af7c
mov esi, eax
test esi, esi
js 0x40bda9
xor esi, esi
cmp dword [ebp + 0x10], esi
je 0x40b970
push 0x5c
push edi
mov dword [ebp - 0x2220], esi
mov dword [ebp - 0x221c], esi
mov dword [ebp - 0x2218], esi
call fcn.0040bfa3
pop ecx
pop ecx
test eax, eax
jne 0x40bd99
push edi
mov ecx, ebx
call fcn.0040a611
test eax, eax
je 0x40b925
mov eax, dword [ebp - 0x2214]
push edi
lea ecx, [ebp - 0x2220]
mov dword [ebp - 0x2220], eax
mov dword [ebp - 0x221c], esi
mov dword [ebp - 0x2218], esi
call fcn.0040b384
mov dword [ebp - 0x2220], esi
mov dword [ebp - 0x221c], esi
mov dword [ebp - 0x2218], esi
cmp dword [ebp - 0x2210], esi
je 0x40b961
push edi
mov ecx, ebx
call fcn.0040af7c
mov esi, eax
test esi, esi
js 0x40bd91
push edi
mov ecx, ebx
call fcn.0040bf1c
mov esi, eax
lea ecx, [ebp - 0x2220]
call fcn.0040a6de
test esi, esi
js 0x40bda9
jmp 0x40bd37
lea ecx, [ebp - 0x2220]
call fcn.0040a6de
jmp 0x40b970
xor esi, esi
push str.NoRemove
push edi
call dword [sym.imp.KERNEL32.dll_lstrcmpiW]
test eax, eax
jne 0x40b998
push edi
mov ecx, ebx
mov dword [ebp - 0x2224], esi
call fcn.0040af7c
mov esi, eax
test esi, esi
js 0x40bda9
push 0x43d614
push edi
call dword [sym.imp.KERNEL32.dll_lstrcmpiW]
test eax, eax
jne 0x40bab3
lea eax, [ebp - 0x220c]
push eax
mov ecx, ebx
call fcn.0040af7c
mov esi, eax
test esi, esi
js 0x40bda9
push edi
mov ecx, ebx
call fcn.0040af7c
mov esi, eax
test esi, esi
js 0x40bda9
push 0x3d
pop eax
cmp word [edi], ax
jne 0x40bda4
cmp dword [ebp + 0x10], 0
je 0x40ba39
mov eax, dword [ebp - 0x2214]
mov dword [ebp - 0x224c], eax
xor eax, eax
mov dword [ebp - 0x2248], eax
mov dword [ebp - 0x2244], eax
push edi
lea eax, [ebp - 0x220c]
push eax
lea eax, [ebp - 0x224c]
push eax
mov ecx, ebx
call fcn.0040a069
mov esi, eax
xor eax, eax
mov dword [ebp - 0x224c], eax
mov dword [ebp - 0x2248], eax
mov dword [ebp - 0x2244], eax
lea ecx, [ebp - 0x224c]
jmp 0x40b94f
cmp dword [ebp + 0x14], 0
jne 0x40baa6
cmp dword [ebp - 0x2224], 0
je 0x40baa6
xor eax, eax
push 0x20006
push eax
push dword [ebp - 0x2214]
lea ecx, [ebp - 0x2258]
mov dword [ebp - 0x2258], eax
mov dword [ebp - 0x2254], eax
mov dword [ebp - 0x2250], eax
call fcn.0040b0b5
test eax, eax
jne 0x40bdc7
lea eax, [ebp - 0x220c]
push eax
push dword [ebp - 0x2258]
call dword [sym.imp.ADVAPI32.dll_RegDeleteValueW]
test eax, eax
je 0x40ba9b
cmp eax, 2
jne 0x40bdc7
lea ecx, [ebp - 0x2258]
call fcn.0040a6de
push edi
mov ecx, ebx
call fcn.0040bf1c
jmp 0x40b854
push 0x5c
push edi
call fcn.0040bfa3
pop ecx
pop ecx
test eax, eax
jne 0x40bda4
cmp dword [ebp + 0x10], eax
je 0x40bb57
mov esi, dword [ebp - 0x2214]
push 0x2001f
push edi
push esi
lea ecx, [ebp - 0x2230]
call fcn.0040b0b5
test eax, eax
je 0x40bb20
push 0x20019
push edi
push esi
lea ecx, [ebp - 0x2230]
call fcn.0040b0b5
test eax, eax
je 0x40bb20
xor eax, eax
push eax
push eax
push 0x2001f
push eax
push eax
push edi
push esi
lea ecx, [ebp - 0x2230]
call fcn.0040a754
test eax, eax
jne 0x40bc4d
push edi
mov ecx, ebx
call fcn.0040af7c
mov esi, eax
test esi, esi
js 0x40bda9
push 0x3d
pop eax
cmp word [edi], ax
jne 0x40bd37
push edi
xor eax, eax
push eax
lea eax, [ebp - 0x2230]
push eax
mov ecx, ebx
call fcn.0040a069
mov esi, eax
jmp 0x40b954
mov esi, dword [ebp + 0x14]
test esi, esi
jne 0x40bb77
push 0x20019
push edi
push dword [ebp - 0x2214]
lea ecx, [ebp - 0x2230]
call fcn.0040b0b5
jmp 0x40bb7a
push 2
pop eax
push 1
test eax, eax
mov dword [ebp - 0x2210], eax
pop eax
push 0xffffffffffffffff
cmovne esi, eax
push edi
lea eax, [ebp - 0x20c]
push 0x104
push eax
mov dword [ebp + 0x14], esi
call fcn.00422aef
push eax
call fcn.0040a56e
add esp, 0x14
mov ecx, ebx
push edi
call fcn.0040af7c
mov esi, eax
test esi, esi
js 0x40bda9
push edi
mov ecx, ebx
call fcn.0040bf1c
mov esi, eax
test esi, esi
js 0x40bda9
push 0x7b
pop eax
cmp word [edi], ax
jne 0x40bc29
mov ecx, edi
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
cmp ax, word [ebp - 0x2240]
jne 0x40bbd9
sub ecx, edx
xor eax, eax
sar ecx, 1
inc eax
cmp ecx, eax
jne 0x40bc29
push dword [ebp + 0x14]
xor eax, eax
push eax
push dword [ebp - 0x2230]
mov ecx, ebx
push edi
call fcn.0040b803
mov esi, eax
test esi, esi
jns 0x40bc17
cmp dword [ebp + 0x14], 0
je 0x40bda9
push edi
mov ecx, ebx
call fcn.0040af7c
mov esi, eax
test esi, esi
js 0x40bda9
mov eax, dword [ebp - 0x2210]
mov ecx, dword [ebp - 0x225c]
mov dword [ebp + 0x14], ecx
cmp eax, 2
je 0x40b85e
test eax, eax
je 0x40bc5b
test ecx, ecx
jne 0x40b85e
push eax
call fcn.0040a5de
pop ecx
mov esi, eax
jmp 0x40bda9
test ecx, ecx
je 0x40bcaa
push dword [ebp - 0x2230]
mov ecx, ebx
call fcn.0040aafe
test eax, eax
je 0x40bcaa
lea eax, [ebp - 0x20c]
push eax
mov ecx, ebx
call fcn.0040a611
test eax, eax
je 0x40b85e
cmp dword [ebp - 0x2224], 0
je 0x40b85e
lea eax, [ebp - 0x20c]
push eax
lea ecx, [ebp - 0x2230]
call fcn.0040b384
jmp 0x40b85e
push dword [ebp - 0x2230]
mov ecx, ebx
call fcn.0040aafe
lea ecx, [ebp - 0x2230]
mov dword [ebp - 0x2210], eax
call fcn.0040a6de
test eax, eax
jne 0x40bc4d
cmp dword [ebp - 0x2224], eax
je 0x40b85e
cmp dword [ebp - 0x2210], eax
jne 0x40b85e
mov eax, dword [ebp - 0x2214]
mov dword [ebp - 0x223c], eax
xor eax, eax
mov dword [ebp - 0x2238], eax
mov dword [ebp - 0x2234], eax
lea eax, [ebp - 0x20c]
push eax
lea ecx, [ebp - 0x223c]
call fcn.0040a7c3
xor ecx, ecx
mov dword [ebp - 0x223c], ecx
mov dword [ebp - 0x2238], ecx
mov dword [ebp - 0x2234], ecx
test eax, eax
jne 0x40bddd
lea ecx, [ebp - 0x223c]
call fcn.0040a6de
cmp dword [ebp + 0x10], 0
je 0x40b85e
push 0x7b
pop eax
cmp word [edi], ax
jne 0x40b85e
mov ecx, edi
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
cmp ax, word [ebp - 0x2240]
jne 0x40bd52
sub ecx, edx
xor eax, eax
sar ecx, 1
inc eax
cmp ecx, eax
jne 0x40b85e
xor eax, eax
push eax
push dword [ebp + 0x10]
mov ecx, ebx
push dword [ebp - 0x2230]
push edi
call fcn.0040b803
mov esi, eax
test esi, esi
js 0x40bda9
mov ecx, ebx
jmp 0x40b84e
lea ecx, [ebp - 0x2220]
jmp 0x40bdd6
lea ecx, [ebp - 0x2220]
call fcn.0040a6de
mov esi, 0x80020009
lea ecx, [ebp - 0x2230]
call fcn.0040a6de
mov ecx, dword [ebp - 4]
pop edi
mov eax, esi
pop esi
xor ecx, ebp
pop ebx
call fcn.00421734
leave
ret 0x10
push eax
call fcn.0040a5de
pop ecx
lea ecx, [ebp - 0x2258]
mov esi, eax
call fcn.0040a6de
jmp 0x40bda9
push eax
call fcn.0040a5de
pop ecx
lea ecx, [ebp - 0x223c]
jmp 0x40bdd4