Function at 0x10012100
Capabilities:
Link many functions at runtime

Disassembly:
sub esp, 0x50
mov eax, dword [esp + 0x54]
push ebx
xor ebx, ebx
push ebp
push esi
cmp eax, ebx
push edi
mov dword [esp + 0x1c], ebx
mov dword [esp + 0x30], ebx
mov dword [esp + 0x14], ebx
mov dword [esp + 0x18], ebx
mov dword [esp + 0x24], 0x44
mov byte [esp + 0x38], bl
mov byte [esp + 0x39], bl
mov byte [esp + 0x3a], bl
mov byte [esp + 0x3b], bl
mov byte [esp + 0x3c], bl
mov byte [esp + 0x3d], 1
je 0x100124b6
cmp dword [esp + 0x70], ebx
je 0x100124b6
cmp dword [esp + 0x74], ebx
je 0x100124b6
mov esi, dword [esp + 0x78]
cmp esi, ebx
je 0x100124b6
push str.advapi32.dll
mov dword [esi], ebx
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov ebp, eax
cmp ebp, ebx
jne 0x1001218d
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [esi], eax
pop edi
pop esi
pop ebp
xor al, al
pop ebx
add esp, 0x50
ret 0x18
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.FreeSid
push ebp
call esi
push str.SetEntriesInAclA
push ebp
mov dword [esp + 0x28], eax
call esi
push str.CreateWellKnownSid
push ebp
mov dword [esp + 0x30], eax
call esi
push str.GetNamedSecurityInfoA
push ebp
mov dword [esp + 0x3c], eax
call esi
push str.SetNamedSecurityInfoA
push ebp
mov edi, eax
call esi
push str.AllocateAndInitializeSid
push ebp
mov dword [esp + 0x34], eax
call esi
mov esi, eax
mov eax, dword [esp + 0x20]
cmp eax, ebx
je 0x100124a3
cmp dword [esp + 0x28], ebx
je 0x100124a3
cmp edi, ebx
je 0x100124a3
cmp dword [esp + 0x2c], ebx
je 0x100124a3
cmp esi, ebx
je 0x100124a3
mov edx, dword [esp + 0x68]
lea eax, [esp + 0x18]
push eax
mov eax, dword [esp + 0x68]
lea ecx, [esp + 0x34]
push ebx
push ecx
push ebx
push ebx
push 4
push edx
push eax
call edi
cmp eax, ebx
je 0x1001223f
mov ecx, dword [esp + 0x78]
push ebp
mov dword [ecx], eax
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
pop edi
pop esi
pop ebp
xor al, al
pop ebx
add esp, 0x50
ret 0x18
call fcn.1000fa00
cmp al, 1
mov byte [esp + 0x13], al
jne 0x100122d9
mov esi, dword [esp + 0x34]
cmp esi, ebx
jne 0x10012276
mov edx, dword [esp + 0x18]
push edx
call dword [sym.imp.KERNEL32.dll_LocalFree]
push ebp
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
pop edi
pop esi
pop ebp
xor al, al
pop ebx
add esp, 0x50
ret 0x18
mov eax, dword [esp + 0x24]
push ebx
push ebx
push ebx
push ebx
push eax
call sub.platform.dll_Ordinal_24
add esp, 0x14
cmp eax, ebx
mov dword [esp + 0x14], eax
je 0x100123b4
lea edx, [esp + 0x24]
push edx
push eax
push ebx
push 1
call esi
test eax, eax
jne 0x1001231d
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, dword [esp + 0x78]
mov edx, dword [esp + 0x18]
push edx
mov dword [ecx], eax
call dword [sym.imp.KERNEL32.dll_LocalFree]
mov eax, dword [esp + 0x14]
push eax
call sub.platform.dll_Ordinal_27
add esp, 4
push ebp
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
pop edi
pop esi
pop ebp
xor al, al
pop ebx
add esp, 0x50
ret 0x18
lea ecx, [esp + 0x14]
lea edx, [esp + 0x38]
push ecx
push ebx
push ebx
push ebx
push ebx
push ebx
push ebx
push ebx
push ebx
push 1
push edx
call esi
test eax, eax
jne 0x1001231d
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, dword [esp + 0x78]
mov edx, dword [esp + 0x18]
push edx
mov dword [ecx], eax
call dword [sym.imp.KERNEL32.dll_LocalFree]
push ebp
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
pop edi
pop esi
pop ebp
xor al, al
pop ebx
add esp, 0x50
ret 0x18
mov ecx, 8
xor eax, eax
lea edi, [esp + 0x40]
rep stosd dword es:[edi], eax
mov eax, 2
mov dword [esp + 0x40], 0x10000000
mov dword [esp + 0x44], eax
mov dword [esp + 0x58], eax
mov eax, dword [esp + 0x14]
mov dword [esp + 0x54], ebx
mov dword [esp + 0x5c], eax
mov al, byte [esp + 0x6c]
cmp al, 1
jne 0x1001235d
mov eax, dword [esp + 0x48]
or al, 3
mov dword [esp + 0x48], eax
lea ecx, [esp + 0x1c]
lea edx, [esp + 0x40]
push ecx
push ebx
push edx
push 1
call dword [esp + 0x38]
cmp eax, ebx
je 0x100123d2
mov ecx, dword [esp + 0x78]
mov dword [ecx], eax
mov al, byte [esp + 0x13]
cmp al, 1
jne 0x100123ab
mov edx, dword [esp + 0x14]
push edx
call sub.platform.dll_Ordinal_27
mov ecx, dword [esp + 0x1c]
add esp, 4
push ecx
call dword [sym.imp.KERNEL32.dll_LocalFree]
push ebp
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
pop edi
pop esi
pop ebp
xor al, al
pop ebx
add esp, 0x50
ret 0x18
mov eax, dword [esp + 0x14]
push eax
call dword [esp + 0x24]
mov ecx, dword [esp + 0x18]
push ecx
call dword [sym.imp.KERNEL32.dll_LocalFree]
push ebp
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
pop edi
pop esi
pop ebp
xor al, al
pop ebx
add esp, 0x50
ret 0x18
mov edx, dword [esp + 0x1c]
mov eax, dword [esp + 0x68]
mov ecx, dword [esp + 0x64]
push ebx
push edx
push ebx
push ebx
push 4
push eax
push ecx
call dword [esp + 0x48]
cmp eax, ebx
je 0x10012452
mov edx, dword [esp + 0x78]
mov esi, dword [sym.imp.KERNEL32.dll_LocalFree]
mov dword [edx], eax
mov eax, dword [esp + 0x1c]
push eax
call esi
cmp byte [esp + 0x13], 1
jne 0x1001242f
mov ecx, dword [esp + 0x14]
push ecx
call sub.platform.dll_Ordinal_27
mov eax, dword [esp + 0x1c]
add esp, 4
push eax
call esi
push ebp
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
pop edi
pop esi
pop ebp
xor al, al
pop ebx
add esp, 0x50
ret 0x18
mov edx, dword [esp + 0x14]
push edx
call dword [esp + 0x24]
mov eax, dword [esp + 0x18]
push eax
call esi
push ebp
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
pop edi
pop esi
pop ebp
xor al, al
pop ebx
add esp, 0x50
ret 0x18
mov ecx, dword [esp + 0x1c]
push ecx
call dword [sym.imp.KERNEL32.dll_LocalFree]
cmp byte [esp + 0x13], 1
jne 0x10012473
mov edx, dword [esp + 0x14]
push edx
call sub.platform.dll_Ordinal_27
add esp, 4
jmp 0x1001247c
mov eax, dword [esp + 0x14]
push eax
call dword [esp + 0x24]
push ebp
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
mov edx, dword [esp + 0x70]
mov ecx, dword [esp + 0x30]
mov eax, dword [esp + 0x18]
pop edi
mov dword [edx], ecx
mov ecx, dword [esp + 0x70]
pop esi
pop ebp
mov dword [ecx], eax
mov al, 1
pop ebx
add esp, 0x50
ret 0x18
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov edx, dword [esp + 0x78]
push ebp
mov dword [edx], eax
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
pop edi
pop esi
pop ebp
xor al, al
pop ebx
add esp, 0x50
ret 0x18