Function at 0x414630
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4992e8
mov eax, dword fs:[0]
push eax
sub esp, 0x30
mov eax, dword [0x4cb070]
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 ebx, ecx
mov esi, dword [ebp + 8]
xorps xmm0, xmm0
movq qword [ebp - 0x1c], xmm0
mov edi, closesocket
mov dword [ebp - 0x14], 0
mov dword [ebp - 0x1c], vtable.Registry.0
mov dword [ebp - 0x18], closesocket
mov dword [ebp - 4], 0
cmp dword [esi + 0x14], 8
jb 0x414693
mov eax, dword [esi]
jmp 0x414695
mov eax, esi
lea ecx, [ebp - 0x20]
push ecx
lea ecx, [ebp - 0x24]
push ecx
push 0
push 0xf013f
push 1
push 0
push 0
push eax
push closesocket
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExW]
test eax, eax
cmove edi, dword [ebp - 0x24]
cmp dword [esi + 0x14], 8
jb 0x4146c4
mov esi, dword [esi]
lea eax, [ebp - 0x24]
push eax
push 0x20006
push 0
push esi
push closesocket
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
mov edx, 0x4ae8c0
mov eax, str.False
cmove edi, dword [ebp - 0x24]
cmp byte [ebx + 0x10], 0
mov dword [ebp - 0x14], edi
cmove edx, eax
mov ecx, edx
lea esi, [ecx + 2]
nop word [eax + eax]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x414700
sub ecx, esi
sar ecx, 1
lea eax, [ecx*2 + 1]
push eax
push edx
push 1
push 0
push str.AllowPrinting
push edi
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
cmp byte [ebx + 0x11], 0
mov ecx, str.False
mov edx, 0x4ae8c0
cmove edx, ecx
mov ecx, edx
lea esi, [ecx + 2]
nop
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x414740
sub ecx, esi
sar ecx, 1
lea eax, [ecx*2 + 1]
push eax
push edx
push 1
push 0
push str.AllowScreenReader
push edi
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
cmp byte [ebx + 0x12], 0
mov edx, 0x4ae8c0
mov eax, str.False
cmove edx, eax
mov ecx, edx
lea esi, [ecx + 2]
nop
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x414780
sub ecx, esi
sar ecx, 1
lea eax, [ecx*2 + 1]
push eax
push edx
push 1
push 0
push str.AllowToCopyContent
push edi
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
cmp byte [ebx + 0x13], 0
mov edx, 0x4ae8c0
mov eax, str.False
cmove edx, eax
mov ecx, edx
lea esi, [ecx + 2]
nop
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x4147c0
sub ecx, esi
sar ecx, 1
lea eax, [ecx*2 + 1]
push eax
push edx
push 1
push 0
push str.AllowToEditAssembly
push edi
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
cmp byte [ebx + 0x14], 0
mov edx, 0x4ae8c0
mov eax, str.False
cmove edx, eax
mov ecx, edx
lea esi, [ecx + 2]
nop
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x414800
sub ecx, esi
sar ecx, 1
lea eax, [ecx*2 + 1]
push eax
push edx
push 1
push 0
push str.AllowToEditComments
push edi
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
cmp byte [ebx + 0x15], 0
mov edx, 0x4ae8c0
mov eax, str.False
cmove edx, eax
mov ecx, edx
lea esi, [ecx + 2]
nop
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x414840
sub ecx, esi
sar ecx, 1
lea eax, [ecx*2 + 1]
push eax
push edx
push 1
push 0
push str.AllowToEditTheDocument
push edi
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
cmp byte [ebx + 0x16], 0
mov edx, 0x4ae8c0
mov eax, str.False
cmove edx, eax
mov ecx, edx
lea esi, [ecx + 2]
nop
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x414880
sub ecx, esi
sar ecx, 1
lea eax, [ecx*2 + 1]
push eax
push edx
push 1
push 0
push str.AllowToFillForms
push edi
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
cmp byte [ebx + 0x17], 0
mov edx, 0x4ae8c0
mov eax, str.False
cmove edx, eax
mov ecx, edx
lea esi, [ecx + 2]
nop
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x4148c0
sub ecx, esi
sar ecx, 1
lea eax, [ecx*2 + 1]
push eax
push edx
push 1
push 0
push str.Enabled
push edi
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
push dword [ebx + 0x18]
lea eax, [ebp - 0x3c]
mov ecx, ebx
push eax
call fcn.0040c310
mov edx, eax
cmp dword [edx + 0x14], 8
jb 0x414900
mov edx, dword [edx]
mov ecx, edx
lea esi, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x414905
sub ecx, esi
sar ecx, 1
lea eax, [ecx*2 + 1]
push eax
push edx
push 1
push 0
push str.EncryptionLevel
push edi
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
mov eax, dword [ebp - 0x28]
cmp eax, 8
jb 0x414942
inc eax
lea ecx, [ebp - 0x3c]
push eax
push dword [ebp - 0x3c]
call fcn.0040aba0
cmp dword [ebx + 0x30], 8
lea edx, [ebx + 0x1c]
jb 0x41494d
mov edx, dword [edx]
mov ecx, edx
lea esi, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x414952
sub ecx, esi
sar ecx, 1
lea eax, [ecx*2 + 1]
push eax
push edx
push 1
push 0
push str.OwnerPassword
push edi
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
cmp byte [ebx + 0x34], 0
mov edx, 0x4ae8c0
mov eax, str.False
cmove edx, eax
mov ecx, edx
lea esi, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x414990
sub ecx, esi
mov esi, dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
sar ecx, 1
lea eax, [ecx*2 + 1]
push eax
push edx
push 1
push 0
push str.RequireUserPassword
push edi
call esi
cmp byte [ebx + 0x35], 0
mov ecx, str.False
mov eax, 0x4ae8c0
cmove eax, ecx
mov ecx, eax
mov dword [ebp - 0x24], eax
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x4149d3
sub ecx, edx
sar ecx, 1
lea eax, [ecx*2 + 1]
push eax
push dword [ebp - 0x24]
push 1
push 0
push str.RestrictPrintingToLowQuality
push edi
call esi
cmp dword [ebx + 0x4c], 8
lea edx, [ebx + 0x38]
jb 0x414a04
mov edx, dword [edx]
mov ecx, edx
lea esi, [ecx + 2]
nop dword [eax]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x414a10
sub ecx, esi
sar ecx, 1
lea eax, [ecx*2 + 1]
push eax
push edx
push 1
push 0
push str.UserPassword
push edi
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
test edi, edi
je 0x414a43
push edi
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
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.00459a5d
mov esp, ebp
pop ebp
ret 4