Function at 0x42bcc0
Capabilities:
Compare security identifiers

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x484911
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x680
push ebx
push esi
push edi
mov dword [ebp - 0x10], esp
push 1
push 1
push 1
push 0x21f
push str.._tvt_windowsprocess.cpp
push str.addAccessRights
mov edi, ecx
push str.CTVTWindowsProcess
lea ecx, [ebp - 0x3c]
call fcn.0040e269
xor esi, esi
push esi
lea ecx, [ebp - 0x10c]
mov dword [ebp - 4], esi
mov byte [ebp - 0x30], 0
mov dword [ebp - 0x18], esi
mov dword [ebp - 0x28], esi
mov dword [ebp - 0x34], esi
mov dword [ebp - 0x1c], esi
mov dword [ebp - 0x14], esi
mov dword [ebp - 0x38], 0x10000000
call fcn.004308f0
mov ebx, dword [ebp + 8]
mov eax, dword [ebx + 4]
lea ecx, [ebp - 0x24]
push ecx
push esi
push esi
push 4
mov dword [ebp - 0x24], esi
mov esi, dword [sym.imp.ADVAPI32.dll_GetFileSecurityW]
push eax
mov byte [ebp - 4], 2
call esi
test eax, eax
jne 0x42c55c
mov ebx, dword [sym.imp.KERNEL32.dll_GetLastError]
call ebx
cmp eax, 5
jne 0x42be3e
mov edx, dword [ebp + 8]
push edx
mov ecx, edi
call fcn.0042ba40
test al, al
je 0x42bdc8
mov edi, dword [ebp + 8]
mov eax, dword [edi + 4]
lea ecx, [ebp - 0x24]
push ecx
push 0
push 0
push 4
push eax
call esi
test eax, eax
jne 0x42bd97
call ebx
jmp 0x42be41
mov esi, dword [edi + 4]
push 1
push 1
push 0x251
push str.._tvt_windowsprocess.cpp
call ebx
push eax
push esi
lea ecx, [ebp - 0x68c]
call fcn.0042a130
push 0x4b9914
lea edx, [ebp - 0x68c]
push edx
call sub.MSVCR71.dll__CxxThrowException
call ebx
push 0
push 1
lea ecx, [ebp - 0xbc]
mov esi, eax
call fcn.00402612
push 0
push 0
push 0x256
push str.._tvt_windowsprocess.cpp
push 0
push 0
push 0
push esi
push str.An_unhandled_exception_occurred
push 2
lea ecx, [ebp - 0xa8]
mov byte [ebp - 4], 3
mov dword [ebp - 0xbc], 0x48aee4
call fcn.00410e60
lea ecx, [ebp - 0xbc]
mov byte [ebp - 4], 4
call fcn.00402681
push 0x4b82d0
lea eax, [ebp - 0xbc]
push eax
mov byte [ebp - 4], 2
mov dword [ebp - 0xbc], 0x48aefc
call sub.MSVCR71.dll__CxxThrowException
mov edi, dword [ebp + 8]
cmp eax, 0x7a
je 0x42be77
mov esi, dword [edi + 4]
push 1
push 1
push 0x25b
push str.._tvt_windowsprocess.cpp
call ebx
push eax
push esi
lea ecx, [ebp - 0x14c]
call fcn.0042a130
push 0x4b9914
lea ecx, [ebp - 0x14c]
push ecx
call sub.MSVCR71.dll__CxxThrowException
mov edx, dword [ebp - 0x24]
push edx
call sub.MSVCR71.dll_malloc
add esp, 4
test eax, eax
mov dword [ebp - 0x18], eax
jne 0x42beba
push eax
push 1
push 1
push 0x261
push str.._tvt_windowsprocess.cpp
push str.pFileSD
lea ecx, [ebp - 0x1cc]
call fcn.0040368a
push 0x4afc14
lea eax, [ebp - 0x1cc]
push eax
call sub.MSVCR71.dll__CxxThrowException
mov edx, dword [ebp - 0x24]
mov eax, dword [edi + 4]
lea ecx, [ebp - 0x24]
push ecx
mov ecx, dword [ebp - 0x18]
push edx
push ecx
push 4
push eax
call esi
test eax, eax
push 1
jne 0x42bf03
mov esi, dword [edi + 4]
push 1
push 0x269
push str.._tvt_windowsprocess.cpp
call ebx
push eax
push esi
lea ecx, [ebp - 0x44c]
call fcn.0042a130
push 0x4b9914
lea edx, [ebp - 0x44c]
push edx
call sub.MSVCR71.dll__CxxThrowException
lea eax, [ebp - 0x7c]
push eax
call dword [sym.imp.ADVAPI32.dll_InitializeSecurityDescriptor]
test eax, eax
jne 0x42bf43
push 1
push 1
push 0x276
push str.._tvt_windowsprocess.cpp
call ebx
push eax
push str.newSD
lea ecx, [ebp - 0x24c]
call fcn.0042a020
push 0x4b9904
lea ecx, [ebp - 0x24c]
push ecx
call sub.MSVCR71.dll__CxxThrowException
lea edx, [ebp - 0x50]
push edx
mov edx, dword [ebp - 0x18]
lea eax, [ebp - 0x28]
push eax
lea ecx, [ebp - 0x20]
push ecx
xor esi, esi
push edx
mov dword [ebp - 0x20], esi
mov dword [ebp - 0x50], esi
call dword [sym.imp.ADVAPI32.dll_GetSecurityDescriptorDacl]
test eax, eax
jne 0x42bf97
push 1
push 1
push 0x27f
push str.._tvt_windowsprocess.cpp
call ebx
push eax
push str.pFileSD
lea ecx, [ebp - 0x64c]
call fcn.0042a350
push 0x4b98f4
lea eax, [ebp - 0x64c]
push eax
call sub.MSVCR71.dll__CxxThrowException
mov eax, dword [ebp - 0x28]
cmp eax, esi
mov dword [ebp - 0x4c], esi
mov dword [ebp - 0x44], esi
mov dword [ebp - 0x48], 8
jne 0x42c079
mov dword [ebp - 0x20], esi
mov al, byte [ebp + 0xc]
test al, al
je 0x42c130
lea ecx, [ebp - 0x68]
mov dword [ebp - 0x38], 0xe0000000
xor bl, bl
call fcn.00434530
lea ecx, [ebp - 0x68]
mov byte [ebp - 4], 5
call fcn.004341b0
test al, al
jne 0x42bfea
lea ecx, [ebp - 0x68]
call fcn.00434250
test al, al
je 0x42c046
push 0x44
push 0
mov dword [ebp - 0x2c], 0x44
call dword [sym.imp.KERNEL32.dll_LocalAlloc]
test eax, eax
mov dword [ebp - 0x14], eax
je 0x42c046
push str.Advapi32.dll
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov esi, eax
test esi, esi
je 0x42c046
push 0x492ab4
push esi
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
test eax, eax
je 0x42c037
mov edx, dword [ebp - 0x14]
lea ecx, [ebp - 0x2c]
push ecx
push edx
push 0
push 0x1b
call eax
cmp eax, 1
sete bl
push esi
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
test bl, bl
jne 0x42c0cb
push 0
push 1
push 1
push 0x2b7
push str.._tvt_windowsprocess.cpp
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
lea ecx, [ebp - 0x4cc]
call fcn.004028ad
push 0x4b82d0
lea eax, [ebp - 0x4cc]
push eax
call sub.MSVCR71.dll__CxxThrowException
cmp dword [ebp - 0x20], esi
je 0x42bfb2
push 2
push 0xc
lea ecx, [ebp - 0x4c]
push ecx
push eax
call dword [sym.imp.ADVAPI32.dll_GetAclInformation]
test eax, eax
jne 0x42bfb2
push 1
push 1
push 0x292
push str.._tvt_windowsprocess.cpp
call ebx
push eax
push str.pACL
lea ecx, [ebp - 0x2cc]
call fcn.0042a570
push 0x4b98e4
lea edx, [ebp - 0x2cc]
push edx
call sub.MSVCR71.dll__CxxThrowException
lea ecx, [ebp - 0x68]
mov byte [ebp - 4], 2
call fcn.00434170
mov ebx, dword [sym.imp.KERNEL32.dll_GetLastError]
mov eax, dword [ebp - 0x14]
push eax
call dword [sym.imp.ADVAPI32.dll_GetLengthSid]
mov ecx, dword [ebp - 0x48]
lea esi, [eax + ecx + 8]
push esi
call sub.MSVCR71.dll_malloc
mov edi, eax
add esp, 4
test edi, edi
mov dword [ebp - 0x34], edi
jne 0x42c171
push eax
push 1
push 1
push 0x2c8
push str.._tvt_windowsprocess.cpp
push str.pNewACL
lea ecx, [ebp - 0x5cc]
call fcn.0040368a
push 0x4afc14
lea edx, [ebp - 0x5cc]
push edx
call sub.MSVCR71.dll__CxxThrowException
lea ecx, [ebp - 0x14]
push ecx
lea ecx, [ebp - 0x10c]
call fcn.004320d0
test al, al
jne 0x42c0dd
push esi
push 1
push 1
push 0x2bc
push str.._tvt_windowsprocess.cpp
call ebx
push eax
lea ecx, [ebp - 0x34c]
call fcn.004028ad
push 0x4b82d0
lea edx, [ebp - 0x34c]
push edx
call sub.MSVCR71.dll__CxxThrowException
push 2
push esi
push edi
call dword [sym.imp.ADVAPI32.dll_InitializeAcl]
test eax, eax
jne 0x42c1b1
push 1
push 1
push 0x2ce
push str.._tvt_windowsprocess.cpp
call ebx
push eax
push str.pNewACL
lea ecx, [ebp - 0x3cc]
call fcn.0042a680
push 0x4b98d4
lea eax, [ebp - 0x3cc]
push eax
call sub.MSVCR71.dll__CxxThrowException
mov eax, dword [ebp - 0x20]
xor esi, esi
cmp eax, esi
mov dword [ebp - 0x2c], esi
je 0x42c28c
cmp dword [ebp - 0x4c], esi
je 0x42c28c
lea ebx, [ebx]
cmp esi, dword [ebp - 0x4c]
jae 0x42c28c
mov edx, dword [ebp - 0x28]
lea ecx, [ebp - 0x1c]
push ecx
push esi
push edx
call dword [sym.imp.ADVAPI32.dll_GetAce]
test eax, eax
jne 0x42c21e
push 1
push 1
push 0x2e6
push str.._tvt_windowsprocess.cpp
call ebx
push eax
push str.pACL
lea ecx, [ebp - 0x54c]
call fcn.0042a790
push 0x4b98c4
lea eax, [ebp - 0x54c]
push eax
call sub.MSVCR71.dll__CxxThrowException
mov eax, dword [ebp - 0x1c]
test byte [eax + 1], 0x10
jne 0x42c28c
mov ecx, dword [ebp - 0x14]
add eax, 8
push eax
push ecx
call dword [sym.imp.ADVAPI32.dll_EqualSid]
test eax, eax
jne 0x42c286
mov eax, dword [ebp - 0x1c]
movzx edx, word [eax + 2]
push edx
push eax
push 0xffffffffffffffff
push 2
push edi
call dword [sym.imp.ADVAPI32.dll_AddAce]
test eax, eax
jne 0x42c283
push 1
push 1
push 0x2fe
push str.._tvt_windowsprocess.cpp
call ebx
push eax
push str.pNewACL
lea ecx, [ebp - 0x18c]
call fcn.0042a8a0
push 0x4b98b4
lea eax, [ebp - 0x18c]
push eax
call sub.MSVCR71.dll__CxxThrowException
inc dword [ebp - 0x2c]
inc esi
jmp 0x42c1d0
mov ecx, dword [ebp - 0x14]
mov edx, dword [ebp - 0x38]
push ecx
push edx
push 2
push edi
call dword [sym.imp.ADVAPI32.dll_AddAccessAllowedAce]
test eax, eax
jne 0x42c2d3
push 1
push 1
push 0x30a
push str.._tvt_windowsprocess.cpp
call ebx
push eax
push str.pNewACL
lea ecx, [ebp - 0x20c]
call fcn.0042a9b0
push 0x4b98a4
lea eax, [ebp - 0x20c]
push eax
call sub.MSVCR71.dll__CxxThrowException
mov eax, dword [ebp - 0x20]
test eax, eax
je 0x42c38e
mov eax, dword [ebp - 0x4c]
test eax, eax
je 0x42c38e
lea esp, [esp]
cmp esi, dword [ebp - 0x4c]
jae 0x42c38e
mov edx, dword [ebp - 0x28]
lea ecx, [ebp - 0x1c]
push ecx
push esi
push edx
call dword [sym.imp.ADVAPI32.dll_GetAce]
test eax, eax
jne 0x42c33e
push 1
push 1
push 0x318
push str.._tvt_windowsprocess.cpp
call ebx
push eax
push str.pACL
lea ecx, [ebp - 0x28c]
call fcn.0042a790
push 0x4b98c4
lea eax, [ebp - 0x28c]
push eax
call sub.MSVCR71.dll__CxxThrowException
mov eax, dword [ebp - 0x1c]
movzx ecx, word [eax + 2]
push ecx
push eax
push 0xffffffffffffffff
push 2
push edi
call dword [sym.imp.ADVAPI32.dll_AddAce]
test eax, eax
jne 0x42c388
push 1
push 1
push 0x31f
push str.._tvt_windowsprocess.cpp
call ebx
push eax
push str.pNewACL
lea ecx, [ebp - 0x30c]
call fcn.0042a8a0
push 0x4b98b4
lea edx, [ebp - 0x30c]
push edx
call sub.MSVCR71.dll__CxxThrowException
inc esi
jmp 0x42c2f0
xor esi, esi
push esi
push edi
push 1
lea eax, [ebp - 0x7c]
push eax
call dword [sym.imp.ADVAPI32.dll_SetSecurityDescriptorDacl]
test eax, eax
jne 0x42c3d4
push 1
push 1
push 0x328
push str.._tvt_windowsprocess.cpp
call ebx
push eax
push str.newSD
lea ecx, [ebp - 0x38c]
call fcn.0042a460
push 0x4b9894
lea ecx, [ebp - 0x38c]
push ecx
call sub.MSVCR71.dll__CxxThrowException
lea edx, [ebp - 0x54]
push edx
lea eax, [ebp - 0x40]
mov dword [ebp - 0x40], esi
mov dword [ebp - 0x54], esi
mov esi, dword [ebp - 0x18]
push eax
push esi
call dword [sym.imp.ADVAPI32.dll_GetSecurityDescriptorControl]
test eax, eax
jne 0x42c422
push 1
push 1
push 0x336
push str.._tvt_windowsprocess.cpp
call ebx
push eax
push str.pFileSD
lea ecx, [ebp - 0x40c]
call fcn.0042aac0
push 0x4b9884
lea ecx, [ebp - 0x40c]
push ecx
call sub.MSVCR71.dll__CxxThrowException
mov eax, dword [ebp - 0x40]
test ah, 4
je 0x42c433
mov eax, 0x500
mov ecx, eax
jmp 0x42c43f
test ah, 0x10
je 0x42c481
mov eax, 0x1000
mov ecx, eax
push ecx
push eax
lea edx, [ebp - 0x7c]
push edx
call dword [sym.imp.ADVAPI32.dll_SetSecurityDescriptorControl]
test eax, eax
jne 0x42c481
push 1
push 1
push 0x34c
push str.._tvt_windowsprocess.cpp
call ebx
push eax
push str.newSD
lea ecx, [ebp - 0x48c]
call fcn.0042abd0
push 0x4b9874
lea eax, [ebp - 0x48c]
push eax
call sub.MSVCR71.dll__CxxThrowException
mov ecx, dword [ebp + 8]
mov eax, dword [ecx + 4]
lea edx, [ebp - 0x7c]
push edx
mov ecx, 4
push ecx
push eax
call dword [sym.imp.ADVAPI32.dll_SetFileSecurityW]
test eax, eax
jne 0x42c4d0
mov eax, dword [ebp + 8]
mov esi, dword [eax + 4]
push 1
push 1
push 0x354
push str.._tvt_windowsprocess.cpp
call ebx
push eax
push esi
lea ecx, [ebp - 0x50c]
call fcn.0042a240
push 0x4b9864
lea ecx, [ebp - 0x50c]
push ecx
call sub.MSVCR71.dll__CxxThrowException
test edi, edi
je 0x42c4dd
push edi
call sub.MSVCR71.dll_free
add esp, 4
test esi, esi
je 0x42c4ea
push esi
call sub.MSVCR71.dll_free
add esp, 4
mov eax, dword [ebp - 0x14]
test eax, eax
je 0x42c50c
mov cl, byte [ebp + 0xc]
test cl, cl
push eax
je 0x42c501
call dword [sym.imp.KERNEL32.dll_LocalFree]
jmp 0x42c50c
lea ecx, [ebp - 0x10c]
call fcn.00432790
mov byte [ebp - 0x30], 1
mov ecx, dword [ebp - 0x30]
push ecx
lea ecx, [ebp - 0x3c]
mov dword [ebp - 4], 1
call fcn.00411270
lea ecx, [ebp - 0x10c]
mov byte [ebp - 4], 0
call fcn.00430990
mov ecx, dword [ebp - 0x3c]
test ecx, ecx
mov dword [ebp - 4], 0xffffffff
je 0x42c546
mov edx, dword [ecx]
push 1
call dword [edx]
mov ecx, dword [ebp - 0xc]
mov al, byte [ebp - 0x30]
pop edi
pop esi
mov dword fs:[0], ecx
pop ebx
mov esp, ebp
pop ebp
ret 8
mov esi, dword [ebx + 4]
push 1
push 1
push 0x26e
push str.._tvt_windowsprocess.cpp
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push esi
lea ecx, [ebp - 0x58c]
call fcn.0042a130
push 0x4b9914
lea edx, [ebp - 0x58c]
push edx
call sub.MSVCR71.dll__CxxThrowException
mov eax, dword [ebp - 0x34]
test eax, eax
je 0x42c5a1
push eax
call sub.MSVCR71.dll_free
add esp, 4
mov eax, dword [ebp - 0x18]
test eax, eax
je 0x42c5b1
push eax
call sub.MSVCR71.dll_free
add esp, 4
mov eax, dword [ebp - 0x14]
test eax, eax
je 0x42c5d3
mov cl, byte [ebp + 0xc]
test cl, cl
push eax
je 0x42c5c8
call dword [sym.imp.KERNEL32.dll_LocalFree]
jmp 0x42c5d3
lea ecx, [ebp - 0x10c]
call fcn.00432790
mov ecx, dword [ebp - 0x58]
mov al, byte [ecx + 0xa]
test al, al
jne 0x42c5e2
mov eax, dword [ecx]
call dword [eax + 4]
mov eax, 0x42c510
ret