Function at 0x41a480
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x471268
mov eax, dword fs:[0]
push eax
sub esp, 0x70
mov eax, dword [0x496534]
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.00424d20
add esp, 4
test esi, esi
jne 0x41a4ef
push 0x57
push str.GetPrinterData2kHelper_____End__d_
call fcn.00424d20
add esp, 8
lea eax, [esi + 0x57]
jmp 0x41a783
xor eax, eax
mov dword [ebp - 0x68], 0
mov dword [ebp - 0x64], 0
mov dword [ebp - 0x5c], 0
mov dword [ebp - 0x44], 7
mov dword [ebp - 0x48], 0
mov word [ebp - 0x58], ax
mov dword [ebp - 4], eax
mov dword [ebp - 0x2c], 7
mov dword [ebp - 0x30], eax
mov word [ebp - 0x40], ax
mov dword [ebp - 0x14], 7
mov dword [ebp - 0x18], eax
mov word [ebp - 0x28], ax
mov ecx, esi
mov byte [ebp - 4], 2
call fcn.0041a0b0
test eax, eax
je 0x41a55c
push 0
push str.GetPrinterData2kHelper_____End__d_
call fcn.00424d20
add esp, 8
xor esi, esi
jmp 0x41a71a
push 0x2f
push str.SYSTEMCurrentControlSetControlPrintPrinters
lea ecx, [ebp - 0x58]
call fcn.004037c0
cmp word [esi], 0
jne 0x41a575
xor ecx, ecx
jmp 0x41a58f
mov ecx, esi
lea edx, [ecx + 2]
nop word [eax + eax]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x41a580
sub ecx, edx
sar ecx, 1
push ecx
push esi
lea ecx, [ebp - 0x40]
call fcn.004037c0
cmp word [edi], 0
jne 0x41a5a3
xor ecx, ecx
jmp 0x41a5bf
mov ecx, edi
lea edx, [ecx + 2]
nop dword [eax + eax]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x41a5b0
sub ecx, edx
sar ecx, 1
push ecx
push edi
lea ecx, [ebp - 0x28]
call fcn.004037c0
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 0x41a6cb
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 0x41a6cb
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 0x41a6cb
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 0x41a6c4
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 0x41a6ae
mov ecx, dword [ebp - 0x60]
cmp byte [edi + ecx - 1], al
je 0x41a69a
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 0x41a6d3
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 0x41a6d3
mov esi, 8
jmp 0x41a6d3
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 0x41a6ea
push eax
call edi
mov dword [ebp - 0x5c], 0
mov eax, dword [ebp - 0x64]
test eax, eax
je 0x41a6fb
push eax
call edi
mov dword [ebp - 0x64], 0
mov eax, dword [ebp - 0x68]
test eax, eax
je 0x41a70c
push eax
call edi
mov dword [ebp - 0x68], 0
push esi
push str.GetPrinterData2kHelper_____End__d_
call fcn.00424d20
add esp, 8
mov eax, dword [ebp - 0x14]
cmp eax, 8
jb 0x41a72f
inc eax
lea ecx, [ebp - 0x28]
push eax
push dword [ebp - 0x28]
call fcn.004038d0
xor eax, eax
mov dword [ebp - 0x14], 7
mov word [ebp - 0x28], ax
mov eax, dword [ebp - 0x2c]
mov dword [ebp - 0x18], 0
cmp eax, 8
jb 0x41a758
inc eax
lea ecx, [ebp - 0x40]
push eax
push dword [ebp - 0x40]
call fcn.004038d0
mov ecx, dword [ebp - 0x44]
xor eax, eax
mov dword [ebp - 0x2c], 7
mov dword [ebp - 0x30], 0
mov word [ebp - 0x40], ax
cmp ecx, 8
jb 0x41a781
inc ecx
push ecx
push dword [ebp - 0x58]
lea ecx, [ebp - 0x58]
call fcn.004038d0
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.0044ae75
mov esp, ebp
pop ebp
ret