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

Disassembly:
sub esp, 0x108
push ebx
push ebp
push esi
push edi
lea eax, [esp + 0x34]
push 1
mov dword [esp + 0x34], ecx
push eax
call dword [sym.imp.ADVAPI32.dll_InitializeSecurityDescriptor]
test eax, eax
je 0xa072f8
lea ecx, [esp + 0x10]
push ecx
push 8
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call fcn.00a6adc0
add esp, 0xc
test eax, eax
je 0xa072f8
mov eax, dword [esp + 0x10]
lea edx, [esp + 0x14]
xor ebx, ebx
push edx
push ebx
push ebx
push 4
push eax
call fcn.00a6ac40
mov ecx, dword [esp + 0x28]
push ecx
call fcn.009ef3a0
mov edi, eax
add esp, 0x18
cmp edi, ebx
mov dword [esp + 0x1c], edi
jne 0xa072b4
mov edx, dword [esp + 0x10]
push edx
call fcn.00a2aff0
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
add esp, 0x108
ret
mov ecx, dword [esp + 0x14]
mov edx, dword [esp + 0x10]
lea eax, [esp + 0x14]
push eax
push ecx
push edi
push 4
push edx
call fcn.00a6ac40
add esp, 0x14
test eax, eax
je 0xa072e5
mov ecx, dword [edi]
push ebx
lea edx, [esp + 0x38]
push ecx
push edx
call dword [sym.imp.ADVAPI32.dll_SetSecurityDescriptorOwner]
test eax, eax
jne 0xa07305
push edi
call fcn.00a7d8f0
mov eax, dword [esp + 0x14]
add esp, 4
push eax
call fcn.00a2aff0
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
add esp, 0x108
ret
mov edx, dword [esp + 0x10]
lea ecx, [esp + 0x14]
push ecx
push ebx
push ebx
push 5
push edx
call fcn.00a6ac40
mov eax, dword [esp + 0x28]
push eax
call fcn.009ef3a0
mov esi, eax
add esp, 0x18
cmp esi, ebx
mov dword [esp + 0x18], esi
jne 0xa0734f
push edi
call fcn.00a7d8f0
mov ecx, dword [esp + 0x14]
add esp, 4
push ecx
call fcn.00a2aff0
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
add esp, 0x108
ret
mov eax, dword [esp + 0x14]
mov ecx, dword [esp + 0x10]
lea edx, [esp + 0x14]
push edx
push eax
push esi
push 5
push ecx
call fcn.00a6ac40
add esp, 0x14
test eax, eax
jne 0xa07393
push esi
call fcn.00a7d8f0
push edi
call fcn.00a7d8f0
mov edx, dword [esp + 0x18]
add esp, 8
push edx
call fcn.00a2aff0
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
add esp, 0x108
ret
mov eax, dword [esi]
push ebx
lea ecx, [esp + 0x38]
push eax
push ecx
call dword [sym.imp.ADVAPI32.dll_SetSecurityDescriptorGroup]
test eax, eax
jne 0xa073cc
push esi
call fcn.00a7d8f0
push edi
call fcn.00a7d8f0
mov edx, dword [esp + 0x18]
add esp, 8
push edx
call fcn.00a2aff0
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
add esp, 0x108
ret
mov eax, dword [esp + 0x10]
push eax
call fcn.00a2aff0
mov ecx, 0x20
xor eax, eax
lea edi, [esp + 0x98]
mov dword [esp + 0x4c], ecx
rep stosd dword es:[edi], eax
mov byte [esp + 0x48], 2
mov dword [esp + 0x50], 0x220
mov dword [esp + 0x54], 0xf01ff
mov dword [esp + 0x58], ebx
mov byte [esp + 0x5c], 1
mov dword [esp + 0x60], 0x12
mov dword [esp + 0x64], ebx
mov dword [esp + 0x68], 0x201fd
mov dword [esp + 0x6c], ebx
mov byte [esp + 0x70], 1
mov dword [esp + 0x74], 0xb
mov dword [esp + 0x78], ebx
mov dword [esp + 0x7c], 0x2018d
mov dword [esp + 0x80], ebx
mov byte [esp + 0x84], 1
mov dword [esp + 0x88], 2
mov dword [esp + 0x8c], ebx
mov dword [esp + 0x90], 0x100
mov dword [esp + 0x94], ebx
mov byte [esp + 0x24], bl
mov byte [esp + 0x25], bl
mov byte [esp + 0x26], bl
mov byte [esp + 0x27], bl
mov byte [esp + 0x28], bl
mov byte [esp + 0x29], 5
xor ebp, ebp
lea esi, [esp + 0x9c]
lea edi, [esp + 0x4c]
mov ecx, dword [edi + 4]
lea eax, [edi + 0xc]
mov edx, dword [edi]
push eax
mov al, byte [edi - 4]
push ebx
push ebx
push ebx
push ebx
push ebx
push ebx
push ecx
push edx
lea ecx, [esp + 0x48]
push eax
push ecx
call dword [sym.imp.ADVAPI32.dll_AllocateAndInitializeSid]
test eax, eax
je 0xa0754b
mov edx, dword [edi + 8]
mov eax, dword [edi + 0xc]
mov dword [esi - 4], edx
mov dword [esi], 2
mov dword [esi + 4], ebx
mov dword [esi + 0x10], ebx
mov dword [esi + 0x14], 2
mov dword [esi + 0x18], eax
inc ebp
add edi, 0x14
add esi, 0x20
cmp ebp, 4
jb 0xa07492
lea ecx, [esp + 0x20]
lea edx, [esp + 0x98]
push ecx
push ebx
push edx
push 4
call sub.ADVAPI32.dll_SetEntriesInAclW
mov ebp, dword [sym.imp.ADVAPI32.dll_FreeSid]
mov dword [esp + 0x2c], eax
lea esi, [esp + 0x58]
mov edi, 4
mov eax, dword [esi]
push eax
call ebp
add esi, 0x14
dec edi
jne 0xa0750d
mov esi, dword [esp + 0x2c]
cmp esi, ebx
je 0xa07588
mov ecx, dword [esp + 0x18]
push ecx
call fcn.00a7d8f0
mov edx, dword [esp + 0x20]
push edx
call fcn.00a7d8f0
add esp, 8
push esi
call dword [sym.imp.KERNEL32.dll_SetLastError]
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
add esp, 0x108
ret
cmp ebp, ebx
jbe 0xa07564
mov edi, dword [sym.imp.ADVAPI32.dll_FreeSid]
lea esi, [esp + 0x58]
mov ecx, dword [esi]
push ecx
call edi
add esi, 0x14
dec ebp
jne 0xa07559
mov edx, dword [esp + 0x18]
push edx
call fcn.00a7d8f0
mov eax, dword [esp + 0x20]
push eax
call fcn.00a7d8f0
add esp, 8
xor eax, eax
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x108
ret
mov eax, dword [esp + 0x20]
push ebx
push eax
lea ecx, [esp + 0x3c]
push 1
push ecx
call dword [sym.imp.ADVAPI32.dll_SetSecurityDescriptorDacl]
test eax, eax
jne 0xa075ce
mov edx, dword [esp + 0x20]
push edx
call dword [sym.imp.KERNEL32.dll_LocalFree]
mov eax, dword [esp + 0x18]
push eax
call fcn.00a7d8f0
mov ecx, dword [esp + 0x20]
push ecx
call fcn.00a7d8f0
add esp, 8
xor eax, eax
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x108
ret
mov esi, dword [sym.imp.ADVAPI32.dll_MakeSelfRelativeSD]
lea edx, [esp + 0x14]
push edx
lea eax, [esp + 0x38]
push ebx
push eax
mov dword [esp + 0x20], ebx
call esi
mov ecx, dword [esp + 0x14]
push ecx
call fcn.009ef3a0
mov edx, dword [esp + 0x34]
add esp, 4
lea ecx, [esp + 0x14]
mov dword [edx + 0x34], eax
push ecx
lea edx, [esp + 0x38]
push eax
push edx
call esi
mov esi, dword [sym.imp.KERNEL32.dll_LocalFree]
test eax, eax
jne 0xa0762e
mov eax, dword [esp + 0x20]
push eax
call esi
mov ecx, dword [esp + 0x18]
push ecx
call fcn.00a7d8f0
mov edx, dword [esp + 0x20]
push edx
call fcn.00a7d8f0
add esp, 8
mov eax, dword [esp + 0x20]
push eax
call esi
mov ecx, dword [esp + 0x18]
push ecx
call fcn.00a7d8f0
mov edx, dword [esp + 0x20]
push edx
call fcn.00a7d8f0
add esp, 8
mov eax, 1
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x108
ret