Function at 0x41fbe0
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x565e47
mov eax, dword fs:[0]
push eax
sub esp, 0x644
mov eax, dword [0x5c0490]
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
lea eax, [ebp - 0x64c]
mov ebx, edx
push str.GetPrinterInfo
push eax
mov esi, ecx
mov dword [ebp - 0x650], ebx
call fcn.00401190
add esp, 0xc
push ebx
push esi
push str.lpszPrinter___s__lpszShareName___s
lea ecx, [ebp - 0x64c]
push 1
push ecx
mov dword [ebp - 4], edi
call fcn.00401410
add esp, 0x14
push 0x618
lea edx, [ebp - 0x628]
push edi
push edx
mov dword [ebp - 0x630], edi
mov dword [ebp - 0x640], edi
call fcn.00541d20
add esp, 0xc
mov dword [ebp - 0x644], edi
call fcn.00448c3f
xor ecx, ecx
cmp eax, edi
setne cl
cmp ecx, edi
jne 0x41fc8b
push 0x80004005
call fcn.00404160
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.00404f00
mov byte [ebp - 4], 2
mov ecx, dword [ebp - 0x62c]
push 0x5c
push ecx
call fcn.0053dda2
add esp, 8
cmp eax, edi
jne 0x41fd99
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 0x41fe70
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 0x41fd58
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 0x41ffa6
sub eax, dword [ebp - 0x62c]
sar eax, 1
mov ebx, eax
js 0x41fccd
lea edx, [ebx + 1]
push edx
lea eax, [ebp - 0x634]
push eax
lea ecx, [ebp - 0x62c]
call fcn.004103b0
push eax
lea ecx, [ebp - 0x63c]
mov byte [ebp - 4], 3
call fcn.004063a0
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 0x41fdf5
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.0040a450
push eax
lea ecx, [ebp - 0x62c]
mov byte [ebp - 4], 4
call fcn.004063a0
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 0x41fe43
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 0x41fce8
push 0x618
lea ecx, [ebp - 0x628]
push 0
push ecx
mov dword [ebp - 0x634], 0
call fcn.00541d20
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 0x42006f
test ebx, ebx
js 0x41fed8
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 0x41feef
push 0x30c
push esi
lea eax, [ebp - 0x628]
push 0x30c
push eax
call fcn.0053f9ef
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 0x42002e
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 0x41ff5f
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.00401410
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 0x41ffef
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 0x420015
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.00401370
mov eax, esi
jmp 0x4200e8
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.00401410
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 0x4200a1
push 0xffffffffffffffff
push str.return___08x
lea ecx, [ebp - 0x64c]
push 2
push ecx
call fcn.00401410
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 0x4200ad
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 0x4200d3
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.00401370
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.0053ca73
mov esp, ebp
pop ebp
ret