Function at 0x430330
Capabilities:
Compare security identifiers

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x28
mov eax, dword [0x4643c8]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push esi
mov esi, ecx
mov dword [ebp - 0x28], 0
cmp eax, 1
jne 0x43035e
mov eax, dword [esi + 4]
mov dword [ebp - 0x18], eax
mov byte [ebp - 0x11], 0
jmp 0x430371
cmp eax, 2
jne 0x4305a5
mov ecx, dword [esi + 8]
mov dword [ebp - 0x18], ecx
mov byte [ebp - 0x11], 1
push edi
mov edi, dword [ebp - 0x18]
test edi, edi
jne 0x43038d
pop edi
xor eax, eax
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00436268
mov esp, ebp
pop ebp
ret 4
push 2
push 0xc
lea edx, [ebp - 0x10]
push edx
push edi
call dword [sym.imp.ADVAPI32.dll_GetAclInformation]
test eax, eax
jne 0x4303c0
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [esi + 0x18], eax
pop edi
mov eax, 0x1d
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00436268
mov esp, ebp
pop ebp
ret 4
mov eax, dword [ebp - 0x10]
xor ecx, ecx
push ebx
mov dword [ebp - 0x20], eax
mov dword [ebp - 0x1c], ecx
test eax, eax
jne 0x4303e8
pop ebx
pop edi
xor eax, eax
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00436268
mov esp, ebp
pop ebp
ret 4
mov edi, dword [ebp - 0x18]
lea eax, [ebp - 0x28]
push eax
push ecx
push edi
call dword [sym.imp.ADVAPI32.dll_GetAce]
test eax, eax
je 0x430563
mov ecx, dword [ebp - 0x28]
test byte [ecx + 1], 0x10
jne 0x43054e
mov eax, dword [esi + 0x40]
mov ecx, dword [eax + 8]
sub ecx, dword [eax + 4]
mov eax, 0x2e8ba2e9
imul ecx
sar edx, 4
mov eax, edx
shr eax, 0x1f
xor edi, edi
add eax, edx
je 0x43054e
mov dword [ebp - 0x24], edi
mov edi, edi
mov ecx, dword [esi + 0x40]
mov ebx, dword [ecx + 4]
add ebx, dword [ebp - 0x24]
cmp byte [ebp - 0x11], 0
je 0x430445
test byte [ebx + 0x24], 2
jmp 0x430449
test byte [ebx + 0x24], 1
je 0x430460
mov eax, dword [ebx + 0x28]
mov ecx, dword [ebp - 0x28]
push eax
add ecx, 8
push ecx
call dword [sym.imp.ADVAPI32.dll_EqualSid]
test eax, eax
jne 0x430488
mov eax, dword [esi + 0x40]
mov ecx, dword [eax + 8]
sub ecx, dword [eax + 4]
add dword [ebp - 0x24], 0x58
mov eax, 0x2e8ba2e9
imul ecx
sar edx, 4
mov eax, edx
shr eax, 0x1f
inc edi
add eax, edx
cmp edi, eax
jb 0x430430
jmp 0x43054e
mov eax, dword [ebx + 0x20]
test eax, 0x200
je 0x4304b8
mov ecx, dword [ebp - 0x1c]
mov edx, dword [ebp - 0x18]
push ecx
push edx
call dword [sym.imp.ADVAPI32.dll_DeleteAce]
test eax, eax
je 0x430584
mov eax, 1
sub dword [ebp - 0x20], eax
sub dword [ebp - 0x1c], eax
jmp 0x43054e
test eax, 0x100
je 0x4304f8
mov ebx, dword [ebx + 0x54]
mov eax, dword [ebp - 0x1c]
push ebx
mov ebx, dword [ebp - 0x18]
push eax
mov ecx, esi
call fcn.00430f30
mov ebx, eax
test ebx, ebx
jne 0x430518
call dword [sym.imp.KERNEL32.dll_GetLastError]
pop ebx
mov dword [esi + 0x18], eax
pop edi
mov eax, 0x1f
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00436268
mov esp, ebp
pop ebp
ret 4
test eax, 0x400
je 0x43054e
mov ecx, dword [ebp - 0x1c]
mov edx, dword [ebx + 0x54]
push ecx
mov ecx, dword [ebp - 0x18]
push esi
call fcn.00430d90
mov ebx, eax
test ebx, ebx
je 0x4304d7
inc dword [ebp - 0x20]
mov edi, dword [ebp + 8]
cmp edi, 1
jne 0x430527
call fcn.0042ebf0
jmp 0x430531
cmp edi, 2
jne 0x430531
call fcn.0042ec20
mov dword [ebp - 0x18], ebx
cmp edi, 1
jne 0x430542
mov dword [esi + 4], ebx
mov byte [esi + 0x45], 1
jmp 0x43054e
cmp edi, 2
jne 0x43054e
mov dword [esi + 8], ebx
mov byte [esi + 0x46], 1
mov ecx, dword [ebp - 0x1c]
inc ecx
mov dword [ebp - 0x1c], ecx
cmp ecx, dword [ebp - 0x20]
jb 0x4303e5
jmp 0x4303d0
call dword [sym.imp.KERNEL32.dll_GetLastError]
pop ebx
mov dword [esi + 0x18], eax
pop edi
mov eax, 0x1d
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00436268
mov esp, ebp
pop ebp
ret 4
call dword [sym.imp.KERNEL32.dll_GetLastError]
pop ebx
mov dword [esi + 0x18], eax
pop edi
mov eax, 0x1e
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00436268
mov esp, ebp
pop ebp
ret 4
mov ecx, dword [ebp - 4]
xor ecx, ebp
mov eax, 3
pop esi
call fcn.00436268
mov esp, ebp
pop ebp
ret 4