Function at 0x40ca20
Capabilities:
Set registry value

Disassembly:
push ecx
push ebx
push ebp
push esi
mov esi, ecx
push edi
or ecx, 0xffffffff
lea edx, [esi + 0x54]
xor eax, eax
mov edi, edx
mov ebx, dword [esp + 0x18]
repne scasb al, byte es:[edi]
mov ebp, dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
mov dword [esp + 0x10], 1
not ecx
push ecx
push edx
push 1
push eax
push str.File
push ebx
call ebp
test eax, eax
je 0x40ca60
mov dword [esp + 0x10], 0
lea edx, [esi + 0x158]
or ecx, 0xffffffff
mov edi, edx
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
push ecx
push edx
push 1
push eax
push str.Printer
push ebx
call ebp
test eax, eax
je 0x40ca8a
mov dword [esp + 0x10], 0
lea edx, [esi + 0x25c]
or ecx, 0xffffffff
mov edi, edx
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
push ecx
push edx
push 1
push eax
push str.Email
push ebx
call ebp
test eax, eax
je 0x40cab4
mov dword [esp + 0x10], 0
lea edx, [esi + 0x57c]
or ecx, 0xffffffff
mov edi, edx
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
push ecx
push edx
push 1
push eax
push str.Font
push ebx
call ebp
test eax, eax
je 0x40cade
mov dword [esp + 0x10], 0
lea edx, [esi + 0x360]
or ecx, 0xffffffff
mov edi, edx
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
push ecx
push edx
xor edi, edi
push 1
push edi
push str.Watermark
push ebx
call ebp
test eax, eax
je 0x40cb06
mov dword [esp + 0x10], edi
mov ecx, dword [esi + 0x1c]
mov edx, dword [esi + 0x34]
xor eax, eax
push 4
mov al, byte [esi + 0x3d]
shl ecx, 8
or eax, ecx
shl eax, 1
or eax, edx
mov edx, dword [esi + 0x5ac]
shl eax, 1
or eax, edx
mov edx, dword [esi + 0x5a8]
shl eax, 1
or eax, edx
mov edx, dword [esi + 0x59c]
shl eax, 1
or eax, edx
mov edx, dword [esi + 0x5e0]
shl eax, 1
or eax, edx
mov edx, dword [esi + 0x48]
shl eax, 1
or eax, edx
mov edx, dword [esi + 0x40]
shl eax, 3
or eax, edx
mov edx, dword [esi + 0x5b0]
shl eax, 1
or eax, edx
mov edx, dword [esi + 0x30]
shl eax, 1
or eax, edx
mov edx, dword [esi + 0x14]
shl eax, 1
or eax, edx
mov edx, dword [esi + 0x5dc]
shl eax, 1
or eax, edx
mov edx, dword [esi + 0x24]
shl eax, 2
or eax, edx
mov edx, dword [esi + 0x20]
shl eax, 1
or eax, edx
lea edx, [esp + 0x1c]
push edx
push 4
push edi
push str.Config
push ebx
mov dword [esp + 0x30], eax
call ebp
test eax, eax
je 0x40cba0
mov dword [esp + 0x10], edi
mov eax, dword [esi + 0x5c4]
mov edx, dword [esi + 0x2c]
shl eax, 8
or eax, edx
lea edx, [esp + 0x18]
xor ecx, ecx
push 4
mov cl, byte [esi + 0x28]
push edx
shl eax, 8
push 4
push edi
or eax, ecx
push str.Config1
push ebx
mov dword [esp + 0x30], eax
call ebp
test eax, eax
je 0x40cbd6
mov dword [esp + 0x10], edi
mov eax, dword [esi + 0x4c]
mov edx, dword [esi + 0x50]
lea ecx, [esp + 0x18]
push 4
push ecx
push 4
shl eax, 0x10
push edi
or eax, edx
push str.Margins
push ebx
mov dword [esp + 0x30], eax
call ebp
test eax, eax
je 0x40cbff
mov dword [esp + 0x10], edi
mov edx, dword [esi + 0x8a0]
mov eax, dword [esi + 0x8a4]
shl edx, 0x10
or edx, eax
lea eax, [esp + 0x18]
push 4
push eax
push 4
push edi
push str.WatermarkXY
push ebx
mov dword [esp + 0x30], edx
call ebp
test eax, eax
je 0x40cc2e
mov dword [esp + 0x10], edi
mov edx, dword [esi + 0x8a8]
xor ecx, ecx
mov cx, word [esi + 0x5e8]
push 4
shl ecx, 0x10
or ecx, edx
lea edx, [esp + 0x1c]
push edx
push 4
push edi
push str.WatermarkDPI
push ebx
mov dword [esp + 0x30], ecx
call ebp
test eax, eax
je 0x40cc66
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
pop ecx
ret 4
mov eax, dword [esp + 0x10]
pop edi
pop esi
pop ebp
pop ebx
pop ecx
ret 4