Function at 0x4467b8
Capabilities:
Compare security identifiers
Get user security identifier

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffe64
mov eax, 0x510199
push ebx
push esi
push edi
mov esi, dword [ebp + 0x18]
call fcn.004d08c0
mov dword [ebp - 0x28], 0xffffff9c
push esi
lea edi, [ebp - 0x17c]
mov esi, 0x510095
mov ecx, 0x41
rep movsd dword es:[edi], dword [esi]
xor eax, eax
pop esi
mov dword [ebp - 0x38], eax
xor edx, edx
mov dword [ebp - 0x3c], edx
xor eax, eax
mov dword [ebp - 0x40], eax
xor edx, edx
mov dword [ebp - 0x44], edx
xor ecx, ecx
mov dword [ebp - 0x48], ecx
xor eax, eax
mov dword [ebp - 0x4c], eax
xor edx, edx
xor ecx, ecx
mov dword [ebp - 0x58], edx
mov dword [ebp - 0x60], ecx
xor edi, edi
mov dword [ebp - 0x64], 4
mov word [ebp - 0x14], 8
mov eax, dword [ebp + 8]
xor ebx, ebx
test eax, eax
je 0x446833
mov edx, dword [ebp + 0xc]
test edx, edx
jne 0x44683f
mov dword [ebp - 0x28], 0xffffffa5
jmp 0x446ee9
mov ecx, dword [ebp + 8]
mov al, byte [ecx]
test al, al
jne 0x446854
mov dword [ebp - 0x28], 0xffffffa3
jmp 0x446ee9
mov edx, dword [ebp + 0xc]
dec edx
je 0x446891
dec edx
je 0x4468a4
dec edx
je 0x4468b7
dec edx
je 0x4468ca
mov ecx, dword [ebp + 0xc]
push esi
push edi
mov edi, ecx
xor eax, eax
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
lea esi, [ebp - 0x17c]
xchg edi, esi
mov edx, ecx
mov eax, edi
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
pop edi
pop esi
jmp 0x4468db
lea eax, [ebp - 0x17c]
push eax
push 1
call fcn.004454b8
add esp, 8
jmp 0x4468db
lea edx, [ebp - 0x17c]
push edx
push 2
call fcn.004454b8
add esp, 8
jmp 0x4468db
lea ecx, [ebp - 0x17c]
push ecx
push 3
call fcn.004454b8
add esp, 8
jmp 0x4468db
lea eax, [ebp - 0x17c]
push eax
push 4
call fcn.004454b8
add esp, 8
mov dl, byte [ebp - 0x17c]
test dl, dl
jne 0x4468f1
mov dword [ebp - 0x28], 0xffffffa4
jmp 0x446ee9
test esi, 0x400
je 0x446901
mov ecx, dword [ebp + 0x10]
mov dword [ebp - 0x2c], ecx
jmp 0x446933
xor eax, eax
test esi, 0x1000
mov dword [ebp - 0x2c], eax
je 0x446915
or dword [ebp - 0x2c], 0x80020089
test esi, 0x10000
je 0x446924
or dword [ebp - 0x2c], 0x400f0156
test esi, 0x100000
je 0x446933
or dword [ebp - 0x2c], 0x20020020
test esi, 0x400
je 0x446943
mov edx, dword [ebp + 0x14]
mov dword [ebp - 0x30], edx
jmp 0x446972
xor ecx, ecx
test esi, 0x4000
mov dword [ebp - 0x30], ecx
je 0x446957
or dword [ebp - 0x30], 0x80020089
test esi, 0x40000
je 0x446966
or dword [ebp - 0x30], 0xd0156
test esi, 0x400000
je 0x446972
or dword [ebp - 0x30], 0x20
push 0x5d2c39
push 0x5d2c2c
call sub.KERNEL32.dll_GetModuleHandleA
push eax
call sub.KERNEL32.dll_GetProcAddress
mov dword [ebp - 0x6c], eax
mov eax, dword [ebp - 0x6c]
test eax, eax
jne 0x44699d
mov dword [ebp - 0x28], 0xffffff97
jmp 0x446ee9
push 0x5d2c5c
push 0x5d2c4f
call sub.KERNEL32.dll_GetModuleHandleA
push eax
call sub.KERNEL32.dll_GetProcAddress
mov dword [ebp - 0x70], eax
mov edx, dword [ebp - 0x70]
test edx, edx
jne 0x4469c8
mov dword [ebp - 0x28], 0xffffff95
jmp 0x446ee9
lea ecx, [ebp - 0x34]
lea eax, [ebp - 0x3c]
push ecx
push eax
mov edx, dword [ebp - 0x38]
lea ecx, [ebp - 0x40]
push edx
push ecx
push edi
lea eax, [ebp - 0x17c]
push eax
push 0
call sub.ADVAPI32.dll_LookupAccountNameA
test eax, eax
je 0x4469f7
mov dword [ebp - 0x28], 0xffffff90
jmp 0x446ee9
call sub.KERNEL32.dll_GetLastError
cmp eax, 0x7a
je 0x446a0d
mov dword [ebp - 0x28], 0xffffff8d
jmp 0x446ee9
mov edx, dword [ebp - 0x40]
push edx
push 8
call sub.KERNEL32.dll_GetProcessHeap
push eax
call sub.KERNEL32.dll_HeapAlloc
mov edi, eax
test edi, edi
jne 0x446a30
mov dword [ebp - 0x28], 0xffffff83
jmp 0x446ee9
mov eax, dword [ebp - 0x3c]
push eax
push 8
call sub.KERNEL32.dll_GetProcessHeap
push eax
call sub.KERNEL32.dll_HeapAlloc
mov dword [ebp - 0x38], eax
mov edx, dword [ebp - 0x38]
test edx, edx
jne 0x446a57
mov dword [ebp - 0x28], 0xffffff79
jmp 0x446ee9
lea ecx, [ebp - 0x34]
lea eax, [ebp - 0x3c]
push ecx
push eax
mov edx, dword [ebp - 0x38]
lea ecx, [ebp - 0x40]
push edx
push ecx
push edi
lea eax, [ebp - 0x17c]
push eax
push 0
call sub.ADVAPI32.dll_LookupAccountNameA
test eax, eax
jne 0x446a86
mov dword [ebp - 0x28], 0xffffff6f
jmp 0x446ee9
lea edx, [ebp - 0x48]
push edx
push 0
mov ecx, dword [ebp - 0x44]
push ecx
mov eax, dword [ebp - 0x64]
push eax
mov edx, dword [ebp + 8]
push edx
call sub.ADVAPI32.dll_GetFileSecurityA
test eax, eax
je 0x446aad
mov dword [ebp - 0x28], 0xffffff65
jmp 0x446ee9
call sub.KERNEL32.dll_GetLastError
cmp eax, 0x7a
je 0x446ac3
mov dword [ebp - 0x28], 0xffffff5b
jmp 0x446ee9
mov ecx, dword [ebp - 0x48]
push ecx
push 8
call sub.KERNEL32.dll_GetProcessHeap
push eax
call sub.KERNEL32.dll_HeapAlloc
mov dword [ebp - 0x44], eax
mov eax, dword [ebp - 0x44]
test eax, eax
jne 0x446aea
mov dword [ebp - 0x28], 0xffffff51
jmp 0x446ee9
lea edx, [ebp - 0x48]
push edx
mov ecx, dword [ebp - 0x48]
push ecx
mov eax, dword [ebp - 0x44]
push eax
mov edx, dword [ebp - 0x64]
push edx
mov ecx, dword [ebp + 8]
push ecx
call sub.ADVAPI32.dll_GetFileSecurityA
test eax, eax
jne 0x446b13
mov dword [ebp - 0x28], 0xffffff47
jmp 0x446ee9
push 0x200
mov eax, dword [ebp + 8]
push eax
call fcn.00405b9c
add esp, 8
test eax, eax
je 0x446b38
test esi, 0x200
jne 0x446b46
or esi, 0x100
jmp 0x446b46
test esi, 0x100
jne 0x446b46
or esi, 0x200
push 1
lea edx, [ebp - 0x190]
push edx
call sub.ADVAPI32.dll_InitializeSecurityDescriptor
test eax, eax
jne 0x446b64
mov dword [ebp - 0x28], 0xffffff3d
jmp 0x446ee9
lea ecx, [ebp - 0x54]
push ecx
lea eax, [ebp - 0x4c]
push eax
lea edx, [ebp - 0x50]
push edx
mov ecx, dword [ebp - 0x44]
push ecx
call sub.ADVAPI32.dll_GetSecurityDescriptorDacl
test eax, eax
jne 0x446b89
mov dword [ebp - 0x28], 0xffffff29
jmp 0x446ee9
xor eax, eax
xor edx, edx
mov dword [ebp - 0x19c], eax
mov dword [ebp - 0x194], edx
mov dword [ebp - 0x198], 8
mov ecx, dword [ebp - 0x4c]
test ecx, ecx
jne 0x446baf
xor eax, eax
mov dword [ebp - 0x50], eax
mov edx, dword [ebp - 0x50]
test edx, edx
je 0x446bda
push 2
lea ecx, [ebp - 0x19c]
push 0xc
push ecx
mov eax, dword [ebp - 0x4c]
push eax
call sub.ADVAPI32.dll_GetAclInformation
test eax, eax
jne 0x446bda
mov dword [ebp - 0x28], 0xffffff1f
jmp 0x446ee9
push edi
call sub.ADVAPI32.dll_GetLengthSid
mov edx, dword [ebp - 0x198]
add eax, edx
add eax, 0x30
sub eax, 4
mov dword [ebp - 0x5c], eax
mov ecx, dword [ebp - 0x5c]
push ecx
push 8
call sub.KERNEL32.dll_GetProcessHeap
push eax
call sub.KERNEL32.dll_HeapAlloc
mov dword [ebp - 0x58], eax
mov eax, dword [ebp - 0x58]
test eax, eax
jne 0x446c18
mov dword [ebp - 0x28], 0xffffff15
jmp 0x446ee9
push 2
mov edx, dword [ebp - 0x5c]
push edx
mov ecx, dword [ebp - 0x58]
push ecx
call sub.ADVAPI32.dll_InitializeAcl
test eax, eax
jne 0x446c37
mov dword [ebp - 0x28], 0xffffff0b
jmp 0x446ee9
xor eax, eax
test esi, 0x100
je 0x446c46
mov eax, 3
mov edx, dword [ebp - 0x30]
test edx, edx
je 0x446c6c
push edi
mov ecx, dword [ebp - 0x30]
push ecx
push eax
push 2
mov eax, dword [ebp - 0x58]
push eax
call dword [ebp - 0x70]
test eax, eax
jne 0x446c6c
mov dword [ebp - 0x28], 0xfffffeeb
jmp 0x446ee9
test esi, 0x80
jne 0x446cf9
mov edx, dword [ebp - 0x50]
test edx, edx
je 0x446cf9
mov ecx, dword [ebp - 0x19c]
test ecx, ecx
je 0x446cf9
xor ebx, ebx
jmp 0x446cef
lea eax, [ebp - 0x60]
push eax
push ebx
mov edx, dword [ebp - 0x4c]
push edx
call sub.ADVAPI32.dll_GetAce
test eax, eax
jne 0x446cab
mov dword [ebp - 0x28], 0xffffff01
jmp 0x446ee9
mov ecx, dword [ebp - 0x60]
test byte [ecx + 1], 0x10
jne 0x446cf9
mov eax, dword [ebp - 0x60]
add eax, 8
push eax
push edi
call sub.ADVAPI32.dll_EqualSid
test eax, eax
jne 0x446cee
mov edx, dword [ebp - 0x60]
movzx ecx, word [edx + 2]
push ecx
mov eax, dword [ebp - 0x60]
push eax
push 0xffffffffffffffff
push 2
mov edx, dword [ebp - 0x58]
push edx
call sub.ADVAPI32.dll_AddAce
test eax, eax
jne 0x446cee
mov dword [ebp - 0x28], 0xfffffef7
jmp 0x446ee9
inc ebx
mov ecx, dword [ebp - 0x19c]
cmp ebx, ecx
jb 0x446c8d
xor eax, eax
test esi, 0x100
je 0x446d08
mov eax, 3
mov edx, dword [ebp - 0x2c]
test edx, edx
je 0x446d2e
push edi
mov ecx, dword [ebp - 0x2c]
push ecx
push eax
push 2
mov eax, dword [ebp - 0x58]
push eax
call dword [ebp - 0x6c]
test eax, eax
jne 0x446d2e
mov dword [ebp - 0x28], 0xfffffeeb
jmp 0x446ee9
test esi, 0x80
jne 0x446d9b
mov edx, dword [ebp - 0x50]
test edx, edx
je 0x446d9b
mov ecx, dword [ebp - 0x19c]
test ecx, ecx
je 0x446d9b
jmp 0x446d91
lea eax, [ebp - 0x60]
push eax
push ebx
mov edx, dword [ebp - 0x4c]
push edx
call sub.ADVAPI32.dll_GetAce
test eax, eax
jne 0x446d67
mov dword [ebp - 0x28], 0xfffffebb
jmp 0x446ee9
mov ecx, dword [ebp - 0x60]
movzx eax, word [ecx + 2]
push eax
mov edx, dword [ebp - 0x60]
push edx
push 0xffffffffffffffff
push 2
mov ecx, dword [ebp - 0x58]
push ecx
call sub.ADVAPI32.dll_AddAce
test eax, eax
jne 0x446d90
mov dword [ebp - 0x28], 0xfffffeb1
jmp 0x446ee9
inc ebx
mov eax, dword [ebp - 0x19c]
cmp ebx, eax
jb 0x446d49
push 0
lea ecx, [ebp - 0x190]
mov edx, dword [ebp - 0x58]
push edx
push 1
push ecx
call sub.ADVAPI32.dll_SetSecurityDescriptorDacl
test eax, eax
jne 0x446dbf
mov dword [ebp - 0x28], 0xfffffea7
jmp 0x446ee9
push 0x5d2c7e
push 0x5d2c71
call sub.KERNEL32.dll_GetModuleHandleA
push eax
call sub.KERNEL32.dll_GetProcAddress
mov dword [ebp - 0x68], eax
mov eax, dword [ebp - 0x68]
test eax, eax
je 0x446e76
mov word [ebp - 0x14], 8
mov word [ebp - 0x72], 0
mov word [ebp - 0x74], 0
xor ebx, ebx
xor eax, eax
mov dword [ebp - 0x78], eax
lea edx, [ebp - 0x78]
push edx
lea ecx, [ebp - 0x74]
push ecx
mov eax, dword [ebp - 0x44]
push eax
call sub.ADVAPI32.dll_GetSecurityDescriptorControl
test eax, eax
jne 0x446e1c
mov dword [ebp - 0x28], 0xfffffe9d
jmp 0x446ee9
mov ax, word [ebp - 0x74]
test ah, 4
je 0x446e2f
mov bx, 0x500
mov word [ebp - 0x72], bx
jmp 0x446e3c
test ah, 0x10
je 0x446e3c
mov bx, 0x1000
mov word [ebp - 0x72], bx
test esi, 0x80
test esi, 0x100
je 0x446e54
mov bx, 0x500
mov word [ebp - 0x72], 0x500
test bx, bx
je 0x446e76
mov ax, word [ebp - 0x72]
lea edx, [ebp - 0x190]
push eax
push ebx
push edx
call dword [ebp - 0x68]
test eax, eax
jne 0x446e76
mov dword [ebp - 0x28], 0xfffffe61
jmp 0x446ee9
push 0x5d2ca8
push 0x5d2c9b
call sub.KERNEL32.dll_GetModuleHandleA
push eax
call sub.KERNEL32.dll_GetProcAddress
mov edx, eax
test edx, edx
je 0x446ec3
test esi, 0x80
mov eax, 4
je 0x446ea3
or eax, 0x80000000
push 0
mov ecx, dword [ebp - 0x58]
push ecx
push 0
push 0
push eax
push 1
mov eax, dword [ebp + 8]
push eax
call edx
test eax, eax
je 0x446ee4
mov dword [ebp - 0x28], 0xfffffe4f
jmp 0x446ee9
lea edx, [ebp - 0x190]
push edx
mov ecx, dword [ebp - 0x64]
push ecx
mov eax, dword [ebp + 8]
push eax
call sub.ADVAPI32.dll_SetFileSecurityA
test eax, eax
jne 0x446ee4
mov dword [ebp - 0x28], 0xfffffe4d
jmp 0x446ee9
xor edx, edx
mov dword [ebp - 0x28], edx
test edi, edi
je 0x446efb
push edi
push 0
call sub.KERNEL32.dll_GetProcessHeap
push eax
call sub.KERNEL32.dll_HeapFree
mov ecx, dword [ebp - 0x38]
test ecx, ecx
je 0x446f13
mov eax, dword [ebp - 0x38]
push eax
push 0
call sub.KERNEL32.dll_GetProcessHeap
push eax
call sub.KERNEL32.dll_HeapFree
mov edx, dword [ebp - 0x44]
test edx, edx
je 0x446f2b
mov ecx, dword [ebp - 0x44]
push ecx
push 0
call sub.KERNEL32.dll_GetProcessHeap
push eax
call sub.KERNEL32.dll_HeapFree
mov eax, dword [ebp - 0x58]
test eax, eax
je 0x446f43
mov edx, dword [ebp - 0x58]
push edx
push 0
call sub.KERNEL32.dll_GetProcessHeap
push eax
call sub.KERNEL32.dll_HeapFree
mov word [ebp - 0x14], 0
jmp 0x446f6a
mov eax, dword [ebp - 0x28]
mov edx, dword [ebp - 0x24]
mov dword fs:[0], edx
mov esp, ebp
mov edi, dword [ebp - 0x1a8]
mov esi, dword [ebp - 0x1a4]
mov ebx, dword [ebp - 0x1a0]
pop ebp
ret