Function at 0x4102fa30
Capabilities:
Compare security identifiers

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x41149e93
mov eax, dword fs:[0]
push eax
sub esp, 0xc8
mov eax, dword [0x411bade8]
xor eax, ebp
mov dword [ebp - 0x14], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x10], esp
mov eax, dword [ebp + 8]
mov edx, dword [ebp + 0x14]
xor ebx, ebx
mov dword [ebp - 0x48], ecx
mov ecx, dword [ebp + 0xc]
mov dword [ebp - 0x9c], ecx
mov ecx, dword [ebp + 0x18]
mov dword [ebp - 0x4c], eax
mov eax, dword [ebp + 0x10]
mov eax, dword [eax + 4]
mov dword [ebp - 0x64], ecx
xor ecx, ecx
cmp eax, ebx
setne cl
mov dword [ebp - 0x54], edx
mov edx, dword [ebp + 0x1c]
mov dword [ebp - 0x60], edx
mov dword [ebp - 0x5c], 1
mov dword [ebp - 0x34], ebx
mov dword [ebp - 0x38], ebx
mov dword [ebp - 0x40], ebx
mov dword [ebp - 0x3c], ebx
mov dword [ebp - 0x44], ebx
mov dword [ebp - 0x30], ebx
mov dword [ebp - 0x28], ebx
mov dword [ebp - 0x2c], 8
mov dword [ebp - 0x80], ebx
mov dword [ebp - 0x50], ebx
mov dword [ebp - 0x58], ebx
mov dword [ebp - 0x78], ebx
cmp ecx, ebx
jne 0x4102facc
call fcn.4103efd5
mov edi, dword [eax + 8]
mov eax, edi
lea edx, [eax + 2]
mov cx, word [eax]
add eax, 2
cmp cx, bx
jne 0x4102fad4
sub eax, edx
sar eax, 1
cmp eax, 7
jbe 0x4102fb3c
mov eax, edi
lea edx, [eax + 2]
lea ecx, [ecx]
mov cx, word [eax]
add eax, 2
cmp cx, bx
jne 0x4102faf0
sub eax, edx
sar eax, 1
lea eax, [edi + eax*2 - 0xe]
push str.SYSTEM
push eax
call fcn.4112e40c
add esp, 8
test eax, eax
jne 0x4102fb3c
push edi
push str.SYSTEM_or_Administrators_would_be_added_or_deleted___s_
push 0x1000008
push 0xa96
push str.WinPrinter.cpp
call fcn.41002c10
add esp, 0x14
mov eax, 1
jmp 0x410301e7
mov esi, dword [sym.imp.ADVAPI32.dll_AllocateAndInitializeSid]
lea ecx, [ebp - 0x38]
push ecx
push ebx
push ebx
push ebx
push ebx
push ebx
push ebx
push 0x220
push 0x20
push 2
lea edx, [ebp - 0x1c]
push edx
mov dword [ebp - 4], ebx
mov dword [ebp - 0x1c], ebx
mov word [ebp - 0x18], 0x500
call esi
test eax, eax
jne 0x4102fb86
push 0x411a29cc
lea eax, [ebp - 0xb8]
push eax
mov dword [ebp - 0xb8], 0xaad
call fcn.4112fac9
lea ecx, [ebp - 0x3c]
push ecx
push ebx
push ebx
push ebx
push ebx
push ebx
push ebx
push ebx
push 0x12
push 1
lea edx, [ebp - 0x1c]
push edx
call esi
test eax, eax
jne 0x4102fbba
push 0x411a29cc
lea eax, [ebp - 0xbc]
push eax
mov dword [ebp - 0xbc], 0xabb
call fcn.4112fac9
lea ecx, [ebp - 0x40]
push ecx
push ebx
push ebx
push ebx
push ebx
push ebx
push ebx
push 1
push 2
push 2
lea edx, [ebp - 0x24]
push edx
mov dword [ebp - 0x24], ebx
mov word [ebp - 0x20], 0xf00
call esi
test eax, eax
jne 0x4102fbfc
push str.Failed_to_get_SID_for_APPLICATION_PACKAGE_AUTHORITYALL_APPLICATION_PACKAGES
push 0x3000001
push 0xacd
push str.WinPrinter.cpp
mov dword [ebp - 0x40], ebx
call fcn.41002c10
add esp, 0x10
call fcn.4102f180
mov dword [ebp - 0x74], eax
cmp eax, ebx
jge 0x4102fc23
push 0x411a29cc
lea eax, [ebp - 0xb0]
push eax
mov dword [ebp - 0xb0], 0xad1
call fcn.4112fac9
push eax
push str.nAccessRights___d
push 0x1000001
push 0xad3
push str.WinPrinter.cpp
call fcn.41002c10
mov esi, dword [ebp - 0x64]
add esp, 0x14
cmp esi, ebx
jne 0x4102fc62
push 0x411a29cc
lea ecx, [ebp - 0x84]
push ecx
mov dword [ebp - 0x84], 0xad6
call fcn.4112fac9
push 0x14
push 8
call dword [sym.imp.KERNEL32.dll_GetProcessHeap]
push eax
call dword [sym.imp.KERNEL32.dll_HeapAlloc]
mov ecx, dword [ebp - 0x48]
lea edx, [ebp - 0x34]
push edx
push edi
mov dword [esi], eax
call fcn.4102beb0
cmp eax, ebx
jne 0x4102fca1
push 0x411a29cc
lea eax, [ebp - 0xc0]
push eax
mov dword [ebp - 0xc0], 0xadc
call fcn.4112fac9
mov ecx, dword [ebp - 0x3c]
mov edx, dword [ebp - 0x34]
mov esi, dword [sym.imp.ADVAPI32.dll_EqualSid]
push ecx
push edx
call esi
test eax, eax
jne 0x410300e0
mov eax, dword [ebp - 0x38]
mov ecx, dword [ebp - 0x34]
push eax
push ecx
call esi
test eax, eax
jne 0x410300e0
lea ecx, [ebp - 0x70]
call fcn.41008c50
push 2
push 6
mov byte [ebp - 4], 1
call fcn.410037c0
add esp, 8
cmp eax, 1
je 0x4102fd0d
push 1
push 6
call fcn.410037c0
add esp, 8
cmp eax, 1
je 0x4102fd0d
push ebx
push 6
call fcn.410037c0
add esp, 8
cmp eax, 1
jne 0x4102fe34
mov esi, dword [ebp - 0x4c]
push esi
push str.____Try_to_retrieve_Logon_SID__iCmd:__d_
push 0x1000001
push 0xaf1
push str.WinPrinter.cpp
call fcn.41002c10
add esp, 0x14
cmp esi, 3
je 0x4102fd6d
cmp esi, 2
je 0x4102fd6d
cmp esi, 1
jne 0x4102fd95
mov edx, dword [ebp - 0x54]
push edx
lea eax, [ebp - 0xd4]
push eax
call fcn.410091d0
add esp, 8
push eax
lea ecx, [ebp - 0x70]
mov byte [ebp - 4], 2
call fcn.41008bd0
lea ecx, [ebp - 0xd4]
mov byte [ebp - 4], 1
call fcn.41008b80
jmp 0x4102fd95
mov ecx, dword [ebp - 0x60]
push ecx
lea ecx, [ebp - 0x70]
call fcn.41008bd0
push str.____Using_Logon_SID_from_cache.
push 0x1000001
push 0xaff
push str.WinPrinter.cpp
call fcn.41002c10
add esp, 0x10
cmp dword [ebp - 0x70], ebx
jne 0x4102fdd8
cmp esi, 2
jne 0x4102fdbd
push str.____Logon_SID_not_found__but_not_needed.
push 0x1000001
push 0xb13
push str.WinPrinter.cpp
call fcn.41002c10
add esp, 0x10
jmp 0x4102fe37
push 0x411a29cc
lea edx, [ebp - 0xac]
push edx
mov dword [ebp - 0xac], 0xb15
call fcn.4112fac9
lea eax, [ebp - 0x54]
push eax
lea ecx, [ebp - 0x70]
call fcn.41008ea0
mov eax, dword [ebp - 0x54]
add eax, 0xfffffff0
push eax
mov byte [ebp - 4], 3
call fcn.41003530
add eax, 0x10
add esp, 4
mov dword [ebp - 0x60], eax
push eax
push str.____Logon_SID_found:___s_
push 0x1000001
push 0xb19
push str.WinPrinter.cpp
mov byte [ebp - 4], 4
call fcn.41002c10
add esp, 0x14
lea ecx, [ebp - 0x60]
call fcn.41017b50
lea ecx, [ebp - 0x54]
mov byte [ebp - 4], 1
call fcn.41017b50
jmp 0x4102fe37
mov esi, dword [ebp - 0x4c]
push str.STEP_2_11:_Initialize_new_SD...
push 0x1000001
push 0xb1f
push str.WinPrinter.cpp
call fcn.41002c10
mov ecx, dword [ebp - 0x64]
mov edx, dword [ecx]
add esp, 0x10
push 1
push edx
call dword [sym.imp.ADVAPI32.dll_InitializeSecurityDescriptor]
test eax, eax
jne 0x4102fe80
push 0x411a29cc
lea eax, [ebp - 0x90]
push eax
mov dword [ebp - 0x90], 0xb21
call fcn.4112fac9
push str.STEP_3_11:_Get_DACL_from_SD...
push 0x1000001
push 0xb23
push str.WinPrinter.cpp
call fcn.41002c10
add esp, 0x10
lea ecx, [ebp - 0xc4]
push ecx
mov ecx, dword [ebp - 0x9c]
lea edx, [ebp - 0x44]
push edx
lea eax, [ebp - 0x7c]
push eax
push ecx
call dword [sym.imp.ADVAPI32.dll_GetSecurityDescriptorDacl]
test eax, eax
jne 0x4102fed7
push 0x411a29cc
lea edx, [ebp - 0x98]
push edx
mov dword [ebp - 0x98], 0xb26
call fcn.4112fac9
push str.STEP_4_11:_Get_file_ACL_size_information...
push 0x1000001
push 0xb28
push str.WinPrinter.cpp
call fcn.41002c10
mov eax, dword [ebp - 0x44]
add esp, 0x10
cmp eax, ebx
je 0x4102ff2b
push 2
push 0xc
lea ecx, [ebp - 0x30]
push ecx
push eax
call dword [sym.imp.ADVAPI32.dll_GetAclInformation]
test eax, eax
jne 0x4102ff28
push 0x411a29cc
lea edx, [ebp - 0xa0]
push edx
mov dword [ebp - 0xa0], 0xb35
call fcn.4112fac9
mov eax, dword [ebp - 0x44]
cmp dword [ebp - 0x7c], ebx
je 0x4102ff76
cmp eax, ebx
je 0x4102ff76
mov edi, dword [ebp - 0x34]
lea ecx, [ebp - 0x58]
push ecx
mov ecx, dword [ebp - 0x70]
lea edx, [ebp - 0x50]
push edx
push esi
push ecx
mov ecx, dword [ebp - 0x48]
push edi
lea edx, [ebp - 0x30]
push edx
push eax
call fcn.4102dcc0
cmp eax, ebx
jne 0x4102ff71
push 0x411a29cc
lea eax, [ebp - 0xa8]
push eax
mov dword [ebp - 0xa8], 0xb44
call fcn.4112fac9
mov eax, dword [ebp - 0x44]
jmp 0x4102ff79
mov edi, dword [ebp - 0x34]
mov ecx, dword [ebp - 0x58]
mov edx, dword [ebp - 0x50]
push ecx
mov ecx, dword [ebp - 0x40]
push edx
mov edx, dword [ebp - 0x3c]
push ecx
mov ecx, dword [ebp - 0x38]
push edx
xor edx, edx
cmp eax, ebx
mov eax, dword [ebp - 0x70]
push ecx
sete dl
lea ecx, [ebp - 0x30]
push edx
mov edx, dword [ebp - 0x74]
push eax
push edi
push ecx
mov ecx, dword [ebp - 0x48]
push edx
push esi
call fcn.4102c0e0
mov esi, eax
mov dword [ebp - 0x80], esi
cmp esi, ebx
jne 0x4102ffcf
push 0x411a29cc
lea eax, [ebp - 0xa4]
push eax
mov dword [ebp - 0xa4], 0xb57
call fcn.4112fac9
cmp dword [ebp - 0x7c], ebx
je 0x41030029
mov eax, dword [ebp - 0x44]
cmp eax, ebx
je 0x41030029
lea ecx, [ebp - 0x78]
push ecx
lea edx, [ebp - 0x58]
push edx
mov edx, dword [ebp - 0x4c]
lea ecx, [ebp - 0x50]
push ecx
mov ecx, dword [ebp - 0x40]
push edx
mov edx, dword [ebp - 0x38]
push ecx
mov ecx, dword [ebp - 0x3c]
push edx
mov edx, dword [ebp - 0x70]
push ecx
push edx
push edi
lea ecx, [ebp - 0x30]
push ecx
mov ecx, dword [ebp - 0x48]
push eax
push esi
call fcn.4102df40
cmp eax, ebx
jne 0x41030029
push 0x411a29cc
lea edx, [ebp - 0xb4]
push edx
mov dword [ebp - 0xb4], 0xb6a
call fcn.4112fac9
cmp dword [ebp - 0x4c], 1
jne 0x41030085
mov eax, dword [ebp - 0x40]
mov ecx, dword [ebp - 0x3c]
mov edx, dword [ebp - 0x38]
push eax
mov eax, dword [ebp - 0x70]
push ecx
push edx
mov edx, dword [ebp - 0x58]
push eax
mov eax, dword [ebp - 0x50]
push edi
lea ecx, [ebp - 0x30]
push ecx
mov ecx, dword [ebp - 0x78]
push edx
xor edx, edx
cmp dword [ebp - 0x44], ebx
push eax
mov eax, dword [ebp - 0x74]
sete dl
push ecx
mov ecx, dword [ebp - 0x48]
push edx
push eax
push esi
call fcn.4102d470
cmp eax, ebx
jne 0x41030085
push 0x411a29cc
lea ecx, [ebp - 0x88]
push ecx
mov dword [ebp - 0x88], 0xb7f
call fcn.4112fac9
push str.STEP_11_11:_Set_our_new_DACL_to_the_file_SD...
push 0x1000001
push 0xb85
push str.WinPrinter.cpp
call fcn.41002c10
mov edx, dword [ebp - 0x64]
mov eax, dword [edx]
add esp, 0x10
push ebx
push esi
push 1
push eax
call dword [sym.imp.ADVAPI32.dll_SetSecurityDescriptorDacl]
test eax, eax
jne 0x410300d0
push 0x411a29cc
lea ecx, [ebp - 0x8c]
push ecx
mov dword [ebp - 0x8c], 0xb87
call fcn.4112fac9
lea ecx, [ebp - 0x70]
mov byte [ebp - 4], bl
call fcn.41008b80
jmp 0x410301aa
push edi
push str.SYSTEM_or_Administrators_would_be_added_or_deleted___s_
push 0x1000008
push 0xae0
push str.WinPrinter.cpp
call fcn.41002c10
add esp, 0x14
push 0x411a29cc
lea edx, [ebp - 0x94]
push edx
mov dword [ebp - 0x5c], 1
mov dword [ebp - 0x94], ebx
call fcn.4112fac9
mov esi, dword [ebp - 0xc8]
xor ebx, ebx
cmp esi, ebx
je 0x410301a2
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push esi
push str.WinPrinter::Access_Rights_failed_LNUMBER__d___GetLastError__d_
push 0x2000001
push 0xb8e
push str.WinPrinter.cpp
call fcn.41002c10
mov esi, dword [ebp - 0x80]
add esp, 0x18
cmp esi, ebx
je 0x4103019f
push esi
push str.____Freed_memory_of_new_ACL..._at___p_
push 0x1000001
push 0xb97
push str.WinPrinter.cpp
call fcn.41002c10
add esp, 0x14
push esi
push ebx
call dword [sym.imp.KERNEL32.dll_GetProcessHeap]
push eax
call dword [sym.imp.KERNEL32.dll_HeapFree]
test eax, eax
jne 0x4103019f
push esi
push str.Freeing_of_memory_of_new_ACL..._at___p__FAILED_
push 0x2000001
push 0xb9c
push str.WinPrinter.cpp
call fcn.41002c10
add esp, 0x14
mov dword [ebp - 0x5c], ebx
mov eax, 0x410301a8
ret
mov eax, dword [ebp - 0x3c]
mov esi, dword [sym.imp.ADVAPI32.dll_FreeSid]
cmp eax, ebx
je 0x410301ba
push eax
call esi
mov eax, dword [ebp - 0x38]
cmp eax, ebx
je 0x410301c4
push eax
call esi
mov eax, dword [ebp - 0x40]
cmp eax, ebx
je 0x410301ce
push eax
call esi
mov eax, dword [ebp - 0x34]
cmp eax, ebx
je 0x410301e4
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_GetProcessHeap]
push eax
call dword [sym.imp.KERNEL32.dll_HeapFree]
mov eax, dword [ebp - 0x5c]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x14]
xor ecx, ebp
call fcn.4112e1a6
mov esp, ebp
pop ebp
ret 0x18