Function at 0x45eb50
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x58944e
mov eax, dword fs:[0]
push eax
sub esp, 0x7c
mov eax, dword [0x5eb770]
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 eax, dword [ebp + 0xc]
mov edi, dword [ebp + 8]
mov dword [ebp - 0x70], eax
mov eax, dword [ebp + 0x10]
mov dword [ebp - 0x68], ecx
mov ecx, dword [ebp + 0x14]
push str.GetPrinterData2kHelper_____Start
mov dword [ebp - 0x84], edx
mov dword [ebp - 0x88], eax
mov dword [ebp - 0x80], ecx
call fcn.0045c120
xor ebx, ebx
add esp, 4
cmp edi, ebx
jne 0x45ebc6
push 0x57
push str.GetPrinterData2kHelper_____End__d_
call fcn.0045c120
add esp, 8
lea eax, [ebx + 0x57]
jmp 0x45eec8
mov esi, 7
xor edx, edx
mov dword [ebp - 0x7c], ebx
mov dword [ebp - 0x78], ebx
mov dword [ebp - 0x74], ebx
mov dword [ebp - 0x50], esi
mov dword [ebp - 0x54], ebx
mov word [ebp - 0x64], dx
mov dword [ebp - 4], ebx
xor eax, eax
mov dword [ebp - 0x34], esi
mov dword [ebp - 0x38], ebx
mov word [ebp - 0x48], ax
xor ecx, ecx
mov dword [ebp - 0x18], esi
mov dword [ebp - 0x1c], ebx
mov word [ebp - 0x2c], cx
mov dword [ebp - 0x6c], ebx
mov byte [ebp - 4], 3
test byte [0x60aea8], 1
jne 0x45ec2c
or dword [0x60aea8], 1
mov byte [ebp - 4], 4
call fcn.0045c2c0
push 0x58b370
call fcn.005597b9
add esp, 4
mov byte [ebp - 4], 3
mov edx, dword [0x60aea4]
mov eax, dword [edx*4 + 0x5b6c58]
push ebx
push edi
call eax
add esp, 8
cmp eax, 1
jne 0x45ecaa
push ebx
push str.GetPrinterData2kHelper_____End__d_
call fcn.0045c120
mov edi, 8
add esp, 8
cmp dword [ebp - 0x18], edi
jb 0x45ec69
mov ecx, dword [ebp - 0x2c]
push ecx
call fcn.00461cb5
add esp, 4
xor edx, edx
mov dword [ebp - 0x18], esi
mov dword [ebp - 0x1c], ebx
mov word [ebp - 0x2c], dx
cmp dword [ebp - 0x34], edi
jb 0x45ec86
mov eax, dword [ebp - 0x48]
push eax
call fcn.00461cb5
add esp, 4
xor ecx, ecx
mov dword [ebp - 0x34], esi
mov dword [ebp - 0x38], ebx
mov word [ebp - 0x48], cx
cmp dword [ebp - 0x50], edi
jb 0x45eca3
mov edx, dword [ebp - 0x64]
push edx
call fcn.00461cb5
add esp, 4
xor eax, eax
jmp 0x45eec8
push 0x2f
mov eax, str.SYSTEMCurrentControlSetControlPrintPrinters
lea esi, [ebp - 0x64]
call fcn.00401d90
mov eax, edi
lea edx, [eax + 2]
mov edi, edi
mov cx, word [eax]
add eax, 2
cmp cx, bx
jne 0x45ecc0
sub eax, edx
sar eax, 1
push eax
mov eax, edi
lea esi, [ebp - 0x48]
call fcn.00401d90
mov edx, dword [ebp - 0x70]
mov eax, edx
lea esi, [eax + 2]
mov cx, word [eax]
add eax, 2
cmp cx, bx
jne 0x45ece2
sub eax, esi
sar eax, 1
push eax
mov eax, edx
lea esi, [ebp - 0x2c]
call fcn.00401d90
mov eax, dword [ebp - 0x64]
mov edi, 8
cmp dword [ebp - 0x50], edi
jae 0x45ed0c
lea eax, [ebp - 0x64]
mov esi, dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
lea ecx, [ebp - 0x7c]
push ecx
push 0x20019
push ebx
push eax
push reloc.OLEAUT32.dll_SysReAllocString
call esi
test eax, eax
jne 0x45ee2e
mov eax, dword [ebp - 0x48]
cmp dword [ebp - 0x34], edi
jae 0x45ed37
lea eax, [ebp - 0x48]
lea edx, [ebp - 0x78]
push edx
push 0x20019
push ebx
push eax
mov eax, dword [ebp - 0x7c]
push eax
call esi
test eax, eax
jne 0x45ee2e
mov eax, dword [ebp - 0x2c]
cmp dword [ebp - 0x18], edi
jae 0x45ed5b
lea eax, [ebp - 0x2c]
mov edx, dword [ebp - 0x78]
lea ecx, [ebp - 0x74]
push ecx
push 0x20019
push ebx
push eax
push edx
call esi
test eax, eax
jne 0x45ee2e
mov edx, dword [ebp - 0x68]
lea eax, [ebp - 0x6c]
push eax
mov eax, dword [ebp - 0x74]
push ebx
lea ecx, [ebp - 0x70]
push ecx
push ebx
push edx
push eax
mov dword [ebp - 0x6c], ebx
mov dword [ebp - 0x70], ebx
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
mov ecx, dword [ebp - 0x6c]
inc ecx
push ecx
push edi
mov edi, dword [sym.imp.KERNEL32.dll_GetProcessHeap]
call edi
push eax
call dword [sym.imp.KERNEL32.dll_HeapAlloc]
mov esi, eax
cmp esi, ebx
je 0x45ee20
mov ecx, dword [ebp - 0x68]
lea edx, [ebp - 0x6c]
push edx
mov edx, dword [ebp - 0x74]
push esi
lea eax, [ebp - 0x70]
push eax
push ebx
push ecx
push edx
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
mov dword [ebp - 0x68], eax
cmp eax, ebx
jne 0x45ee05
mov eax, dword [ebp - 0x6c]
cmp eax, ebx
jbe 0x45edfc
cmp byte [esi + eax - 1], bl
je 0x45eddd
inc eax
mov dword [ebp - 0x6c], eax
mov ecx, dword [ebp - 0x70]
mov edx, dword [ebp - 0x84]
mov dword [edx], ecx
mov ecx, dword [ebp - 0x88]
mov edx, dword [ebp - 0x80]
mov dword [ecx], esi
mov dword [edx], eax
mov edi, 8
jmp 0x45ee37
mov dword [ebp - 0x68], 2
jmp 0x45ee0e
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp - 0x68], eax
push esi
push ebx
call edi
push eax
call dword [sym.imp.KERNEL32.dll_HeapFree]
mov edi, 8
jmp 0x45ee37
mov dword [ebp - 0x68], 8
mov edi, 8
jmp 0x45ee37
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp - 0x68], eax
mov eax, dword [ebp - 0x74]
mov esi, dword [sym.imp.ADVAPI32.dll_RegCloseKey]
cmp eax, ebx
je 0x45ee4a
push eax
call esi
mov dword [ebp - 0x74], ebx
mov eax, dword [ebp - 0x78]
cmp eax, ebx
je 0x45ee57
push eax
call esi
mov dword [ebp - 0x78], ebx
mov eax, dword [ebp - 0x7c]
cmp eax, ebx
je 0x45ee64
push eax
call esi
mov dword [ebp - 0x7c], ebx
mov eax, dword [ebp - 0x68]
push eax
push str.GetPrinterData2kHelper_____End__d_
call fcn.0045c120
add esp, 8
cmp dword [ebp - 0x18], edi
jb 0x45ee86
mov ecx, dword [ebp - 0x2c]
push ecx
call fcn.00461cb5
add esp, 4
xor edx, edx
mov esi, 7
mov dword [ebp - 0x18], esi
mov dword [ebp - 0x1c], ebx
mov word [ebp - 0x2c], dx
cmp dword [ebp - 0x34], edi
jb 0x45eea8
mov eax, dword [ebp - 0x48]
push eax
call fcn.00461cb5
add esp, 4
xor ecx, ecx
mov dword [ebp - 0x34], esi
mov dword [ebp - 0x38], ebx
mov word [ebp - 0x48], cx
cmp dword [ebp - 0x50], edi
jb 0x45eec5
mov edx, dword [ebp - 0x64]
push edx
call fcn.00461cb5
add esp, 4
mov eax, dword [ebp - 0x68]
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.0055649d
mov esp, ebp
pop ebp
ret