Function at 0x21003d05
Capabilities:
Delete registry value

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x21047c2c
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x110
mov dword [ebp - 0x11c], 0
lea ecx, [ebp - 0x10]
call fcn.21002b63
mov dword [ebp - 4], 0
cmp dword [ebp + 0xc], 0
je 0x21003d4c
mov eax, dword [ebp + 0xc]
movsx ecx, byte [eax]
test ecx, ecx
jne 0x21003d60
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x10]
call fcn.21002ba2
jmp 0x2100422a
lea edx, [ebp - 0x118]
push edx
mov eax, dword [ebp + 0xc]
push eax
call fcn.210137b6
mov ecx, dword [str.PrinterDriverData]
push ecx
push 0x21053448
lea edx, [ebp - 0x118]
push edx
call fcn.21030110
add esp, 4
lea eax, [ebp + eax - 0x118]
push eax
call fcn.2103021c
add esp, 0xc
lea ecx, [ebp - 0x14]
push ecx
lea edx, [ebp - 0x11c]
push edx
push 0
push 0x20006
push 0
push 0
push 0
lea eax, [ebp - 0x118]
push eax
mov ecx, dword [ebp + 8]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExA]
test eax, eax
je 0x21003ddc
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x10]
call fcn.21002ba2
jmp 0x2100422a
mov edx, dword [ebp + 0x10]
mov eax, dword [edx + 0x28]
and eax, 2
test eax, eax
je 0x21003ec0
mov ecx, dword [ebp + 0x10]
movsx edx, word [ecx + 0x2e]
push edx
mov eax, dword [str.PaperSize]
push eax
mov ecx, dword [ebp - 0x11c]
push ecx
call fcn.210074a2
mov edx, dword [ebp + 0x10]
mov eax, dword [edx + 0x28]
and eax, 0x10000
test eax, eax
je 0x21003e32
mov ecx, dword [ebp + 0x10]
add ecx, 0x46
push ecx
mov edx, dword [str.PaperName]
push edx
mov eax, dword [ebp - 0x11c]
push eax
call fcn.210074c1
jmp 0x21003e46
mov ecx, dword [str.PaperName]
push ecx
mov edx, dword [ebp - 0x11c]
push edx
call dword [sym.imp.ADVAPI32.dll_RegDeleteValueA]
mov eax, dword [ebp + 0x10]
mov ecx, dword [eax + 0x28]
and ecx, 8
test ecx, ecx
je 0x21003e70
mov edx, dword [ebp + 0x10]
movsx eax, word [edx + 0x32]
push eax
mov ecx, dword [str.PaperWidth]
push ecx
mov edx, dword [ebp - 0x11c]
push edx
call fcn.210074a2
jmp 0x21003e83
mov eax, dword [str.PaperWidth]
push eax
mov ecx, dword [ebp - 0x11c]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegDeleteValueA]
mov edx, dword [ebp + 0x10]
mov eax, dword [edx + 0x28]
and eax, 4
test eax, eax
je 0x21003eac
mov ecx, dword [ebp + 0x10]
movsx edx, word [ecx + 0x30]
push edx
mov eax, dword [str.PaperHeight]
push eax
mov ecx, dword [ebp - 0x11c]
push ecx
call fcn.210074a2
jmp 0x21003ec0
mov edx, dword [str.PaperHeight]
push edx
mov eax, dword [ebp - 0x11c]
push eax
call dword [sym.imp.ADVAPI32.dll_RegDeleteValueA]
mov ecx, dword [ebp + 0x10]
mov edx, dword [ecx + 0x28]
and edx, 1
test edx, edx
je 0x21003ee8
mov eax, dword [ebp + 0x10]
movsx ecx, word [eax + 0x2c]
push ecx
mov edx, dword [str.Orientation]
push edx
mov eax, dword [ebp - 0x11c]
push eax
call fcn.210074a2
mov ecx, dword [ebp + 0x10]
mov edx, dword [ecx + 0x28]
and edx, 0x40000
test edx, edx
je 0x21003f12
mov eax, dword [ebp + 0x10]
mov ecx, dword [eax + 0x68]
push ecx
mov edx, dword [str.BitDepth]
push edx
mov eax, dword [ebp - 0x11c]
push eax
call fcn.210074a2
mov ecx, dword [ebp + 0x10]
mov edx, dword [ecx + 0xc0]
and edx, 1
test edx, edx
je 0x21003f42
mov eax, dword [ebp + 0x10]
xor ecx, ecx
mov cx, word [eax + 0xc4]
push ecx
mov edx, dword [str.Resolution]
push edx
mov eax, dword [ebp - 0x11c]
push eax
call fcn.210074a2
mov ecx, dword [ebp + 0x10]
mov edx, dword [ecx + 0xc0]
and edx, 2
test edx, edx
je 0x21003f70
mov eax, dword [ebp + 0x10]
movsx ecx, word [eax + 0xc6]
push ecx
mov edx, dword [str.MarginLeft]
push edx
mov eax, dword [ebp - 0x11c]
push eax
call fcn.210074a2
mov ecx, dword [ebp + 0x10]
mov edx, dword [ecx + 0xc0]
and edx, 4
test edx, edx
je 0x21003f9e
mov eax, dword [ebp + 0x10]
movsx ecx, word [eax + 0xc8]
push ecx
mov edx, dword [str.MarginTop]
push edx
mov eax, dword [ebp - 0x11c]
push eax
call fcn.210074a2
mov ecx, dword [ebp + 0x10]
mov edx, dword [ecx + 0xc0]
and edx, 8
test edx, edx
je 0x21003fcc
mov eax, dword [ebp + 0x10]
movsx ecx, word [eax + 0xca]
push ecx
mov edx, dword [str.MarginRight]
push edx
mov eax, dword [ebp - 0x11c]
push eax
call fcn.210074a2
mov ecx, dword [ebp + 0x10]
mov edx, dword [ecx + 0xc0]
and edx, 0x10
test edx, edx
je 0x21003ffa
mov eax, dword [ebp + 0x10]
movsx ecx, word [eax + 0xcc]
push ecx
mov edx, dword [str.MarginBottom]
push edx
mov eax, dword [ebp - 0x11c]
push eax
call fcn.210074a2
mov ecx, dword [ebp + 0x10]
mov edx, dword [ecx + 0xc0]
and edx, 0x20
test edx, edx
je 0x2100402a
mov eax, dword [ebp + 0x10]
xor ecx, ecx
mov cx, word [eax + 0xce]
push ecx
mov edx, dword [str.ShowDlg]
push edx
mov eax, dword [ebp - 0x11c]
push eax
call fcn.210074a2
mov ecx, dword [ebp + 0x10]
mov edx, dword [ecx + 0xc0]
and edx, 0x200
test edx, edx
je 0x2100405d
mov eax, dword [ebp + 0x10]
xor ecx, ecx
mov cx, word [eax + 0xd2]
push ecx
mov edx, dword [str.Compression]
push edx
mov eax, dword [ebp - 0x11c]
push eax
call fcn.210074a2
mov ecx, dword [ebp + 0x10]
mov edx, dword [ecx + 0xc0]
and edx, 0x800
test edx, edx
je 0x2100408c
mov eax, dword [ebp + 0x10]
add eax, 0xd4
push eax
mov ecx, dword [str.DefaultFont]
push ecx
mov edx, dword [ebp - 0x11c]
push edx
call fcn.210074c1
mov eax, dword [ebp + 0x10]
mov ecx, dword [eax + 0xc0]
and ecx, 0x1000
test ecx, ecx
je 0x210040bf
mov edx, dword [ebp + 0x10]
xor eax, eax
mov ax, word [edx + 0xf4]
push eax
mov ecx, dword [str.PathEscapes]
push ecx
mov edx, dword [ebp - 0x11c]
push edx
call fcn.210074a2
mov eax, dword [ebp + 0x10]
mov ecx, dword [eax + 0xc0]
and ecx, 0x80
test ecx, ecx
je 0x210040f2
mov edx, dword [ebp + 0x10]
xor eax, eax
mov ax, word [edx + 0xf6]
push eax
mov ecx, dword [str.AutoEm]
push ecx
mov edx, dword [ebp - 0x11c]
push edx
call fcn.210074a2
mov eax, dword [ebp + 0x10]
mov ecx, dword [eax + 0xc0]
and ecx, 0x40
test ecx, ecx
je 0x21004122
mov edx, dword [ebp + 0x10]
xor eax, eax
mov ax, word [edx + 0xf8]
push eax
mov ecx, dword [0x210532d0]
push ecx
mov edx, dword [ebp - 0x11c]
push edx
call fcn.210074a2
mov eax, dword [ebp + 0x10]
movsx ecx, byte [eax + 0xfa]
test ecx, ecx
je 0x2100414c
mov edx, dword [ebp + 0x10]
add edx, 0xfa
push edx
mov eax, dword [str.PrinterEm]
push eax
mov ecx, dword [ebp - 0x11c]
push ecx
call fcn.210074c1
mov edx, dword [ebp + 0x10]
mov eax, dword [edx + 0xc0]
and eax, 0x400
test eax, eax
je 0x2100417d
mov ecx, dword [ebp + 0x10]
xor edx, edx
mov dx, word [ecx + 0x1fe]
push edx
mov eax, dword [str.ResDownSamp]
push eax
mov ecx, dword [ebp - 0x11c]
push ecx
call fcn.210074a2
mov edx, dword [ebp + 0x10]
mov eax, dword [edx + 0xc0]
and eax, 0x2000
test eax, eax
je 0x210041ae
mov ecx, dword [ebp + 0x10]
xor edx, edx
mov dx, word [ecx + 0x200]
push edx
mov eax, dword [str.JpegQuality]
push eax
mov ecx, dword [ebp - 0x11c]
push ecx
call fcn.210074a2
mov edx, dword [ebp + 0x10]
mov eax, dword [edx + 0xc0]
and eax, 0x4000
test eax, eax
je 0x210041df
mov ecx, dword [ebp + 0x10]
xor edx, edx
mov dx, word [ecx + 0x202]
push edx
mov eax, dword [str.PdfAction]
push eax
mov ecx, dword [ebp - 0x11c]
push ecx
call fcn.210074a2
mov edx, dword [ebp + 0x10]
mov eax, dword [edx + 0xc0]
and eax, 0x8000
test eax, eax
je 0x2100420e
mov ecx, dword [ebp + 0x10]
add ecx, 0x204
push ecx
mov edx, dword [str.Exec]
push edx
mov eax, dword [ebp - 0x11c]
push eax
call fcn.210074c1
mov ecx, dword [ebp - 0x11c]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x10]
call fcn.21002ba2
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
mov esp, ebp
pop ebp
ret 0xc