Function at 0x54ce30
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x5afc10
mov eax, dword fs:[0]
push eax
sub esp, 0x70
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 edi, edx
mov esi, ecx
mov eax, dword [ebp + 0xc]
mov ebx, dword [ebp + 8]
mov dword [ebp - 0x74], eax
mov eax, dword [ebp + 0x10]
mov dword [ebp - 0x78], eax
mov eax, dword [ebp + 0x14]
push str.GetPrinterData2kHelper_____Start
mov dword [ebp - 0x70], ebx
mov dword [ebp - 0x7c], eax
call fcn.0054c5b0
add esp, 4
test esi, esi
jne 0x54ce9f
push 0x57
push str.GetPrinterData2kHelper_____End__d_
call fcn.0054c5b0
add esp, 8
lea eax, [esi + 0x57]
jmp 0x54d1a2
xor eax, eax
mov dword [ebp - 0x68], 0
mov dword [ebp - 0x64], 0
mov dword [ebp - 0x5c], 0
mov dword [ebp - 0x48], 0
mov dword [ebp - 0x44], 7
mov word [ebp - 0x58], ax
mov dword [ebp - 4], eax
mov dword [ebp - 0x30], eax
mov dword [ebp - 0x2c], 7
mov word [ebp - 0x40], ax
mov dword [ebp - 0x18], eax
mov dword [ebp - 0x14], 7
mov word [ebp - 0x28], ax
mov dword [ebp - 0x6c], eax
mov byte [ebp - 4], 3
call fcn.0054c7a0
push 0
push esi
mov eax, dword [eax]
mov eax, dword [eax*4 + 0x5c6740]
call eax
add esp, 8
cmp eax, 1
jne 0x54cf1f
push 0
push str.GetPrinterData2kHelper_____End__d_
call fcn.0054c5b0
add esp, 8
xor esi, esi
jmp 0x54d0d2
push 0x2f
push str.SYSTEMCurrentControlSetControlPrintPrinters
lea ecx, [ebp - 0x58]
call fcn.004035d0
mov ecx, esi
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x54cf33
sub ecx, edx
sar ecx, 1
push ecx
push esi
lea ecx, [ebp - 0x40]
call fcn.004035d0
mov ecx, edi
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x54cf51
sub ecx, edx
sar ecx, 1
push ecx
push edi
lea ecx, [ebp - 0x28]
call fcn.004035d0
cmp dword [ebp - 0x44], 8
lea ecx, [ebp - 0x68]
mov esi, dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
lea eax, [ebp - 0x58]
cmovae eax, dword [ebp - 0x58]
push ecx
push 0x20019
push 0
push eax
push reloc.OLEAUT32.dll_SysReAllocString
call esi
test eax, eax
jne 0x54d083
cmp dword [ebp - 0x2c], 8
lea ecx, [ebp - 0x64]
push ecx
push 0x20019
lea eax, [ebp - 0x40]
cmovae eax, dword [ebp - 0x40]
push 0
push eax
push dword [ebp - 0x68]
call esi
test eax, eax
jne 0x54d083
cmp dword [ebp - 0x14], 8
lea ecx, [ebp - 0x5c]
push ecx
push 0x20019
lea eax, [ebp - 0x28]
cmovae eax, dword [ebp - 0x28]
push 0
push eax
push dword [ebp - 0x64]
call esi
test eax, eax
jne 0x54d083
mov esi, dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
mov dword [ebp - 0x60], eax
mov dword [ebp - 0x6c], eax
lea eax, [ebp - 0x60]
push eax
push 0
lea eax, [ebp - 0x6c]
push eax
push 0
push ebx
push dword [ebp - 0x5c]
call esi
mov eax, dword [ebp - 0x60]
mov ebx, dword [sym.imp.KERNEL32.dll_GetProcessHeap]
inc eax
push eax
push 8
call ebx
push eax
call dword [sym.imp.KERNEL32.dll_HeapAlloc]
mov edi, eax
test edi, edi
je 0x54d07c
lea eax, [ebp - 0x60]
push eax
push edi
lea eax, [ebp - 0x6c]
push eax
push 0
push dword [ebp - 0x70]
push dword [ebp - 0x5c]
call esi
mov esi, eax
test esi, esi
jne 0x54d066
mov ecx, dword [ebp - 0x60]
test ecx, ecx
je 0x54d053
cmp byte [edi + ecx - 1], al
je 0x54d03f
inc ecx
mov edx, dword [ebp - 0x74]
mov eax, dword [ebp - 0x6c]
mov dword [edx], eax
mov eax, dword [ebp - 0x78]
mov dword [eax], edi
mov eax, dword [ebp - 0x7c]
mov dword [eax], ecx
jmp 0x54d08b
push edi
push 0
mov esi, 2
call ebx
push eax
call dword [sym.imp.KERNEL32.dll_HeapFree]
jmp 0x54d08b
call dword [sym.imp.KERNEL32.dll_GetLastError]
push edi
push 0
mov esi, eax
call ebx
push eax
call dword [sym.imp.KERNEL32.dll_HeapFree]
jmp 0x54d08b
mov esi, 8
jmp 0x54d08b
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, eax
mov eax, dword [ebp - 0x5c]
mov edi, dword [sym.imp.ADVAPI32.dll_RegCloseKey]
test eax, eax
je 0x54d0a2
push eax
call edi
mov dword [ebp - 0x5c], 0
mov eax, dword [ebp - 0x64]
test eax, eax
je 0x54d0b3
push eax
call edi
mov dword [ebp - 0x64], 0
mov eax, dword [ebp - 0x68]
test eax, eax
je 0x54d0c4
push eax
call edi
mov dword [ebp - 0x68], 0
push esi
push str.GetPrinterData2kHelper_____End__d_
call fcn.0054c5b0
add esp, 8
mov edx, dword [ebp - 0x14]
cmp edx, 8
jb 0x54d10c
mov ecx, dword [ebp - 0x28]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x54d102
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x54d1be
push edx
push ecx
call fcn.0056deb6
add esp, 8
mov edx, dword [ebp - 0x2c]
xor eax, eax
mov dword [ebp - 0x18], 0
mov dword [ebp - 0x14], 7
mov word [ebp - 0x28], ax
cmp edx, 8
jb 0x54d156
mov ecx, dword [ebp - 0x40]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x54d14c
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x54d1c3
push edx
push ecx
call fcn.0056deb6
add esp, 8
mov edx, dword [ebp - 0x44]
xor eax, eax
mov dword [ebp - 0x30], 0
mov dword [ebp - 0x2c], 7
mov word [ebp - 0x40], ax
cmp edx, 8
jb 0x54d1a0
mov ecx, dword [ebp - 0x58]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x54d196
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x54d1c8
push edx
push ecx
call fcn.0056deb6
add esp, 8
mov eax, esi
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
call fcn.00574908
call fcn.00574908
int3