Function at 0x41be90
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x584897
mov eax, dword fs:[0]
push eax
sub esp, 0x644
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
xor edi, edi
push edi
mov esi, ecx
mov ebx, edx
push str.GetPrinterInfo
push edi
lea ecx, [ebp - 0x64c]
mov dword [ebp - 0x650], ebx
call fcn.0044ca70
add esp, 0xc
push ebx
push esi
push str.lpszPrinter___s__lpszShareName___s
lea eax, [ebp - 0x64c]
push 1
push eax
mov dword [ebp - 4], edi
call fcn.0044cd10
add esp, 0x14
push 0x618
lea ecx, [ebp - 0x628]
push edi
push ecx
mov dword [ebp - 0x630], edi
mov dword [ebp - 0x640], edi
call fcn.0055ca80
add esp, 0xc
mov dword [ebp - 0x644], edi
call fcn.00461e32
xor ecx, ecx
cmp eax, edi
setne cl
cmp ecx, edi
jne 0x41bf3b
push 0x80004005
call fcn.004025a0
mov edx, dword [eax]
mov ecx, eax
mov eax, dword [edx + 0xc]
call eax
add eax, 0x10
mov dword [ebp - 0x63c], eax
push esi
lea ecx, [ebp - 0x62c]
mov byte [ebp - 4], 1
call fcn.00403340
mov byte [ebp - 4], 2
mov ecx, dword [ebp - 0x62c]
push 0x5c
push ecx
call fcn.005589fd
add esp, 8
cmp eax, edi
jne 0x41c049
or ebx, 0xffffffff
push esi
push str.SystemCurrentControlSetControlPrintPrinters
lea ecx, [ebp - 0x628]
push str._s_s
push ecx
call dword [sym.imp.USER32.dll_wsprintfW]
add esp, 0x10
lea edx, [ebp - 0x630]
push edx
push 0x20019
push edi
mov edi, dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
lea eax, [ebp - 0x628]
push eax
push reloc.OLEAUT32.dll_SysReAllocString
call edi
test eax, eax
jne 0x41c120
mov edi, dword [ebp - 0x650]
mov esi, dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
lea ecx, [ebp - 0x638]
push ecx
push edi
lea edx, [ebp - 0x640]
push edx
push eax
mov eax, dword [ebp - 0x630]
push str.Share_Name
push eax
mov dword [ebp - 0x638], 0x208
mov dword [ebp - 0x640], 1
call esi
test eax, eax
je 0x41c008
xor ecx, ecx
mov word [edi], cx
lea edx, [ebp - 0x638]
push edx
mov edx, dword [ebp - 0x630]
lea eax, [ebp - 0x644]
push eax
lea ecx, [ebp - 0x640]
push ecx
push 0
push str.Attributes
push edx
mov dword [ebp - 0x638], 4
call esi
mov eax, dword [ebp - 0x630]
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
jmp 0x41c256
sub eax, dword [ebp - 0x62c]
sar eax, 1
mov ebx, eax
js 0x41bf7d
lea edx, [ebx + 1]
push edx
lea eax, [ebp - 0x634]
push eax
lea ecx, [ebp - 0x62c]
call fcn.0040a0e0
push eax
lea ecx, [ebp - 0x63c]
mov byte [ebp - 4], 3
call fcn.00404890
mov byte [ebp - 4], 2
mov eax, dword [ebp - 0x634]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x41c0a5
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
lea ecx, [ebx - 2]
push ecx
push 2
lea edx, [ebp - 0x634]
push edx
lea ecx, [ebp - 0x62c]
call fcn.0040a110
push eax
lea ecx, [ebp - 0x62c]
mov byte [ebp - 4], 4
call fcn.00404890
mov byte [ebp - 4], 2
mov eax, dword [ebp - 0x634]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x41c0f3
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov ecx, dword [ebp - 0x63c]
mov edx, dword [ebp - 0x62c]
push ecx
push edx
push str.SystemCurrentControlSetControlPrintPrinters
lea eax, [ebp - 0x628]
push str._s___s__s
push eax
call dword [sym.imp.USER32.dll_wsprintfW]
add esp, 0x14
jmp 0x41bf98
push 0x618
lea ecx, [ebp - 0x628]
push 0
push ecx
mov dword [ebp - 0x634], 0
call fcn.0055ca80
add esp, 0xc
lea edx, [ebp - 0x630]
push edx
push 0x20019
push 0
push str.SystemCurrentControlSetControlPrintPrinters
push reloc.OLEAUT32.dll_SysReAllocString
call edi
test eax, eax
jne 0x41c31f
test ebx, ebx
js 0x41c188
mov eax, dword [ebp - 0x63c]
mov ecx, dword [ebp - 0x62c]
push eax
push ecx
lea edx, [ebp - 0x628]
push str.___s__s
push edx
call dword [sym.imp.USER32.dll_wsprintfW]
jmp 0x41c19f
push 0x30c
push esi
lea eax, [ebp - 0x628]
push 0x30c
push eax
call fcn.005591b7
mov eax, dword [ebp - 0x630]
add esp, 0x10
lea ecx, [ebp - 0x634]
push ecx
push 0x20019
push 0
lea edx, [ebp - 0x628]
push edx
push eax
call edi
test eax, eax
jne 0x41c2de
mov edi, dword [ebp - 0x650]
mov esi, dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
lea ecx, [ebp - 0x638]
push ecx
push edi
lea edx, [ebp - 0x640]
push edx
push eax
mov eax, dword [ebp - 0x634]
push str.Share_Name
push eax
mov dword [ebp - 0x638], 0x208
mov dword [ebp - 0x640], 1
call esi
test eax, eax
je 0x41c20f
xor ecx, ecx
mov word [edi], cx
lea edx, [ebp - 0x638]
push edx
mov edx, dword [ebp - 0x634]
lea eax, [ebp - 0x644]
push eax
lea ecx, [ebp - 0x640]
push ecx
push 0
push str.Attributes
push edx
mov dword [ebp - 0x638], 4
call esi
mov eax, dword [ebp - 0x634]
mov esi, dword [sym.imp.ADVAPI32.dll_RegCloseKey]
push eax
call esi
mov ecx, dword [ebp - 0x630]
push ecx
call esi
mov edx, dword [ebp - 0x644]
push edx
push str.return___08x
lea eax, [ebp - 0x64c]
push 2
push eax
call fcn.0044cd10
mov esi, dword [ebp - 0x644]
mov byte [ebp - 4], 1
mov eax, dword [ebp - 0x62c]
add eax, 0xfffffff0
add esp, 0x10
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x41c29f
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov byte [ebp - 4], 0
mov eax, dword [ebp - 0x63c]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x41c2c5
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
lea ecx, [ebp - 0x64c]
mov dword [ebp - 4], 0xffffffff
call fcn.0044cc70
mov eax, esi
jmp 0x41c398
mov ecx, dword [ebp - 0x630]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
push 0xffffffffffffffff
push str.return___08x
lea edx, [ebp - 0x64c]
push 2
push edx
call fcn.0044cd10
mov byte [ebp - 4], 1
mov eax, dword [ebp - 0x62c]
add eax, 0xfffffff0
add esp, 0x10
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jmp 0x41c351
push 0xffffffffffffffff
push str.return___08x
lea ecx, [ebp - 0x64c]
push 2
push ecx
call fcn.0044cd10
mov byte [ebp - 4], 1
mov eax, dword [ebp - 0x62c]
add eax, 0xfffffff0
add esp, 0x10
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x41c35d
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov byte [ebp - 4], 0
mov eax, dword [ebp - 0x63c]
add eax, 0xfffffff0
or edx, 0xffffffff
lea ecx, [eax + 0xc]
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x41c383
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
lea ecx, [ebp - 0x64c]
mov dword [ebp - 4], 0xffffffff
call fcn.0044cc70
or eax, 0xffffffff
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