Function at 0x41011a80
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x411480a0
mov eax, dword fs:[0]
push eax
sub esp, 0x18
push ebx
push esi
push edi
mov eax, dword [0x411bade8]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, dword [ebp + 8]
mov eax, dword [esi + 0x10]
mov ecx, dword [esi + 8]
mov edx, dword [esi]
push eax
mov eax, dword [esi + 0x18]
push ecx
mov ecx, dword [esi + 4]
push edx
mov edx, dword [esi + 0xc]
push eax
push ecx
push edx
push str.PWLX_NOTIFICATION_INFO:__s__d__d__d__s__s
push 0x1000001
push 0x2c1
push str.TPADLL.cpp
call fcn.41002c10
add esp, 0x28
call fcn.41040000
xor ecx, ecx
xor ebx, ebx
cmp eax, ebx
setne cl
cmp ecx, ebx
jne 0x41011afa
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 - 0x20], eax
push ebx
push 0x411584dc
lea ecx, [ebp - 0x20]
mov dword [ebp - 4], ebx
mov dword [ebp - 0x24], ebx
call fcn.410016e0
mov eax, 1
push str.TPAutoConnect__dl
lea ecx, [ebp + 8]
mov dword [ebp - 4], eax
mov dword [ebp - 0x10], eax
call fcn.41002090
push 0xf003f
push str.SoftwareThinPrintTPAutoConnect
push reloc.OLEAUT32.dll_SysReAllocString
lea ecx, [ebp - 0x24]
mov byte [ebp - 4], 2
call fcn.41010fa0
test eax, eax
jne 0x41011be7
lea ecx, [ebp + 8]
push ecx
push ecx
mov ecx, esp
mov dword [ebp - 0x1c], esp
push str.ListenToWTSDeleteCmd
call fcn.41002090
lea ecx, [ebp - 0x24]
call fcn.41010460
cmp eax, ebx
je 0x41011b87
push 0x11
push str.TPAutoConnect__dl
lea ecx, [ebp + 8]
call fcn.410016e0
push str.ListenToWTS
lea ecx, [ebp - 0x14]
call fcn.41002090
lea edx, [ebp - 0x18]
push edx
mov edx, dword [ebp - 0x14]
lea eax, [ebp - 0x10]
push eax
mov eax, dword [ebp - 0x24]
lea ecx, [ebp - 0x1c]
push ecx
push ebx
push edx
push eax
mov dword [ebp - 0x1c], ebx
mov dword [ebp - 0x18], 4
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
mov edi, eax
mov eax, dword [ebp - 0x14]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x41011bda
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
cmp edi, ebx
je 0x41011be7
mov dword [ebp - 0x10], 1
jmp 0x41011bec
cmp dword [ebp - 0x10], ebx
je 0x41011c02
mov ecx, dword [esi + 0x14]
mov esi, dword [ebp + 8]
push 1
push 0x4115d3a4
push ecx
call fcn.410117e0
add esp, 0xc
mov eax, dword [ebp + 8]
add eax, 0xfffffff0
mov byte [ebp - 4], 1
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x41011c25
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, dword [ebp - 0x24]
mov dword [ebp - 4], 3
cmp eax, ebx
je 0x41011c3d
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov dword [ebp - 0x24], ebx
push ebx
push 0x411584dc
lea ecx, [ebp - 0x20]
call fcn.410016e0
mov eax, dword [ebp - 0x20]
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 0x41011c71
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 4