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

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffe64
mov eax, 0x50ed55
push ebx
push esi
push edi
mov esi, dword [ebp + 0x18]
call fcn.004cfcb8
mov dword [ebp - 0x28], 0xffffff9c
push esi
lea edi, [ebp - 0x17c]
mov esi, 0x50ec51
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 0x446303
mov edx, dword [ebp + 0xc]
test edx, edx
jne 0x44630f
mov dword [ebp - 0x28], 0xffffffa5
jmp 0x4469b9
mov ecx, dword [ebp + 8]
mov al, byte [ecx]
test al, al
jne 0x446324
mov dword [ebp - 0x28], 0xffffffa3
jmp 0x4469b9
mov edx, dword [ebp + 0xc]
dec edx
je 0x446361
dec edx
je 0x446374
dec edx
je 0x446387
dec edx
je 0x44639a
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 0x4463ab
lea eax, [ebp - 0x17c]
push eax
push 1
call fcn.00444f88
add esp, 8
jmp 0x4463ab
lea edx, [ebp - 0x17c]
push edx
push 2
call fcn.00444f88
add esp, 8
jmp 0x4463ab
lea ecx, [ebp - 0x17c]
push ecx
push 3
call fcn.00444f88
add esp, 8
jmp 0x4463ab
lea eax, [ebp - 0x17c]
push eax
push 4
call fcn.00444f88
add esp, 8
mov dl, byte [ebp - 0x17c]
test dl, dl
jne 0x4463c1
mov dword [ebp - 0x28], 0xffffffa4
jmp 0x4469b9
test esi, 0x400
je 0x4463d1
mov ecx, dword [ebp + 0x10]
mov dword [ebp - 0x2c], ecx
jmp 0x446403
xor eax, eax
test esi, 0x1000
mov dword [ebp - 0x2c], eax
je 0x4463e5
or dword [ebp - 0x2c], 0x80020089
test esi, 0x10000
je 0x4463f4
or dword [ebp - 0x2c], 0x400f0156
test esi, 0x100000
je 0x446403
or dword [ebp - 0x2c], 0x20020020
test esi, 0x400
je 0x446413
mov edx, dword [ebp + 0x14]
mov dword [ebp - 0x30], edx
jmp 0x446442
xor ecx, ecx
test esi, 0x4000
mov dword [ebp - 0x30], ecx
je 0x446427
or dword [ebp - 0x30], 0x80020089
test esi, 0x40000
je 0x446436
or dword [ebp - 0x30], 0xd0156
test esi, 0x400000
je 0x446442
or dword [ebp - 0x30], 0x20
push 0x5d1617
push 0x5d160a
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 0x44646d
mov dword [ebp - 0x28], 0xffffff97
jmp 0x4469b9
push 0x5d163a
push 0x5d162d
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 0x446498
mov dword [ebp - 0x28], 0xffffff95
jmp 0x4469b9
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 0x4464c7
mov dword [ebp - 0x28], 0xffffff90
jmp 0x4469b9
call sub.KERNEL32.dll_GetLastError
cmp eax, 0x7a
je 0x4464dd
mov dword [ebp - 0x28], 0xffffff8d
jmp 0x4469b9
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 0x446500
mov dword [ebp - 0x28], 0xffffff83
jmp 0x4469b9
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 0x446527
mov dword [ebp - 0x28], 0xffffff79
jmp 0x4469b9
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 0x446556
mov dword [ebp - 0x28], 0xffffff6f
jmp 0x4469b9
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 0x44657d
mov dword [ebp - 0x28], 0xffffff65
jmp 0x4469b9
call sub.KERNEL32.dll_GetLastError
cmp eax, 0x7a
je 0x446593
mov dword [ebp - 0x28], 0xffffff5b
jmp 0x4469b9
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 0x4465ba
mov dword [ebp - 0x28], 0xffffff51
jmp 0x4469b9
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 0x4465e3
mov dword [ebp - 0x28], 0xffffff47
jmp 0x4469b9
push 0x200
mov eax, dword [ebp + 8]
push eax
call fcn.00405b9c
add esp, 8
test eax, eax
je 0x446608
test esi, 0x200
jne 0x446616
or esi, 0x100
jmp 0x446616
test esi, 0x100
jne 0x446616
or esi, 0x200
push 1
lea edx, [ebp - 0x190]
push edx
call sub.ADVAPI32.dll_InitializeSecurityDescriptor
test eax, eax
jne 0x446634
mov dword [ebp - 0x28], 0xffffff3d
jmp 0x4469b9
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 0x446659
mov dword [ebp - 0x28], 0xffffff29
jmp 0x4469b9
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 0x44667f
xor eax, eax
mov dword [ebp - 0x50], eax
mov edx, dword [ebp - 0x50]
test edx, edx
je 0x4466aa
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 0x4466aa
mov dword [ebp - 0x28], 0xffffff1f
jmp 0x4469b9
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 0x4466e8
mov dword [ebp - 0x28], 0xffffff15
jmp 0x4469b9
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 0x446707
mov dword [ebp - 0x28], 0xffffff0b
jmp 0x4469b9
xor eax, eax
test esi, 0x100
je 0x446716
mov eax, 3
mov edx, dword [ebp - 0x30]
test edx, edx
je 0x44673c
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 0x44673c
mov dword [ebp - 0x28], 0xfffffeeb
jmp 0x4469b9
test esi, 0x80
jne 0x4467c9
mov edx, dword [ebp - 0x50]
test edx, edx
je 0x4467c9
mov ecx, dword [ebp - 0x19c]
test ecx, ecx
je 0x4467c9
xor ebx, ebx
jmp 0x4467bf
lea eax, [ebp - 0x60]
push eax
push ebx
mov edx, dword [ebp - 0x4c]
push edx
call sub.ADVAPI32.dll_GetAce
test eax, eax
jne 0x44677b
mov dword [ebp - 0x28], 0xffffff01
jmp 0x4469b9
mov ecx, dword [ebp - 0x60]
test byte [ecx + 1], 0x10
jne 0x4467c9
mov eax, dword [ebp - 0x60]
add eax, 8
push eax
push edi
call sub.ADVAPI32.dll_EqualSid
test eax, eax
jne 0x4467be
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 0x4467be
mov dword [ebp - 0x28], 0xfffffef7
jmp 0x4469b9
inc ebx
mov ecx, dword [ebp - 0x19c]
cmp ebx, ecx
jb 0x44675d
xor eax, eax
test esi, 0x100
je 0x4467d8
mov eax, 3
mov edx, dword [ebp - 0x2c]
test edx, edx
je 0x4467fe
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 0x4467fe
mov dword [ebp - 0x28], 0xfffffeeb
jmp 0x4469b9
test esi, 0x80
jne 0x44686b
mov edx, dword [ebp - 0x50]
test edx, edx
je 0x44686b
mov ecx, dword [ebp - 0x19c]
test ecx, ecx
je 0x44686b
jmp 0x446861
lea eax, [ebp - 0x60]
push eax
push ebx
mov edx, dword [ebp - 0x4c]
push edx
call sub.ADVAPI32.dll_GetAce
test eax, eax
jne 0x446837
mov dword [ebp - 0x28], 0xfffffebb
jmp 0x4469b9
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 0x446860
mov dword [ebp - 0x28], 0xfffffeb1
jmp 0x4469b9
inc ebx
mov eax, dword [ebp - 0x19c]
cmp ebx, eax
jb 0x446819
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 0x44688f
mov dword [ebp - 0x28], 0xfffffea7
jmp 0x4469b9
push 0x5d165c
push 0x5d164f
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 0x446946
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 0x4468ec
mov dword [ebp - 0x28], 0xfffffe9d
jmp 0x4469b9
mov ax, word [ebp - 0x74]
test ah, 4
je 0x4468ff
mov bx, 0x500
mov word [ebp - 0x72], bx
jmp 0x44690c
test ah, 0x10
je 0x44690c
mov bx, 0x1000
mov word [ebp - 0x72], bx
test esi, 0x80
test esi, 0x100
je 0x446924
mov bx, 0x500
mov word [ebp - 0x72], 0x500
test bx, bx
je 0x446946
mov ax, word [ebp - 0x72]
lea edx, [ebp - 0x190]
push eax
push ebx
push edx
call dword [ebp - 0x68]
test eax, eax
jne 0x446946
mov dword [ebp - 0x28], 0xfffffe61
jmp 0x4469b9
push 0x5d1686
push 0x5d1679
call sub.KERNEL32.dll_GetModuleHandleA
push eax
call sub.KERNEL32.dll_GetProcAddress
mov edx, eax
test edx, edx
je 0x446993
test esi, 0x80
mov eax, 4
je 0x446973
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 0x4469b4
mov dword [ebp - 0x28], 0xfffffe4f
jmp 0x4469b9
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 0x4469b4
mov dword [ebp - 0x28], 0xfffffe4d
jmp 0x4469b9
xor edx, edx
mov dword [ebp - 0x28], edx
test edi, edi
je 0x4469cb
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 0x4469e3
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 0x4469fb
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 0x446a13
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 0x446a3a
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