Function at 0x1008b7a0
Capabilities:
Resolve function by parsing pe exports

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x100d4fd3
mov eax, dword fs:[0]
push eax
sub esp, 0xc8
mov eax, dword [0x10109610]
xor eax, esp
mov dword [esp + 0xc0], eax
push ebx
push esi
push edi
mov eax, dword [0x10109610]
xor eax, esp
push eax
lea eax, [esp + 0xd8]
mov dword fs:[0], eax
xor ebx, ebx
mov edi, ecx
mov dword [esp + 0x24], ebx
mov dword [esp + 0x28], ebx
mov dword [esp + 0x2c], ebx
mov dword [esp + 0xe0], ebx
mov dword [esp + 0xac], 0xf
mov dword [esp + 0xa8], ebx
mov byte [esp + 0x98], bl
lea eax, [esp + 0x98]
push eax
mov byte [esp + 0xe4], 1
call fcn.1008b4d0
mov ecx, edi
add esp, 4
lea edi, [esp + 0x24]
call fcn.10004ef0
mov esi, dword [esp + 0x24]
mov dword [esp + 0x20], esi
cmp esi, dword [esp + 0x28]
je 0x1008ba23
lea ecx, [esp + 0xb4]
push ecx
mov ecx, dword [esp + 0x24]
call fcn.100893a0
mov esi, dword [esp + 0xb8]
add esp, 4
cmp dword [esp + 0xc8], 8
jae 0x1008b871
lea esi, [esp + 0xb4]
lea edx, [esp + 0x38]
push edx
push ebx
lea eax, [esp + 0x44]
push eax
lea ecx, [esp + 0x4c]
push ecx
lea edx, [esp + 0x44]
push edx
push 7
mov edi, 1
push edi
push esi
mov dword [esp + 0x38], ebx
mov dword [esp + 0x3c], ebx
mov dword [esp + 0x5c], ebx
mov dword [esp + 0x34], ebx
call dword [sym.imp.ADVAPI32.dll_GetNamedSecurityInfoW]
test eax, eax
jne 0x1008b9b4
lea eax, [esp + 0x18]
push eax
push ebx
push ebx
push ebx
push ebx
push ebx
push ebx
push ebx
push ebx
push edi
lea ecx, [esp + 0xb8]
push ecx
mov dword [esp + 0xbc], ebx
mov word [esp + 0xc0], 0x100
mov dword [esp + 0xb4], ebx
mov word [esp + 0xb8], 0x500
call dword [sym.imp.ADVAPI32.dll_AllocateAndInitializeSid]
test eax, eax
je 0x1008b9b4
lea edx, [esp + 0x1c]
push edx
push ebx
push ebx
push ebx
push ebx
push ebx
push ebx
push 0x220
push 0x20
push 2
lea eax, [esp + 0xb0]
push eax
call dword [sym.imp.ADVAPI32.dll_AllocateAndInitializeSid]
test eax, eax
je 0x1008b9b4
push 0x40
lea ecx, [esp + 0x48]
push ebx
push ecx
call fcn.100b8f90
mov edx, dword [esp + 0x24]
mov ecx, 3
add esp, 0xc
mov dword [esp + 0x6c], ecx
mov dword [esp + 0x4c], ecx
lea ecx, [esp + 0x14]
push ecx
mov eax, 5
mov dword [esp + 0x84], edx
push ebx
lea edx, [esp + 0x4c]
mov dword [esp + 0x84], eax
mov dword [esp + 0x64], eax
mov eax, dword [esp + 0x24]
push edx
push 2
mov dword [esp + 0x74], SysStringLen
mov dword [esp + 0x78], edi
mov dword [esp + 0x88], ebx
mov dword [esp + 0x54], 0x10000000
mov dword [esp + 0x58], edi
mov dword [esp + 0x68], ebx
mov dword [esp + 0x70], eax
call dword [sym.imp.ADVAPI32.dll_SetEntriesInAclW]
test eax, eax
jne 0x1008b9b4
mov eax, dword [esp + 0x14]
mov ecx, dword [esp + 0x40]
mov edx, dword [esp + 0x34]
push ebx
push eax
push ecx
push edx
push SysStringLen
push edi
push esi
call dword [sym.imp.ADVAPI32.dll_SetNamedSecurityInfoW]
mov eax, dword [esp + 0x1c]
cmp eax, ebx
je 0x1008b9c3
push eax
call dword [sym.imp.ADVAPI32.dll_FreeSid]
mov eax, dword [esp + 0x18]
cmp eax, ebx
je 0x1008b9d2
push eax
call dword [sym.imp.ADVAPI32.dll_FreeSid]
mov eax, dword [esp + 0x14]
cmp eax, ebx
je 0x1008b9e1
push eax
call dword [sym.imp.KERNEL32.dll_LocalFree]
mov eax, dword [esp + 0x38]
cmp eax, ebx
je 0x1008b9f0
push eax
call dword [sym.imp.KERNEL32.dll_LocalFree]
cmp dword [esp + 0xc8], 8
jb 0x1008ba0a
mov eax, dword [esp + 0xb4]
push eax
call fcn.100b2e51
add esp, 4
mov eax, dword [esp + 0x20]
add eax, 0x1c
mov dword [esp + 0x20], eax
cmp eax, dword [esp + 0x28]
jne 0x1008b845
mov esi, dword [esp + 0x24]
cmp dword [esp + 0xac], 0x10
jb 0x1008ba3d
mov ecx, dword [esp + 0x98]
push ecx
call fcn.100b2e51
add esp, 4
mov dword [esp + 0xac], 0xf
mov dword [esp + 0xa8], ebx
mov byte [esp + 0x98], bl
cmp esi, ebx
je 0x1008ba91
mov edi, esi
cmp esi, dword [esp + 0x28]
je 0x1008ba88
cmp dword [edi + 0x14], 0x10
jb 0x1008ba73
mov edx, dword [edi]
push edx
call fcn.100b2e51
add esp, 4
mov dword [edi + 0x14], 0xf
mov dword [edi + 0x10], ebx
mov byte [edi], bl
add edi, 0x1c
cmp edi, dword [esp + 0x28]
jne 0x1008ba62
push esi
call fcn.100b2e51
add esp, 4
xor eax, eax
mov ecx, dword [esp + 0xd8]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0xc0]
xor ecx, esp
call fcn.100b2e5c
mov esp, ebp
pop ebp
ret