Function at 0x4130a0
Capabilities:
Link many functions at runtime

Disassembly:
sub esp, 0x44
mov eax, dword [0x5c8810]
xor eax, esp
mov dword [esp + 0x40], eax
mov eax, dword [esp + 0x4c]
push ebx
xor ebx, ebx
push edi
push str.Advapi32.dll
mov dword [esp + 0x2c], eax
mov dword [esp + 0x10], ebx
mov dword [esp + 0xc], ebx
mov dword [esp + 0x14], ebx
mov dword [esp + 0x24], 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 dword [esp + 0x1c], ebx
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov edi, eax
cmp edi, ebx
je 0x4132f0
push ebp
push esi
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.AllocateAndInitializeSid
push edi
call esi
push str.FreeSid
push edi
mov ebp, eax
call esi
push str.GetLengthSid
push edi
mov dword [esp + 0x28], eax
call esi
push str.InitializeAcl
push edi
mov dword [esp + 0x24], eax
call esi
push str.InitializeSecurityDescriptor
push edi
mov dword [esp + 0x34], eax
call esi
push str.SetSecurityDescriptorDacl
push edi
mov dword [esp + 0x2c], eax
call esi
push str.AddAce
push edi
mov dword [esp + 0x3c], eax
call esi
mov dword [esp + 0x38], eax
cmp ebp, ebx
je 0x4132ee
cmp dword [esp + 0x20], ebx
je 0x4132ee
mov esi, dword [esp + 0x1c]
cmp esi, ebx
je 0x4132ee
cmp dword [esp + 0x2c], ebx
je 0x4132ee
cmp dword [esp + 0x24], ebx
je 0x4132ee
cmp dword [esp + 0x34], ebx
je 0x4132ee
cmp eax, ebx
je 0x4132ee
lea ecx, [esp + 0x10]
push ecx
push ebx
push ebx
push ebx
push ebx
push ebx
push ebx
push ebx
push ebx
push 1
lea edx, [esp + 0x70]
push edx
call ebp
test eax, eax
je 0x4132ee
mov eax, dword [esp + 0x10]
push eax
call esi
mov ebp, eax
add ebp, 0xc
push ebp
call fcn.005120eb
mov esi, eax
add esp, 4
cmp esi, ebx
je 0x4132ee
mov byte [esi], bl
mov word [esi + 2], bp
mov byte [esi + 1], bl
mov dword [esi + 4], 0x1f0001
mov ecx, dword [esp + 0x10]
push ecx
call dword [esp + 0x20]
mov edx, dword [esp + 0x10]
push eax
push edx
lea eax, [esi + 8]
push eax
call fcn.00532150
add ebp, 8
push ebp
mov dword [esp + 0x2c], ebp
call fcn.005120eb
mov ebp, eax
add esp, 0x10
cmp ebp, ebx
je 0x4132c7
mov ecx, dword [esp + 0x1c]
push 2
push ecx
push ebp
call dword [esp + 0x38]
test eax, eax
je 0x4132c7
movzx edx, word [esi + 2]
push edx
push esi
push 0xffffffffffffffff
push 2
push ebp
call dword [esp + 0x4c]
test eax, eax
je 0x4132c7
push 0x200
call fcn.005120eb
add esp, 4
mov dword [esp + 0x18], eax
cmp eax, ebx
je 0x4132c7
push 1
push eax
call dword [esp + 0x2c]
test eax, eax
je 0x4132c7
mov eax, dword [esp + 0x18]
push ebx
push ebp
push 1
push eax
call dword [esp + 0x44]
test eax, eax
je 0x4132c7
mov edx, dword [esp + 0x30]
mov ecx, dword [esp + 0x18]
mov eax, dword [esp + 0x58]
push edx
mov dword [esp + 0x44], ecx
push eax
lea ecx, [esp + 0x44]
push ecx
mov dword [esp + 0x48], 0xc
mov dword [esp + 0x50], ebx
call dword [sym.imp.KERNEL32.dll_CreateMutexA]
mov dword [esp + 0x14], eax
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [esp + 0x28], eax
cmp dword [esp + 0x14], ebx
jne 0x4132c7
mov edx, dword [esp + 0x30]
push edx
push ebx
push 0x120001
call dword [sym.imp.KERNEL32.dll_OpenMutexA]
mov dword [esp + 0x14], eax
push esi
call fcn.005120f6
mov eax, dword [esp + 0x1c]
add esp, 4
cmp eax, ebx
je 0x4132e1
push eax
call fcn.005120f6
add esp, 4
cmp ebp, ebx
je 0x4132ee
push ebp
call fcn.005120f6
add esp, 4
pop esi
pop ebp
mov eax, dword [esp + 8]
cmp eax, ebx
je 0x4132fd
push eax
call dword [esp + 0x1c]
mov eax, dword [esp + 0x20]
push eax
call dword [sym.imp.KERNEL32.dll_SetLastError]
cmp edi, ebx
je 0x413313
push edi
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
mov ecx, dword [esp + 0x48]
mov eax, dword [esp + 0xc]
pop edi
pop ebx
xor ecx, esp
call fcn.0053081c
add esp, 0x44
ret 8