Function at 0x101071c0
Capabilities:
Link many functions at runtime

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x10185768
mov eax, dword fs:[0]
push eax
sub esp, 0x58
mov eax, dword [0x101fe854]
xor eax, ebp
mov dword [ebp - 0x14], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov eax, dword [ebp + 8]
lea ecx, [ebp - 0x60]
mov dword [ebp - 0x30], eax
mov eax, dword [ebp + 0xc]
mov dword [ebp - 0x40], eax
mov eax, dword [ebp + 0x10]
mov dword [ebp - 0x34], eax
xor eax, eax
push 0xc
mov dword [ebp - 0x50], 0
mov dword [ebp - 0x4c], 0
push str.Advapi32.dll
mov dword [ebp - 0x50], 0
mov dword [ebp - 0x4c], 7
mov word [ebp - 0x60], ax
call fcn.10004820
mov dword [ebp - 4], 0
lea eax, [ebp - 0x60]
push eax
call fcn.10107fa0
mov ecx, eax
call fcn.10108060
mov ebx, eax
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x60]
call fcn.100047b0
test ebx, ebx
je 0x101073d1
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.AddAce
push ebx
call esi
push 0x101c26ec
push ebx
mov dword [ebp - 0x38], eax
call esi
push str.AllocateAndInitializeSid
push ebx
mov dword [ebp - 0x3c], eax
call esi
push str.InitializeAcl
push ebx
mov dword [ebp - 0x44], eax
call esi
push str.FreeSid
push ebx
mov dword [ebp - 0x24], eax
call esi
push str.GetLengthSid
push ebx
mov edi, eax
call esi
push 0x101c26bc
push ebx
mov dword [ebp - 0x2c], eax
call esi
cmp dword [ebp - 0x38], 0
mov ecx, eax
mov dword [ebp - 0x48], ecx
je 0x101073d1
cmp dword [ebp - 0x3c], 0
je 0x101073d1
mov eax, dword [ebp - 0x44]
test eax, eax
je 0x101073d1
cmp dword [ebp - 0x24], 0
je 0x101073d1
test edi, edi
je 0x101073d1
mov ebx, dword [ebp - 0x2c]
test ebx, ebx
je 0x101073d1
test ecx, ecx
je 0x101073d1
lea ecx, [ebp - 0x20]
mov dword [ebp - 0x20], 0
push ecx
push 0
push 0
push 0
push 0
push 0
push 0
push 0
push 0x12
push 1
lea ecx, [ebp - 0x1c]
mov dword [ebp - 0x1c], 0
push ecx
mov word [ebp - 0x18], 0x500
call eax
test eax, eax
je 0x101073d1
push dword [ebp - 0x30]
call ebx
push dword [ebp - 0x20]
mov esi, eax
call ebx
mov ebx, dword [sym.imp.KERNEL32.dll_GetProcessHeap]
add eax, 0x18
add esi, eax
push esi
push 0
call ebx
push eax
call dword [sym.imp.KERNEL32.dll_HeapAlloc]
mov ecx, dword [ebp - 0x34]
mov dword [ecx], eax
test eax, eax
je 0x101073c7
push 2
push esi
push eax
call dword [ebp - 0x24]
test eax, eax
je 0x101073c7
push dword [ebp - 0x30]
call dword [ebp - 0x2c]
lea esi, [eax + 8]
push esi
push 8
call ebx
push eax
call dword [sym.imp.KERNEL32.dll_HeapAlloc]
push dword [ebp - 0x30]
mov dword [ebp - 0x24], eax
mov dword [eax + 4], 0xf003f
mov word [eax], 0x300
mov word [eax + 2], si
call dword [ebp - 0x2c]
mov ecx, dword [ebp - 0x24]
push eax
push dword [ebp - 0x30]
add ecx, 8
push ecx
call sub.VCRUNTIME140.dll_memcpy
mov eax, dword [ebp - 0x34]
add esp, 0xc
push esi
mov esi, dword [ebp - 0x24]
push esi
push 0xffffffffffffffff
push 2
push dword [eax]
call dword [ebp - 0x38]
push esi
push 0
test eax, eax
jne 0x101073f1
call ebx
push eax
call dword [sym.imp.KERNEL32.dll_HeapFree]
mov eax, dword [ebp - 0x20]
test eax, eax
je 0x101073d1
push eax
call edi
xor al, al
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x14]
xor ecx, ebp
call fcn.1015f463
mov esp, ebp
pop ebp
ret 0xc
call ebx
push eax
call dword [sym.imp.KERNEL32.dll_HeapFree]
push dword [ebp - 0x20]
call dword [ebp - 0x2c]
lea esi, [eax + 8]
push esi
push 8
call ebx
push eax
call dword [sym.imp.KERNEL32.dll_HeapAlloc]
mov dword [ebp - 0x24], eax
mov dword [eax + 4], 0xf003f
mov word [eax], 0x300
mov word [eax + 2], si
push dword [ebp - 0x20]
call dword [ebp - 0x2c]
push eax
push dword [ebp - 0x20]
mov eax, dword [ebp - 0x24]
add eax, 8
push eax
call sub.VCRUNTIME140.dll_memcpy
mov eax, dword [ebp - 0x34]
add esp, 0xc
push esi
mov esi, dword [ebp - 0x24]
push esi
push 0xffffffffffffffff
push 2
push dword [eax]
call dword [ebp - 0x38]
test eax, eax
jne 0x10107462
push esi
push 0
call ebx
push eax
mov eax, dword [sym.imp.KERNEL32.dll_HeapFree]
call eax
jmp 0x101073c7
push 1
push dword [ebp - 0x40]
call dword [ebp - 0x3c]
test eax, eax
je 0x10107450
mov eax, dword [ebp - 0x34]
push 0
mov byte [ebp - 0x25], 1
push dword [eax]
push 1
push dword [ebp - 0x40]
call dword [ebp - 0x48]
mov ebx, eax
neg ebx
push esi
sbb bl, bl
and bl, byte [ebp - 0x25]
push 0
call dword [sym.imp.KERNEL32.dll_GetProcessHeap]
push eax
mov eax, dword [sym.imp.KERNEL32.dll_HeapFree]
call eax
mov eax, dword [ebp - 0x20]
test eax, eax
je 0x101074a5
push eax
call edi
mov al, bl
jmp 0x101073d3