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

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffe64
mov eax, 0x521f6d
push ebx
push esi
push edi
mov esi, dword [ebp + 0x18]
call fcn.004d57f0
mov dword [ebp - 0x28], 0xffffff9c
push esi
lea edi, [ebp - 0x17c]
mov esi, 0x521e69
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 0x448947
mov edx, dword [ebp + 0xc]
test edx, edx
jne 0x448953
mov dword [ebp - 0x28], 0xffffffa5
jmp 0x448ffd
mov ecx, dword [ebp + 8]
mov al, byte [ecx]
test al, al
jne 0x448968
mov dword [ebp - 0x28], 0xffffffa3
jmp 0x448ffd
mov edx, dword [ebp + 0xc]
dec edx
je 0x4489a5
dec edx
je 0x4489b8
dec edx
je 0x4489cb
dec edx
je 0x4489de
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 0x4489ef
lea eax, [ebp - 0x17c]
push eax
push 1
call fcn.004475cc
add esp, 8
jmp 0x4489ef
lea edx, [ebp - 0x17c]
push edx
push 2
call fcn.004475cc
add esp, 8
jmp 0x4489ef
lea ecx, [ebp - 0x17c]
push ecx
push 3
call fcn.004475cc
add esp, 8
jmp 0x4489ef
lea eax, [ebp - 0x17c]
push eax
push 4
call fcn.004475cc
add esp, 8
mov dl, byte [ebp - 0x17c]
test dl, dl
jne 0x448a05
mov dword [ebp - 0x28], 0xffffffa4
jmp 0x448ffd
test esi, 0x400
je 0x448a15
mov ecx, dword [ebp + 0x10]
mov dword [ebp - 0x2c], ecx
jmp 0x448a47
xor eax, eax
test esi, 0x1000
mov dword [ebp - 0x2c], eax
je 0x448a29
or dword [ebp - 0x2c], 0x80020089
test esi, 0x10000
je 0x448a38
or dword [ebp - 0x2c], 0x400f0156
test esi, 0x100000
je 0x448a47
or dword [ebp - 0x2c], 0x20020020
test esi, 0x400
je 0x448a57
mov edx, dword [ebp + 0x14]
mov dword [ebp - 0x30], edx
jmp 0x448a86
xor ecx, ecx
test esi, 0x4000
mov dword [ebp - 0x30], ecx
je 0x448a6b
or dword [ebp - 0x30], 0x80020089
test esi, 0x40000
je 0x448a7a
or dword [ebp - 0x30], 0xd0156
test esi, 0x400000
je 0x448a86
or dword [ebp - 0x30], 0x20
push 0x5ec175
push 0x5215b2
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 0x448ab1
mov dword [ebp - 0x28], 0xffffff97
jmp 0x448ffd
push 0x5ec18b
push 0x5215b2
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 0x448adc
mov dword [ebp - 0x28], 0xffffff95
jmp 0x448ffd
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 0x448b0b
mov dword [ebp - 0x28], 0xffffff90
jmp 0x448ffd
call sub.KERNEL32.dll_GetLastError
cmp eax, 0x7a
je 0x448b21
mov dword [ebp - 0x28], 0xffffff8d
jmp 0x448ffd
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 0x448b44
mov dword [ebp - 0x28], 0xffffff83
jmp 0x448ffd
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 0x448b6b
mov dword [ebp - 0x28], 0xffffff79
jmp 0x448ffd
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 0x448b9a
mov dword [ebp - 0x28], 0xffffff6f
jmp 0x448ffd
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 0x448bc1
mov dword [ebp - 0x28], 0xffffff65
jmp 0x448ffd
call sub.KERNEL32.dll_GetLastError
cmp eax, 0x7a
je 0x448bd7
mov dword [ebp - 0x28], 0xffffff5b
jmp 0x448ffd
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 0x448bfe
mov dword [ebp - 0x28], 0xffffff51
jmp 0x448ffd
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 0x448c27
mov dword [ebp - 0x28], 0xffffff47
jmp 0x448ffd
push 0x200
mov eax, dword [ebp + 8]
push eax
call fcn.00405c58
add esp, 8
test eax, eax
je 0x448c4c
test esi, 0x200
jne 0x448c5a
or esi, 0x100
jmp 0x448c5a
test esi, 0x100
jne 0x448c5a
or esi, 0x200
push 1
lea edx, [ebp - 0x190]
push edx
call sub.ADVAPI32.dll_InitializeSecurityDescriptor
test eax, eax
jne 0x448c78
mov dword [ebp - 0x28], 0xffffff3d
jmp 0x448ffd
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 0x448c9d
mov dword [ebp - 0x28], 0xffffff29
jmp 0x448ffd
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 0x448cc3
xor eax, eax
mov dword [ebp - 0x50], eax
mov edx, dword [ebp - 0x50]
test edx, edx
je 0x448cee
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 0x448cee
mov dword [ebp - 0x28], 0xffffff1f
jmp 0x448ffd
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 0x448d2c
mov dword [ebp - 0x28], 0xffffff15
jmp 0x448ffd
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 0x448d4b
mov dword [ebp - 0x28], 0xffffff0b
jmp 0x448ffd
xor eax, eax
test esi, 0x100
je 0x448d5a
mov eax, 3
mov edx, dword [ebp - 0x30]
test edx, edx
je 0x448d80
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 0x448d80
mov dword [ebp - 0x28], 0xfffffeeb
jmp 0x448ffd
test esi, 0x80
jne 0x448e0d
mov edx, dword [ebp - 0x50]
test edx, edx
je 0x448e0d
mov ecx, dword [ebp - 0x19c]
test ecx, ecx
je 0x448e0d
xor ebx, ebx
jmp 0x448e03
lea eax, [ebp - 0x60]
push eax
push ebx
mov edx, dword [ebp - 0x4c]
push edx
call sub.ADVAPI32.dll_GetAce
test eax, eax
jne 0x448dbf
mov dword [ebp - 0x28], 0xffffff01
jmp 0x448ffd
mov ecx, dword [ebp - 0x60]
test byte [ecx + 1], 0x10
jne 0x448e0d
mov eax, dword [ebp - 0x60]
add eax, 8
push eax
push edi
call sub.ADVAPI32.dll_EqualSid
test eax, eax
jne 0x448e02
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 0x448e02
mov dword [ebp - 0x28], 0xfffffef7
jmp 0x448ffd
inc ebx
mov ecx, dword [ebp - 0x19c]
cmp ebx, ecx
jb 0x448da1
xor eax, eax
test esi, 0x100
je 0x448e1c
mov eax, 3
mov edx, dword [ebp - 0x2c]
test edx, edx
je 0x448e42
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 0x448e42
mov dword [ebp - 0x28], 0xfffffeeb
jmp 0x448ffd
test esi, 0x80
jne 0x448eaf
mov edx, dword [ebp - 0x50]
test edx, edx
je 0x448eaf
mov ecx, dword [ebp - 0x19c]
test ecx, ecx
je 0x448eaf
jmp 0x448ea5
lea eax, [ebp - 0x60]
push eax
push ebx
mov edx, dword [ebp - 0x4c]
push edx
call sub.ADVAPI32.dll_GetAce
test eax, eax
jne 0x448e7b
mov dword [ebp - 0x28], 0xfffffebb
jmp 0x448ffd
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 0x448ea4
mov dword [ebp - 0x28], 0xfffffeb1
jmp 0x448ffd
inc ebx
mov eax, dword [ebp - 0x19c]
cmp ebx, eax
jb 0x448e5d
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 0x448ed3
mov dword [ebp - 0x28], 0xfffffea7
jmp 0x448ffd
push 0x5ec1a0
push 0x5215b2
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 0x448f8a
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 0x448f30
mov dword [ebp - 0x28], 0xfffffe9d
jmp 0x448ffd
mov ax, word [ebp - 0x74]
test ah, 4
je 0x448f43
mov bx, 0x500
mov word [ebp - 0x72], bx
jmp 0x448f50
test ah, 0x10
je 0x448f50
mov bx, 0x1000
mov word [ebp - 0x72], bx
test esi, 0x80
test esi, 0x100
je 0x448f68
mov bx, 0x500
mov word [ebp - 0x72], 0x500
test bx, bx
je 0x448f8a
mov ax, word [ebp - 0x72]
lea edx, [ebp - 0x190]
push eax
push ebx
push edx
call dword [ebp - 0x68]
test eax, eax
jne 0x448f8a
mov dword [ebp - 0x28], 0xfffffe61
jmp 0x448ffd
push 0x5ec1bd
push 0x5215b2
call sub.KERNEL32.dll_GetModuleHandleA
push eax
call sub.KERNEL32.dll_GetProcAddress
mov edx, eax
test edx, edx
je 0x448fd7
test esi, 0x80
mov eax, 4
je 0x448fb7
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 0x448ff8
mov dword [ebp - 0x28], 0xfffffe4f
jmp 0x448ffd
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 0x448ff8
mov dword [ebp - 0x28], 0xfffffe4d
jmp 0x448ffd
xor edx, edx
mov dword [ebp - 0x28], edx
test edi, edi
je 0x44900f
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 0x449027
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 0x44903f
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 0x449057
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 0x44907e
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