Function at 0x21004eb4
Capabilities:
Delete registry value

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x210627ac
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.210037e3
mov dword [ebp - 4], 0
cmp dword [ebp + 0xc], 0
je 0x21004efb
mov eax, dword [ebp + 0xc]
movsx ecx, byte [eax]
test ecx, ecx
jne 0x21004f0f
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x10]
call fcn.21003822
jmp 0x2100540a
lea edx, [ebp - 0x118]
push edx
mov eax, dword [ebp + 0xc]
push eax
call fcn.2101ca33
mov ecx, dword [str.PrinterDriverData]
push ecx
push 0x210715d4
lea edx, [ebp - 0x118]
push edx
call fcn.21049450
add esp, 4
lea eax, [ebp + eax - 0x118]
push eax
call fcn.21048f5f
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 0x21004f8b
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x10]
call fcn.21003822
jmp 0x2100540a
mov edx, dword [ebp + 0x10]
mov eax, dword [edx + 0x28]
and eax, 2
test eax, eax
je 0x2100506f
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.21008f8c
mov edx, dword [ebp + 0x10]
mov eax, dword [edx + 0x28]
and eax, 0x10000
test eax, eax
je 0x21004fe1
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.21008fab
jmp 0x21004ff5
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 0x2100501f
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.21008f8c
jmp 0x21005032
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 0x2100505b
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.21008f8c
jmp 0x2100506f
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 0x21005097
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.21008f8c
mov ecx, dword [ebp + 0x10]
mov edx, dword [ecx + 0x28]
and edx, 0x40000
test edx, edx
je 0x210050c1
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.21008f8c
mov ecx, dword [ebp + 0x10]
mov edx, dword [ecx + 0xc0]
and edx, 1
test edx, edx
je 0x210050f1
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.21008f8c
mov ecx, dword [ebp + 0x10]
mov edx, dword [ecx + 0xc0]
and edx, 2
test edx, edx
je 0x2100511f
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.21008f8c
mov ecx, dword [ebp + 0x10]
mov edx, dword [ecx + 0xc0]
and edx, 4
test edx, edx
je 0x2100514d
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.21008f8c
mov ecx, dword [ebp + 0x10]
mov edx, dword [ecx + 0xc0]
and edx, 8
test edx, edx
je 0x2100517b
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.21008f8c
mov ecx, dword [ebp + 0x10]
mov edx, dword [ecx + 0xc0]
and edx, 0x10
test edx, edx
je 0x210051a9
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.21008f8c
mov ecx, dword [ebp + 0x10]
mov edx, dword [ecx + 0xc0]
and edx, 0x20
test edx, edx
je 0x210051d9
mov eax, dword [ebp + 0x10]
xor ecx, ecx
mov cx, word [eax + 0xce]
push ecx
mov edx, dword [0x21071414]
push edx
mov eax, dword [ebp - 0x11c]
push eax
call fcn.21008f8c
mov ecx, dword [ebp + 0x10]
mov edx, dword [ecx + 0xc0]
and edx, 0x200
test edx, edx
je 0x2100520c
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.21008f8c
mov ecx, dword [ebp + 0x10]
mov edx, dword [ecx + 0xc0]
and edx, 0x800
test edx, edx
je 0x2100523b
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.21008fab
mov eax, dword [ebp + 0x10]
mov ecx, dword [eax + 0xc0]
and ecx, 0x1000
test ecx, ecx
je 0x2100526e
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.21008f8c
mov eax, dword [ebp + 0x10]
mov ecx, dword [eax + 0xc0]
and ecx, 0x80
test ecx, ecx
je 0x210052a1
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.21008f8c
mov eax, dword [ebp + 0x10]
mov ecx, dword [eax + 0xc0]
and ecx, 0x40
test ecx, ecx
je 0x210052d1
mov edx, dword [ebp + 0x10]
xor eax, eax
mov ax, word [edx + 0xf8]
push eax
mov ecx, dword [0x21071438]
push ecx
mov edx, dword [ebp - 0x11c]
push edx
call fcn.21008f8c
mov eax, dword [ebp + 0x10]
movsx ecx, byte [eax + 0xfa]
test ecx, ecx
je 0x210052fb
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.21008fab
mov edx, dword [ebp + 0x10]
mov eax, dword [edx + 0xc0]
and eax, 0x10000
test eax, eax
je 0x2100532c
mov ecx, dword [ebp + 0x10]
xor edx, edx
mov dx, word [ecx + 0x308]
push edx
mov eax, dword [str.ResDownSampMono]
push eax
mov ecx, dword [ebp - 0x11c]
push ecx
call fcn.21008f8c
mov edx, dword [ebp + 0x10]
mov eax, dword [edx + 0xc0]
and eax, 0x400
test eax, eax
je 0x2100535d
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.21008f8c
mov edx, dword [ebp + 0x10]
mov eax, dword [edx + 0xc0]
and eax, 0x2000
test eax, eax
je 0x2100538e
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.21008f8c
mov edx, dword [ebp + 0x10]
mov eax, dword [edx + 0xc0]
and eax, 0x4000
test eax, eax
je 0x210053bf
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.21008f8c
mov edx, dword [ebp + 0x10]
mov eax, dword [edx + 0xc0]
and eax, 0x8000
test eax, eax
je 0x210053ee
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.21008fab
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.21003822
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
mov esp, ebp
pop ebp
ret 0xc