Function at 0x416d70
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x55b957
mov eax, dword fs:[0]
push eax
sub esp, 0x644
mov eax, dword [0x5b4450]
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
push 0
lea eax, [ebp - 0x648]
mov edi, edx
push str.GetPrinterInfo
push eax
mov esi, ecx
mov dword [ebp - 0x650], edi
call fcn.0040ac70
add esp, 0xc
push edi
push esi
push str.lpszPrinter___s__lpszShareName___s
lea ecx, [ebp - 0x648]
push 1
push ecx
mov dword [ebp - 4], 0
call fcn.0040aed0
add esp, 0x14
call fcn.0040bea0
call fcn.0044033f
xor ecx, ecx
test eax, eax
setne cl
test ecx, ecx
jne 0x416dfc
push 0x80004005
call fcn.004010a0
mov edx, dword [eax]
mov ecx, eax
mov eax, dword [edx + 0xc]
call eax
add eax, 0x10
mov dword [ebp - 0x63c], eax
mov byte [ebp - 4], 1
call fcn.00442c4d
push 0x618
lea ecx, [ebp - 0x628]
push 0
push ecx
call fcn.005373f0
add esp, 0xc
push esi
lea ecx, [ebp - 0x62c]
call fcn.00401210
mov byte [ebp - 4], 2
mov edx, dword [ebp - 0x62c]
push 0x5c
push edx
call fcn.00534819
add esp, 8
test eax, eax
jne 0x416f26
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
mov edi, dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
lea edx, [ebp - 0x634]
push edx
push 0x20019
push 0
lea eax, [ebp - 0x628]
push eax
push reloc.OLEAUT32.dll_SysReAllocString
call edi
test eax, eax
jne 0x416ffd
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 0x416ee5
xor ecx, ecx
mov word [edi], cx
lea edx, [ebp - 0x638]
push edx
mov edx, dword [ebp - 0x634]
lea eax, [ebp - 0x64c]
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]
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
jmp 0x417133
sub eax, dword [ebp - 0x62c]
sar eax, 1
mov ebx, eax
js 0x416e59
lea eax, [ebx + 1]
push eax
lea ecx, [ebp - 0x630]
push ecx
lea ecx, [ebp - 0x62c]
call fcn.00413950
push eax
lea ecx, [ebp - 0x63c]
mov byte [ebp - 4], 3
call fcn.00401520
mov byte [ebp - 4], 2
mov eax, dword [ebp - 0x630]
add eax, 0xfffffff0
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x416f82
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 - 0x630]
push edx
lea ecx, [ebp - 0x62c]
call fcn.00404fc0
push eax
lea ecx, [ebp - 0x62c]
mov byte [ebp - 4], 4
call fcn.00401520
mov byte [ebp - 4], 2
mov eax, dword [ebp - 0x630]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x416fd0
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 0x416e74
push 0x618
lea ecx, [ebp - 0x628]
push 0
push ecx
mov dword [ebp - 0x630], 0
call fcn.005373f0
add esp, 0xc
lea edx, [ebp - 0x634]
push edx
push 0x20019
push 0
push str.SystemCurrentControlSetControlPrintPrinters
push reloc.OLEAUT32.dll_SysReAllocString
call edi
test eax, eax
jne 0x4171fc
test ebx, ebx
js 0x417065
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 0x41707c
push 0x30c
push esi
lea eax, [ebp - 0x628]
push 0x30c
push eax
call fcn.00536614
mov eax, dword [ebp - 0x634]
add esp, 0x10
lea ecx, [ebp - 0x630]
push ecx
push 0x20019
push 0
lea edx, [ebp - 0x628]
push edx
push eax
call edi
test eax, eax
jne 0x4171bb
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 0x4170ec
xor ecx, ecx
mov word [edi], cx
lea edx, [ebp - 0x638]
push edx
mov edx, dword [ebp - 0x630]
lea eax, [ebp - 0x64c]
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]
mov esi, dword [sym.imp.ADVAPI32.dll_RegCloseKey]
push eax
call esi
mov ecx, dword [ebp - 0x634]
push ecx
call esi
mov edx, dword [ebp - 0x64c]
push edx
push str.return___08x
lea eax, [ebp - 0x648]
push 2
push eax
call fcn.0040aed0
mov esi, dword [ebp - 0x64c]
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 0x41717c
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 0x4171a2
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
lea ecx, [ebp - 0x648]
mov dword [ebp - 4], 0xffffffff
call fcn.0040ae50
mov eax, esi
jmp 0x417275
mov ecx, dword [ebp - 0x634]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
push 0xffffffffffffffff
push str.return___08x
lea edx, [ebp - 0x648]
push 2
push edx
call fcn.0040aed0
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 0x41722e
push 0xffffffffffffffff
push str.return___08x
lea ecx, [ebp - 0x648]
push 2
push ecx
call fcn.0040aed0
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 0x41723a
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 0x417260
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
lea ecx, [ebp - 0x648]
mov dword [ebp - 4], 0xffffffff
call fcn.0040ae50
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.005337cb
mov esp, ebp
pop ebp
ret