Function at 0x21004ccc
Capabilities:
Delete registry value

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x2106f22c
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.21003593
mov dword [ebp - 4], 0
cmp dword [ebp + 0xc], 0
je 0x21004d13
mov eax, dword [ebp + 0xc]
movsx ecx, byte [eax]
test ecx, ecx
jne 0x21004d27
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x10]
call fcn.210035d2
jmp 0x21005222
lea edx, [ebp - 0x118]
push edx
mov eax, dword [ebp + 0xc]
push eax
call fcn.21021b43
mov ecx, dword [str.PrinterDriverData]
push ecx
push 0x2107f5ec
lea edx, [ebp - 0x118]
push edx
call fcn.21053c40
add esp, 4
lea eax, [ebp + eax - 0x118]
push eax
call fcn.2105374f
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 0x21004da3
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x10]
call fcn.210035d2
jmp 0x21005222
mov edx, dword [ebp + 0x10]
mov eax, dword [edx + 0x28]
and eax, 2
test eax, eax
je 0x21004e87
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.2100b05c
mov edx, dword [ebp + 0x10]
mov eax, dword [edx + 0x28]
and eax, 0x10000
test eax, eax
je 0x21004df9
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.2100b07b
jmp 0x21004e0d
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 0x21004e37
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.2100b05c
jmp 0x21004e4a
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 0x21004e73
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.2100b05c
jmp 0x21004e87
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 0x21004eaf
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.2100b05c
mov ecx, dword [ebp + 0x10]
mov edx, dword [ecx + 0x28]
and edx, 0x40000
test edx, edx
je 0x21004ed9
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.2100b05c
mov ecx, dword [ebp + 0x10]
mov edx, dword [ecx + 0xc0]
and edx, 1
test edx, edx
je 0x21004f09
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.2100b05c
mov ecx, dword [ebp + 0x10]
mov edx, dword [ecx + 0xc0]
and edx, 2
test edx, edx
je 0x21004f37
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.2100b05c
mov ecx, dword [ebp + 0x10]
mov edx, dword [ecx + 0xc0]
and edx, 4
test edx, edx
je 0x21004f65
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.2100b05c
mov ecx, dword [ebp + 0x10]
mov edx, dword [ecx + 0xc0]
and edx, 8
test edx, edx
je 0x21004f93
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.2100b05c
mov ecx, dword [ebp + 0x10]
mov edx, dword [ecx + 0xc0]
and edx, 0x10
test edx, edx
je 0x21004fc1
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.2100b05c
mov ecx, dword [ebp + 0x10]
mov edx, dword [ecx + 0xc0]
and edx, 0x20
test edx, edx
je 0x21004ff1
mov eax, dword [ebp + 0x10]
xor ecx, ecx
mov cx, word [eax + 0xce]
push ecx
mov edx, dword [0x2107f424]
push edx
mov eax, dword [ebp - 0x11c]
push eax
call fcn.2100b05c
mov ecx, dword [ebp + 0x10]
mov edx, dword [ecx + 0xc0]
and edx, 0x200
test edx, edx
je 0x21005024
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.2100b05c
mov ecx, dword [ebp + 0x10]
mov edx, dword [ecx + 0xc0]
and edx, 0x800
test edx, edx
je 0x21005053
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.2100b07b
mov eax, dword [ebp + 0x10]
mov ecx, dword [eax + 0xc0]
and ecx, 0x1000
test ecx, ecx
je 0x21005086
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.2100b05c
mov eax, dword [ebp + 0x10]
mov ecx, dword [eax + 0xc0]
and ecx, 0x80
test ecx, ecx
je 0x210050b9
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.2100b05c
mov eax, dword [ebp + 0x10]
mov ecx, dword [eax + 0xc0]
and ecx, 0x40
test ecx, ecx
je 0x210050e9
mov edx, dword [ebp + 0x10]
xor eax, eax
mov ax, word [edx + 0xf8]
push eax
mov ecx, dword [0x2107f448]
push ecx
mov edx, dword [ebp - 0x11c]
push edx
call fcn.2100b05c
mov eax, dword [ebp + 0x10]
movsx ecx, byte [eax + 0xfa]
test ecx, ecx
je 0x21005113
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.2100b07b
mov edx, dword [ebp + 0x10]
mov eax, dword [edx + 0xc0]
and eax, 0x10000
test eax, eax
je 0x21005144
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.2100b05c
mov edx, dword [ebp + 0x10]
mov eax, dword [edx + 0xc0]
and eax, 0x400
test eax, eax
je 0x21005175
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.2100b05c
mov edx, dword [ebp + 0x10]
mov eax, dword [edx + 0xc0]
and eax, 0x2000
test eax, eax
je 0x210051a6
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.2100b05c
mov edx, dword [ebp + 0x10]
mov eax, dword [edx + 0xc0]
and eax, 0x4000
test eax, eax
je 0x210051d7
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.2100b05c
mov edx, dword [ebp + 0x10]
mov eax, dword [edx + 0xc0]
and eax, 0x8000
test eax, eax
je 0x21005206
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.2100b07b
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.210035d2
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
mov esp, ebp
pop ebp
ret 0xc