Function at 0x415840
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4993c8
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 edi, ecx
mov esi, dword [ebp + 8]
xorps xmm0, xmm0
movq qword [ebp - 0x1c], xmm0
mov ebx, 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 0x4158a3
mov eax, dword [esi]
jmp 0x4158a5
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 ebx, dword [ebp - 0x24]
cmp dword [esi + 0x14], 8
jb 0x4158d6
mov eax, dword [esi]
jmp 0x4158d8
mov eax, esi
lea ecx, [ebp - 0x24]
push ecx
push 0x20006
push 0
push eax
push closesocket
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
lea ecx, [ebp - 0x3c]
push str.CompressColorAndGray
cmove ebx, dword [ebp - 0x24]
mov edx, esi
mov dword [ebp - 0x14], ebx
call fcn.00403070
add esp, 4
lea ecx, [edi + 0x38]
mov byte [ebp - 4], 1
mov edx, dword [ecx]
push eax
call dword [edx + 4]
mov byte [ebp - 4], 0
mov eax, dword [ebp - 0x28]
cmp eax, 8
jb 0x415930
inc eax
lea ecx, [ebp - 0x3c]
push eax
push dword [ebp - 0x3c]
call fcn.0040aba0
push str.CompressMonochrome
mov edx, esi
lea ecx, [ebp - 0x3c]
call fcn.00403070
add esp, 4
lea ecx, [edi + 0x68]
mov byte [ebp - 4], 2
mov edx, dword [ecx]
push eax
call dword [edx + 4]
mov byte [ebp - 4], 0
mov eax, dword [ebp - 0x28]
cmp eax, 8
jb 0x415968
inc eax
lea ecx, [ebp - 0x3c]
push eax
push dword [ebp - 0x3c]
call fcn.0040aba0
push str.Security
mov edx, esi
lea ecx, [ebp - 0x3c]
call fcn.00403070
add esp, 4
lea ecx, [edi + 0x84]
mov byte [ebp - 4], 3
mov edx, dword [ecx]
push eax
call dword [edx + 4]
mov byte [ebp - 4], 0
mov eax, dword [ebp - 0x28]
cmp eax, 8
jb 0x4159a3
inc eax
lea ecx, [ebp - 0x3c]
push eax
push dword [ebp - 0x3c]
call fcn.0040aba0
push str.Signature
mov edx, esi
lea ecx, [ebp - 0x3c]
call fcn.00403070
add esp, 4
lea ecx, [edi + 0xd4]
mov byte [ebp - 4], 4
mov edx, dword [ecx]
push eax
call dword [edx + 4]
mov byte [ebp - 4], 0
mov eax, dword [ebp - 0x28]
cmp eax, 8
jb 0x4159de
inc eax
lea ecx, [ebp - 0x3c]
push eax
push dword [ebp - 0x3c]
call fcn.0040aba0
push dword [edi + 0x194]
lea eax, [ebp - 0x3c]
mov ecx, edi
push eax
call fcn.0040c310
mov edx, eax
cmp dword [edx + 0x14], 8
jb 0x4159f9
mov edx, dword [edx]
mov ecx, edx
lea esi, [ecx + 2]
nop
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x415a00
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.ColorModel
push ebx
call esi
mov eax, dword [ebp - 0x28]
cmp eax, 8
jb 0x415a3f
inc eax
lea ecx, [ebp - 0x3c]
push eax
push dword [ebp - 0x3c]
call fcn.0040aba0
push dword [edi + 0x198]
lea eax, [ebp - 0x3c]
mov ecx, edi
push eax
call fcn.00415d20
mov edx, eax
cmp dword [edx + 0x14], 8
jb 0x415a5a
mov edx, dword [edx]
mov ecx, edx
lea eax, [ecx + 2]
mov dword [ebp - 0x24], eax
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x415a62
sub ecx, dword [ebp - 0x24]
sar ecx, 1
lea eax, [ecx*2 + 1]
push eax
push edx
push 1
push 0
push str.DocumentView
push ebx
call esi
mov eax, dword [ebp - 0x28]
cmp eax, 8
jb 0x415a9c
inc eax
lea ecx, [ebp - 0x3c]
push eax
push dword [ebp - 0x3c]
call fcn.0040aba0
cmp byte [edi + 0x19c], 0
mov eax, str.False
mov edx, 0x4ae8c0
cmove edx, eax
mov ecx, edx
lea eax, [ecx + 2]
mov dword [ebp - 0x24], eax
nop dword [eax + eax]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x415ac0
sub ecx, dword [ebp - 0x24]
sar ecx, 1
lea eax, [ecx*2 + 1]
push eax
push edx
push 1
push 0
push str.EnablePdfAValidation
push ebx
call esi
cmp byte [edi + 0x19d], 0
mov eax, str.False
mov edx, 0x4ae8c0
cmove edx, eax
mov ecx, edx
lea eax, [ecx + 2]
mov dword [ebp - 0x24], eax
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x415b01
sub ecx, dword [ebp - 0x24]
sar ecx, 1
lea eax, [ecx*2 + 1]
push eax
push edx
push 1
push 0
push str.NoFonts
push ebx
call esi
push dword [edi + 0x1a0]
lea eax, [ebp - 0x3c]
mov ecx, edi
push eax
call fcn.00415e20
mov edx, eax
cmp dword [edx + 0x14], 8
jb 0x415b41
mov edx, dword [edx]
mov ecx, edx
lea eax, [ecx + 2]
mov dword [ebp - 0x24], eax
nop dword [eax]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x415b50
sub ecx, dword [ebp - 0x24]
sar ecx, 1
lea eax, [ecx*2 + 1]
push eax
push edx
push 1
push 0
push str.PageOrientation
push ebx
call esi
mov eax, dword [ebp - 0x28]
cmp eax, 8
jb 0x415b8a
inc eax
lea ecx, [ebp - 0x3c]
push eax
push dword [ebp - 0x3c]
call fcn.0040aba0
push dword [edi + 0x1a4]
lea eax, [ebp - 0x3c]
mov ecx, edi
push eax
call fcn.00415f20
mov edx, eax
cmp dword [edx + 0x14], 8
jb 0x415ba5
mov edx, dword [edx]
mov ecx, edx
lea eax, [ecx + 2]
mov dword [ebp - 0x24], eax
nop dword [eax]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x415bb0
sub ecx, dword [ebp - 0x24]
sar ecx, 1
lea eax, [ecx*2 + 1]
push eax
push edx
push 1
push 0
push str.PageView
push ebx
call esi
mov eax, dword [ebp - 0x28]
cmp eax, 8
jb 0x415bea
inc eax
lea ecx, [ebp - 0x3c]
push eax
push dword [ebp - 0x3c]
call fcn.0040aba0
mov edx, dword [edi + 0x1a8]
lea ecx, [ebp - 0x3c]
call fcn.0040ab80
mov edx, eax
cmp dword [edx + 0x14], 8
jb 0x415c02
mov edx, dword [edx]
mov ecx, edx
lea edi, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x415c07
sub ecx, edi
sar ecx, 1
lea eax, [ecx*2 + 1]
push eax
push edx
push 1
push 0
push str.ViewerStartsOnPage
push ebx
call esi
mov eax, dword [ebp - 0x28]
cmp eax, 8
jb 0x415c40
inc eax
lea ecx, [ebp - 0x3c]
push eax
push dword [ebp - 0x3c]
call fcn.0040aba0
test ebx, ebx
je 0x415c4b
push ebx
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