Function at 0x54e6a0
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x5afe39
mov eax, dword fs:[0]
push eax
sub esp, 0x89c
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 ebx, dword [ebp + 0xc]
mov ecx, ebx
mov esi, dword [ebp + 8]
mov dword [ebp - 0x8a8], esi
call fcn.0054ef00
push 0x618
lea eax, [ebp - 0x830]
mov dword [ebp - 0x890], 0
push 0
push eax
mov dword [ebp - 0x89c], 0
call fcn.00571c00
push 0x208
lea eax, [ebp - 0x218]
push 0
push eax
call fcn.00571c00
push esi
push str.SOFTWAREMicrosoftWindows_NTCurrentVersionPrintPrinters_sPrinterDriverData
lea eax, [ebp - 0x830]
mov dword [ebp - 0x8a0], 0
push 0x30c
push eax
mov dword [ebp - 0x894], 0
mov dword [ebp - 0x88c], 0
call fcn.0041e030
add esp, 0x28
lea eax, [ebp - 0x890]
push eax
push 0x20019
push 0
lea eax, [ebp - 0x830]
push eax
push reloc.OLEAUT32.dll_SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x54e96e
push eax
push eax
push eax
push eax
lea eax, [ebp - 0x89c]
push eax
push 0
push 0
push 0
push 0
push 0
push 0
push dword [ebp - 0x890]
call dword [sym.imp.ADVAPI32.dll_RegQueryInfoKeyW]
test eax, eax
jne 0x54e96e
mov eax, dword [ebp - 0x89c]
test eax, eax
je 0x54e96e
xor edi, edi
test eax, eax
je 0x54e96e
nop
xor eax, eax
mov dword [ebp - 0x8a0], 0x104
mov word [ebp - 0x218], ax
lea eax, [ebp - 0x88c]
push eax
push 0
lea eax, [ebp - 0x894]
push eax
push 0
lea eax, [ebp - 0x8a0]
push eax
lea eax, [ebp - 0x218]
push eax
push edi
push dword [ebp - 0x890]
call dword [sym.imp.ADVAPI32.dll_RegEnumValueW]
mov ecx, dword [str.CustomCode]
mov esi, 0x5c68e0
mov dword [ebp - 0x8a4], eax
mov eax, 1
mov dword [ebp - 0x898], eax
test ecx, ecx
je 0x54e846
lea eax, [ebp - 0x218]
push eax
push ecx
call dword [sym.imp.KERNEL32.dll_lstrcmpW]
test eax, eax
je 0x54e844
mov ecx, dword [esi + 4]
add esi, 4
test ecx, ecx
jne 0x54e820
mov eax, dword [ebp - 0x898]
jmp 0x54e846
xor eax, eax
cmp dword [ebp - 0x8a4], 0
jne 0x54e95b
test eax, eax
je 0x54e95b
mov eax, dword [ebp - 0x88c]
test eax, eax
je 0x54e95b
push eax
push 8
call dword [sym.imp.KERNEL32.dll_GetProcessHeap]
push eax
call dword [sym.imp.KERNEL32.dll_HeapAlloc]
mov esi, eax
test esi, esi
je 0x54e95b
lea eax, [ebp - 0x88c]
push eax
push esi
push 0
push 0
lea eax, [ebp - 0x218]
push eax
push dword [ebp - 0x890]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x54e95b
push eax
push dword [ebp - 0x88c]
lea eax, [ebp - 0x218]
push dword [ebp - 0x894]
lea ecx, [ebp - 0x888]
push esi
push eax
push 0
push 0
call fcn.0054e110
mov dword [ebp - 4], 0
lea eax, [ebp - 0x888]
mov esi, dword [ebx + 4]
push eax
cmp dword [ebx + 8], esi
je 0x54e941
mov ecx, esi
mov dword [ebp - 0x8a4], esi
call fcn.00402f40
lea eax, [ebp - 0x870]
mov byte [ebp - 4], 1
push eax
lea ecx, [esi + 0x18]
call fcn.00402f40
lea eax, [ebp - 0x858]
mov byte [ebp - 4], 2
push eax
lea ecx, [esi + 0x30]
call fcn.00402f40
mov eax, dword [ebp - 0x840]
mov dword [esi + 0x48], eax
mov eax, dword [ebp - 0x83c]
mov dword [esi + 0x4c], eax
mov eax, dword [ebp - 0x838]
mov dword [esi + 0x50], eax
mov eax, dword [ebp - 0x834]
mov dword [esi + 0x54], eax
add dword [ebx + 4], 0x58
jmp 0x54e949
push esi
mov ecx, ebx
call fcn.0054f0c0
lea ecx, [ebp - 0x888]
mov dword [ebp - 4], 0xffffffff
call fcn.0054e220
inc edi
cmp edi, dword [ebp - 0x89c]
jb 0x54e7c0
mov esi, dword [ebp - 0x8a8]
push dword [ebp - 0x890]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
lea eax, [ebp - 0x88c]
mov dword [ebp - 0x894], 0
push eax
lea eax, [ebp - 0x898]
mov dword [ebp - 0x898], 0
push eax
lea eax, [ebp - 0x894]
mov dword [ebp - 0x88c], 0
push eax
push str.Default_DevMode
mov edx, 0x5c6930
mov ecx, esi
call fcn.0054ce30
add esp, 0x10
test eax, eax
jne 0x54eb13
cmp dword [ebp - 0x898], eax
je 0x54eb15
mov edi, dword [ebp - 0x88c]
mov esi, dword [ebp - 0x894]
mov dword [ebp - 0x878], eax
mov dword [ebp - 0x874], 7
mov word [ebp - 0x888], ax
mov dword [ebp - 4], 3
mov dword [ebp - 0x860], eax
mov dword [ebp - 0x85c], 7
mov word [ebp - 0x870], ax
mov dword [ebp - 0x848], eax
mov dword [ebp - 0x844], 7
mov word [ebp - 0x858], ax
push 0x2f
push str.SYSTEMCurrentControlSetControlPrintPrinters
lea ecx, [ebp - 0x888]
mov byte [ebp - 4], 5
call fcn.004035d0
push 0xf
push str.Default_DevMode
lea ecx, [ebp - 0x858]
call fcn.004035d0
mov eax, dword [ebp - 0x898]
mov dword [ebp - 0x840], eax
mov dword [ebp - 0x83c], esi
mov dword [ebp - 0x838], edi
mov dword [ebp - 0x834], 0
mov dword [ebp - 4], 6
lea eax, [ebp - 0x888]
mov esi, dword [ebx + 4]
push eax
cmp dword [ebx + 8], esi
je 0x54eaea
mov ecx, esi
mov dword [ebp - 0x8a8], esi
call fcn.00402f40
lea eax, [ebp - 0x870]
mov byte [ebp - 4], 7
push eax
lea ecx, [esi + 0x18]
call fcn.00402f40
lea eax, [ebp - 0x858]
mov byte [ebp - 4], 8
push eax
lea ecx, [esi + 0x30]
call fcn.00402f40
mov eax, dword [ebp - 0x840]
mov dword [esi + 0x48], eax
mov eax, dword [ebp - 0x83c]
mov dword [esi + 0x4c], eax
mov eax, dword [ebp - 0x838]
mov dword [esi + 0x50], eax
mov eax, dword [ebp - 0x834]
mov dword [esi + 0x54], eax
add dword [ebx + 4], 0x58
jmp 0x54eaf2
push esi
mov ecx, ebx
call fcn.0054f0c0
lea ecx, [ebp - 0x858]
call fcn.00403570
lea ecx, [ebp - 0x870]
call fcn.00403570
lea ecx, [ebp - 0x888]
call fcn.00403570
xor eax, eax
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 8