Function at 0x4101f9c0
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x41148c78
mov eax, dword fs:[0]
push eax
sub esp, 0x54
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 + 0x20]
mov ecx, dword [ebp + 0xc]
xor eax, eax
mov word [esi], ax
mov eax, ecx
xor ebx, ebx
sub eax, ebx
je 0x4101fa4e
dec eax
je 0x4101fa43
dec eax
je 0x4101fa23
push ecx
push str.unknown_comment_mode:__d
push 0x2000001
push 0xd41
push str.TPAutoConnDll.cpp
call fcn.41002c10
mov edi, dword [ebp + 0x18]
add esp, 0x14
jmp 0x4101fa70
mov edi, dword [ebp + 0x18]
mov ecx, dword [ebp + 8]
mov eax, dword [edi + 0xc]
lea edx, [ecx + 0x86060]
mov dword [eax + 0x14], edx
mov eax, dword [edi + 0xc]
add ecx, 0x86260
mov dword [eax + 0x18], ecx
jmp 0x4101fa70
mov eax, dword [ebp + 0x18]
mov eax, dword [eax + 0xc]
mov edi, dword [ebp + 0x18]
jmp 0x4101fa6d
call fcn.4104280e
mov eax, dword [eax + 0xc]
push 0x100
push esi
push 0x65
push eax
call dword [sym.imp.USER32.dll_LoadStringW]
mov ecx, dword [ebp + 0x18]
mov eax, dword [ecx + 0xc]
mov edi, ecx
mov dword [eax + 0x14], esi
call fcn.41040000
xor ecx, ecx
cmp eax, ebx
setne cl
cmp ecx, ebx
jne 0x4101fa8a
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 - 0x1c], eax
push ebx
push 0x411584dc
lea ecx, [ebp - 0x1c]
mov dword [ebp - 4], ebx
mov dword [ebp - 0x20], ebx
call fcn.410016e0
push 0xf003f
push str.SoftwareThinPrintTPAutoConnect
push reloc.OLEAUT32.dll_SysReAllocString
lea ecx, [ebp - 0x20]
mov dword [ebp - 4], 1
mov dword [ebp - 0x14], ebx
call fcn.41010fa0
test eax, eax
jne 0x4101fb2c
push str.AddPrinterAttributes
lea ecx, [ebp + 0x20]
call fcn.41002090
lea ecx, [ebp + 0xc]
push ecx
mov ecx, dword [ebp + 0x20]
lea edx, [ebp - 0x14]
push edx
mov edx, dword [ebp - 0x20]
lea eax, [ebp - 0x10]
push eax
push ebx
push ecx
push edx
mov dword [ebp - 0x10], ebx
mov dword [ebp + 0xc], 4
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
mov esi, eax
mov eax, dword [ebp + 0x20]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x4101fb25
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
cmp esi, ebx
je 0x4101fb2c
mov dword [ebp - 0x14], ebx
mov eax, dword [edi + 0xc]
and dword [eax + 0x34], 0xfffffff7
mov eax, dword [edi + 0xc]
mov ecx, dword [ebp - 0x14]
or dword [eax + 0x34], ecx
mov esi, dword [ebp + 8]
mov edx, dword [esi + 0x6048]
push edx
push 0x41162854
push 0x1000001
push 0xd52
push str.TPAutoConnDll.cpp
call fcn.41002c10
add esp, 0x14
test byte [esi + 0x6048], 1
je 0x4101fed8
call fcn.41040000
xor ecx, ecx
cmp eax, ebx
setne cl
cmp ecx, ebx
jne 0x4101fb89
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
mov byte [ebp - 4], 2
call fcn.41040000
xor ecx, ecx
cmp eax, ebx
setne cl
cmp ecx, ebx
jne 0x4101fbb6
push 0x80004005
call fcn.410011f0
mov edx, dword [eax]
mov ecx, eax
mov eax, dword [edx + 0xc]
call eax
lea edi, [eax + 0x10]
mov dword [ebp + 0xc], edi
mov byte [ebp - 4], 3
call fcn.41040000
xor ecx, ecx
cmp eax, ebx
setne cl
cmp ecx, ebx
jne 0x4101fbe3
push 0x80004005
call fcn.410011f0
mov edx, dword [eax]
mov ecx, eax
mov eax, dword [edx + 0xc]
call eax
lea esi, [eax + 0x10]
mov dword [ebp - 0x10], esi
mov eax, dword [edi - 8]
mov ecx, 1
sub ecx, dword [edi - 4]
mov ebx, 0x200
sub eax, ebx
or eax, ecx
mov byte [ebp - 4], 4
jge 0x4101fc18
push ebx
lea ecx, [ebp + 0xc]
call fcn.41001480
mov edi, dword [ebp + 0xc]
cmp dword [edi - 8], ebx
jge 0x4101fc27
push 0x80070057
call fcn.410011f0
xor ecx, ecx
mov dword [edi - 0xc], ebx
mov word [edi + 0x400], cx
mov eax, dword [esi - 8]
mov ecx, 1
sub ecx, dword [esi - 4]
sub eax, ebx
or eax, ecx
jge 0x4101fc50
push ebx
lea ecx, [ebp - 0x10]
call fcn.41001480
mov esi, dword [ebp - 0x10]
cmp dword [esi - 8], ebx
jge 0x4101fc5f
push 0x80070057
call fcn.410011f0
mov dword [esi - 0xc], ebx
mov ebx, dword [ebp + 8]
push edi
push esi
xor edx, edx
add ebx, 0x1c
push 0x41162838
push ebx
mov word [esi + 0x400], dx
call fcn.411304ad
mov dword [ebp - 0x18], eax
mov eax, dword [esi - 8]
push eax
push esi
call fcn.4112dcda
add esp, 0x18
test eax, eax
js 0x4101fc1d
cmp eax, dword [esi - 8]
jg 0x4101fc1d
mov dword [esi - 0xc], eax
xor ecx, ecx
mov word [esi + eax*2], cx
mov eax, dword [edi - 8]
push eax
push edi
call fcn.4112dcda
add esp, 8
test eax, eax
js 0x4101fc1d
cmp eax, dword [edi - 8]
jg 0x4101fc1d
xor edx, edx
cmp dword [ebp - 0x18], 2
mov dword [edi - 0xc], eax
mov word [edi + eax*2], dx
je 0x4101fd0d
test ebx, ebx
jne 0x4101fcd5
xor eax, eax
jmp 0x4101fcef
mov eax, ebx
lea edx, [eax + 2]
lea ebx, [ebx]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x4101fce0
sub eax, edx
sar eax, 1
push eax
mov eax, dword [ebp + 8]
add eax, 0x1c
push eax
lea ecx, [ebp + 0xc]
call fcn.410016e0
lea ecx, [ebp - 0x10]
call fcn.41001410
mov edi, dword [ebp + 0xc]
mov esi, dword [ebp - 0x10]
lea ecx, [ebp - 0x60]
call fcn.41004670
push 1
push edi
push str.LCPRN
lea ecx, [ebp - 0x60]
mov byte [ebp - 4], 5
call fcn.41004bd0
push 1
push esi
push str.LPSRV
lea ecx, [ebp - 0x60]
call fcn.41004bd0
mov ebx, dword [ebp + 8]
push 1
add ebx, 0x5a40
push ebx
push str.LHOST
lea ecx, [ebp - 0x60]
call fcn.41004bd0
mov eax, dword [ebp + 8]
push 1
add eax, 0x41c
push eax
push str.LCLIP
lea ecx, [ebp - 0x60]
call fcn.41004bd0
mov eax, dword [ebp + 8]
add eax, 0x86460
je 0x4101fdad
cmp word [eax], 0
je 0x4101fdad
push eax
lea ecx, [ebp - 0x18]
push ecx
lea ecx, [ebp - 0x60]
call fcn.41004740
push eax
lea ecx, [ebp + 0x20]
mov byte [ebp - 4], 7
call fcn.410043b0
mov eax, dword [ebp - 0x18]
add eax, 0xfffffff0
mov byte [ebp - 4], 5
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jmp 0x4101fde3
mov ecx, dword [ebp + 0x10]
mov eax, dword [ecx]
push eax
lea edx, [ebp - 0x18]
push edx
lea ecx, [ebp - 0x60]
call fcn.41004740
push eax
lea ecx, [ebp + 0x20]
mov byte [ebp - 4], 6
call fcn.410043b0
mov eax, dword [ebp - 0x18]
add eax, 0xfffffff0
mov byte [ebp - 4], 5
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x4101fdef
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, dword [ebp + 8]
mov edx, dword [eax + 0x6040]
push 0x50
lea ecx, [eax + 0x5c40]
push ecx
lea ecx, [eax + 0x1c]
mov eax, dword [ebp + 0x20]
push ecx
push edx
push ebx
mov ebx, dword [ebp + 0x1c]
push eax
push ebx
call fcn.4101cd10
add esp, 0x1c
test eax, eax
jne 0x4101fe3b
mov ecx, dword [ebp + 0x20]
push ecx
push str.Could_not_expand_template___s_
push 0x2000001
push 0xd84
push str.TPAutoConnDll.cpp
call fcn.41002c10
add esp, 0x14
mov edx, dword [ebp + 8]
test dword [edx + 0x6048], 0x200
mov ecx, dword [ebp + 0x18]
je 0x4101fe57
mov eax, dword [ecx + 0xc]
or dword [eax + 0x34], 0x2000
mov eax, dword [ecx + 0xc]
or dword [eax + 0x34], 8
mov eax, dword [ecx + 0xc]
lea ecx, [ebp - 0x60]
mov dword [eax + 8], ebx
mov byte [ebp - 4], 4
call fcn.410046c0
lea eax, [esi - 0x10]
mov byte [ebp - 4], 3
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x4101fe90
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
lea eax, [edi - 0x10]
mov byte [ebp - 4], 2
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x4101feb0
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, dword [ebp + 0x20]
add eax, 0xfffffff0
mov byte [ebp - 4], 1
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x4101fed3
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov edi, dword [ebp + 0x18]
xor ebx, ebx
mov eax, dword [edi + 0xc]
push 2
push 6
mov dword [eax + 0x2c], ebx
call fcn.410037c0
add esp, 8
cmp eax, 1
je 0x4101ff10
push 1
push 6
call fcn.410037c0
add esp, 8
cmp eax, 1
je 0x4101ff10
push ebx
push 6
call fcn.410037c0
add esp, 8
cmp eax, 1
jne 0x4101ff80
mov eax, dword [ebp + 8]
test dword [eax + 0x6048], 0x2000
je 0x4101ff3d
push str.Printer_created_with_parameter__a__not_connected_through_a_terminal_server.
push 0x1000001
push 0xd96
push str.TPAutoConnDll.cpp
call fcn.41002c10
add esp, 0x10
jmp 0x4101ff80
mov ecx, dword [eax + 0x6044]
mov esi, dword [ebp + 0x24]
push ecx
push str.FED6A88E_8414_436B_BE07_4D38660C10D2_u_
push esi
call fcn.41001b10
mov eax, dword [edi + 0xc]
mov esi, dword [esi]
push str.Printer_connected_through_a_terminal_server.
push 0x1000001
mov dword [eax + 0x2c], esi
mov eax, dword [edi + 0xc]
or dword [eax + 0x34], 0x8000
push 0xda4
push str.TPAutoConnDll.cpp
call fcn.41002c10
add esp, 0x1c
mov eax, dword [ebp - 0x20]
mov dword [ebp - 4], 8
cmp eax, ebx
je 0x4101ff98
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov dword [ebp - 0x20], ebx
push ebx
push 0x411584dc
lea ecx, [ebp - 0x1c]
call fcn.410016e0
mov eax, dword [ebp - 0x1c]
add eax, 0xfffffff0
mov dword [ebp - 4], 0xffffffff
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x4101ffcc
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