Function at 0x40ba33
Capabilities:
Delete registry value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
mov eax, 0x225c
call fcn.004047e8
mov eax, dword [0x40f030]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 0xc]
push ebx
push esi
push edi
mov edi, dword [ebp + 8]
xor ebx, ebx
mov dword [ebp - 0x2214], eax
mov eax, dword [ebp + 0x14]
push edi
mov dword [ebp - 0x2210], ecx
mov dword [ebp - 0x2220], ebx
mov dword [ebp - 0x221c], ebx
mov dword [ebp - 0x2218], ebx
mov dword [ebp - 0x2258], eax
call fcn.004080c1
mov esi, eax
cmp esi, ebx
jmp 0x40bf8d
mov esi, dword [sym.imp.KERNEL32.dll_lstrcmpiW]
push 0x40c014
push edi
mov dword [ebp - 0x2224], 1
call esi
mov ebx, eax
neg ebx
push 0x40c038
sbb ebx, ebx
push edi
inc ebx
call esi
test eax, eax
je 0x40bac0
test ebx, ebx
je 0x40bb7d
mov ecx, dword [ebp - 0x2210]
push edi
call fcn.004080c1
mov esi, eax
test esi, esi
jl 0x40bff6
cmp dword [ebp + 0x10], 0
je 0x40bb7d
xor esi, esi
push 0x5c
push edi
mov dword [ebp - 0x2230], esi
mov dword [ebp - 0x222c], esi
mov dword [ebp - 0x2228], esi
call fcn.00408035
test eax, eax
jne 0x40bf9a
mov ecx, dword [ebp - 0x2210]
push edi
call fcn.004081d6
test eax, eax
je 0x40bb32
mov eax, dword [ebp - 0x2214]
push edi
lea ecx, [ebp - 0x2230]
mov dword [ebp - 0x2230], eax
call fcn.00408525
mov dword [ebp - 0x2230], esi
cmp ebx, esi
je 0x40bb72
mov ecx, dword [ebp - 0x2210]
push edi
call fcn.004080c1
mov esi, eax
test esi, esi
jl 0x40bfac
mov ecx, dword [ebp - 0x2210]
push edi
call fcn.00408279
lea ecx, [ebp - 0x2230]
mov esi, eax
call fcn.00407c1f
test esi, esi
jge 0x40bf48
jmp 0x40bff6
lea ecx, [ebp - 0x2230]
call fcn.00407c1f
push 0x40c024
push edi
call dword [sym.imp.KERNEL32.dll_lstrcmpiW]
test eax, eax
jne 0x40bba9
mov ecx, dword [ebp - 0x2210]
and dword [ebp - 0x2224], eax
push edi
call fcn.004080c1
mov esi, eax
test esi, esi
jl 0x40bff6
push 0x40c050
push edi
call dword [sym.imp.KERNEL32.dll_lstrcmpiW]
test eax, eax
jne 0x40bcc6
mov ecx, dword [ebp - 0x2210]
lea eax, [ebp - 0x220c]
push eax
call fcn.004080c1
mov esi, eax
xor ebx, ebx
cmp esi, ebx
jl 0x40bff6
mov ecx, dword [ebp - 0x2210]
push edi
call fcn.004080c1
mov esi, eax
cmp esi, ebx
jl 0x40bff6
cmp word [edi], 0x3d
jne 0x40bfa5
cmp dword [ebp + 0x10], ebx
je 0x40bc4c
mov eax, dword [ebp - 0x2214]
mov ecx, dword [ebp - 0x2210]
mov dword [ebp - 0x2248], eax
push edi
lea eax, [ebp - 0x220c]
push eax
lea eax, [ebp - 0x2248]
push eax
mov dword [ebp - 0x2244], ebx
mov dword [ebp - 0x2240], ebx
call fcn.0040b740
lea ecx, [ebp - 0x2248]
mov esi, eax
mov dword [ebp - 0x2248], ebx
call fcn.00407c1f
cmp esi, ebx
jmp 0x40bb67
cmp dword [ebp + 0x14], ebx
jne 0x40bcb5
cmp dword [ebp - 0x2224], ebx
je 0x40bcb5
push 0x20006
push ebx
push dword [ebp - 0x2214]
lea ecx, [ebp - 0x223c]
mov dword [ebp - 0x223c], ebx
mov dword [ebp - 0x2238], ebx
mov dword [ebp - 0x2234], ebx
call fcn.00404509
cmp eax, ebx
jne 0x40bfb4
lea eax, [ebp - 0x220c]
push eax
push dword [ebp - 0x223c]
call dword [sym.imp.ADVAPI32.dll_RegDeleteValueW]
cmp eax, ebx
je 0x40bcaa
cmp eax, 2
jne 0x40bfb4
lea ecx, [ebp - 0x223c]
call fcn.00407c1f
mov ecx, dword [ebp - 0x2210]
push edi
call fcn.00408279
jmp 0x40ba84
push 0x5c
push edi
call fcn.00408035
test eax, eax
jne 0x40bfa5
cmp dword [ebp + 0x10], eax
je 0x40bd75
mov esi, 0x2001f
push esi
push edi
push dword [ebp - 0x2214]
lea ecx, [ebp - 0x2220]
call fcn.00404509
test eax, eax
je 0x40bd39
push 0x20019
push edi
push dword [ebp - 0x2214]
lea ecx, [ebp - 0x2220]
call fcn.00404509
test eax, eax
je 0x40bd39
xor ebx, ebx
push ebx
push ebx
push esi
push ebx
push ebx
push edi
push dword [ebp - 0x2214]
lea ecx, [ebp - 0x2220]
call fcn.00407c3d
mov esi, eax
cmp esi, ebx
jne 0x40bfc2
mov ecx, dword [ebp - 0x2210]
push edi
call fcn.004080c1
mov esi, eax
test esi, esi
jl 0x40bff6
cmp word [edi], 0x3d
jne 0x40bf48
mov ecx, dword [ebp - 0x2210]
push edi
push 0
lea eax, [ebp - 0x2220]
push eax
call fcn.0040b740
mov esi, eax
jmp 0x40bb65
cmp dword [ebp + 0x14], 0
jne 0x40bd96
push 0x20019
push edi
push dword [ebp - 0x2214]
lea ecx, [ebp - 0x2220]
call fcn.00404509
mov ebx, eax
jmp 0x40bd99
push 2
pop ebx
test ebx, ebx
je 0x40bda4
mov dword [ebp + 0x14], 1
push 0xffffffffffffffff
push edi
lea eax, [ebp - 0x20c]
push 0x104
push eax
call sub.msvcrt.dll_wcsncpy_s
add esp, 0x10
push eax
call fcn.004078b2
mov ecx, dword [ebp - 0x2210]
push edi
call fcn.004080c1
mov esi, eax
test esi, esi
jl 0x40bff6
mov ecx, dword [ebp - 0x2210]
push edi
call fcn.00408279
mov esi, eax
test esi, esi
jl 0x40bff6
cmp word [edi], 0x7b
jne 0x40be3c
push edi
call dword [sym.imp.KERNEL32.dll_lstrlenW]
cmp eax, 1
jne 0x40be3c
push dword [ebp + 0x14]
mov ecx, dword [ebp - 0x2210]
push 0
push dword [ebp - 0x2220]
push edi
call fcn.0040ba33
mov esi, eax
test esi, esi
jge 0x40be26
cmp dword [ebp + 0x14], 0
je 0x40bff6
mov ecx, dword [ebp - 0x2210]
push edi
call fcn.004080c1
mov esi, eax
test esi, esi
jl 0x40bff6
mov eax, dword [ebp - 0x2258]
mov dword [ebp + 0x14], eax
cmp ebx, 2
je 0x40bf8f
test ebx, ebx
je 0x40be67
test eax, eax
jne 0x40bf8f
push ebx
call fcn.0040799f
mov esi, eax
jmp 0x40bff6
test eax, eax
je 0x40bebe
push dword [ebp - 0x2220]
mov ecx, dword [ebp - 0x2210]
call fcn.0040823d
test eax, eax
je 0x40bebe
mov ecx, dword [ebp - 0x2210]
lea eax, [ebp - 0x20c]
push eax
call fcn.004081d6
test eax, eax
je 0x40bf8f
cmp dword [ebp - 0x2224], 0
je 0x40bf8f
lea eax, [ebp - 0x20c]
push eax
lea ecx, [ebp - 0x2220]
call fcn.00408525
jmp 0x40bf8f
push dword [ebp - 0x2220]
mov ecx, dword [ebp - 0x2210]
call fcn.0040823d
lea ecx, [ebp - 0x2220]
mov dword [ebp - 0x225c], eax
call fcn.00407c1f
mov ebx, eax
xor eax, eax
cmp ebx, eax
jne 0x40bfd5
cmp dword [ebp - 0x2224], eax
je 0x40bf8f
cmp dword [ebp - 0x225c], eax
jne 0x40bf8f
mov dword [ebp - 0x2250], eax
mov dword [ebp - 0x224c], eax
mov eax, dword [ebp - 0x2214]
mov dword [ebp - 0x2254], eax
lea eax, [ebp - 0x20c]
push eax
lea ecx, [ebp - 0x2254]
call fcn.00407b09
and dword [ebp - 0x2254], 0
test eax, eax
jne 0x40bfe3
lea ecx, [ebp - 0x2254]
call fcn.00407c1f
cmp dword [ebp + 0x10], 0
je 0x40bf8f
cmp word [edi], 0x7b
jne 0x40bf8f
push edi
call dword [sym.imp.KERNEL32.dll_lstrlenW]
cmp eax, 1
jne 0x40bf8f
mov ecx, dword [ebp - 0x2210]
push 0
push dword [ebp + 0x10]
push dword [ebp - 0x2220]
push edi
call fcn.0040ba33
mov esi, eax
test esi, esi
jl 0x40bff6
mov ecx, dword [ebp - 0x2210]
push edi
call fcn.004080c1
mov esi, eax
test esi, esi
jl 0x40bff6
cmp word [edi], 0x7d
je 0x40bff6
jmp 0x40ba8d
lea ecx, [ebp - 0x2230]
call fcn.00407c1f
mov esi, 0x80020009
jmp 0x40bff6
lea ecx, [ebp - 0x2230]
jmp 0x40bff1
push eax
call fcn.0040799f
lea ecx, [ebp - 0x223c]
jmp 0x40bfef
lea ecx, [ebp - 0x2220]
call fcn.00407c1f
push esi
call fcn.0040799f
jmp 0x40c003
lea ecx, [ebp - 0x2220]
call fcn.00407c1f
push ebx
jmp 0x40bfce
push eax
call fcn.0040799f
lea ecx, [ebp - 0x2254]
mov esi, eax
call fcn.00407c1f
lea ecx, [ebp - 0x2220]
call fcn.00407c1f
mov eax, esi
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00401d55
leave
ret 0x10