Function at 0x548c30
Capabilities:
Delete registry value
Set registry value

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x5af7bc
mov eax, dword fs:[0]
push eax
sub esp, 0x880
mov eax, dword [0x608554]
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, edx
mov dword [ebp - 0x860], esi
mov ebx, ecx
mov dword [ebp - 0x854], ebx
push 0x618
lea eax, [ebp - 0x830]
push 0
push eax
call fcn.00571c00
push 0x208
lea eax, [ebp - 0x218]
push 0
push eax
call fcn.00571c00
push ebx
push str.SOFTWAREMicrosoftWindows_NTCurrentVersionPrintPrinters_sPrinterDriverData
lea eax, [ebp - 0x830]
mov dword [ebp - 0x850], 0
push 0x30c
push eax
call fcn.0041e030
add esp, 0x28
lea eax, [ebp - 0x850]
push eax
push 0xf003f
push 0
lea eax, [ebp - 0x830]
push eax
push reloc.OLEAUT32.dll_SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
mov ebx, eax
test ebx, ebx
jne 0x548d4c
mov edi, dword [sym.imp.ADVAPI32.dll_RegDeleteValueW]
push str.UIProfileStructSize
push dword [ebp - 0x850]
call edi
mov esi, 1
nop word [eax + eax]
lea eax, [ebp - 0x218]
push esi
push str.DeviceOption
cmp esi, 0xa
jae 0x548d18
push str._s0_d
jmp 0x548d1d
push 0x5d945c
push 0x104
push eax
call fcn.0041e030
add esp, 0x14
lea eax, [ebp - 0x218]
push eax
push dword [ebp - 0x850]
call edi
mov ebx, eax
test ebx, ebx
jne 0x548d46
inc esi
cmp esi, 0x63
jbe 0x548d00
mov esi, dword [ebp - 0x860]
push dword [ebp - 0x850]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
test esi, esi
je 0x549293
cmp dword [ebp + 8], 0
jbe 0x549293
mov dword [ebp - 0x860], 0
lea edi, [esi + 0x14]
mov edx, dword [edi - 0x14]
mov ebx, 0x5c
test edx, edx
je 0x54920c
mov ecx, edx
mov dword [ebp - 0x838], 0
xor eax, eax
mov dword [ebp - 0x834], 7
mov word [ebp - 0x848], ax
lea esi, [ecx + 2]
nop dword [eax]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x548db0
sub ecx, esi
sar ecx, 1
push ecx
push edx
lea ecx, [ebp - 0x848]
call fcn.004035d0
mov dword [ebp - 4], 0
lea ecx, [ebp - 0x848]
cmp dword [ebp - 0x834], 8
mov eax, dword [ebp - 0x838]
cmovae ecx, dword [ebp - 0x848]
cmp bx, word [ecx + eax*2 - 2]
je 0x548e06
push 1
push 0x5c692c
lea ecx, [ebp - 0x848]
call fcn.0040dc80
mov ebx, dword [ebp - 0x854]
mov eax, ebx
lea edx, [eax + 2]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x548e11
sub eax, edx
lea ecx, [ebp - 0x848]
sar eax, 1
push eax
push ebx
call fcn.0040dc80
cmp dword [edi - 0x10], 0
je 0x548e6c
push 1
push 0x5c692c
lea ecx, [ebp - 0x848]
call fcn.0040dc80
mov edx, dword [edi - 0x10]
mov ecx, edx
lea esi, [ecx + 2]
nop dword [eax]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x548e50
sub ecx, esi
sar ecx, 1
push ecx
push edx
lea ecx, [ebp - 0x848]
call fcn.0040dc80
cmp dword [ebp - 0x834], 8
lea ecx, [ebp - 0x850]
push ecx
push 0x20006
lea eax, [ebp - 0x848]
cmovae eax, dword [ebp - 0x848]
push 0
push eax
push reloc.OLEAUT32.dll_SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
mov ebx, eax
test ebx, ebx
jne 0x5491a4
mov esi, dword [edi - 0xc]
mov ecx, str.Default_DevMode
mov eax, esi
nop
mov dx, word [eax]
cmp dx, word [ecx]
jne 0x548ed6
test dx, dx
je 0x548ed2
mov dx, word [eax + 2]
cmp dx, word [ecx + 2]
jne 0x548ed6
add eax, 4
add ecx, 4
test dx, dx
jne 0x548eb0
xor eax, eax
jmp 0x548edb
sbb eax, eax
or eax, 1
test eax, eax
jne 0x54918b
xor esi, esi
mov dword [ebp - 0x85c], esi
mov dword [ebp - 0x88c], esi
mov dword [ebp - 0x888], esi
mov dword [ebp - 0x884], 0xf000c
mov dword [ebp - 0x878], esi
mov dword [ebp - 0x874], esi
mov dword [ebp - 0x870], esi
mov dword [ebp - 0x86c], esi
mov dword [ebp - 0x868], esi
mov dword [ebp - 0x864], esi
lea eax, [ebp - 0x88c]
mov byte [ebp - 4], 3
push eax
lea eax, [ebp - 0x858]
mov dword [ebp - 0x858], esi
push eax
push dword [ebp - 0x854]
call dword [sym.imp.WINSPOOL.DRV_OpenPrinterW]
test eax, eax
je 0x548f5b
mov esi, dword [ebp - 0x858]
mov dword [ebp - 0x85c], esi
jmp 0x548f69
call dword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
jne 0x5490c6
push 0
push 0
push 0
push dword [ebp - 0x854]
push esi
push 0
call dword [sym.imp.WINSPOOL.DRV_DocumentPropertiesW]
mov ebx, eax
test ebx, ebx
je 0x54909e
cmp ebx, dword [edi]
jb 0x54909e
lea eax, [ebp - 0x849]
mov byte [ebp - 0x849], 0
push eax
lea ecx, [ebp - 0x878]
push ecx
push ebx
call fcn.004607a0
lea eax, [ebp - 0x849]
mov byte [ebp - 0x849], 0
push eax
lea ecx, [ebp - 0x86c]
push ecx
push ebx
call fcn.004607a0
mov ecx, dword [edi]
mov edx, dword [edi - 8]
mov dword [ebp - 0x858], ecx
mov dword [ebp - 0x85c], edx
test ecx, ecx
je 0x549041
mov eax, dword [ebp - 0x878]
test eax, eax
jne 0x548ff2
call fcn.005749d2
mov dword [eax], 0x16
jmp 0x54903c
test edx, edx
je 0x549007
cmp ebx, ecx
jb 0x549007
push ecx
push edx
push eax
call fcn.00571100
add esp, 0xc
jmp 0x549041
push ebx
push 0
push eax
call fcn.00571c00
add esp, 0xc
cmp dword [ebp - 0x85c], 0
jne 0x549029
call fcn.005749d2
mov dword [eax], 0x16
jmp 0x54903c
cmp ebx, dword [ebp - 0x858]
jae 0x549041
call fcn.005749d2
mov dword [eax], 0x22
call fcn.005748f8
push 2
push 0
push dword [ebp - 0x86c]
push dword [ebp - 0x854]
push esi
push 0
call dword [sym.imp.WINSPOOL.DRV_DocumentPropertiesW]
cmp eax, 1
jne 0x54909e
mov eax, dword [ebp - 0x86c]
push 0xa
mov cx, word [eax + 0x46]
mov eax, dword [ebp - 0x878]
mov word [eax + 0x46], cx
push dword [ebp - 0x878]
push dword [ebp - 0x86c]
push dword [ebp - 0x854]
push esi
push 0
call dword [sym.imp.WINSPOOL.DRV_DocumentPropertiesW]
cmp eax, 1
jne 0x54909e
push ebx
push dword [ebp - 0x86c]
jmp 0x5490a3
push dword [edi]
push dword [edi - 8]
push dword [edi - 4]
push 0
push dword [edi - 0xc]
push dword [ebp - 0x850]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
mov ebx, eax
test esi, esi
je 0x5490c6
push esi
call dword [sym.imp.WINSPOOL.DRV_ClosePrinter]
xor esi, esi
mov byte [ebp - 4], 2
mov ecx, dword [ebp - 0x86c]
test ecx, ecx
je 0x549122
mov edx, dword [ebp - 0x864]
mov eax, ecx
sub edx, ecx
cmp edx, 0x1000
jb 0x5490fa
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x5492b1
push edx
push ecx
call fcn.0056deb6
add esp, 8
mov dword [ebp - 0x86c], 0
mov dword [ebp - 0x868], 0
mov dword [ebp - 0x864], 0
mov byte [ebp - 4], 1
mov ecx, dword [ebp - 0x878]
test ecx, ecx
je 0x54917e
mov edx, dword [ebp - 0x870]
mov eax, ecx
sub edx, ecx
cmp edx, 0x1000
jb 0x549156
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x5492b1
push edx
push ecx
call fcn.0056deb6
add esp, 8
mov dword [ebp - 0x878], 0
mov dword [ebp - 0x874], 0
mov dword [ebp - 0x870], 0
test esi, esi
je 0x5491a4
push esi
call dword [sym.imp.WINSPOOL.DRV_ClosePrinter]
jmp 0x5491a4
push dword [edi]
push dword [edi - 8]
push dword [edi - 4]
push 0
push esi
push dword [ebp - 0x850]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
mov ebx, eax
mov eax, dword [ebp - 0x850]
test eax, eax
je 0x5491bf
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov dword [ebp - 0x850], 0
mov dword [ebp - 4], 0xffffffff
mov edx, dword [ebp - 0x834]
cmp edx, 8
jb 0x54927a
mov ecx, dword [ebp - 0x848]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x549200
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x5492b1
push edx
push ecx
call fcn.0056deb6
add esp, 8
jmp 0x54927a
cmp dword [ebp - 0x854], 0
mov eax, dword [edi - 8]
mov esi, dword [edi + 4]
mov ebx, dword [edi]
mov dword [ebp - 0x85c], eax
mov eax, dword [edi - 4]
mov dword [ebp - 0x858], eax
mov eax, dword [edi - 0xc]
mov dword [ebp - 0x87c], eax
mov eax, dword [edi - 0x10]
mov dword [ebp - 0x880], eax
jne 0x549245
mov ebx, 0x57
jmp 0x54927a
call fcn.0054c7a0
push esi
push ebx
push dword [ebp - 0x85c]
mov eax, dword [eax]
push dword [ebp - 0x858]
push dword [ebp - 0x87c]
mov eax, dword [eax*4 + 0x5c6530]
push dword [ebp - 0x880]
push dword [ebp - 0x854]
call eax
add esp, 0x1c
mov ebx, eax
mov eax, dword [ebp - 0x860]
add edi, 0x1c
inc eax
mov dword [ebp - 0x860], eax
cmp eax, dword [ebp + 8]
jb 0x548d77
mov eax, ebx
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.0056d977
mov esp, ebp
pop ebp
ret
call fcn.00574908
int3