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

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x450251
mov eax, dword fs:[0]
push eax
mov eax, 0x224c
call fcn.0043c570
mov eax, dword [0x4650e0]
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 ebx, dword [ebp + 8]
xor esi, esi
mov dword [ebp - 0x221c], ecx
mov dword [ebp - 0x2220], eax
mov dword [ebp - 0x2228], esi
mov dword [ebp - 0x2224], esi
mov eax, dword [ebp + 0x14]
mov dword [ebp - 0x2250], eax
mov eax, ebx
mov dword [ebp - 4], esi
call fcn.0040af60
mov edi, eax
cmp edi, esi
jmp 0x40b5cc
mov edi, dword [sym.imp.KERNEL32.dll_lstrcmpiW]
push 0x45b31c
push ebx
mov dword [ebp - 0x2234], 1
call edi
mov esi, eax
neg esi
push str.ForceRemove
sbb esi, esi
push ebx
inc esi
call edi
test eax, eax
je 0x40b117
test esi, esi
je 0x40b1d9
mov ecx, dword [ebp - 0x221c]
mov eax, ebx
call fcn.0040af60
mov edi, eax
test edi, edi
jl 0x40b63a
cmp dword [ebp + 0x10], 0
je 0x40b1d9
xor edi, edi
push 0x5c
mov eax, ebx
mov dword [ebp - 0x2230], edi
mov dword [ebp - 0x222c], edi
call fcn.0040a831
pop ecx
test eax, eax
jne 0x40b5da
push ebx
call fcn.0040ad9c
test eax, eax
je 0x40b18c
mov eax, dword [ebp - 0x2220]
push ebx
lea ecx, [ebp - 0x2230]
mov dword [ebp - 0x2230], eax
mov dword [ebp - 0x222c], edi
call fcn.0040adfb
mov dword [ebp - 0x2230], edi
mov dword [ebp - 0x222c], edi
cmp esi, edi
je 0x40b1ce
mov ecx, dword [ebp - 0x221c]
mov eax, ebx
call fcn.0040af60
mov edi, eax
test edi, edi
jl 0x40b5ec
mov ecx, dword [ebp - 0x221c]
mov edi, ebx
call fcn.0040ad37
lea esi, [ebp - 0x2230]
mov edi, eax
call fcn.0040af15
test edi, edi
jl 0x40b63a
jmp 0x40b586
lea esi, [ebp - 0x2230]
call fcn.0040af15
push 0x45b304
push ebx
call dword [sym.imp.KERNEL32.dll_lstrcmpiW]
test eax, eax
jne 0x40b206
and dword [ebp - 0x2234], eax
mov ecx, dword [ebp - 0x221c]
mov eax, ebx
call fcn.0040af60
mov edi, eax
test edi, edi
jl 0x40b63a
push 0x45b2dc
push ebx
call dword [sym.imp.KERNEL32.dll_lstrcmpiW]
test eax, eax
jne 0x40b328
mov ecx, dword [ebp - 0x221c]
lea eax, [ebp - 0x2218]
call fcn.0040af60
mov edi, eax
xor esi, esi
cmp edi, esi
jl 0x40b63a
mov ecx, dword [ebp - 0x221c]
mov eax, ebx
call fcn.0040af60
mov edi, eax
cmp edi, esi
jl 0x40b63a
cmp word [ebx], 0x3d
jne 0x40b5e5
cmp dword [ebp + 0x10], esi
je 0x40b2b1
mov eax, dword [ebp - 0x2220]
mov ecx, dword [ebp - 0x221c]
mov byte [ebp - 4], 1
mov dword [ebp - 0x223c], eax
push ebx
lea eax, [ebp - 0x2218]
push eax
lea edx, [ebp - 0x223c]
mov dword [ebp - 0x2238], esi
call fcn.0040aa10
mov edi, eax
mov dword [ebp - 0x223c], esi
mov dword [ebp - 0x2238], esi
cmp edi, esi
lea esi, [ebp - 0x223c]
jl 0x40b635
mov byte [ebp - 4], 0
jmp 0x40b581
cmp dword [ebp + 0x14], esi
jne 0x40b316
cmp dword [ebp - 0x2234], esi
je 0x40b316
push 0x20006
push esi
push dword [ebp - 0x2220]
lea eax, [ebp - 0x2244]
mov dword [ebp - 0x2244], esi
mov dword [ebp - 0x2240], esi
call fcn.0040adc8
cmp eax, esi
jne 0x40b5f4
lea eax, [ebp - 0x2218]
push eax
push dword [ebp - 0x2244]
call dword [sym.imp.ADVAPI32.dll_RegDeleteValueW]
cmp eax, esi
je 0x40b309
cmp eax, 2
jne 0x40b5f4
lea esi, [ebp - 0x2244]
call fcn.0040af15
xor esi, esi
mov ecx, dword [ebp - 0x221c]
mov edi, ebx
call fcn.0040ad37
jmp 0x40b0db
push 0x5c
mov eax, ebx
call fcn.0040a831
pop ecx
test eax, eax
jne 0x40b5e5
cmp dword [ebp + 0x10], eax
je 0x40b3d3
mov esi, 0x2001f
push esi
push ebx
push dword [ebp - 0x2220]
lea eax, [ebp - 0x2228]
call fcn.0040adc8
test eax, eax
je 0x40b397
push 0x20019
push ebx
push dword [ebp - 0x2220]
lea eax, [ebp - 0x2228]
call fcn.0040adc8
test eax, eax
je 0x40b397
push esi
push ebx
push dword [ebp - 0x2220]
lea eax, [ebp - 0x2228]
call fcn.0040a858
mov edi, eax
test edi, edi
jne 0x40b601
mov ecx, dword [ebp - 0x221c]
mov eax, ebx
call fcn.0040af60
mov edi, eax
test edi, edi
jl 0x40b63a
cmp word [ebx], 0x3d
jne 0x40b586
mov ecx, dword [ebp - 0x221c]
push ebx
push 0
lea edx, [ebp - 0x2228]
call fcn.0040aa10
mov edi, eax
jmp 0x40b1c1
cmp dword [ebp + 0x14], 0
jne 0x40b3f4
push 0x20019
push ebx
push dword [ebp - 0x2220]
lea eax, [ebp - 0x2228]
call fcn.0040adc8
mov esi, eax
jmp 0x40b3f7
push 2
pop esi
test esi, esi
je 0x40b402
mov dword [ebp + 0x14], 1
push 0xffffffffffffffff
push ebx
lea eax, [ebp - 0x218]
push 0x104
push eax
call fcn.0042de44
push eax
call fcn.00401502
mov ecx, dword [ebp - 0x221c]
add esp, 0x14
mov eax, ebx
call fcn.0040af60
mov edi, eax
test edi, edi
jl 0x40b63a
mov ecx, dword [ebp - 0x221c]
mov edi, ebx
call fcn.0040ad37
mov edi, eax
test edi, edi
jl 0x40b63a
cmp word [ebx], 0x7b
jne 0x40b49d
push ebx
call dword [sym.imp.KERNEL32.dll_lstrlenW]
cmp eax, 1
jne 0x40b49d
push dword [ebp + 0x14]
mov ecx, dword [ebp - 0x221c]
push 0
push dword [ebp - 0x2228]
push ebx
call fcn.0040b076
mov edi, eax
test edi, edi
jge 0x40b486
cmp dword [ebp + 0x14], 0
je 0x40b63a
mov ecx, dword [ebp - 0x221c]
mov eax, ebx
call fcn.0040af60
mov edi, eax
test edi, edi
jl 0x40b63a
mov eax, dword [ebp - 0x2250]
mov dword [ebp + 0x14], eax
cmp esi, 2
je 0x40b5ce
test esi, esi
je 0x40b4c9
test eax, eax
jne 0x40b5ce
mov eax, esi
call fcn.0040af31
mov edi, eax
jmp 0x40b63a
test eax, eax
je 0x40b514
push dword [ebp - 0x2228]
call fcn.0040aee0
test eax, eax
je 0x40b514
lea eax, [ebp - 0x218]
push eax
call fcn.0040ad9c
test eax, eax
je 0x40b5ce
cmp dword [ebp - 0x2234], 0
je 0x40b5ce
lea eax, [ebp - 0x218]
push eax
lea ecx, [ebp - 0x2228]
call fcn.0040adfb
jmp 0x40b5ce
push dword [ebp - 0x2228]
call fcn.0040aee0
lea esi, [ebp - 0x2228]
mov dword [ebp - 0x2258], eax
call fcn.0040af15
xor esi, esi
mov dword [ebp - 0x2254], eax
cmp eax, esi
jne 0x40b615
cmp dword [ebp - 0x2234], esi
je 0x40b5ce
cmp dword [ebp - 0x2258], esi
jne 0x40b5ce
lea eax, [ebp - 0x218]
push eax
push dword [ebp - 0x2220]
call dword [sym.imp.ADVAPI32.dll_RegDeleteKeyW]
mov dword [ebp - 0x224c], esi
mov dword [ebp - 0x2248], esi
cmp eax, esi
jne 0x40b628
lea esi, [ebp - 0x224c]
call fcn.0040af15
cmp dword [ebp + 0x10], 0
je 0x40b5ce
cmp word [ebx], 0x7b
jne 0x40b5ce
push ebx
call dword [sym.imp.KERNEL32.dll_lstrlenW]
cmp eax, 1
jne 0x40b5ce
mov ecx, dword [ebp - 0x221c]
push 0
push dword [ebp + 0x10]
push dword [ebp - 0x2228]
push ebx
call fcn.0040b076
mov edi, eax
test edi, edi
jl 0x40b63a
mov ecx, dword [ebp - 0x221c]
mov eax, ebx
call fcn.0040af60
mov edi, eax
test edi, edi
jl 0x40b63a
cmp word [ebx], 0x7d
jne 0x40b0e4
jmp 0x40b63a
lea esi, [ebp - 0x2230]
call fcn.0040af15
mov edi, 0x80020009
jmp 0x40b63a
lea esi, [ebp - 0x2230]
jmp 0x40b635
call fcn.0040af31
lea esi, [ebp - 0x2244]
jmp 0x40b633
lea esi, [ebp - 0x2228]
call fcn.0040af15
mov eax, edi
call fcn.0040af31
jmp 0x40b647
lea esi, [ebp - 0x2228]
call fcn.0040af15
mov eax, dword [ebp - 0x2254]
jmp 0x40b60e
call fcn.0040af31
lea esi, [ebp - 0x224c]
mov edi, eax
call fcn.0040af15
lea esi, [ebp - 0x2228]
call fcn.0040af15
mov eax, edi
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.0042cac7
leave
ret 0x10