Function at 0x1003489e
Capabilities:
Compare security identifiers

Disassembly:
push ebx
mov ebx, esp
push ecx
push ecx
and esp, 0xfffffff8
add esp, 4
push ebp
mov ebp, dword [ebx + 4]
mov dword [esp + 4], ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x1009ac55
mov eax, dword fs:[0]
push eax
push ecx
push ebx
sub esp, 0xe8
mov eax, dword [0x100af3bc]
xor eax, ebp
mov dword [ebp - 0x1c], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x10], esp
mov eax, dword [ebx + 0x1c]
mov edx, dword [ebx + 0x24]
mov esi, dword [ebx + 0xc]
mov ecx, dword [ebx + 8]
mov dword [ebp - 0x84], eax
mov eax, dword [ebx + 0x20]
mov dword [ebp - 0x80], eax
xor eax, eax
mov dword [ebp - 0x94], ecx
mov dword [ebp - 0xa8], esi
mov dword [ebp - 0xa4], edx
test edx, edx
je 0x1003520b
test ecx, ecx
je 0x1003520b
cmp word [ecx], ax
je 0x1003520b
test esi, esi
je 0x1003520b
lea ecx, [ebp - 0xa4]
mov dword [ebp - 0x30], 0x100b0360
mov dword [ebp - 0x34], ecx
lea esi, [ebp - 0x34]
lea ecx, [ebp - 0x94]
mov byte [edx], al
mov dword [ebp - 0x2c], ecx
lea edi, [ebp - 0xf8]
lea ecx, [ebx + 0x10]
mov dword [ebp - 0x28], ecx
lea ecx, [ebx + 0x14]
mov dword [ebp - 0x24], ecx
lea ecx, [ebp - 0xa8]
mov dword [ebp - 0x20], ecx
push 6
pop ecx
rep movsd dword es:[edi], dword [esi]
mov byte [ebp - 0xe0], 1
push 0x100b0408
mov dword [ebp - 4], eax
call dword [sym.imp.KERNEL32.dll_AcquireSRWLockShared]
mov dword [ebp - 0xc0], 0x100b0408
mov byte [ebp - 4], 2
cmp byte [0x100b0414], 0
jne 0x100349fd
call fcn.100616f8
mov esi, dword [eax]
cmp dword [esi], 2
jbe 0x100349ee
mov eax, dword [ebp - 0x94]
mov ecx, 0x8007045a
mov dword [ebp - 0x80], eax
mov edx, 0x1002302b
lea eax, [ebp - 0x80]
mov dword [ebp - 0x8c], ecx
push eax
lea eax, [ebp - 0x84]
mov dword [ebp - 0x88], ecx
push eax
lea eax, [ebp - 0x88]
mov dword [ebp - 0x84], 0x10010278
push eax
push ecx
push ecx
mov ecx, esi
call fcn.1002674c
jmp 0x100350be
mov dword [ebp - 0x8c], 0x8007045a
jmp 0x100350be
mov eax, dword [0x100b0418]
test eax, eax
jne 0x10034a43
call fcn.100616f8
mov ecx, dword [eax]
cmp dword [ecx], 4
jbe 0x10034a3c
mov dword [ebp - 0x84], 0x100102f8
mov edx, 0x10022fb5
mov eax, dword [ebp - 0x94]
mov dword [ebp - 0x80], eax
lea eax, [ebp - 0x80]
push eax
lea eax, [ebp - 0x84]
push eax
push ecx
push ecx
call fcn.10026818
xor edi, edi
jmp 0x10035164
cmp byte [eax + 0xc5], 0
jne 0x10034a69
call fcn.100616f8
mov ecx, dword [eax]
cmp dword [ecx], 4
jbe 0x10034a3c
mov dword [ebp - 0x84], 0x10010348
mov edx, 0x10022fb5
jmp 0x10034a21
push dword [ebp - 0x94]
lea ecx, [ebp - 0x34]
call fcn.1002b985
push 0x18
mov byte [ebp - 4], 3
call fcn.1008b467
mov edx, eax
xor eax, eax
mov dword [ebp - 0x98], edx
mov edi, edx
pop ecx
xor ecx, ecx
mov dword [ebp - 0x88], edx
mov dword [ebp - 0xac], edx
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
xor eax, eax
inc eax
mov dword [edx], 0x100028e0
mov dword [edx + 4], eax
mov dword [edx + 8], eax
lea eax, [edx + 0xc]
mov dword [eax], ecx
mov dword [eax + 4], ecx
mov dword [eax + 8], ecx
mov dword [ebp - 0xb0], eax
mov byte [ebp - 4], 5
mov edi, dword [0x100b0428]
push ecx
push ecx
mov ecx, esp
mov eax, dword [edi]
mov esi, dword [eax + 0xc]
lea eax, [ebp - 0xb0]
push eax
call fcn.10036a53
lea eax, [ebp - 0x34]
mov ecx, esi
push eax
push dword [ebp - 0x84]
lea eax, [ebp - 0x64]
push dword [ebp - 0x80]
push eax
call dword [0x100b134c]
mov ecx, edi
call esi
lea eax, [ebp - 0x64]
mov byte [ebp - 4], 6
mov ecx, dword [0x100b0418]
push eax
call fcn.10050bf6
test al, al
je 0x10034b72
call fcn.100616f8
mov ecx, dword [eax]
cmp dword [ecx], 4
jbe 0x10034b49
mov eax, dword [ebp - 0x94]
mov edx, 0x10022fb5
mov dword [ebp - 0x80], eax
lea eax, [ebp - 0x80]
push eax
lea eax, [ebp - 0x84]
mov dword [ebp - 0x84], 0x100103a8
push eax
push ecx
push ecx
call fcn.10026818
lea ecx, [ebp - 0x64]
mov eax, dword [ebp - 0xa4]
mov byte [eax], 1
call fcn.1002b9c2
mov ecx, dword [ebp - 0x88]
call fcn.10039141
lea ecx, [ebp - 0x34]
call fcn.1002b9c2
jmp 0x10034a3c
lea ecx, [ebp - 0x64]
call fcn.1002b9c2
mov dword [ebp - 4], 4
mov byte [ebp - 4], 8
mov edi, dword [0x100b0428]
push ecx
push ecx
mov ecx, esp
mov eax, dword [edi]
mov esi, dword [eax + 0x10]
lea eax, [ebp - 0xb0]
push eax
call fcn.10036a53
lea eax, [ebp - 0x34]
mov ecx, esi
push eax
push dword [ebp - 0x84]
lea eax, [ebp - 0x7c]
push dword [ebp - 0x80]
push eax
call dword [0x100b134c]
mov ecx, edi
call esi
mov byte [ebp - 4], 9
lea ecx, [ebp - 0x4c]
push dword [0x100b0418]
call fcn.10036f25
push ecx
lea edx, [ebp - 0x4c]
lea ecx, [ebp - 0x7c]
call fcn.10062891
lea ecx, [ebp - 0x4c]
mov byte [ebp - 0x9d], al
call fcn.1002b9c2
cmp byte [ebp - 0x9d], 0
jne 0x10034c30
call fcn.100616f8
mov ecx, dword [eax]
cmp dword [ecx], 4
jbe 0x10034c28
mov eax, dword [ebp - 0x94]
mov edx, 0x10022fb5
mov dword [ebp - 0x80], eax
lea eax, [ebp - 0x80]
push eax
lea eax, [ebp - 0x84]
mov dword [ebp - 0x84], 0x10010498
push eax
push ecx
push ecx
call fcn.10026818
lea ecx, [ebp - 0x7c]
jmp 0x10034b4c
lea ecx, [ebp - 0x7c]
call fcn.1002b9c2
mov dword [ebp - 4], 4
mov byte [ebp - 4], 0xb
mov edi, dword [0x100b0428]
push ecx
push ecx
mov ecx, esp
mov eax, dword [edi]
mov esi, dword [eax + 0x14]
lea eax, [ebp - 0xb0]
push eax
call fcn.10036a53
lea eax, [ebp - 0x34]
mov ecx, esi
push eax
push dword [ebp - 0x84]
lea eax, [ebp - 0x4c]
push dword [ebp - 0x80]
push eax
call dword [0x100b134c]
mov ecx, edi
call esi
xor edi, edi
mov dword [ebp - 0x9c], edi
mov byte [ebp - 4], 0xd
lea eax, [ebp - 0x9c]
cmp dword [ebp - 0x38], 8
mov dword [ebp - 0xbc], eax
lea eax, [ebp - 0x4c]
mov dword [ebp - 0xb8], edi
mov byte [ebp - 0xb4], 1
jb 0x10034cac
mov eax, dword [ebp - 0x4c]
lea ecx, [ebp - 0xb8]
push ecx
push eax
call dword [sym.imp.ADVAPI32.dll_ConvertStringSidToSidW]
lea ecx, [ebp - 0xbc]
mov esi, eax
call fcn.100368c4
test esi, esi
jne 0x10034d73
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp - 0x8c], eax
test eax, eax
jle 0x10034ced
movzx eax, ax
or eax, 0x80070000
mov dword [ebp - 0x8c], eax
call fcn.100616f8
mov ecx, dword [eax]
cmp dword [ecx], 2
jbe 0x10034d38
mov eax, dword [ebp - 0x94]
mov edx, 0x1002302b
mov edi, dword [ebp - 0x8c]
mov dword [ebp - 0x80], eax
lea eax, [ebp - 0x80]
push eax
lea eax, [ebp - 0x84]
mov dword [ebp - 0x84], 0x10010598
push eax
lea eax, [ebp - 0x98]
mov dword [ebp - 0x98], edi
push eax
push ecx
push ecx
call fcn.1002674c
jmp 0x10034d3e
mov edi, dword [ebp - 0x8c]
cmp dword [ebp - 0x9c], 0
je 0x10034d53
push dword [ebp - 0x9c]
call dword [sym.imp.ADVAPI32.dll_FreeSid]
lea ecx, [ebp - 0x4c]
call fcn.1002b9c2
mov ecx, dword [ebp - 0x88]
call fcn.10039141
lea ecx, [ebp - 0x34]
call fcn.1002b9c2
jmp 0x10035164
push dword [ebp - 0xa8]
push dword [ebp - 0x9c]
call dword [sym.imp.ADVAPI32.dll_EqualSid]
test eax, eax
jne 0x10034dcd
call fcn.100616f8
mov ecx, dword [eax]
cmp dword [ecx], 4
jbe 0x10034dbf
mov eax, dword [ebp - 0x94]
mov edx, 0x10022fb5
mov dword [ebp - 0x80], eax
lea eax, [ebp - 0x80]
push eax
lea eax, [ebp - 0x84]
mov dword [ebp - 0x84], 0x10010660
push eax
push ecx
push ecx
call fcn.10026818
mov eax, dword [ebp - 0xa4]
mov byte [eax], 1
jmp 0x10034d3e
cmp dword [ebp - 0x9c], 0
je 0x10034de2
push dword [ebp - 0x9c]
call dword [sym.imp.ADVAPI32.dll_FreeSid]
lea ecx, [ebp - 0x4c]
call fcn.1002b9c2
push 4
pop esi
mov dword [ebp - 4], esi
call fcn.100616f8
mov ecx, dword [eax]
cmp dword [ecx], esi
jbe 0x10034d5b
mov eax, dword [ebp - 0x94]
mov edx, 0x10022fb5
mov dword [ebp - 0x80], eax
lea eax, [ebp - 0x80]
push eax
lea eax, [ebp - 0x84]
mov dword [ebp - 0x84], 0x10010760
push eax
push ecx
push ecx
call fcn.10026818
jmp 0x10034d5b
mov edi, dword [ebp - 0x8c]
jmp 0x10035164
push 0x100b0408
call dword [sym.imp.KERNEL32.dll_ReleaseSRWLockShared]
jmp 0x100351fc
lea ecx, [ebp - 0xf8]
call fcn.100368ff
mov eax, edi
jmp 0x10035244
call fcn.100616f8
mov ecx, dword [eax]
cmp dword [ecx], 2
jbe 0x1003523f
lea eax, [ebp - 0x90]
mov dword [ebp - 0x90], 0x10010208
push eax
lea eax, [ebp - 0x80]
mov dword [ebp - 0x80], 0x80070057
push eax
push ecx
push ecx
mov edx, 0x1002227f
call fcn.10025fbe
mov eax, 0x80070057
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov ecx, dword [ebp - 0x1c]
xor ecx, ebp
call fcn.1008b215
mov esp, ebp
pop ebp
mov esp, ebx
pop ebx
ret 0x20