Function at 0x10190670
Capabilities:
Link many functions at runtime

Disassembly:
push ebp
lea ebp, [esp - 0x6c]
sub esp, 0x6c
push 0xfffffffffffffffe
push 0x105a8570
push 0x1033dd29
mov eax, dword fs:[0]
push eax
sub esp, 0x40
mov eax, dword [0x105be7d0]
xor dword [ebp - 8], eax
xor eax, ebp
mov dword [ebp + 0x68], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0x10]
mov dword fs:[0], eax
mov eax, ecx
mov dword [ebp + 0x58], eax
mov ecx, dword [ebp + 0x74]
mov dword [ebp + 0x3c], ecx
mov edi, dword [ebp + 0x78]
cmp dword [ecx + 0x10], 0
je 0x10190beb
cmp dword [edi + 0x10], 0
je 0x10190beb
cmp dword [ecx + 0x14], 8
jb 0x101906d5
mov ecx, dword [ecx]
mov dword [ebp + 0x3c], ecx
cmp dword [edi + 0x14], 8
jb 0x101906dd
mov edi, dword [edi]
mov dword [ebp + 0x10], 0
mov dword [ebp + 0x30], 0
mov dword [ebp + 0x54], 0
mov dword [ebp + 0x28], 0
mov dword [ebp + 0x44], 0
mov dword [ebp + 0x40], 0
mov dword [ebp + 0x38], 0
mov dword [ebp + 0x50], 0
mov dword [ebp - 0x38], 0
xor ebx, ebx
mov dword [ebp + 0x18], ebx
mov dword [ebp + 0x4c], ebx
xor esi, esi
xor ecx, ecx
mov dword [ebp + 0x34], ecx
mov dword [ebp + 0x20], ecx
mov dword [ebp - 4], ecx
push str.LookupAccountNameW
push dword [eax]
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov dword [ebp + 0x14], eax
test eax, eax
je 0x10190b7f
push str.GetFileSecurityW
mov eax, dword [ebp + 0x58]
push dword [eax]
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov dword [ebp], eax
test eax, eax
je 0x10190b7f
push str.InitializeSecurityDescriptor
mov eax, dword [ebp + 0x58]
push dword [eax]
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov dword [ebp - 0x20], eax
test eax, eax
je 0x10190b7f
push str.GetSecurityDescriptorDacl
mov eax, dword [ebp + 0x58]
push dword [eax]
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov dword [ebp - 0x2c], eax
test eax, eax
je 0x10190b7f
push str.GetAclInformation
mov eax, dword [ebp + 0x58]
push dword [eax]
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov dword [ebp - 0x1c], eax
test eax, eax
je 0x10190b7f
push str.InitializeAcl
mov eax, dword [ebp + 0x58]
push dword [eax]
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov dword [ebp - 0x24], eax
test eax, eax
je 0x10190b7f
push str.GetAce
mov eax, dword [ebp + 0x58]
push dword [eax]
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov dword [ebp + 0x1c], eax
test eax, eax
je 0x10190b7f
push str.EqualSid
mov eax, dword [ebp + 0x58]
push dword [eax]
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov dword [ebp - 0x34], eax
test eax, eax
je 0x10190b7f
push str.AddAce
mov eax, dword [ebp + 0x58]
push dword [eax]
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov dword [ebp + 0x48], eax
test eax, eax
je 0x10190b7f
push str.AddAccessAllowedAce
mov eax, dword [ebp + 0x58]
push dword [eax]
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov dword [ebp + 0x2c], eax
test eax, eax
je 0x10190b7f
push str.SetSecurityDescriptorDacl
mov eax, dword [ebp + 0x58]
push dword [eax]
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov dword [ebp + 0x24], eax
test eax, eax
je 0x10190b7f
push str.SetFileSecurityW
mov eax, dword [ebp + 0x58]
push dword [eax]
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov dword [ebp - 0x30], eax
test eax, eax
je 0x10190b7f
push str.GetSecurityDescriptorControl
mov eax, dword [ebp + 0x58]
push dword [eax]
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov dword [ebp - 0x28], eax
test eax, eax
je 0x10190b7f
push str.GetLengthSid
mov eax, dword [ebp + 0x58]
push dword [eax]
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov dword [ebp + 8], eax
test eax, eax
je 0x10190b7f
lea eax, [ebp - 0x3c]
push eax
lea eax, [ebp + 0x30]
push eax
push esi
lea eax, [ebp + 0x28]
push eax
push esi
push edi
push esi
call dword [ebp + 0x14]
test eax, eax
jne 0x10190b7f
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x7a
jne 0x10190b7f
push dword [ebp + 0x28]
push 8
call dword [sym.imp.KERNEL32.dll_GetProcessHeap]
push eax
call dword [sym.imp.KERNEL32.dll_HeapAlloc]
mov dword [ebp + 0x54], eax
test eax, eax
je 0x10190b7f
mov eax, dword [ebp + 0x30]
add eax, eax
push eax
push 8
call dword [sym.imp.KERNEL32.dll_GetProcessHeap]
push eax
call dword [sym.imp.KERNEL32.dll_HeapAlloc]
mov dword [ebp + 0x10], eax
test eax, eax
je 0x10190b7f
lea ecx, [ebp - 0x3c]
push ecx
lea ecx, [ebp + 0x30]
push ecx
push eax
lea eax, [ebp + 0x28]
push eax
push dword [ebp + 0x54]
push edi
push esi
call dword [ebp + 0x14]
test eax, eax
je 0x10190b7f
lea eax, [ebp + 0x40]
push eax
push esi
push esi
push 4
push dword [ebp + 0x3c]
mov edi, dword [ebp]
call edi
test eax, eax
jne 0x10190b7f
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x7a
jne 0x10190b7f
push dword [ebp + 0x40]
push 8
call dword [sym.imp.KERNEL32.dll_GetProcessHeap]
push eax
call dword [sym.imp.KERNEL32.dll_HeapAlloc]
mov dword [ebp + 0x44], eax
test eax, eax
je 0x10190b7f
lea ecx, [ebp + 0x40]
push ecx
push dword [ebp + 0x40]
push eax
push 4
push dword [ebp + 0x3c]
call edi
test eax, eax
je 0x10190b7f
push 1
lea eax, [ebp - 0x50]
push eax
call dword [ebp - 0x20]
test eax, eax
je 0x10190b7f
lea eax, [ebp - 0x38]
push eax
lea eax, [ebp + 0x38]
push eax
lea eax, [ebp + 0x50]
push eax
push dword [ebp + 0x44]
call dword [ebp - 0x2c]
test eax, eax
je 0x10190b7f
mov dword [ebp + 0x5c], esi
mov dword [ebp + 0x64], esi
mov dword [ebp + 0x60], 8
mov eax, dword [ebp + 0x38]
test eax, eax
jne 0x101909cb
mov dword [ebp + 0x50], eax
jmp 0x101909e5
cmp dword [ebp + 0x50], 0
je 0x101909e5
push 2
push 0xc
lea ecx, [ebp + 0x5c]
push ecx
push eax
call dword [ebp - 0x1c]
test eax, eax
je 0x10190b7f
push dword [ebp + 0x54]
call dword [ebp + 8]
mov edi, dword [ebp + 0x60]
add edi, 8
add edi, eax
push edi
push 8
call dword [sym.imp.KERNEL32.dll_GetProcessHeap]
push eax
call dword [sym.imp.KERNEL32.dll_HeapAlloc]
mov ebx, eax
mov dword [ebp + 0x18], ebx
test ebx, ebx
je 0x10190b7f
push 2
push edi
push ebx
call dword [ebp - 0x24]
test eax, eax
je 0x10190b7f
xor edi, edi
mov dword [ebp + 4], edi
cmp dword [ebp + 0x50], edi
je 0x10190a89
mov eax, dword [ebp + 0x5c]
test eax, eax
je 0x10190a89
xor esi, esi
mov dword [ebp + 0xc], esi
cmp esi, eax
jae 0x10190a89
lea eax, [ebp + 0x4c]
push eax
push esi
push dword [ebp + 0x38]
call dword [ebp + 0x1c]
test eax, eax
je 0x10190b7f
mov eax, dword [ebp + 0x4c]
test byte [eax + 1], 0x10
jne 0x10190a89
add eax, 8
push eax
push dword [ebp + 0x54]
call dword [ebp - 0x34]
test eax, eax
jne 0x10190a80
mov ecx, dword [ebp + 0x4c]
movzx eax, word [ecx + 2]
push eax
push ecx
push 0xffffffffffffffff
push 2
push ebx
call dword [ebp + 0x48]
test eax, eax
je 0x10190b7f
inc edi
mov dword [ebp + 4], edi
inc esi
mov dword [ebp + 0xc], esi
mov eax, dword [ebp + 0x5c]
jmp 0x10190a35
push dword [ebp + 0x54]
push 0x10000000
push 2
push ebx
call dword [ebp + 0x2c]
test eax, eax
je 0x10190b7f
cmp dword [ebp + 0x50], 0
je 0x10190ae9
mov eax, dword [ebp + 0x5c]
test eax, eax
je 0x10190ae9
lea esp, [esp]
cmp esi, eax
jae 0x10190ae9
lea eax, [ebp + 0x4c]
push eax
push esi
push dword [ebp + 0x38]
call dword [ebp + 0x1c]
test eax, eax
je 0x10190b7f
mov ecx, dword [ebp + 0x4c]
movzx eax, word [ecx + 2]
push eax
push ecx
push 0xffffffffffffffff
push 2
push ebx
call dword [ebp + 0x48]
test eax, eax
je 0x10190b7f
inc esi
mov dword [ebp + 0xc], esi
mov eax, dword [ebp + 0x5c]
jmp 0x10190ab0
push 0
push ebx
push 1
lea eax, [ebp - 0x50]
push eax
call dword [ebp + 0x24]
test eax, eax
je 0x10190b7f
push str.SetSecurityDescriptorControl
mov eax, dword [ebp + 0x58]
push dword [eax]
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov dword [ebp + 0x2c], eax
test eax, eax
je 0x10190b61
xor esi, esi
xor edi, edi
mov dword [ebp + 0x48], esi
mov dword [ebp + 0x24], esi
lea eax, [ebp + 0x24]
push eax
lea eax, [ebp + 0x48]
push eax
push dword [ebp + 0x44]
call dword [ebp - 0x28]
test eax, eax
je 0x10190b7f
mov eax, dword [ebp + 0x48]
test eax, 0x400
je 0x10190b41
mov esi, 0x500
jmp 0x10190b4d
test eax, 0x1000
je 0x10190b4f
mov esi, 0x1000
mov edi, esi
test si, si
je 0x10190b61
push edi
push esi
lea eax, [ebp - 0x50]
push eax
call dword [ebp + 0x2c]
test eax, eax
je 0x10190b7f
lea eax, [ebp - 0x50]
push eax
push 4
push dword [ebp + 0x3c]
call dword [ebp - 0x30]
xor ecx, ecx
mov edx, 1
test eax, eax
cmovne ecx, edx
mov dword [ebp + 0x34], ecx
mov dword [ebp + 0x20], ecx
mov dword [ebp - 4], 0xfffffffe
call fcn.10190b9d
cmp dword [ebp + 0x34], 0
setne al
jmp 0x10190bed
xor al, al
mov ecx, dword [ebp - 0x10]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp + 0x68]
xor ecx, ebp
call fcn.1033d458
lea esp, [ebp + 0x6c]
pop ebp
ret 0xc