Function at 0x4101efa0
Capabilities:
Access peb ldr_data

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x41148bfe
mov eax, dword fs:[0]
push eax
sub esp, 0x354
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 ecx, dword [ebp + 0x1c]
mov eax, dword [ebp + 0x14]
mov esi, dword [ebp + 8]
mov ebx, dword [ebp + 0xc]
mov dword [ebp - 0x330], ecx
push 6
lea ecx, [ebp - 0x308]
mov dword [ebp - 0x2b4], esi
mov dword [ebp - 0x2b8], eax
call fcn.41008790
xor edi, edi
push 9
lea ecx, [ebp - 0x2f8]
mov dword [ebp - 4], edi
call fcn.41008790
mov edx, dword [ebp - 0x2fc]
mov eax, dword [ebp - 0x2ec]
lea ecx, [ebp - 0x2c0]
mov byte [ebp - 4], 1
mov dword [ebp - 0x350], edx
mov dword [ebp - 0x30c], eax
call fcn.410081b0
lea ecx, [ebp - 0x2c8]
mov byte [ebp - 4], 2
call fcn.41008240
mov eax, dword [ebx + 0xc]
mov byte [ebp - 4], 3
cmp dword [eax + 0x30], edi
jne 0x4101f279
mov edx, dword [ebp - 0x310]
xor ecx, ecx
mov dword [ebp - 0x2d8], ecx
mov dword [ebp - 0x2d4], ecx
mov ecx, dword [ebp - 0x30c]
mov dword [ebp - 0x2cc], ecx
mov dword [ebp - 0x2dc], edi
mov dword [ebp - 0x2d0], edx
mov dword [ebp - 0x2e8], 0xf0030
mov eax, 2
mov dword [ebp - 0x2e4], eax
mov dword [ebp - 0x2e0], 9
mov ecx, 8
lea esi, [ebp - 0x2e8]
lea edi, [ebp - 0x90]
rep movsd dword es:[edi], dword [esi]
mov dword [ebp - 0x2d0], edx
mov edx, dword [ebp - 0x30c]
mov dword [ebp - 0x2e4], eax
xor eax, eax
mov dword [ebp - 0x2cc], edx
mov dword [ebp - 0x2dc], eax
mov dword [ebp - 0x2d8], eax
mov dword [ebp - 0x2d4], eax
mov dword [ebp - 0x2e8], 0xf000c
mov dword [ebp - 0x2e0], 0
mov ecx, 8
lea esi, [ebp - 0x2e8]
lea edi, [ebp - 0x70]
rep movsd dword es:[edi], dword [esi]
xor ecx, ecx
mov dword [ebp - 0x2d4], ecx
mov ecx, dword [ebp - 0x354]
mov dword [ebp - 0x2d0], ecx
mov ecx, dword [ebp - 0x350]
mov dword [ebp - 0x2cc], ecx
xor edx, edx
mov dword [ebp - 0x2dc], eax
mov dword [ebp - 0x2d8], edx
mov dword [ebp - 0x2e8], 0xf0030
mov dword [ebp - 0x2e4], 2
mov dword [ebp - 0x2e0], 9
mov ecx, 8
lea esi, [ebp - 0x2e8]
lea edi, [ebp - 0x50]
rep movsd dword es:[edi], dword [esi]
mov dword [ebp - 0x2e0], eax
mov dword [ebp - 0x2dc], eax
mov dword [ebp - 0x2d8], edx
mov edx, dword [ebp - 0x354]
mov dword [ebp - 0x2d4], eax
mov eax, dword [ebp - 0x350]
mov dword [ebp - 0x2d0], edx
mov dword [ebp - 0x2cc], eax
mov ecx, 8
lea esi, [ebp - 0x2e8]
lea edi, [ebp - 0x30]
mov dword [ebp - 0x2e8], 0xf000c
mov dword [ebp - 0x2e4], 2
rep movsd dword es:[edi], dword [esi]
lea ecx, [ebp - 0x90]
push ecx
push 4
lea ecx, [ebp - 0x2c0]
call fcn.410081e0
test eax, eax
je 0x4101f22c
push str.CreateSecurityDescriptorAndAddPrinter:_Set_Printer_ACL_to_SYSTEM_ADMINS_default__failed_
push 0x2000001
push 0xa02
push str.TPAutoConnDll.cpp
call fcn.41002c10
add esp, 0x10
lea ecx, [ebp - 0x2c8]
mov byte [ebp - 4], 2
call fcn.41008270
lea ecx, [ebp - 0x2c0]
mov byte [ebp - 4], 1
call fcn.410081c0
lea ecx, [ebp - 0x2f8]
mov byte [ebp - 4], 0
call fcn.410082c0
lea ecx, [ebp - 0x308]
mov dword [ebp - 4], 0xffffffff
call fcn.410082c0
mov eax, 0x65b
jmp 0x4101f998
mov edx, dword [ebp - 0x2bc]
mov eax, dword [ebp - 0x2c4]
push 0
push edx
push 1
push eax
call dword [sym.imp.ADVAPI32.dll_SetSecurityDescriptorDacl]
mov eax, dword [ebx + 0xc]
mov ecx, dword [ebp - 0x2c4]
mov dword [eax + 0x30], ecx
mov eax, dword [ebx + 0xc]
mov edx, dword [eax + 0x30]
push edx
push str.Security_descriptor_successfully_created:_0x_x.
push 0x1000001
push 0xa0a
push str.TPAutoConnDll.cpp
call fcn.41002c10
mov esi, dword [ebp - 0x2b4]
add esp, 0x14
lea ecx, [ebp - 0x2a4]
call fcn.4102be70
push 0xa
lea ecx, [ebp - 0x34c]
call fcn.4100a610
mov eax, dword [ebp - 0x2b8]
push eax
lea ecx, [ebp - 0x2ac]
mov byte [ebp - 4], 5
call fcn.41002090
lea ecx, [ebp - 0x2ac]
push ecx
lea ecx, [ebp - 0x34c]
mov byte [ebp - 4], 6
call fcn.4100b740
mov edi, dword [ebp + 0x10]
mov edx, dword [ebp - 0x2ac]
push edi
push edx
push str.Try_to_set_User_and_LogonSID_privileges_in_the_Security_descriptor_for_the_user___s___session_id___u_.
push 0x1000001
push 0xa19
push str.TPAutoConnDll.cpp
mov dword [ebp - 0x2b0], 0
call fcn.41002c10
add esp, 0x18
lea ecx, [ebp - 0x314]
call fcn.41008c50
mov ecx, dword [ebx + 0xc]
push eax
lea eax, [ebp - 0x2b0]
push eax
mov eax, dword [ecx + 0x30]
push edi
lea edx, [ebp - 0x34c]
push edx
push eax
push 1
lea ecx, [ebp - 0x2a4]
mov byte [ebp - 4], 7
call fcn.4102fa30
test eax, eax
lea ecx, [ebp - 0x314]
sete byte [ebp - 0x2a5]
mov byte [ebp - 4], 6
call fcn.41008b80
cmp byte [ebp - 0x2a5], 0
je 0x4101f35d
push str.Setting_printer_ACL_failed_
push 0x1000001
push 0xa1c
push str.TPAutoConnDll.cpp
call fcn.41002c10
jmp 0x4101f382
push str.Printer_ACL_set_successfully_
push 0x1000001
push 0xa20
push str.TPAutoConnDll.cpp
call fcn.41002c10
mov eax, dword [ebx + 0xc]
mov ecx, dword [ebp - 0x2b0]
mov dword [eax + 0x30], ecx
mov eax, dword [ebx + 0xc]
mov edx, dword [eax + 0x34]
add esp, 0x10
push edx
push str.Try_to_call_AddPrinter___with_attributes:_0x_x.
push 0x1000001
push 0xa27
push str.TPAutoConnDll.cpp
call fcn.41002c10
add esp, 0x14
push 0
call dword [sym.imp.KERNEL32.dll_SetLastError]
mov eax, dword [ebx + 0xc]
push eax
push 2
push 0
mov ecx, esi
call fcn.41007110
mov dword [ebp - 0x2b4], eax
cmp eax, 0x70a
jne 0x4101f77a
push str.Printer_already_exists._Try_to_update_its_ACL.
push 0x1000001
push 0xa33
push str.TPAutoConnDll.cpp
call fcn.41002c10
xor eax, eax
mov dword [ebp - 0x30c], eax
mov dword [ebp - 0x314], eax
mov dword [ebp - 0x310], eax
lea eax, [ebp - 0x2b0]
push eax
mov dword [ebp - 0x30c], 0xf000c
call fcn.410152d0
mov eax, dword [ebx + 0xc]
mov edx, dword [eax + 4]
add esp, 0x14
lea ecx, [ebp - 0x314]
push ecx
push edx
mov ecx, esi
call fcn.41007470
test eax, eax
jne 0x4101f4c5
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, eax
mov eax, dword [ebp - 0x2ac]
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 0x4101f461
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
lea ecx, [ebp - 0x34c]
mov byte [ebp - 4], 4
call fcn.4100b3a0
lea ecx, [ebp - 0x2a4]
mov byte [ebp - 4], 3
call fcn.4102be90
lea ecx, [ebp - 0x2c8]
mov byte [ebp - 4], 2
call fcn.41008270
lea ecx, [ebp - 0x2c0]
mov byte [ebp - 4], 1
call fcn.410081c0
lea ecx, [ebp - 0x2f8]
mov byte [ebp - 4], 0
call fcn.410082c0
lea ecx, [ebp - 0x308]
mov dword [ebp - 4], 0xffffffff
call fcn.410082c0
mov eax, esi
jmp 0x4101f998
mov ecx, dword [esi + 4]
push 3
push ecx
lea ecx, [ebp - 0x328]
call fcn.4102ab90
mov eax, dword [ebp - 0x320]
mov byte [ebp - 4], 8
test eax, eax
je 0x4101f514
lea ecx, [ebp - 0x328]
mov esi, eax
mov byte [ebp - 4], 6
call fcn.41004fb0
mov eax, dword [ebp - 0x2ac]
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 0x4101f455
mov ecx, dword [ebp - 0x2ac]
push edi
push ecx
push str.Try_to_set_User_and_LogonSID_privileges_in_the_Security_descriptor_for_the_user___s___session_id___u_.
push 0x1000001
push 0xa56
push str.TPAutoConnDll.cpp
call fcn.41002c10
add esp, 0x18
lea ecx, [ebp - 0x358]
call fcn.41008c50
mov ecx, dword [ebp - 0x328]
push eax
lea edx, [ebp - 0x2b0]
push edx
mov edx, dword [ecx]
push edi
lea eax, [ebp - 0x34c]
push eax
push edx
push 1
lea ecx, [ebp - 0x2a4]
mov byte [ebp - 4], 9
call fcn.4102fa30
test eax, eax
lea ecx, [ebp - 0x358]
sete byte [ebp - 0x2a5]
mov byte [ebp - 4], 8
call fcn.41008b80
cmp byte [ebp - 0x2a5], 0
je 0x4101f5a9
push str.Setting_printer_ACL_failed_
push 0x1000001
push 0xa59
push str.TPAutoConnDll.cpp
call fcn.41002c10
jmp 0x4101f5ce
push str.Printer_ACL_set_successfully_
push 0x1000001
push 0xa5d
push str.TPAutoConnDll.cpp
call fcn.41002c10
mov eax, dword [ebx + 0xc]
mov ecx, dword [ebp - 0x2b0]
mov dword [eax + 0x30], ecx
mov eax, dword [ebp + 0x18]
sar eax, 9
and eax, 7
add esp, 0x10
test al, 2
je 0x4101f6b1
push str.PS_Printer_already_exists._Add_only_User_and_Session_credentials.
push 0x1000001
push 0xa71
push str.TPAutoConnDll.cpp
call fcn.41002c10
mov eax, dword [ebx + 0xc]
mov edx, dword [eax + 0x30]
add esp, 0x10
push 0
lea eax, [ebp - 0x2b8]
push eax
push 3
mov ecx, esi
mov dword [ebp - 0x2b8], edx
call fcn.410065f0
test eax, eax
jne 0x4101f64f
push str._______SetPrinter3_failed_
push 0x2000001
push 0xa77
push str.TPAutoConnDll.cpp
call fcn.41002c10
add esp, 0x10
mov ecx, esi
call fcn.41007070
mov dword [ebp - 0x2b4], 0x65b
jmp 0x4101f66b
push str._______SetPrinter3_succeeded__Security_descriptor_is_set_
push 0x1000001
push 0xa7d
push str.TPAutoConnDll.cpp
call fcn.41002c10
add esp, 0x10
push str.Delete_the_PS_driver_created_before.
push 0x1000001
push 0xa82
push str.TPAutoConnDll.cpp
call fcn.41002c10
mov eax, dword [ebx + 0xc]
mov ecx, dword [eax + 0x10]
push ecx
call fcn.41005090
add esp, 0x14
test eax, eax
jne 0x4101f6a8
push str.______PS_Driver_not_deleted._Try_it_again_later_on.
push 0x1000001
push 0xa86
jmp 0x4101f711
mov ecx, ebx
call fcn.41003320
jmp 0x4101f71e
mov eax, dword [ebx + 0xc]
mov edx, dword [eax + 0x30]
push 0
lea eax, [ebp - 0x2b8]
push eax
push 3
mov ecx, esi
mov dword [ebp - 0x2b8], edx
call fcn.410065f0
test eax, eax
jne 0x4101f702
push str._______SetPrinter3_failed_
push 0x2000001
push 0xa9d
push str.TPAutoConnDll.cpp
call fcn.41002c10
add esp, 0x10
mov ecx, esi
call fcn.41007070
mov dword [ebp - 0x2b4], 0x65b
jmp 0x4101f71e
push str._______SetPrinter3_succeeded__Security_descriptor_is_set_
push 0x1000001
push 0xaa4
push str.TPAutoConnDll.cpp
call fcn.41002c10
add esp, 0x10
lea ecx, [ebp - 0x2b0]
push ecx
call fcn.410152d0
add esp, 4
lea ecx, [ebp - 0x328]
mov byte [ebp - 4], 6
call fcn.41004fb0
cmp dword [ebp - 0x2b4], 0x65b
jne 0x4101f7ee
lea ecx, [ebp - 0x2ac]
call fcn.41017b50
lea ecx, [ebp - 0x34c]
mov byte [ebp - 4], 4
call fcn.4100b3a0
lea ecx, [ebp - 0x2a4]
mov byte [ebp - 4], 3
call fcn.4102be90
jmp 0x4101f1e3
cmp dword [esi + 4], 0
je 0x4101f900
mov eax, dword [ebx + 0xc]
mov edx, dword [eax + 0x30]
push 0
lea eax, [ebp - 0x32c]
push eax
push 3
mov ecx, esi
mov dword [ebp - 0x32c], edx
call fcn.410065f0
test eax, eax
jne 0x4101f7b7
push str._______SetPrinter3_for_re_setting_our_permissions_failed_
push 0x2000001
push 0xac7
jmp 0x4101f7c6
push str._______SetPrinter3_for_re_setting_our_permissions_succeeded__Security_descriptor_is_set_
push 0x1000001
push 0xacb
push str.TPAutoConnDll.cpp
call fcn.41002c10
lea ecx, [ebp - 0x2b0]
add esp, 0x10
push ecx
call fcn.410152d0
mov edx, dword [ebp - 0x330]
add esp, 4
mov dword [edx], 1
mov eax, dword [ebx + 0xc]
push str.Printers_handle_is_valid_and_open__try_to_read_its_info.
xor edi, edi
push 0x1000001
mov dword [eax + 0x2c], edi
mov eax, dword [ebx + 0xc]
push 0xae7
push str.TPAutoConnDll.cpp
mov dword [eax + 0x30], edi
call fcn.41002c10
mov eax, dword [ebx + 0xc]
mov eax, dword [eax + 0x34]
push eax
push str.Try_to_call_GetPrinterInfo3__._Current_attributes:_0x_x.
push 0x1000001
push 0xaff
push str.TPAutoConnDll.cpp
call fcn.41002c10
add esp, 0x24
push ebx
mov ecx, esi
call fcn.41006770
test eax, eax
jne 0x4101f87a
mov ecx, esi
call fcn.41007070
mov eax, dword [ebp - 0x2ac]
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 0x4101f757
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
jmp 0x4101f757
push str.______PrinterInfo3_struct_read_from_the_printer.
push 0x1000001
push 0xb0a
push str.TPAutoConnDll.cpp
call fcn.41002c10
mov eax, dword [ebx + 0x10]
add esp, 0x10
cmp dword [eax], edi
je 0x4101f8c2
mov ecx, dword [eax]
push ecx
call dword [sym.imp.ADVAPI32.dll_IsValidSecurityDescriptor]
cmp eax, edi
je 0x4101f8bc
mov eax, dword [ebx + 0x10]
mov edx, dword [eax]
mov ebx, dword [ebx + 0xc]
mov dword [ebx + 0x30], edx
mov eax, str.valid
jmp 0x4101f8c7
mov ebx, dword [ebx + 0xc]
mov dword [ebx + 0x30], edi
mov eax, str.not_valid_or_null
push eax
push str.______Security_Descriptor_is__s.
push 0x1000001
push 0xb18
push str.TPAutoConnDll.cpp
call fcn.41002c10
mov eax, dword [ebp - 0x2ac]
add eax, 0xfffffff0
add esp, 0x14
mov byte [ebp - 4], 5
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jmp 0x4101f929
lea ecx, [ebp - 0x2b0]
push ecx
call fcn.410152d0
mov eax, dword [ebp - 0x2ac]
add eax, 0xfffffff0
add esp, 4
mov byte [ebp - 4], 5
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x4101f935
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
lea ecx, [ebp - 0x34c]
mov byte [ebp - 4], 4
call fcn.4100b3a0
lea ecx, [ebp - 0x2a4]
mov byte [ebp - 4], 3
call fcn.4102be90
lea ecx, [ebp - 0x2c8]
mov byte [ebp - 4], 2
call fcn.41008270
lea ecx, [ebp - 0x2c0]
mov byte [ebp - 4], 1
call fcn.410081c0
lea ecx, [ebp - 0x2f8]
mov byte [ebp - 4], 0
call fcn.410082c0
lea ecx, [ebp - 0x308]
mov dword [ebp - 4], 0xffffffff
call fcn.410082c0
mov eax, dword [ebp - 0x2b4]
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