Function at 0x402ee0
Capabilities:
Delete registry value
Query or enumerate registry value
Set registry value

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x41e65e
mov eax, dword fs:[0]
push eax
sub esp, 0x2c
mov eax, dword [0x429084]
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 edi, dword [ebp + 8]
mov esi, 0xf003f
call fcn.00405700
push 0
test eax, eax
mov ecx, 0xf013f
lea eax, [ebp - 0x30]
push eax
push 0
cmovne esi, ecx
push esi
push 0
push 0
push 0
push str.SOFTWAREPoliciesMicrosoftWindowsPersonalization
push 0x80000002
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExW]
test eax, eax
je 0x402f4c
xor eax, eax
jmp 0x40310c
mov esi, dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
lea eax, [ebp - 0x34]
push eax
lea eax, [ebp - 0x2c]
mov dword [ebp - 0x34], 4
push eax
lea eax, [ebp - 0x38]
mov dword [ebp - 0x38], 4
push eax
push 0
push str.NoChangingLockScreen
push dword [ebp - 0x30]
mov dword [ebp - 0x2c], 0
call esi
cmp dword [ebp - 0x2c], 1
mov ebx, dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
je 0x402fa6
push 4
lea eax, [ebp - 0x2c]
mov dword [ebp - 0x2c], 1
push eax
push 4
push 0
push str.NoChangingLockScreen
push dword [ebp - 0x30]
call ebx
lea eax, [ebp - 0x38]
mov dword [ebp - 0x38], 4
push eax
lea eax, [ebp - 0x2c]
mov dword [ebp - 0x34], 4
push eax
lea eax, [ebp - 0x34]
mov dword [ebp - 0x2c], 1
push eax
push 0
push str.NoLockScreen
push dword [ebp - 0x30]
call esi
cmp dword [ebp - 0x2c], 0
je 0x402ff4
push 4
lea eax, [ebp - 0x2c]
mov dword [ebp - 0x2c], 0
push eax
push 4
push 0
push str.NoLockScreen
push dword [ebp - 0x30]
call ebx
cmp dword [edi + 0x10], 0
sete al
test al, al
jne 0x4030f0
xor eax, eax
mov dword [ebp - 0x2c], 0
mov dword [ebp - 0x14], 7
mov dword [ebp - 0x18], 0
mov word [ebp - 0x28], ax
mov dword [ebp - 4], eax
lea eax, [ebp - 0x2c]
push eax
push 0
push 0
push 0
push str.LockScreenImage
push dword [ebp - 0x30]
call esi
test eax, eax
jne 0x403087
mov ecx, dword [ebp - 0x2c]
mov eax, dword [ebp - 0x18]
shr ecx, 1
dec ecx
cmp ecx, eax
ja 0x40305c
cmp dword [ebp - 0x14], 8
lea eax, [ebp - 0x28]
mov dword [ebp - 0x18], ecx
cmovae eax, dword [ebp - 0x28]
xor edx, edx
mov word [eax + ecx*2], dx
jmp 0x403069
sub ecx, eax
push 0
push ecx
lea ecx, [ebp - 0x28]
call fcn.00404280
cmp dword [ebp - 0x14], 8
lea ecx, [ebp - 0x2c]
push ecx
lea eax, [ebp - 0x28]
cmovae eax, dword [ebp - 0x28]
push eax
push 0
push 0
push str.LockScreenImage
push dword [ebp - 0x30]
call esi
lea eax, [ebp - 0x28]
push eax
call fcn.00405b10
add esp, 4
cmp dword [edi + 0x14], 8
mov byte [ebp - 4], 1
jb 0x4030a1
mov ecx, dword [edi]
jmp 0x4030a3
mov ecx, edi
push dword [edi + 0x10]
push ecx
push dword [eax + 0x10]
mov ecx, eax
push 0
call fcn.00404720
test eax, eax
je 0x4030d9
cmp dword [edi + 0x14], 8
mov eax, dword [edi + 0x10]
jb 0x4030c2
mov edi, dword [edi]
lea eax, [eax*2 + 2]
push eax
push edi
push 1
push 0
push str.LockScreenImage
push dword [ebp - 0x30]
call ebx
mov eax, dword [ebp - 0x14]
cmp eax, 8
jb 0x4030fe
inc eax
lea ecx, [ebp - 0x28]
push eax
push dword [ebp - 0x28]
call fcn.00401990
jmp 0x4030fe
push str.LockScreenImage
push dword [ebp - 0x30]
call dword [sym.imp.ADVAPI32.dll_RegDeleteValueW]
push dword [ebp - 0x30]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, 1
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.0040a2d1
mov esp, ebp
pop ebp
ret