Function at 0x420f70
Capabilities:
Link many functions at runtime

Disassembly:
sub esp, 0x48
push ebx
push ebp
push esi
push edi
xor ebx, ebx
push 0x44
push ebx
mov dword [esp + 0x2c], ebx
mov dword [esp + 0x18], ebx
mov byte [esp + 0x44], bl
mov byte [esp + 0x45], bl
mov byte [esp + 0x46], bl
mov byte [esp + 0x47], bl
mov byte [esp + 0x48], bl
mov byte [esp + 0x49], 1
mov byte [esp + 0x4c], bl
mov byte [esp + 0x4d], bl
mov byte [esp + 0x4e], bl
mov byte [esp + 0x4f], bl
mov byte [esp + 0x50], bl
mov byte [esp + 0x51], 0x10
mov dword [esp + 0x20], ebx
mov dword [esp + 0x28], ebx
mov dword [esp + 0x34], 0x44
mov dword [esp + 0x24], ebx
call dword [sym.imp.KERNEL32.dll_LocalAlloc]
mov edi, eax
cmp edi, ebx
mov dword [esp + 0x14], edi
je 0x4211cb
lea eax, [esp + 0x2c]
push eax
push edi
push ebx
push 0x54
call dword [sym.imp.ADVAPI32.dll_CreateWellKnownSid]
test eax, eax
je 0x420ff9
mov dword [esp + 0x1c], 1
lea ecx, [esp + 0x18]
mov esi, dword [sym.imp.ADVAPI32.dll_AllocateAndInitializeSid]
push ecx
push ebx
push ebx
push ebx
push ebx
push ebx
push ebx
push ebx
push ebx
lea edx, [esp + 0x60]
push 1
push edx
call esi
test eax, eax
je 0x4211cb
lea eax, [esp + 0x20]
lea ecx, [esp + 0x44]
push eax
push ebx
push ebx
push ebx
push ebx
push ebx
push ebx
push ebx
push 0x1000
push 1
push ecx
call esi
test eax, eax
je 0x4211cb
mov ebp, dword [esp + 0x5c]
cmp dword [ebp + 8], ebx
je 0x421051
cmp dword [ebp + 4], ebx
jne 0x4211cb
push str.kernel32.dll
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
mov esi, eax
cmp esi, ebx
je 0x4211cb
mov edi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.CreateBoundaryDescriptorA
push esi
mov dword [ebp], esi
call edi
push str.DeleteBoundaryDescriptor
push esi
mov dword [esp + 0x38], eax
call edi
push str.AddSIDToBoundaryDescriptor
push esi
mov dword [esp + 0x30], eax
call edi
push str.CreatePrivateNamespaceA
push esi
mov dword [esp + 0x3c], eax
call edi
push str.OpenPrivateNamespaceA
push esi
mov dword [esp + 0x64], eax
call edi
push str.AddIntegrityLabelToBoundaryDescriptor
push esi
mov dword [esp + 0x40], eax
call edi
mov eax, dword [esp + 0x30]
cmp eax, ebx
je 0x4211c7
cmp dword [esp + 0x28], ebx
je 0x4211c7
mov esi, dword [esp + 0x34]
cmp esi, ebx
je 0x4211c7
cmp dword [esp + 0x5c], ebx
je 0x4211c7
mov edi, dword [esp + 0x38]
cmp edi, ebx
je 0x4211c7
lea edx, [ebp + 0xc]
push ebx
push edx
call eax
cmp eax, ebx
mov dword [esp + 0x10], eax
je 0x4211c7
mov eax, dword [esp + 0x18]
lea ecx, [esp + 0x10]
push eax
push ecx
call esi
test eax, eax
je 0x4211c7
cmp dword [esp + 0x1c], ebx
je 0x42112c
mov edx, dword [esp + 0x14]
lea eax, [esp + 0x10]
push edx
push eax
call esi
test eax, eax
je 0x4211c7
mov eax, dword [esp + 0x10]
lea esi, [ebp + 0x110]
push esi
push eax
mov dword [ebp + 4], eax
call edi
cmp eax, ebx
mov dword [ebp + 8], eax
jne 0x4211bf
push 0x14
mov dword [esp + 0x20], ebx
mov dword [esp + 0x50], 0xc
mov dword [esp + 0x58], ebx
call dword [sym.imp.MSVCRT.dll_malloc]
lea ecx, [esp + 0x20]
mov dword [esp + 0x54], eax
push ecx
push eax
call fcn.00420af0
mov edx, dword [esp + 0x1c]
add esp, 0xc
lea eax, [esp + 0x4c]
push esi
push edx
push eax
call dword [esp + 0x68]
mov dword [ebp + 8], eax
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov eax, dword [esp + 0x50]
cmp eax, ebx
je 0x421198
push eax
call dword [sym.imp.MSVCRT.dll_free]
add esp, 4
mov eax, dword [esp + 0x1c]
cmp eax, ebx
je 0x4211af
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_GetProcessHeap]
push eax
call dword [sym.imp.KERNEL32.dll_HeapFree]
mov ebp, dword [ebp + 8]
cmp ebp, ebx
je 0x4211c7
push ebp
call fcn.00420a20
add esp, 4
mov dword [esp + 0x24], 1
mov edi, dword [esp + 0x14]
mov eax, dword [esp + 0x18]
mov esi, dword [sym.imp.ADVAPI32.dll_FreeSid]
cmp eax, ebx
je 0x4211dc
push eax
call esi
mov eax, dword [esp + 0x20]
cmp eax, ebx
je 0x4211e7
push eax
call esi
cmp edi, ebx
je 0x4211f2
push edi
call dword [sym.imp.KERNEL32.dll_LocalFree]
mov esi, dword [esp + 0x24]
cmp esi, ebx
jne 0x421207
mov eax, dword [esp + 0x10]
cmp eax, ebx
je 0x421207
push eax
call dword [esp + 0x2c]
mov eax, esi
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x48
ret