Function at 0x4101b4e0
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x41148946
mov eax, dword fs:[0]
push eax
sub esp, 0x150
mov eax, dword [0x411bade8]
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
mov eax, dword [ebp + 8]
mov ecx, dword [ebp + 0xc]
mov edx, dword [ebp + 0x10]
mov ebx, dword [ebp + 0x28]
mov edi, dword [ebp + 0x1c]
mov dword [ebp - 0x98], eax
mov eax, dword [ebp + 0x14]
mov dword [ebp - 0x44], ecx
mov ecx, dword [ebp + 0x20]
mov dword [ebp - 0xa4], edx
mov edx, dword [ebp + 0x24]
mov dword [ebp - 0xa0], eax
mov eax, dword [ebp + 0x2c]
xor esi, esi
mov dword [ebp - 0x90], ecx
mov dword [ebp - 0x28], edx
mov dword [ebp - 0x68], ebx
mov dword [ebp - 0x64], eax
mov dword [ebp - 0x24], esi
call fcn.41040000
xor ecx, ecx
cmp eax, esi
setne cl
cmp ecx, esi
jne 0x4101b56c
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 - 0x38], eax
lea ecx, [ebp - 0x60]
mov dword [ebp - 4], esi
call fcn.41006fe0
mov ecx, dword [ebx]
xor eax, eax
mov dword [ebp - 0xa8], eax
mov byte [ebp - 4], 1
mov dword [ebp - 0x8c], ecx
mov dword [ebp - 0xb0], eax
mov dword [ebp - 0xac], eax
mov dword [ebp - 0xa8], 0xf000c
call fcn.41040000
xor ecx, ecx
cmp eax, esi
setne cl
cmp ecx, esi
jne 0x4101b5ca
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 - 0x30], eax
push esi
push 0x411584dc
lea ecx, [ebp - 0x30]
mov byte [ebp - 4], 2
mov dword [ebp - 0x34], esi
call fcn.410016e0
push 0xf003f
push str.SoftwareThinPrintTPAutoConnect
push reloc.OLEAUT32.dll_SysReAllocString
lea ecx, [ebp - 0x34]
mov byte [ebp - 4], 3
mov dword [ebp - 0x7c], esi
call fcn.41010fa0
test eax, eax
jne 0x4101b66a
push str.AddPrinterAttributes
lea ecx, [ebp - 0x50]
call fcn.41002090
lea ecx, [ebp - 0x54]
push ecx
mov ecx, dword [ebp - 0x50]
lea edx, [ebp - 0x7c]
push edx
mov edx, dword [ebp - 0x34]
lea eax, [ebp - 0x6c]
push eax
push esi
push ecx
push edx
mov dword [ebp - 0x6c], esi
mov dword [ebp - 0x54], 4
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
mov ebx, eax
mov eax, dword [ebp - 0x50]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x4101b663
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
cmp ebx, esi
je 0x4101b66a
mov dword [ebp - 0x7c], esi
mov eax, dword [ebp + 0x18]
mov dword [ebp - 0x2c], eax
cmp eax, dword [ebp - 0x8c]
jae 0x4101c8fb
lea esp, [esp]
mov eax, dword [ebp - 0x2c]
mov ecx, dword [ebp - 0x68]
mov edx, dword [ebp - 0x98]
mov dword [ecx], eax
add eax, eax
lea esi, [edx + eax*8]
lea eax, [ebp - 0x1c]
push eax
mov ecx, esi
call fcn.410077f0
mov esi, dword [esi + 4]
mov ebx, dword [ebp - 0x1c]
push 2
push 0x41159a4c
push ebx
mov byte [ebp - 4], 4
mov dword [ebp - 0x48], esi
call fcn.411309de
add esp, 0xc
test eax, eax
je 0x4101c23c
call fcn.41040000
xor ecx, ecx
test eax, eax
setne cl
test ecx, ecx
je 0x4101b562
mov edx, dword [eax]
mov ecx, eax
mov eax, dword [edx + 0xc]
call eax
lea esi, [eax + 0x10]
mov dword [ebp - 0x54], esi
mov eax, ebx
mov byte [ebp - 4], 6
lea edx, [eax + 2]
nop
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x4101b6f0
sub eax, edx
sar eax, 1
lea edx, [eax + 1]
test edx, edx
js 0x4101c322
mov eax, dword [esi - 8]
mov ecx, 1
sub ecx, dword [esi - 4]
sub eax, edx
or eax, ecx
jge 0x4101b727
push edx
lea ecx, [ebp - 0x54]
call fcn.41001480
mov esi, dword [ebp - 0x54]
call fcn.41040000
xor ecx, ecx
test eax, eax
setne cl
test ecx, ecx
je 0x4101b562
mov edx, dword [eax]
mov ecx, eax
mov eax, dword [edx + 0xc]
call eax
lea ebx, [eax + 0x10]
mov dword [ebp - 0x6c], ebx
mov eax, dword [ebp - 0x1c]
mov byte [ebp - 4], 7
lea edx, [eax + 2]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x4101b754
sub eax, edx
sar eax, 1
lea edx, [eax + 1]
test edx, edx
js 0x4101c322
mov eax, dword [ebx - 8]
mov ecx, 1
sub ecx, dword [ebx - 4]
sub eax, edx
or eax, ecx
jge 0x4101b78b
push edx
lea ecx, [ebp - 0x6c]
call fcn.41001480
mov ebx, dword [ebp - 0x6c]
mov ecx, dword [ebp - 0x1c]
push 5
push str.TPOG_
push ecx
call fcn.411309de
add esp, 0xc
test eax, eax
je 0x4101b7bd
mov edx, dword [ebp - 0x1c]
push 0x12
push 0x4116060c
push edx
call fcn.41130940
add esp, 0xc
test eax, eax
jne 0x4101b964
mov eax, dword [ebp - 0x1c]
push esi
push ebx
push str._______
push eax
call fcn.411304ad
add esp, 0x10
cmp eax, 2
jne 0x4101b964
mov eax, dword [ebp - 0x2c]
push esi
inc eax
push eax
push str._d._Versuch_NEW_TPOG_added_to_port__s
push 0x1000001
push 0x281
push str.TPAutoConnDll.cpp
mov dword [ebp - 0x4c], eax
call fcn.41002c10
add esp, 0x18
push esi
lea ecx, [ebp - 0x80]
call fcn.41002090
lea ecx, [ebp - 0x70]
push ecx
lea ecx, [ebp - 0x80]
mov byte [ebp - 4], 8
call fcn.4102b220
mov eax, dword [ebp - 0x70]
cmp dword [eax - 0xc], 0
mov byte [ebp - 4], 9
jne 0x4101b826
mov eax, esi
mov edx, dword [ebp - 0x28]
push eax
push str.TPOG___Port:__s
push 0x100
push edx
call fcn.4113078b
mov eax, dword [ebp - 0x70]
add esp, 0x10
cmp dword [eax - 0xc], 0
jne 0x4101b907
push esi
push str.the_port_does_not_exist:__s
push 0x2000001
push 0x28b
push str.TPAutoConnDll.cpp
call fcn.41002c10
push esi
lea ecx, [ebp - 0x28]
push 0x41157f9c
push ecx
call fcn.41014c40
mov dword [ebp - 0x24], 0xffffffe9
mov eax, dword [esi - 8]
push eax
push esi
call fcn.4112dcda
add esp, 0x28
test eax, eax
js 0x4101c322
cmp eax, dword [esi - 8]
jg 0x4101c322
mov dword [esi - 0xc], eax
xor edx, edx
mov word [esi + eax*2], dx
mov eax, dword [ebx - 8]
push eax
push ebx
call fcn.4112dcda
add esp, 8
test eax, eax
js 0x4101c322
cmp eax, dword [ebx - 8]
jg 0x4101c322
mov dword [ebx - 0xc], eax
xor ecx, ecx
mov word [ebx + eax*2], cx
mov eax, dword [ebp - 0x70]
add eax, 0xfffffff0
mov byte [ebp - 4], 8
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x4101b8eb
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, dword [ebp - 0x80]
add eax, 0xfffffff0
mov byte [ebp - 4], 7
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jmp 0x4101c12c
push ecx
mov ecx, esp
mov dword [ebp - 0x24], esp
push str.TP_Output_Gateway
call fcn.41002090
call fcn.41017a40
add esp, 4
test eax, eax
jne 0x4101c32c
push str.TP_Output_Gateway
push str.the_printer_driver_does_not_exist:__s
push 0x2000001
push 0x29b
push str.TPAutoConnDll.cpp
call fcn.41002c10
push str.TP_Output_Gateway
lea ecx, [ebp - 0x28]
push 0x41157f9c
push ecx
call fcn.41014c40
mov dword [ebp - 0x24], 0xffffffea
jmp 0x4101b87a
mov ecx, dword [ebp - 0x1c]
push 5
push str.TPPS_
push ecx
call fcn.411309de
add esp, 0xc
test eax, eax
je 0x4101b996
mov edx, dword [ebp - 0x1c]
push 0x15
push str.TP_Output_Gateway_PS_
push edx
call fcn.41130940
add esp, 0xc
test eax, eax
jne 0x4101bd88
mov eax, dword [ebp - 0x1c]
push esi
push ebx
push str._______
push eax
call fcn.411304ad
add esp, 0x10
cmp eax, 2
jne 0x4101bd88
mov eax, dword [ebp - 0x2c]
push esi
inc eax
push eax
push str._d._Versuch_NEW_PS_DRIVER_added_to_port__s
push 0x1000001
push 0x2ca
push str.TPAutoConnDll.cpp
mov dword [ebp - 0x4c], eax
call fcn.41002c10
mov eax, dword [ebp - 0x44]
shr eax, 9
and eax, 7
add esp, 0x18
test al, 2
jne 0x4101ba99
push eax
push str.ignoring_rule_TPPS__because_driver_has_no_PS_capability:__d
push 0x1000001
push 0x2d0
push str.TPAutoConnDll.cpp
call fcn.41002c10
mov eax, dword [esi - 8]
push eax
push esi
call fcn.4112dcda
add esp, 0x1c
test eax, eax
js 0x4101c322
cmp eax, dword [esi - 8]
jg 0x4101c322
mov dword [esi - 0xc], eax
xor ecx, ecx
mov word [esi + eax*2], cx
mov eax, dword [ebx - 8]
push eax
push ebx
call fcn.4112dcda
add esp, 8
test eax, eax
js 0x4101c322
cmp eax, dword [ebx - 8]
jg 0x4101c322
mov dword [ebx - 0xc], eax
xor edx, edx
mov word [ebx + eax*2], dx
add ebx, 0xfffffff0
mov byte [ebp - 4], 6
lea eax, [ebx + 0xc]
or ecx, 0xffffffff
lock xadd dword [eax], ecx
dec ecx
test ecx, ecx
jg 0x4101ba70
mov ecx, dword [ebx]
mov edx, dword [ecx]
mov eax, dword [edx + 4]
push ebx
call eax
add esi, 0xfffffff0
mov byte [ebp - 4], 4
lea ecx, [esi + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x4101c178
mov ecx, dword [esi]
mov eax, dword [ecx]
mov edx, dword [eax + 4]
push esi
call edx
jmp 0x4101c178
push esi
lea ecx, [ebp - 0x78]
call fcn.41002090
lea ecx, [ebp - 0x40]
push ecx
lea ecx, [ebp - 0x78]
mov byte [ebp - 4], 0xb
call fcn.4102b220
mov eax, dword [ebp - 0x40]
cmp dword [eax - 0xc], 0
mov byte [ebp - 4], 0xc
jne 0x4101bac1
mov eax, esi
push eax
lea edx, [ebp - 0x28]
push str.TPPS__Port:__s
push edx
call fcn.41014c40
mov eax, dword [ebp - 0x40]
add esp, 0xc
cmp dword [eax - 0xc], 0
jne 0x4101bb89
push esi
push str.the_port_does_not_exist:__s
push 0x2000001
push 0x2df
push str.TPAutoConnDll.cpp
call fcn.41002c10
push esi
lea ecx, [ebp - 0x28]
push 0x41157f9c
push ecx
call fcn.41014c40
mov eax, dword [esi - 8]
push eax
push esi
mov dword [ebp - 0x24], 0xffffffe9
call fcn.4112dcda
add esp, 0x28
test eax, eax
js 0x4101c322
cmp eax, dword [esi - 8]
jg 0x4101c322
mov dword [esi - 0xc], eax
xor edx, edx
mov word [esi + eax*2], dx
mov eax, dword [ebx - 8]
push eax
push ebx
call fcn.4112dcda
add esp, 8
test eax, eax
js 0x4101c322
cmp eax, dword [ebx - 8]
jg 0x4101c322
mov dword [ebx - 0xc], eax
xor ecx, ecx
mov word [ebx + eax*2], cx
mov eax, dword [ebp - 0x40]
add eax, 0xfffffff0
mov byte [ebp - 4], 0xb
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x4101bb81
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, dword [ebp - 0x78]
jmp 0x4101b8ee
mov ecx, dword [ebp - 0xa0]
mov edx, dword [ebp - 0xa4]
push 0
push ecx
push edx
lea ecx, [ebp - 0x15c]
call fcn.41005150
lea ecx, [ebp - 0x15c]
mov byte [ebp - 4], 0xd
call fcn.41005070
push str.TP_PS_Driver
test eax, eax
je 0x4101bc49
lea eax, [ebp - 0x28]
push eax
call fcn.41014c40
mov eax, dword [esi - 8]
push eax
push esi
mov dword [ebp - 0x24], 0xffffffea
call fcn.4112dcda
add esp, 0x10
test eax, eax
js 0x4101c322
cmp eax, dword [esi - 8]
jg 0x4101c322
mov dword [esi - 0xc], eax
xor ecx, ecx
mov word [esi + eax*2], cx
mov eax, dword [ebx - 8]
push eax
push ebx
call fcn.4112dcda
add esp, 8
test eax, eax
js 0x4101c322
cmp eax, dword [ebx - 8]
jg 0x4101c322
xor edx, edx
mov dword [ebx - 0xc], eax
lea ecx, [ebp - 0x15c]
mov word [ebx + eax*2], dx
mov byte [ebp - 4], 0xc
call fcn.410053a0
mov eax, dword [ebp - 0x40]
add eax, 0xfffffff0
mov byte [ebp - 4], 0xb
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jmp 0x4101bb75
lea ecx, [ebp - 0x15c]
call fcn.41005a80
test eax, eax
jne 0x4101c54c
lea ecx, [ebp - 0x9c]
push ecx
lea ecx, [ebp - 0x15c]
call fcn.41019230
mov ecx, eax
mov byte [ebp - 4], 0xe
call fcn.4100fbf0
push eax
lea edx, [ebp - 0x28]
push 0x41157f9c
push edx
call fcn.41014c40
add esp, 0xc
lea ecx, [ebp - 0x9c]
mov byte [ebp - 4], 0xd
call fcn.41017b50
lea eax, [ebp - 0x3c]
push eax
lea ecx, [ebp - 0x15c]
call fcn.41019230
mov dword [ebp - 0x48], eax
mov eax, dword [eax]
mov ecx, dword [eax - 8]
mov byte [ebp - 4], 0xf
test eax, eax
je 0x4101bccb
push ecx
push eax
call fcn.4112dcda
add esp, 8
test eax, eax
js 0x4101c322
mov ecx, dword [ebp - 0x48]
mov ecx, dword [ecx]
cmp eax, dword [ecx - 8]
jg 0x4101c322
mov edx, dword [ebp - 0x48]
mov dword [ecx - 0xc], eax
mov ecx, dword [edx]
xor edx, edx
mov word [ecx + eax*2], dx
lea ecx, [ebp - 0x3c]
mov byte [ebp - 4], 0xd
call fcn.41017b50
mov eax, dword [esi - 8]
push eax
push esi
mov dword [ebp - 0x24], 0xffffffea
call fcn.4112dcda
add esp, 8
test eax, eax
js 0x4101c322
cmp eax, dword [esi - 8]
jg 0x4101c322
mov dword [esi - 0xc], eax
xor ecx, ecx
mov word [esi + eax*2], cx
mov eax, dword [ebx - 8]
push eax
push ebx
call fcn.4112dcda
add esp, 8
test eax, eax
js 0x4101c322
cmp eax, dword [ebx - 8]
jg 0x4101c322
xor edx, edx
mov dword [ebx - 0xc], eax
lea ecx, [ebp - 0x15c]
mov word [ebx + eax*2], dx
mov byte [ebp - 4], 0xc
call fcn.410053a0
lea ecx, [ebp - 0x40]
call fcn.41017b50
lea ecx, [ebp - 0x78]
call fcn.41017b50
lea ecx, [ebp - 0x6c]
call fcn.41017b50
lea ecx, [ebp - 0x54]
call fcn.41017b50
lea ecx, [ebp - 0x1c]
mov byte [ebp - 4], 3
call fcn.41017b50
jmp 0x4101c19b
mov eax, dword [ebp - 0x1c]
push esi
push ebx
push str._________
push eax
call fcn.411304ad
add esp, 0x10
cmp eax, 2
jl 0x4101bf0c
mov eax, dword [ebp - 0x2c]
push esi
push ebx
inc eax
push eax
push str._d._Versuch_NEW_Printer_added_with_driver_s__port_s
push 0x1000001
push 0x327
push str.TPAutoConnDll.cpp
mov dword [ebp - 0x4c], eax
call fcn.41002c10
add esp, 0x1c
push esi
lea ecx, [ebp - 0x50]
call fcn.41002090
lea ecx, [ebp - 0x74]
push ecx
lea ecx, [ebp - 0x50]
mov byte [ebp - 4], 0x11
call fcn.4102b220
mov eax, dword [ebp - 0x74]
cmp dword [eax - 0xc], 0
mov byte [ebp - 4], 0x12
jne 0x4101bdf2
mov eax, esi
push eax
push ebx
lea edx, [ebp - 0x28]
push str.DRIVER__s__Port:__s
push edx
call fcn.41014c40
mov eax, dword [ebp - 0x74]
add esp, 0x10
cmp dword [eax - 0xc], 0
jne 0x4101bebb
push esi
push str.the_port_does_not_exist:__s
push 0x2000001
push 0x332
push str.TPAutoConnDll.cpp
call fcn.41002c10
push esi
lea ecx, [ebp - 0x28]
push 0x41157f9c
push ecx
call fcn.41014c40
mov dword [ebp - 0x24], 0xffffffe9
mov eax, dword [esi - 8]
push eax
push esi
call fcn.4112dcda
add esp, 0x28
test eax, eax
js 0x4101c322
cmp eax, dword [esi - 8]
jg 0x4101c322
mov dword [esi - 0xc], eax
xor edx, edx
mov word [esi + eax*2], dx
mov eax, dword [ebx - 8]
push eax
push ebx
call fcn.4112dcda
add esp, 8
test eax, eax
js 0x4101c322
cmp eax, dword [ebx - 8]
jg 0x4101c322
mov dword [ebx - 0xc], eax
xor ecx, ecx
mov word [ebx + eax*2], cx
mov eax, dword [ebp - 0x74]
add eax, 0xfffffff0
mov byte [ebp - 4], 0x11
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x4101beb3
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, dword [ebp - 0x50]
jmp 0x4101b8ee
push ecx
mov ecx, esp
mov dword [ebp - 0x24], esp
push ebx
call fcn.41002090
call fcn.41017a40
add esp, 4
test eax, eax
jne 0x4101c73d
push ebx
push str.the_printer_driver_does_not_exist:__s
push 0x2000001
push 0x341
push str.TPAutoConnDll.cpp
call fcn.41002c10
push ebx
lea ecx, [ebp - 0x28]
push 0x41157f9c
push ecx
call fcn.41014c40
mov dword [ebp - 0x24], 0xffffffea
jmp 0x4101be42
mov eax, dword [esi - 8]
push eax
push esi
call fcn.4112dcda
add esp, 8
test eax, eax
js 0x4101c322
cmp eax, dword [esi - 8]
jg 0x4101c322
mov dword [esi - 0xc], eax
xor ecx, ecx
mov word [esi + eax*2], cx
mov eax, dword [ebx - 8]
push eax
push ebx
call fcn.4112dcda
add esp, 8
test eax, eax
js 0x4101c322
cmp eax, dword [ebx - 8]
jg 0x4101c322
mov dword [ebx - 0xc], eax
xor edx, edx
mov word [ebx + eax*2], dx
mov eax, dword [ebp - 0x44]
push eax
mov dword [ebp - 0x24], edx
call fcn.41015160
add esp, 4
push 0x411584dc
lea ecx, [ebp - 0x20]
mov dword [ebp - 0x4c], eax
call fcn.41002090
mov ecx, dword [ebp - 0x4c]
cmp word [ecx], 0
mov byte [ebp - 4], 0x13
je 0x4101c039
lea edx, [ebp - 0x1c]
push edx
lea ecx, [ebp - 0x20]
call fcn.410043b0
mov eax, dword [ebp - 0x20]
cmp dword [eax - 4], 1
jle 0x4101bfae
mov eax, dword [eax - 0xc]
push eax
lea ecx, [ebp - 0x20]
call fcn.410012f0
mov eax, dword [ebp - 0x20]
mov ecx, dword [ebp - 0x4c]
push ecx
push eax
lea edx, [ebp - 0x28]
push str.__s_s
push edx
call fcn.41014c40
mov eax, dword [ebp - 0x20]
mov ecx, dword [eax - 8]
push ecx
push eax
call fcn.4112dcda
add esp, 0x18
test eax, eax
js 0x4101c322
mov ecx, dword [ebp - 0x20]
cmp eax, dword [ecx - 8]
jg 0x4101c322
mov dword [ecx - 0xc], eax
mov edx, dword [ebp - 0x20]
xor ecx, ecx
mov word [edx + eax*2], cx
mov eax, dword [ebp - 0x48]
mov ecx, dword [ebp - 0x64]
mov edx, dword [ebp - 0x28]
mov dword [ecx], eax
mov eax, dword [ebp - 0x2c]
push edx
inc eax
push eax
push str._d._Versuch_Druckertemplate_zu_oeffnen___s_...
push 0x1000001
push 0x377
push str.TPAutoConnDll.cpp
call fcn.41002c10
mov edx, dword [ebp - 0x28]
add esp, 0x18
lea ecx, [ebp - 0xb0]
push ecx
push edx
lea ecx, [ebp - 0x60]
call fcn.41007470
test eax, eax
jne 0x4101c86d
lea eax, [ebp - 0x1c]
push eax
lea ecx, [ebp - 0x20]
call fcn.410043b0
mov eax, dword [ebp - 0x20]
cmp dword [eax - 4], 1
jle 0x4101c05d
mov ecx, dword [eax - 0xc]
push ecx
lea ecx, [ebp - 0x20]
call fcn.410012f0
mov eax, dword [ebp - 0x20]
push eax
push str.__break__
call fcn.4112e40c
add esp, 8
test eax, eax
je 0x4101c986
mov eax, dword [ebp - 0x20]
cmp dword [eax - 4], 1
jle 0x4101c08b
mov edx, dword [eax - 0xc]
push edx
lea ecx, [ebp - 0x20]
call fcn.410012f0
mov eax, dword [ebp - 0x20]
push eax
lea eax, [ebp - 0x28]
push str.__s
push eax
call fcn.41014c40
mov eax, dword [ebp - 0x20]
mov ecx, dword [eax - 8]
push ecx
push eax
call fcn.4112dcda
add esp, 0x14
test eax, eax
js 0x4101c322
mov ecx, dword [ebp - 0x20]
cmp eax, dword [ecx - 8]
jg 0x4101c322
mov dword [ecx - 0xc], eax
mov edx, dword [ebp - 0x20]
xor ecx, ecx
mov word [edx + eax*2], cx
mov eax, dword [ebp - 0x48]
mov ecx, dword [ebp - 0x64]
mov edx, dword [ebp - 0x28]
mov dword [ecx], eax
mov eax, dword [ebp - 0x2c]
push edx
inc eax
push eax
push str._d._Versuch_Druckertemplate_zu_oeffnen___s_...
push 0x1000001
push 0x390
push str.TPAutoConnDll.cpp
mov dword [ebp - 0x4c], eax
call fcn.41002c10
mov ecx, dword [ebp - 0x28]
add esp, 0x18
lea eax, [ebp - 0xb0]
push eax
push ecx
lea ecx, [ebp - 0x60]
call fcn.41007470
test eax, eax
mov eax, dword [ebp - 0x20]
mov byte [ebp - 4], 7
jne 0x4101c87c
add eax, 0xfffffff0
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x4101c138
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
add ebx, 0xfffffff0
mov byte [ebp - 4], 6
lea ecx, [ebx + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x4101c158
mov ecx, dword [ebx]
mov eax, dword [ecx]
mov edx, dword [eax + 4]
push ebx
call edx
add esi, 0xfffffff0
mov byte [ebp - 4], 4
lea eax, [esi + 0xc]
or ecx, 0xffffffff
lock xadd dword [eax], ecx
dec ecx
test ecx, ecx
jg 0x4101c178
mov ecx, dword [esi]
mov edx, dword [ecx]
mov eax, dword [edx + 4]
push esi
call eax
mov eax, dword [ebp - 0x1c]
add eax, 0xfffffff0
or edx, 0xffffffff
lea ecx, [eax + 0xc]
mov byte [ebp - 4], 3
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x4101c19b
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, dword [ebp - 0x4c]
mov dword [ebp - 0x2c], eax
cmp eax, dword [ebp - 0x8c]
jb 0x4101b680
mov esi, dword [ebp - 0x24]
test esi, esi
je 0x4101c8fb
mov eax, dword [ebp - 0x34]
mov byte [ebp - 4], 0x14
test eax, eax
je 0x4101c1d1
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov dword [ebp - 0x34], 0
push 0
push 0x411584dc
lea ecx, [ebp - 0x30]
call fcn.410016e0
mov eax, dword [ebp - 0x30]
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 0x4101c203
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
lea ecx, [ebp - 0x60]
mov byte [ebp - 4], 0
call fcn.410073f0
mov eax, dword [ebp - 0x38]
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 0x4101c235
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, esi
jmp 0x4101c530
mov edi, dword [ebp - 0x28]
mov edx, edi
mov eax, ebx
sub edx, ebx
movzx ecx, word [eax]
mov word [edx + eax], cx
add eax, 2
test cx, cx
jne 0x4101c245
mov edx, dword [ebp - 0x2c]
mov ecx, dword [ebp - 0x64]
push edi
inc edx
push edx
push str._d._Versuch_Networkprinter_detected___s__return_directly
push 0x1000001
push 0x26b
push str.TPAutoConnDll.cpp
mov dword [ecx], esi
call fcn.41002c10
lea eax, [ebx - 0x10]
add esp, 0x18
mov byte [ebp - 4], 3
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x4101c29b
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, dword [ebp - 0x34]
mov byte [ebp - 4], 5
test eax, eax
je 0x4101c2b4
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov dword [ebp - 0x34], 0
push 0
push 0x411584dc
lea ecx, [ebp - 0x30]
call fcn.410016e0
mov eax, dword [ebp - 0x30]
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 0x4101c2e6
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
lea ecx, [ebp - 0x60]
mov byte [ebp - 4], 0
call fcn.410073f0
mov eax, dword [ebp - 0x38]
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 0x4101c318
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, 0xde
jmp 0x4101c530
push 0x80070057
call fcn.410011f0
push 0x54
mov ecx, edi
call fcn.41003260
mov eax, dword [ebp - 0x70]
add eax, 0xfffffff0
push eax
call fcn.41003530
add eax, 0x10
add esp, 4
mov dword [ebp - 0x44], eax
lea ecx, [ebp - 0x44]
push ecx
mov ecx, edi
mov byte [ebp - 4], 0xa
call fcn.410043b0
mov eax, dword [ebp - 0x44]
add eax, 0xfffffff0
mov byte [ebp - 4], 9
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x4101c37c
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, dword [edi + 0xc]
push 0x54
push 0
push eax
call fcn.4112eb40
mov eax, dword [edi]
mov ecx, dword [edi + 0xc]
mov dword [ecx + 0xc], eax
mov eax, dword [edi + 0xc]
mov dword [eax + 0x10], str.TP_Output_Gateway
mov eax, dword [edi + 0xc]
mov dword [eax + 0x24], str.tpwinprn
mov eax, dword [edi + 0xc]
mov edx, dword [ebp - 0x48]
mov dword [eax + 0x28], str.NT_EMF_1.003
mov eax, dword [edi + 0xc]
mov ecx, 0x411584dc
mov dword [eax + 0x18], ecx
mov eax, dword [edi + 0xc]
mov dword [eax + 0x14], ecx
mov eax, dword [edi + 0xc]
mov dword [eax + 0x30], 0
mov eax, dword [edi + 0xc]
mov dword [eax + 0x34], 0x40
mov edi, dword [edi + 0xc]
mov ecx, dword [ebp - 0x7c]
or dword [edi + 0x34], ecx
mov eax, dword [ebp - 0x64]
mov ecx, dword [ebp - 0x90]
mov dword [eax], edx
mov edx, dword [ebp - 0x2c]
mov eax, dword [ebp - 0x68]
mov dword [ecx], 1
mov dword [eax], edx
mov eax, dword [esi - 8]
push eax
push esi
call fcn.4112dcda
add esp, 0x14
test eax, eax
js 0x4101c322
cmp eax, dword [esi - 8]
jg 0x4101c322
mov dword [esi - 0xc], eax
xor ecx, ecx
mov word [esi + eax*2], cx
mov eax, dword [ebx - 8]
push eax
push ebx
call fcn.4112dcda
add esp, 8
test eax, eax
js 0x4101c322
cmp eax, dword [ebx - 8]
jg 0x4101c322
mov dword [ebx - 0xc], eax
xor edx, edx
mov word [ebx + eax*2], dx
mov eax, dword [ebp - 0x70]
add eax, 0xfffffff0
mov byte [ebp - 4], 8
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x4101c46a
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, dword [ebp - 0x80]
add eax, 0xfffffff0
mov byte [ebp - 4], 7
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x4101c48d
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
add ebx, 0xfffffff0
mov byte [ebp - 4], 6
lea ecx, [ebx + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x4101c4ad
mov ecx, dword [ebx]
mov eax, dword [ecx]
mov edx, dword [eax + 4]
push ebx
call edx
add esi, 0xfffffff0
mov byte [ebp - 4], 4
lea eax, [esi + 0xc]
or ecx, 0xffffffff
lock xadd dword [eax], ecx
dec ecx
test ecx, ecx
jg 0x4101c4cd
mov ecx, dword [esi]
mov edx, dword [ecx]
mov eax, dword [edx + 4]
push esi
call eax
mov eax, dword [ebp - 0x1c]
add eax, 0xfffffff0
mov byte [ebp - 4], 3
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x4101c4f0
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
lea ecx, [ebp - 0x34]
mov byte [ebp - 4], 1
call fcn.41010de0
lea ecx, [ebp - 0x60]
mov byte [ebp - 4], 0
call fcn.410073f0
mov eax, dword [ebp - 0x38]
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 0x4101c52e
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
xor eax, eax
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.4112e1a6
mov esp, ebp
pop ebp
ret
mov eax, dword [edi + 8]
sub eax, 0x10
push eax
call fcn.41003530
add eax, 0x10
add esp, 4
mov dword [ebp - 0x24], eax
mov eax, dword [ebp - 0x40]
cmp dword [eax - 0xc], 0
mov byte [ebp - 4], 0x10
mov dword [ebp - 0x44], esi
je 0x4101c574
mov dword [ebp - 0x44], eax
mov ecx, dword [ebp - 0x24]
cmp dword [ecx - 4], 1
jle 0x4101c58b
mov edx, ecx
mov eax, dword [edx - 0xc]
push eax
lea ecx, [ebp - 0x24]
call fcn.410012f0
mov ecx, dword [ebp - 0x44]
mov edx, dword [ebp - 0x24]
push ecx
push edx
lea eax, [ebp - 0x28]
push str.TPPS___s__Port:__s
push eax
call fcn.41014c40
mov ecx, dword [ebp - 0x24]
mov eax, dword [ecx - 8]
push eax
push ecx
call fcn.4112dcda
add esp, 0x18
test eax, eax
js 0x4101c322
mov ecx, dword [ebp - 0x24]
cmp eax, dword [ecx - 8]
jg 0x4101c322
mov dword [ecx - 0xc], eax
xor edx, edx
mov word [ecx + eax*2], dx
push 0x54
mov ecx, edi
call fcn.41003260
mov eax, dword [ebp - 0x40]
push ecx
mov dword [ebp - 0x3c], esp
add eax, 0xfffffff0
mov dword [ebp - 0x3c], esp
push eax
call fcn.41003530
mov ecx, dword [ebp - 0x3c]
add eax, 0x10
mov dword [ecx], eax
add esp, 4
mov ecx, edi
call fcn.4101b040
push ecx
mov edx, esp
mov dword [ebp - 0x3c], esp
push edx
lea ecx, [ebp - 0x15c]
call fcn.41019230
mov ecx, edi
call fcn.4101afd0
mov eax, dword [edi + 0xc]
push 0x54
push 0
push eax
call fcn.4112eb40
mov eax, dword [edi]
mov ecx, dword [edi + 0xc]
mov dword [ecx + 0xc], eax
mov eax, dword [edi + 8]
mov ecx, dword [edi + 0xc]
mov dword [ecx + 0x10], eax
mov eax, dword [edi + 0xc]
mov dword [eax + 0x24], str.WinPrint
mov eax, dword [edi + 0xc]
xor ecx, ecx
mov dword [eax + 0x28], ecx
mov eax, dword [edi + 0xc]
mov edx, 0x411584dc
mov dword [eax + 0x18], edx
mov eax, dword [edi + 0xc]
mov dword [eax + 0x14], edx
mov eax, dword [edi + 0xc]
mov edx, dword [ebp - 0x64]
mov dword [eax + 0x30], ecx
mov eax, dword [edi + 0xc]
mov ecx, dword [ebp - 0x48]
mov dword [eax + 0x34], 0x40
mov edi, dword [edi + 0xc]
mov eax, dword [ebp - 0x7c]
or dword [edi + 0x34], eax
mov eax, dword [ebp - 0x90]
mov dword [edx], ecx
mov ecx, dword [ebp - 0x2c]
mov edx, dword [ebp - 0x68]
mov dword [eax], 1
mov dword [edx], ecx
mov eax, dword [esi - 8]
push eax
push esi
call fcn.4112dcda
add esp, 0x14
test eax, eax
js 0x4101c322
cmp eax, dword [esi - 8]
jg 0x4101c322
mov dword [esi - 0xc], eax
xor ecx, ecx
mov word [esi + eax*2], cx
mov eax, dword [ebx - 8]
push eax
push ebx
call fcn.4112dcda
add esp, 8
test eax, eax
js 0x4101c322
cmp eax, dword [ebx - 8]
jg 0x4101c322
xor edx, edx
mov dword [ebx - 0xc], eax
lea ecx, [ebp - 0x24]
mov word [ebx + eax*2], dx
call fcn.41017b50
lea ecx, [ebp - 0x15c]
mov byte [ebp - 4], 0xc
call fcn.410053a0
lea ecx, [ebp - 0x40]
call fcn.41017b50
lea ecx, [ebp - 0x78]
call fcn.41017b50
lea ecx, [ebp - 0x6c]
call fcn.41017b50
lea ecx, [ebp - 0x54]
call fcn.41017b50
lea ecx, [ebp - 0x1c]
call fcn.41017b50
lea ecx, [ebp - 0x34]
mov byte [ebp - 4], 1
call fcn.41010de0
lea ecx, [ebp - 0x60]
mov byte [ebp - 4], 0
call fcn.410073f0
lea ecx, [ebp - 0x38]
call fcn.41017b50
jmp 0x4101c52e
push 0x54
mov ecx, edi
call fcn.41003260
mov eax, dword [ebp - 0x74]
push ecx
mov dword [ebp - 0x3c], esp
add eax, 0xfffffff0
mov dword [ebp - 0x3c], esp
push eax
call fcn.41003530
mov ecx, dword [ebp - 0x3c]
add eax, 0x10
mov dword [ecx], eax
add esp, 4
mov ecx, edi
call fcn.4101b040
push ecx
mov ecx, esp
mov dword [ebp - 0x3c], esp
push ebx
call fcn.41002090
mov ecx, edi
call fcn.4101b0b0
mov eax, dword [edi + 0xc]
push 0x54
push 0
push eax
call fcn.4112eb40
mov eax, dword [edi]
mov ecx, dword [edi + 0xc]
mov dword [ecx + 0xc], eax
mov eax, dword [edi + 4]
mov ecx, dword [edi + 0xc]
mov dword [ecx + 0x10], eax
mov eax, dword [edi + 0xc]
mov dword [eax + 0x24], str.WinPrint
mov eax, dword [edi + 0xc]
xor ecx, ecx
mov dword [eax + 0x28], ecx
mov eax, dword [edi + 0xc]
mov edx, 0x411584dc
mov dword [eax + 0x18], edx
mov eax, dword [edi + 0xc]
mov dword [eax + 0x14], edx
mov eax, dword [edi + 0xc]
mov dword [eax + 0x30], ecx
mov eax, dword [edi + 0xc]
mov ecx, dword [ebp - 0x64]
mov dword [eax + 0x34], 0x40
mov edi, dword [edi + 0xc]
mov edx, dword [ebp - 0x7c]
or dword [edi + 0x34], edx
mov eax, dword [ebp - 0x48]
mov edx, dword [ebp - 0x90]
mov dword [ecx], eax
mov eax, dword [ebp - 0x2c]
mov ecx, dword [ebp - 0x68]
mov dword [edx], 1
mov dword [ecx], eax
mov eax, dword [esi - 8]
push eax
push esi
call fcn.4112dcda
add esp, 0x14
test eax, eax
js 0x4101c322
cmp eax, dword [esi - 8]
jg 0x4101c322
mov dword [esi - 0xc], eax
xor edx, edx
mov word [esi + eax*2], dx
mov eax, dword [ebx - 8]
push eax
push ebx
call fcn.4112dcda
add esp, 8
test eax, eax
js 0x4101c322
cmp eax, dword [ebx - 8]
jg 0x4101c322
mov dword [ebx - 0xc], eax
xor ecx, ecx
mov word [ebx + eax*2], cx
mov eax, dword [ebp - 0x74]
add eax, 0xfffffff0
mov byte [ebp - 4], 0x11
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x4101c865
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, dword [ebp - 0x50]
jmp 0x4101c46d
mov ecx, dword [ebp - 0x2c]
mov edx, dword [ebp - 0x68]
mov eax, dword [ebp - 0x20]
mov dword [edx], ecx
mov byte [ebp - 4], 7
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x4101c898
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
add ebx, 0xfffffff0
mov byte [ebp - 4], 6
lea ecx, [ebx + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x4101c8b8
mov ecx, dword [ebx]
mov eax, dword [ecx]
mov edx, dword [eax + 4]
push ebx
call edx
add esi, 0xfffffff0
mov byte [ebp - 4], 4
lea eax, [esi + 0xc]
or ecx, 0xffffffff
lock xadd dword [eax], ecx
dec ecx
test ecx, ecx
jg 0x4101c8d8
mov ecx, dword [esi]
mov edx, dword [ecx]
mov eax, dword [edx + 4]
push esi
call eax
mov eax, dword [ebp - 0x1c]
add eax, 0xfffffff0
mov byte [ebp - 4], 3
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x4101c8fb
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov esi, dword [ebp - 0x2c]
cmp esi, dword [ebp - 0x8c]
jne 0x4101ca70
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push str.no_printer_template_found___d_
push 0x1000001
push 0x3a0
push str.TPAutoConnDll.cpp
call fcn.41002c10
mov ecx, dword [ebp - 0x68]
add esp, 0x14
mov dword [ecx], esi
mov eax, dword [ebp - 0x34]
mov byte [ebp - 4], 0x15
test eax, eax
je 0x4101c94b
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov dword [ebp - 0x34], 0
push 0
push 0x411584dc
lea ecx, [ebp - 0x30]
call fcn.410016e0
mov eax, dword [ebp - 0x30]
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 0x4101ca34
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
jmp 0x4101ca34
push str.RULE:_Try_Break_detected_
push 0x1000001
push 0x389
push str.TPAutoConnDll.cpp
call fcn.41002c10
mov eax, dword [ebp - 0x20]
add eax, 0xfffffff0
add esp, 0x10
mov byte [ebp - 4], 7
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x4101c9c5
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
add ebx, 0xfffffff0
mov byte [ebp - 4], 6
lea ecx, [ebx + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x4101c9e5
mov ecx, dword [ebx]
mov eax, dword [ecx]
mov edx, dword [eax + 4]
push ebx
call edx
add esi, 0xfffffff0
mov byte [ebp - 4], 4
lea eax, [esi + 0xc]
or ecx, 0xffffffff
lock xadd dword [eax], ecx
dec ecx
test ecx, ecx
jg 0x4101ca05
mov ecx, dword [esi]
mov edx, dword [ecx]
mov eax, dword [edx + 4]
push esi
call eax
mov eax, dword [ebp - 0x1c]
add eax, 0xfffffff0
mov byte [ebp - 4], 3
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x4101ca28
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
lea ecx, [ebp - 0x34]
mov byte [ebp - 4], 1
call fcn.41010de0
lea ecx, [ebp - 0x60]
mov byte [ebp - 4], 0
call fcn.410073f0
mov eax, dword [ebp - 0x38]
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 0x4101ca66
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, 0xdd
jmp 0x4101c530
xor esi, esi
lea ecx, [ebp - 0x84]
push ecx
push esi
push esi
push esi
push esi
push esi
push esi
push 0x220
push 0x20
push 2
lea edx, [ebp - 0x18]
push edx
mov dword [ebp - 0x84], esi
mov dword [ebp - 0x18], esi
mov word [ebp - 0x14], 0x500
call dword [sym.imp.ADVAPI32.dll_AllocateAndInitializeSid]
test eax, eax
je 0x4101cae7
mov eax, dword [ebp - 0x84]
mov ecx, dword [ebp - 0x5c]
push esi
push esi
push esi
push eax
push 1
push 3
push ecx
call dword [sym.imp.ADVAPI32.dll_SetSecurityInfo]
push eax
push str.______SetSecurityInfo_returns__d.
push 0x1000001
push 0x3b4
push str.TPAutoConnDll.cpp
call fcn.41002c10
mov edx, dword [ebp - 0x84]
add esp, 0x14
push edx
call dword [sym.imp.ADVAPI32.dll_FreeSid]
lea eax, [ebp - 0x88]
push eax
push esi
push esi
push 2
lea ecx, [ebp - 0x60]
call fcn.41006540
mov ecx, dword [ebp - 0x88]
push ecx
mov ecx, edi
call fcn.41003260
mov eax, dword [edi + 0xc]
cmp eax, esi
jne 0x4101cba6
push str.Speicher_f
push 0x2000001
push 0x3c0
push str.TPAutoConnDll.cpp
call fcn.41002c10
add esp, 0x10
lea ecx, [ebp - 0x60]
call fcn.41007070
test eax, eax
jne 0x4101cb5e
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push str.ClosePrinter_failed___d__
push 0x2000001
push 0x3c2
push str.TPAutoConnDll.cpp
call fcn.41002c10
add esp, 0x14
lea ecx, [ebp - 0x34]
mov byte [ebp - 4], 1
call fcn.41010de0
lea ecx, [ebp - 0x60]
mov byte [ebp - 4], 0
call fcn.410073f0
mov eax, dword [ebp - 0x38]
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 0x4101cb9c
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, 0xfffffff6
jmp 0x4101c530
mov edx, dword [ebp - 0x88]
lea ecx, [ebp - 0x88]
push ecx
push edx
push eax
push 2
lea ecx, [ebp - 0x60]
call fcn.41006540
test eax, eax
jne 0x4101cc5f
mov esi, dword [sym.imp.KERNEL32.dll_GetLastError]
call esi
push eax
push str.API_Fkt._Get_Printer___schlug_fehl___d__
push 0x2000001
push 0x3c8
push str.TPAutoConnDll.cpp
call fcn.41002c10
add esp, 0x14
lea ecx, [ebp - 0x60]
call fcn.41007070
test eax, eax
jne 0x4101cc17
call esi
push eax
push str.ClosePrinter_failed___d__
push 0x2000001
push 0x3ca
push str.TPAutoConnDll.cpp
call fcn.41002c10
add esp, 0x14
lea ecx, [ebp - 0x34]
mov byte [ebp - 4], 1
call fcn.41010de0
lea ecx, [ebp - 0x60]
mov byte [ebp - 4], 0
call fcn.410073f0
mov eax, dword [ebp - 0x38]
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 0x4101cc55
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, 0xfffffff4
jmp 0x4101c530
mov eax, dword [edi + 0xc]
lea ecx, [ebp - 0x94]
push ecx
push esi
push esi
push 8
lea ecx, [ebp - 0x60]
mov dword [eax + 0x1c], esi
call fcn.41006540
mov edx, dword [ebp - 0x94]
push edx
mov ecx, edi
call fcn.410032e0
mov ecx, dword [ebp - 0x94]
mov edi, dword [edi + 0x14]
lea eax, [ebp - 0xb4]
push eax
push ecx
push edi
push 8
lea ecx, [ebp - 0x60]
call fcn.41006540
test eax, eax
jne 0x4101c4f0
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push str.GetPrinter_for_PRINTER_INFO_8_failed____d__
push 0x2000001
push 0x3dc
push str.TPAutoConnDll.cpp
call fcn.41002c10
add esp, 0x14
lea ecx, [ebp - 0x34]
mov byte [ebp - 4], 1
call fcn.41010de0
lea ecx, [ebp - 0x60]
mov byte [ebp - 4], 0
call fcn.410073f0
mov eax, dword [ebp - 0x38]
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
jmp 0x4101cc49