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

Disassembly:
mov eax, 0x41475e
call fcn.004143f0
sub esp, 0x228
mov eax, dword [0x418890]
push ebx
push esi
xor ebx, ebx
mov dword [ebp - 0x10], eax
push edi
mov dword [ebp - 0x21c], ecx
mov dword [ebp - 0x230], ebx
mov dword [ebp - 4], ebx
mov dword [ebp - 0x220], ebx
mov eax, dword [ebp + 0x14]
mov edi, dword [ebp + 8]
push edi
mov byte [ebp - 4], 1
mov dword [ebp - 0x224], ebx
mov dword [ebp - 0x22c], 1
mov dword [ebp - 0x234], eax
call fcn.0040a7aa
jmp 0x40c177
mov esi, dword [sym.imp.KERNEL32.dll_lstrcmpiW]
push 0x4014b4
push edi
call esi
mov ebx, eax
neg ebx
push 0x4014d8
sbb ebx, ebx
push edi
inc ebx
call esi
test eax, eax
je 0x40bfc7
test ebx, ebx
je 0x40c06e
mov ecx, dword [ebp - 0x21c]
push edi
call fcn.0040a7aa
mov esi, eax
test esi, esi
jl 0x40c488
xor esi, esi
cmp dword [ebp + 0x10], esi
je 0x40c06e
mov dword [ebp + 8], esi
push 0x5c
push edi
mov byte [ebp - 4], 2
call fcn.0040a6a2
test eax, eax
jne 0x40c47b
mov ecx, dword [ebp - 0x21c]
push edi
call fcn.0040a8b0
test eax, eax
je 0x40c021
mov eax, dword [ebp + 0xc]
push edi
lea ecx, [ebp + 8]
mov dword [ebp + 8], eax
call fcn.0040af5b
mov dword [ebp + 8], esi
cmp ebx, esi
je 0x40c062
mov ecx, dword [ebp - 0x21c]
push edi
call fcn.0040a7aa
mov esi, eax
test esi, esi
jl 0x40c4cf
mov ecx, dword [ebp - 0x21c]
push edi
call fcn.0040a9a8
mov esi, eax
test esi, esi
lea ecx, [ebp + 8]
jl 0x40c4d2
mov byte [ebp - 4], 1
call fcn.0040a2ca
jmp 0x40c428
lea ecx, [ebp + 8]
mov byte [ebp - 4], 1
call fcn.0040a2ca
push 0x4014c4
push edi
call dword [sym.imp.KERNEL32.dll_lstrcmpiW]
test eax, eax
jne 0x40c09a
mov ecx, dword [ebp - 0x21c]
and dword [ebp - 0x22c], eax
push edi
call fcn.0040a7aa
mov esi, eax
test esi, esi
jl 0x40c488
mov esi, dword [sym.imp.KERNEL32.dll_lstrcmpiW]
push 0x4014f0
push edi
xor ebx, ebx
call esi
test eax, eax
jne 0x40c180
mov ecx, dword [ebp - 0x21c]
lea eax, [ebp - 0x218]
push eax
call fcn.0040a7aa
mov esi, eax
cmp esi, ebx
jl 0x40c488
mov ecx, dword [ebp - 0x21c]
push edi
call fcn.0040a7aa
mov esi, eax
cmp esi, ebx
jl 0x40c488
cmp word [edi], 0x3d
jne 0x40c483
cmp dword [ebp + 0x10], ebx
je 0x40c125
mov eax, dword [ebp + 0xc]
mov ecx, dword [ebp - 0x21c]
push ebx
mov dword [ebp + 8], eax
push edi
lea eax, [ebp - 0x218]
push eax
lea eax, [ebp + 8]
push eax
call fcn.0040bc64
lea ecx, [ebp + 8]
mov esi, eax
mov dword [ebp + 8], ebx
call fcn.0040a2ca
cmp esi, ebx
jmp 0x40c426
cmp dword [ebp + 0x14], ebx
jne 0x40c16b
push 0x20006
push ebx
push dword [ebp + 0xc]
lea ecx, [ebp + 8]
mov dword [ebp + 8], ebx
call fcn.0040a32f
cmp eax, ebx
jne 0x40c4c1
lea eax, [ebp - 0x218]
push eax
push dword [ebp + 8]
call dword [sym.imp.ADVAPI32.dll_RegDeleteValueW]
cmp eax, ebx
je 0x40c163
cmp eax, 2
jne 0x40c4bf
lea ecx, [ebp + 8]
call fcn.0040a2ca
mov ecx, dword [ebp - 0x21c]
push edi
call fcn.0040a9a8
mov esi, eax
cmp esi, ebx
jmp 0x40c46d
push 0x5c
push edi
call fcn.0040a6a2
test eax, eax
jne 0x40c483
cmp dword [ebp + 0x10], ebx
je 0x40c252
push 0xf003f
push edi
push dword [ebp + 0xc]
lea ecx, [ebp - 0x220]
call fcn.0040a32f
test eax, eax
je 0x40c1e9
push 0x20019
push edi
push dword [ebp + 0xc]
lea ecx, [ebp - 0x220]
call fcn.0040a32f
test eax, eax
je 0x40c1e9
push ebx
push ebx
push 0x2001f
push ebx
push ebx
push edi
push dword [ebp + 0xc]
lea ecx, [ebp - 0x220]
call fcn.0040a2e1
test eax, eax
jne 0x40c483
mov ax, word [edi]
cmp ax, 0x4c
mov byte [ebp - 0x228], 0
je 0x40c1ff
cmp ax, 0x6c
jne 0x40c212
push 0x401e80
push edi
call esi
test eax, eax
jne 0x40c212
mov byte [ebp - 0x228], 1
mov ecx, dword [ebp - 0x21c]
push edi
call fcn.0040a7aa
mov esi, eax
test esi, esi
jl 0x40c488
cmp word [edi], 0x3d
jne 0x40c428
push dword [ebp - 0x228]
mov ecx, dword [ebp - 0x21c]
push edi
push 0
lea eax, [ebp - 0x220]
push eax
call fcn.0040bc64
jmp 0x40c422
cmp dword [ebp + 0x14], ebx
jne 0x40c276
push 0x20019
push edi
push dword [ebp + 0xc]
lea ecx, [ebp - 0x220]
call fcn.0040a32f
test eax, eax
je 0x40c276
mov dword [ebp + 0x14], 1
cmp dword [ebp - 0x224], ebx
jne 0x40c2ba
mov esi, 0x208
push esi
call fcn.0040a1d1
test al, al
je 0x40c29c
mov eax, esi
call fcn.00414460
mov dword [ebp - 0x224], esp
jmp 0x40c2ae
push esi
lea ecx, [ebp - 0x230]
call fcn.0040bbab
mov dword [ebp - 0x224], eax
cmp dword [ebp - 0x224], ebx
je 0x40c4d9
push 0x104
push edi
push dword [ebp - 0x224]
call dword [sym.imp.KERNEL32.dll_lstrcpynW]
cmp dword [ebp + 0x14], ebx
jne 0x40c2ff
push dword [ebp - 0x220]
mov ecx, dword [ebp - 0x21c]
call fcn.0040a8dc
test eax, eax
jne 0x40c2ff
push dword [ebp - 0x220]
mov ecx, dword [ebp - 0x21c]
call fcn.0040a911
test eax, eax
je 0x40c3ce
mov ebx, dword [ebp - 0x21c]
push edi
mov ecx, ebx
call fcn.0040a7aa
mov esi, eax
test esi, esi
jl 0x40c488
push edi
mov ecx, ebx
call fcn.0040a9a8
mov esi, eax
test esi, esi
jl 0x40c488
cmp word [edi], 0x7b
jne 0x40c37a
push dword [ebp + 0x14]
mov ecx, ebx
push 0
push dword [ebp - 0x220]
push edi
call fcn.0040bf41
mov esi, eax
test esi, esi
jl 0x40c488
cmp dword [ebp + 0x14], 0
je 0x40c38a
mov eax, dword [ebp - 0x234]
push edi
mov ecx, ebx
mov dword [ebp + 0x14], eax
call fcn.0040a7aa
mov esi, eax
test esi, esi
jl 0x40c488
push edi
mov ecx, ebx
call fcn.0040a9a8
jmp 0x40c469
cmp dword [ebp + 0x14], 0
jne 0x40c46f
mov ebx, dword [ebp - 0x21c]
push dword [ebp - 0x220]
mov ecx, ebx
call fcn.0040a8dc
test eax, eax
je 0x40c3c4
push dword [ebp - 0x224]
mov ecx, ebx
call fcn.0040a8b0
test eax, eax
je 0x40c3bd
push dword [ebp - 0x224]
lea ecx, [ebp - 0x220]
call fcn.0040af5b
mov ecx, ebx
jmp 0x40c463
cmp dword [ebp + 0x14], 0
jne 0x40c46f
lea ecx, [ebp - 0x220]
call fcn.0040a2ca
test eax, eax
jne 0x40c483
cmp dword [ebp - 0x22c], eax
je 0x40c404
push dword [ebp - 0x224]
push dword [ebp + 0xc]
call dword [sym.imp.ADVAPI32.dll_RegDeleteKeyW]
and dword [ebp + 8], 0
lea ecx, [ebp + 8]
call fcn.0040a2ca
mov ecx, dword [ebp - 0x21c]
push edi
call fcn.0040a7aa
mov esi, eax
test esi, esi
jl 0x40c488
mov ecx, dword [ebp - 0x21c]
push edi
call fcn.0040a9a8
mov esi, eax
test esi, esi
jl 0x40c488
cmp dword [ebp + 0x10], 0
je 0x40c46f
cmp word [edi], 0x7b
jne 0x40c46f
push edi
call dword [sym.imp.KERNEL32.dll_lstrlenW]
cmp eax, 1
jne 0x40c46f
mov ecx, dword [ebp - 0x21c]
push 0
push dword [ebp + 0x10]
push dword [ebp - 0x220]
push edi
call fcn.0040bf41
mov esi, eax
test esi, esi
jl 0x40c488
mov ecx, dword [ebp - 0x21c]
push edi
call fcn.0040a7aa
mov esi, eax
test esi, esi
jl 0x40c488
cmp word [edi], 0x7d
jne 0x40bf9e
jmp 0x40c488
lea ecx, [ebp + 8]
call fcn.0040a2ca
mov esi, 0x80020009
lea ecx, [ebp - 0x220]
call fcn.0040a2ca
lea ecx, [ebp - 0x230]
call fcn.0040adc0
mov eax, esi
lea esp, [ebp - 0x240]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
mov ecx, dword [ebp - 0x10]
call fcn.004140dd
pop edi
pop esi
pop ebx
leave
ret 0x10
cmp eax, ebx
jle 0x40c4cd
and eax, 0xffff
or eax, 0x80070000
mov esi, eax
lea ecx, [ebp + 8]
call fcn.0040a2ca
jmp 0x40c488
mov esi, 0x8007000e
jmp 0x40c488