Function at 0x1003a828
Capabilities:
Compare security identifiers

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x10069809
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
push ecx
sub esp, 0x80
push ebx
push esi
push edi
mov dword [ebp - 0x10], esp
movzx eax, byte [ebp + 0x20]
test eax, eax
je 0x1003a9fb
lea eax, [ebp + 0x2c]
mov dword [ebp - 0x40], eax
mov eax, dword [ebp + 0x18]
mov dword [ebp - 0x58], eax
mov eax, dword [ebp + 0x10]
mov dword [ebp - 0x5c], eax
mov eax, dword [ebp + 0x1c]
mov dword [ebp - 0x48], eax
mov eax, dword [ebp + 0x14]
mov dword [ebp - 0x44], eax
mov eax, dword [ebp - 0x40]
movzx eax, byte [eax]
test eax, eax
je 0x1003a8ce
mov eax, dword [ebp - 0x44]
mov dword [ebp - 0x4c], eax
mov eax, dword [ebp - 0x48]
mov dword [ebp - 0x50], eax
mov eax, dword [ebp - 0x4c]
mov dword [ebp - 0x14], eax
mov eax, dword [ebp - 0x50]
mov dword [ebp - 0x54], eax
mov eax, dword [ebp - 0x14]
mov dword [eax], 0
jmp 0x1003a8af
mov eax, dword [ebp - 0x14]
mov eax, dword [eax]
inc eax
mov ecx, dword [ebp - 0x14]
mov dword [ecx], eax
mov eax, dword [ebp - 0x14]
cmp dword [eax], 2
jge 0x1003a8c9
mov eax, dword [ebp - 0x14]
push dword [eax]
mov ecx, dword [ebp - 0x54]
call fcn.1001cda9
or dword [eax], 0xffffffff
jmp 0x1003a8a4
jmp 0x1003a9f6
mov eax, dword [ebp - 0x58]
mov dword [ebp - 0x60], eax
mov eax, dword [ebp - 0x5c]
mov dword [ebp - 0x64], eax
mov dword [ebp - 0x38], 0x697
mov dword [ebp - 0x6c], 0x1000af38
cmp dword [ebp - 0x38], 0x90f
jle 0x1003a977
and dword [ebp - 0x1c], 0
jmp 0x1003a902
mov eax, dword [ebp - 0x1c]
inc eax
mov dword [ebp - 0x1c], eax
cmp dword [ebp - 0x1c], 0x7505
jge 0x1003a96d
and dword [ebp - 0x20], 0
jmp 0x1003a918
mov eax, dword [ebp - 0x20]
inc eax
mov dword [ebp - 0x20], eax
cmp dword [ebp - 0x20], 0x4ce0
jge 0x1003a96b
and dword [ebp - 0x24], 0
jmp 0x1003a92e
mov eax, dword [ebp - 0x24]
inc eax
mov dword [ebp - 0x24], eax
cmp dword [ebp - 0x24], 0x4248
jge 0x1003a969
mov eax, dword [ebp - 0x1c]
mov ecx, dword [ebp - 0x20]
shl eax, cl
mov ecx, dword [ebp - 0x24]
shl eax, cl
cdq
mov dword [ebp - 0x88], eax
mov dword [ebp - 0x84], edx
push dword [ebp - 0x84]
push dword [ebp - 0x88]
mov ecx, 0x10612c98
call fcn.1001cada
jmp 0x1003a927
jmp 0x1003a911
jmp 0x1003a8fb
push 0
push 0
call dword [sym.imp.ADVAPI32.dll_EqualSid]
mov eax, dword [ebp - 0x60]
mov dword [ebp - 0x18], eax
mov eax, dword [ebp - 0x64]
mov dword [ebp - 0x68], eax
mov eax, dword [ebp - 0x18]
mov dword [eax], 0
jmp 0x1003a999
mov eax, dword [ebp - 0x18]
mov eax, dword [eax]
inc eax
mov ecx, dword [ebp - 0x18]
mov dword [ecx], eax
mov eax, dword [ebp - 0x18]
cmp dword [eax], 3
jge 0x1003a9b6
mov eax, dword [ebp - 0x18]
push dword [eax]
mov ecx, dword [ebp - 0x68]
call fcn.1001cda9
mov dword [eax], 0x74e99835
jmp 0x1003a98e
and dword [ebp - 4], 0
cmp dword [ebp - 0x38], 0x502
jge 0x1003a9d0
mov edx, dword [ebp - 0x6c]
mov ecx, 0x10612c98
call fcn.1001f052
jmp 0x1003a9ec
or dword [ebp - 4], 0xffffffff
jmp 0x1003a9f6
jmp 0x1003ab45
mov eax, dword [ebp + 0xc]
mov dword [ebp - 0x80], eax
mov dword [ebp - 0x3c], 0x328e
mov dword [ebp - 0x70], 0x1000af9c
cmp dword [ebp - 0x3c], 0x361c
jle 0x1003aac6
and dword [ebp - 0x30], 0
jmp 0x1003aa29
mov eax, dword [ebp - 0x30]
inc eax
mov dword [ebp - 0x30], eax
cmp dword [ebp - 0x30], 0x7c43
jge 0x1003aab8
and dword [ebp - 0x34], 0
jmp 0x1003aa43
mov eax, dword [ebp - 0x34]
inc eax
mov dword [ebp - 0x34], eax
cmp dword [ebp - 0x34], 0x492e
jge 0x1003aab3
and dword [ebp - 0x28], 0
jmp 0x1003aa59
mov eax, dword [ebp - 0x28]
inc eax
mov dword [ebp - 0x28], eax
cmp dword [ebp - 0x28], 0x591a
jge 0x1003aab1
and dword [ebp - 0x2c], 0
jmp 0x1003aa6f
mov eax, dword [ebp - 0x2c]
inc eax
mov dword [ebp - 0x2c], eax
cmp dword [ebp - 0x2c], 0xa78
jge 0x1003aaaf
mov eax, dword [ebp - 0x28]
mov ecx, dword [ebp - 0x2c]
sar eax, cl
mov edx, dword [ebp - 0x30]
mov ecx, dword [ebp - 0x34]
sar edx, cl
or eax, edx
cdq
mov dword [ebp - 0x90], eax
mov dword [ebp - 0x8c], edx
push dword [ebp - 0x8c]
push dword [ebp - 0x90]
mov ecx, 0x10612c98
call fcn.1001cada
jmp 0x1003aa68
jmp 0x1003aa52
jmp 0x1003aa3c
jmp 0x1003aa22
push 0
push 0
push 0
push 0
call dword [sym.imp.ADVAPI32.dll_RegGetKeySecurity]
mov eax, dword [ebp + 0x24]
mov dword [ebp - 0x7c], eax
mov dword [ebp - 4], 2
cmp dword [ebp - 0x3c], 0x3172
jge 0x1003aae9
mov edx, dword [ebp - 0x70]
mov ecx, 0x10612c98
call fcn.1001f052
jmp 0x1003ab05
or dword [ebp - 4], 0xffffffff
jmp 0x1003ab0f
mov eax, dword [ebp + 8]
mov dword [ebp - 0x78], eax
mov eax, dword [ebp + 0x28]
mov dword [ebp - 0x74], eax
push 0x6080
push 0x1056
push dword [ebp - 0x74]
push 0
push 0x1e68
push dword [ebp - 0x78]
push dword [ebp - 0x7c]
push 0x53c1
push dword [ebp - 0x80]
call fcn.1002e274
add esp, 0x24
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret