Function at 0x4101e660
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x41148b08
mov eax, dword fs:[0]
push eax
sub esp, 0x1c
push ebx
push esi
push edi
mov eax, dword [0x411bade8]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
call fcn.41040000
xor ecx, ecx
xor edi, edi
cmp eax, edi
setne cl
cmp ecx, edi
jne 0x4101e6a4
push 0x80004005
call fcn.410011f0
mov edx, dword [eax]
mov ecx, eax
mov eax, dword [edx + 0xc]
call eax
add eax, 0x10
mov dword [ebp - 0x24], eax
push edi
push 0x411584dc
lea ecx, [ebp - 0x24]
mov dword [ebp - 4], edi
mov dword [ebp - 0x28], edi
call fcn.410016e0
push 0xf003f
push str.SoftwareThinPrintTPAutoConnect
push reloc.OLEAUT32.dll_SysReAllocString
lea ecx, [ebp - 0x28]
mov dword [ebp - 4], 1
call fcn.41010fa0
test eax, eax
jne 0x4101e895
push str.DPMTries
lea ecx, [ebp - 0x10]
call fcn.41002090
mov esi, dword [ebp + 8]
mov eax, dword [ebp - 0x10]
lea ecx, [ebp - 0x18]
push ecx
mov ecx, dword [ebp - 0x28]
push esi
lea edx, [ebp - 0x1c]
push edx
push edi
push eax
mov dword [ebp - 0x1c], edi
mov edi, dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
push ecx
mov dword [ebp - 0x18], 4
call edi
mov ebx, eax
mov eax, dword [ebp - 0x10]
add eax, 0xfffffff0
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x4101e742
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
test ebx, ebx
jne 0x4101e766
cmp dword [esi], ebx
jne 0x4101e76c
push str.DPMTries__0____set_to_1
push 0x1000001
push 0x8c1
push str.TPAutoConnDll.cpp
call fcn.41002c10
add esp, 0x10
mov dword [esi], 1
mov ecx, dword [0x411bc3d8]
mov eax, dword [ecx + 8]
cmp dword [esi], eax
jbe 0x4101e77b
mov dword [esi], eax
push str.CommentMode
lea ecx, [ebp - 0x10]
call fcn.41002090
mov esi, dword [ebp + 0xc]
mov ecx, dword [ebp - 0x10]
lea edx, [ebp - 0x1c]
push edx
mov edx, dword [ebp - 0x28]
push esi
lea eax, [ebp - 0x18]
push eax
push 0
push ecx
push edx
mov dword [ebp - 0x18], 0
mov dword [ebp - 0x1c], 4
call edi
mov ebx, eax
mov eax, dword [ebp - 0x10]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x4101e7cf
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
test ebx, ebx
je 0x4101e7d9
mov dword [esi], 2
push str.PrinterProperties
lea ecx, [ebp - 0x10]
mov dword [ebp - 0x14], 1
call fcn.41002090
mov ebx, dword [ebp - 0x28]
lea ecx, [ebp - 0x1c]
push ecx
mov ecx, dword [ebp - 0x10]
lea edx, [ebp - 0x14]
push edx
lea eax, [ebp - 0x18]
push eax
push 0
push ecx
push ebx
mov dword [ebp - 0x18], 0
mov dword [ebp - 0x1c], 4
call edi
mov eax, dword [ebp - 0x10]
add eax, 0xfffffff0
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x4101e832
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
cmp dword [esi], 2
jne 0x4101e863
cmp dword [ebp - 0x14], 0
jne 0x4101e863
push 2
push 0
push str.PrinterProperties_are_disabled._CommentMode_will_be_set_to___d___was___d_.
push 0x1000001
push 0x8d7
push str.TPAutoConnDll.cpp
call fcn.41002c10
add esp, 0x18
mov dword [esi], 0
mov esi, dword [ebp + 0x10]
push esi
push ecx
mov ecx, esp
mov dword [ebp - 0x20], esp
push str.ShareFormat
call fcn.41002090
lea ecx, [ebp - 0x28]
call fcn.41010460
test eax, eax
je 0x4101e891
push 5
push str._N_A
mov ecx, esi
call fcn.410016e0
xor edi, edi
jmp 0x4101e898
mov ebx, dword [ebp - 0x28]
mov dword [ebp - 4], 2
cmp ebx, edi
je 0x4101e8ad
push ebx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov dword [ebp - 0x28], edi
push edi
push 0x411584dc
lea ecx, [ebp - 0x24]
call fcn.410016e0
mov eax, dword [ebp - 0x24]
add eax, 0xfffffff0
mov dword [ebp - 4], 0xffffffff
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x4101e8e1
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret