Function at 0x41cdf0
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x499c57
mov eax, dword fs:[0]
push eax
sub esp, 0x6f4
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 edi, ecx
xorps xmm0, xmm0
mov dword [ebp - 0x14], 0
movq qword [ebp - 0x1c], xmm0
mov ebx, closesocket
mov dword [ebp - 0x1c], vtable.Registry.0
mov dword [ebp - 0x18], closesocket
mov dword [ebp - 0x14], ebx
mov dword [ebp - 4], 0
lea ecx, [ebp - 0x6b4]
push 0x1f
xor eax, eax
mov dword [ebp - 0x6a0], 7
push str.softwareZZDS_PDFPRINTSettings
mov dword [ebp - 0x6a4], 0
mov word [ebp - 0x6b4], ax
call fcn.0040a9c0
push str.ConversionProfiles
lea edx, [ebp - 0x6b4]
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x34]
call fcn.00403000
add esp, 4
mov byte [ebp - 4], 3
mov eax, dword [ebp - 0x6a0]
cmp eax, 8
jb 0x41ceb7
inc eax
lea ecx, [ebp - 0x6b4]
push eax
push dword [ebp - 0x6b4]
call fcn.0040aba0
xor eax, eax
mov dword [ebp - 0x6a0], 7
cmp dword [ebp - 0x20], 8
lea ecx, [ebp - 0x69c]
push ecx
mov word [ebp - 0x6b4], ax
lea eax, [ebp - 0x34]
cmovae eax, dword [ebp - 0x34]
push 0x20006
push 0
push eax
push closesocket
mov dword [ebp - 0x6a4], 0
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
mov edx, dword [edi + 0xc]
lea ecx, [ebp - 0x6cc]
test eax, eax
cmove ebx, dword [ebp - 0x69c]
mov dword [ebp - 0x14], ebx
call fcn.0040ab80
mov edx, eax
cmp dword [edx + 0x14], 8
jb 0x41cf1d
mov edx, dword [edx]
mov ecx, edx
lea esi, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x41cf22
sub ecx, esi
sar ecx, 1
lea eax, [ecx*2 + 1]
push eax
push edx
push 1
push 0
push str.numClasses
push ebx
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
mov eax, dword [ebp - 0x6b8]
cmp eax, 8
jb 0x41cf68
inc eax
lea ecx, [ebp - 0x6cc]
push eax
push dword [ebp - 0x6cc]
call fcn.0040aba0
mov edi, dword [edi + 8]
xor ebx, ebx
mov dword [ebp - 0x69c], ebx
mov esi, dword [edi]
cmp esi, edi
je 0x41d09b
nop dword [eax]
lea eax, [esi + 8]
push eax
lea ecx, [ebp - 0x698]
call fcn.00417fa0
mov edx, ebx
mov byte [ebp - 4], 4
lea ecx, [ebp - 0x6fc]
call fcn.0040ab80
mov ebx, eax
push 0x4ae80c
lea edx, [ebp - 0x34]
mov byte [ebp - 4], 5
lea ecx, [ebp - 0x6cc]
call fcn.00403070
add esp, 4
push ebx
mov edx, eax
mov byte [ebp - 4], 6
lea ecx, [ebp - 0x6e4]
call fcn.00403180
add esp, 4
push eax
lea ecx, [ebp - 0x698]
mov byte [ebp - 4], 7
call fcn.0040b8c0
mov eax, dword [ebp - 0x6d0]
cmp eax, 8
jb 0x41cfff
inc eax
lea ecx, [ebp - 0x6e4]
push eax
push dword [ebp - 0x6e4]
call fcn.0040aba0
xor eax, eax
mov dword [ebp - 0x6d0], 7
mov word [ebp - 0x6e4], ax
mov eax, dword [ebp - 0x6b8]
mov dword [ebp - 0x6d4], 0
cmp eax, 8
jb 0x41d03a
inc eax
lea ecx, [ebp - 0x6cc]
push eax
push dword [ebp - 0x6cc]
call fcn.0040aba0
xor eax, eax
mov dword [ebp - 0x6b8], 7
mov word [ebp - 0x6cc], ax
mov eax, dword [ebp - 0x6e8]
mov dword [ebp - 0x6bc], 0
cmp eax, 8
jb 0x41d075
inc eax
lea ecx, [ebp - 0x6fc]
push eax
push dword [ebp - 0x6fc]
call fcn.0040aba0
mov ebx, dword [ebp - 0x69c]
lea ecx, [ebp - 0x698]
inc ebx
mov byte [ebp - 4], 3
mov dword [ebp - 0x69c], ebx
call fcn.00418690
mov esi, dword [esi]
cmp esi, edi
jne 0x41cf80
mov eax, dword [ebp - 0x20]
cmp eax, 8
jb 0x41d0b0
inc eax
lea ecx, [ebp - 0x34]
push eax
push dword [ebp - 0x34]
call fcn.0040aba0
xor eax, eax
mov dword [ebp - 0x20], 7
mov word [ebp - 0x34], ax
mov eax, dword [ebp - 0x14]
mov dword [ebp - 0x24], 0
test eax, eax
je 0x41d0d2
push eax
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