Function at 0x40c700
Capabilities:
Query or enumerate registry value

Disassembly:
sub esp, 0x10
lea eax, [esp + 4]
push esi
push eax
push str.SoftwareAlternetDOSPrinter
mov esi, ecx
push 0x80000001
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyA]
test eax, eax
je 0x40c726
xor eax, eax
pop esi
add esp, 0x10
ret
push ebx
push ebp
lea ecx, [esp + 0xc]
push edi
mov edi, dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
lea edx, [esi + 0x54]
push ecx
mov ecx, dword [esp + 0x18]
lea eax, [esp + 0x1c]
push edx
push eax
push 0
mov ebp, 0x104
push str.File
push ecx
mov ebx, 1
mov dword [esp + 0x28], ebp
call edi
test eax, eax
je 0x40c75f
xor ebx, ebx
lea edx, [esp + 0x10]
lea eax, [esi + 0x158]
push edx
mov edx, dword [esp + 0x18]
lea ecx, [esp + 0x1c]
push eax
push ecx
push 0
push str.Printer
push edx
mov dword [esp + 0x28], ebp
call edi
test eax, eax
je 0x40c788
xor ebx, ebx
lea eax, [esp + 0x10]
lea ecx, [esi + 0x25c]
push eax
mov eax, dword [esp + 0x18]
lea edx, [esp + 0x1c]
push ecx
push edx
push 0
push str.Email
push eax
mov dword [esp + 0x28], ebp
call edi
test eax, eax
je 0x40c7b1
xor ebx, ebx
lea ecx, [esp + 0x10]
lea edx, [esi + 0x57c]
push ecx
mov ecx, dword [esp + 0x18]
lea eax, [esp + 0x1c]
push edx
push eax
push 0
push str.Font
push ecx
mov dword [esp + 0x28], 0x20
call edi
test eax, eax
je 0x40c7de
xor ebx, ebx
lea edx, [esp + 0x10]
lea eax, [esi + 0x360]
push edx
mov edx, dword [esp + 0x18]
lea ecx, [esp + 0x1c]
push eax
push ecx
push 0
push str.Watermark
push edx
mov dword [esp + 0x28], ebp
call edi
test eax, eax
je 0x40c807
xor ebx, ebx
lea eax, [esp + 0x10]
lea ecx, [esp + 0x1c]
push eax
mov eax, dword [esp + 0x18]
lea edx, [esp + 0x1c]
push ecx
push edx
push 0
mov ebp, 4
push str.Config
push eax
mov dword [esp + 0x28], ebp
call edi
test eax, eax
je 0x40c838
xor ebx, ebx
jmp 0x40c8f5
mov eax, dword [esp + 0x1c]
mov ecx, eax
mov edx, eax
shr ecx, 0x18
mov dword [esi + 0x1c], ecx
mov ecx, eax
shr ecx, 7
and ecx, 7
shr edx, 0x10
mov dword [esi + 0x40], ecx
mov ecx, eax
mov byte [esi + 0x3d], dl
mov edx, eax
shr ecx, 1
and edx, 1
and ecx, 1
mov dword [esi + 0x20], edx
mov dword [esi + 0x24], ecx
mov edx, eax
mov ecx, eax
shr edx, 2
shr ecx, 3
and edx, 1
and ecx, 1
mov dword [esi + 0x65c], edx
mov dword [esi + 0x5dc], ecx
mov edx, eax
mov ecx, eax
shr edx, 4
shr ecx, 5
and edx, 1
and ecx, 1
mov dword [esi + 0x14], edx
mov dword [esi + 0x30], ecx
mov edx, eax
mov ecx, eax
shr edx, 6
shr ecx, 0xa
and edx, 1
and ecx, 1
mov dword [esi + 0x5b0], edx
mov dword [esi + 0x48], ecx
mov edx, eax
mov ecx, eax
shr edx, 0xb
shr ecx, 0xc
and edx, 1
and ecx, 1
mov dword [esi + 0x5e0], edx
mov dword [esi + 0x59c], ecx
mov edx, eax
mov ecx, eax
shr edx, 0xd
shr ecx, 0xe
shr eax, 0xf
and edx, 1
and ecx, 1
and eax, 1
mov dword [esi + 0x5a8], edx
mov dword [esi + 0x5ac], ecx
mov dword [esi + 0x34], eax
lea edx, [esp + 0x10]
lea eax, [esp + 0x1c]
push edx
mov edx, dword [esp + 0x18]
lea ecx, [esp + 0x1c]
push eax
push ecx
push 0
push str.Config1
push edx
mov dword [esp + 0x28], ebp
call edi
test eax, eax
je 0x40c91e
xor ebx, ebx
jmp 0x40c943
mov eax, dword [esp + 0x1c]
xor edx, edx
mov ecx, eax
mov dl, ah
shr ecx, 0x10
and ecx, 0xff
and edx, 0xff
mov dword [esi + 0x5c4], ecx
mov dword [esi + 0x2c], edx
mov byte [esi + 0x28], al
lea eax, [esp + 0x10]
lea ecx, [esp + 0x1c]
push eax
mov eax, dword [esp + 0x18]
lea edx, [esp + 0x1c]
push ecx
push edx
push 0
push str.Margins
push eax
mov dword [esp + 0x28], ebp
call edi
test eax, eax
je 0x40c96c
xor ebx, ebx
jmp 0x40c980
mov eax, dword [esp + 0x1c]
mov ecx, eax
shr ecx, 0x10
and eax, 0xffff
mov dword [esi + 0x4c], ecx
mov dword [esi + 0x50], eax
lea edx, [esp + 0x10]
lea eax, [esp + 0x1c]
push edx
mov edx, dword [esp + 0x18]
lea ecx, [esp + 0x1c]
push eax
push ecx
push 0
push str.WatermarkXY
push edx
mov dword [esp + 0x28], ebp
call edi
test eax, eax
je 0x40c9a9
xor ebx, ebx
jmp 0x40c9c3
mov eax, dword [esp + 0x1c]
mov ecx, eax
shr ecx, 0x10
and eax, 0xffff
mov dword [esi + 0x8a0], ecx
mov dword [esi + 0x8a4], eax
lea edx, [esp + 0x10]
lea eax, [esp + 0x1c]
push edx
mov edx, dword [esp + 0x18]
lea ecx, [esp + 0x1c]
push eax
push ecx
push 0
push str.WatermarkDPI
push edx
mov dword [esp + 0x28], ebp
call edi
test eax, eax
je 0x40c9ec
xor ebx, ebx
jmp 0x40ca08
mov eax, dword [esp + 0x1c]
mov ecx, eax
and ecx, 0xffff
shr eax, 0x10
mov dword [esi + 0x8a8], ecx
mov word [esi + 0x5e8], ax
mov edx, dword [esp + 0x14]
push edx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
pop edi
mov eax, ebx
pop ebp
pop ebx
pop esi
add esp, 0x10
ret