Function at 0x4830f0
Capabilities:
Delete registry value

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x53b9ab
mov eax, dword fs:[0]
push eax
sub esp, 0x218
mov eax, dword [0x58cfe0]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, dword [ebp + 0x10]
mov ebx, dword [ebp + 8]
mov edi, dword [ebp + 0xc]
test esi, esi
je 0x483565
lea ecx, [ebp - 0x21c]
mov dword [ebp - 0x224], 0
mov dword [ebp - 0x21c], 0
call fcn.004825b0
mov dword [ebp - 4], 0
test edi, edi
je 0x483553
cmp word [edi], 0
je 0x483553
lea eax, [ebp - 0x218]
push eax
push edi
call fcn.00497870
lea ecx, [ebp - 0x218]
add esp, 8
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x483180
push dword [0x5509b4]
sub ecx, edx
lea eax, [ebp - 0x218]
sar ecx, 1
push 0x54f094
lea eax, [eax + ecx*2]
push eax
call fcn.00405510
add esp, 0xc
lea eax, [ebp - 0x220]
push eax
lea eax, [ebp - 0x224]
push eax
push 0
push 0x20006
push 0
push 0
push 0
lea eax, [ebp - 0x218]
push eax
push ebx
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExW]
test eax, eax
jne 0x483553
test byte [esi + 0x48], 2
je 0x48328e
movsx eax, word [esi + 0x4e]
push eax
push str.PaperSize
push dword [ebp - 0x224]
call fcn.00488a10
mov edi, dword [sym.imp.ADVAPI32.dll_RegDeleteValueW]
add esp, 0xc
test dword [esi + 0x48], 0x10000
je 0x483227
lea eax, [esi + 0x66]
push eax
push str.PaperName
push dword [ebp - 0x224]
call fcn.00488a30
add esp, 0xc
jmp 0x483234
push str.PaperName
push dword [ebp - 0x224]
call edi
test byte [esi + 0x48], 8
je 0x483254
movsx eax, word [esi + 0x52]
push eax
push str.PaperWidth
push dword [ebp - 0x224]
call fcn.00488a10
add esp, 0xc
jmp 0x483261
push str.PaperWidth
push dword [ebp - 0x224]
call edi
test byte [esi + 0x48], 4
je 0x483281
movsx eax, word [esi + 0x50]
push eax
push str.PaperHeight
push dword [ebp - 0x224]
call fcn.00488a10
add esp, 0xc
jmp 0x48328e
push str.PaperHeight
push dword [ebp - 0x224]
call edi
test byte [esi + 0x48], 1
je 0x4832ac
movsx eax, word [esi + 0x4c]
push eax
push 0x54f108
push dword [ebp - 0x224]
call fcn.00488a10
add esp, 0xc
test dword [esi + 0x48], 0x40000
je 0x4832ce
push dword [esi + 0xa8]
push str.BitDepth
push dword [ebp - 0x224]
call fcn.00488a10
add esp, 0xc
test byte [esi + 0x100], 1
je 0x4832f2
movzx eax, word [esi + 0x104]
push eax
push str.Resolution
push dword [ebp - 0x224]
call fcn.00488a10
add esp, 0xc
test byte [esi + 0x100], 2
je 0x483316
movsx eax, word [esi + 0x106]
push eax
push str.MarginLeft
push dword [ebp - 0x224]
call fcn.00488a10
add esp, 0xc
test byte [esi + 0x100], 4
je 0x48333a
movsx eax, word [esi + 0x108]
push eax
push str.MarginTop
push dword [ebp - 0x224]
call fcn.00488a10
add esp, 0xc
test byte [esi + 0x100], 8
je 0x48335e
movsx eax, word [esi + 0x10a]
push eax
push str.MarginRight
push dword [ebp - 0x224]
call fcn.00488a10
add esp, 0xc
test byte [esi + 0x100], 0x10
je 0x483382
movsx eax, word [esi + 0x10c]
push eax
push str.MarginBottom
push dword [ebp - 0x224]
call fcn.00488a10
add esp, 0xc
test byte [esi + 0x100], 0x20
je 0x4833a6
movzx eax, word [esi + 0x10e]
push eax
push str.ShowDlg
push dword [ebp - 0x224]
call fcn.00488a10
add esp, 0xc
test dword [esi + 0x100], 0x200
je 0x4833cd
movzx eax, word [esi + 0x112]
push eax
push str.Compression
push dword [ebp - 0x224]
call fcn.00488a10
add esp, 0xc
test dword [esi + 0x100], 0x800
je 0x4833f3
lea eax, [esi + 0x114]
push eax
push str.DefaultFont
push dword [ebp - 0x224]
call fcn.00488a70
add esp, 0xc
test dword [esi + 0x100], 0x1000
je 0x48341a
movzx eax, word [esi + 0x134]
push eax
push str.PathEscapes
push dword [ebp - 0x224]
call fcn.00488a10
add esp, 0xc
test byte [esi + 0x100], 0x80
je 0x48343e
movzx eax, word [esi + 0x136]
push eax
push str.AutoEm
push dword [ebp - 0x224]
call fcn.00488a10
add esp, 0xc
test byte [esi + 0x100], 0x40
je 0x483462
movzx eax, word [esi + 0x138]
push eax
push str.Units
push dword [ebp - 0x224]
call fcn.00488a10
add esp, 0xc
cmp byte [esi + 0x13a], 0
lea eax, [esi + 0x13a]
je 0x483485
push eax
push str.PrinterEm
push dword [ebp - 0x224]
call fcn.00488a70
add esp, 0xc
test dword [esi + 0x100], 0x10000
je 0x4834ac
movzx eax, word [esi + 0x348]
push eax
push str.ResDownSampMono
push dword [ebp - 0x224]
call fcn.00488a10
add esp, 0xc
test dword [esi + 0x100], 0x400
je 0x4834d3
movzx eax, word [esi + 0x23e]
push eax
push str.ResDownSamp
push dword [ebp - 0x224]
call fcn.00488a10
add esp, 0xc
test dword [esi + 0x100], 0x2000
je 0x4834fa
movzx eax, word [esi + 0x240]
push eax
push str.JpegQuality
push dword [ebp - 0x224]
call fcn.00488a10
add esp, 0xc
test dword [esi + 0x100], 0x4000
je 0x483521
movzx eax, word [esi + 0x242]
push eax
push str.PdfAction
push dword [ebp - 0x224]
call fcn.00488a10
add esp, 0xc
test dword [esi + 0x100], 0x8000
je 0x483547
lea eax, [esi + 0x244]
push eax
push str.Exec
push dword [ebp - 0x224]
call fcn.00488a70
add esp, 0xc
push dword [ebp - 0x224]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x21c]
call fcn.004825f0
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.00507257
mov esp, ebp
pop ebp
ret