Function at 0x550ed5
Capabilities:
Link many functions at runtime

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x58
mov eax, dword [0x614b80]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 0xc]
push ebx
xor ebx, ebx
push str.Advapi32.dll
mov dword [ebp - 0x4c], eax
mov dword [ebp - 0x34], ebx
mov dword [ebp - 0x14], ebx
mov dword [ebp - 0x18], ebx
mov dword [ebp - 0x24], ebx
mov dword [ebp - 0x1c], ebx
mov dword [ebp - 0x40], ebx
mov byte [ebp - 0xc], bl
mov byte [ebp - 0xb], bl
mov byte [ebp - 0xa], bl
mov byte [ebp - 9], bl
mov byte [ebp - 8], bl
mov byte [ebp - 7], 5
mov dword [ebp - 0x28], ebx
call dword [sym.imp.KERNEL32.DLL_LoadLibraryA]
mov dword [ebp - 0x10], eax
cmp eax, ebx
je 0x551168
push esi
mov esi, dword [sym.imp.KERNEL32.DLL_GetProcAddress]
push edi
push 0x59fbd4
push eax
call esi
push 0x59fbcc
push dword [ebp - 0x10]
mov edi, eax
call esi
push 0x59fbbc
push dword [ebp - 0x10]
mov dword [ebp - 0x28], eax
call esi
push 0x59fbac
push dword [ebp - 0x10]
mov dword [ebp - 0x20], eax
call esi
push 0x59fb8c
push dword [ebp - 0x10]
mov dword [ebp - 0x30], eax
call esi
push 0x59fb70
push dword [ebp - 0x10]
mov dword [ebp - 0x48], eax
call esi
push str.AddAce
push dword [ebp - 0x10]
mov dword [ebp - 0x3c], eax
call esi
mov dword [ebp - 0x44], eax
cmp edi, ebx
je 0x551166
cmp dword [ebp - 0x28], ebx
je 0x551166
cmp dword [ebp - 0x20], ebx
je 0x551166
cmp dword [ebp - 0x30], ebx
je 0x551166
cmp dword [ebp - 0x48], ebx
je 0x551166
cmp dword [ebp - 0x3c], ebx
je 0x551166
cmp eax, ebx
je 0x551166
lea eax, [ebp - 0x14]
push eax
push ebx
push ebx
push ebx
push ebx
push ebx
push ebx
push 0x220
push 0x20
push 2
lea eax, [ebp - 0xc]
push eax
call edi
test eax, eax
je 0x551166
lea eax, [ebp - 0x18]
push eax
push ebx
push ebx
push ebx
push ebx
push ebx
push ebx
push ebx
push 0x12
push 1
lea eax, [ebp - 0xc]
push eax
call edi
test eax, eax
je 0x551166
push dword [ebp - 0x14]
call dword [ebp - 0x20]
mov esi, eax
add esi, 0xc
push esi
mov dword [ebp - 0x2c], esi
call fcn.005684a2
mov edi, eax
pop ecx
cmp edi, ebx
je 0x551166
mov byte [edi], bl
mov word [edi + 2], si
mov byte [edi + 1], bl
mov dword [edi + 4], 0x1f0001
push dword [ebp - 0x14]
call dword [ebp - 0x20]
push eax
push dword [ebp - 0x14]
lea eax, [edi + 8]
push eax
call fcn.0057ae10
add esp, 0xc
push dword [ebp - 0x18]
call dword [ebp - 0x20]
add eax, 0xc
push eax
mov dword [ebp - 0x38], eax
call fcn.005684a2
mov esi, eax
pop ecx
cmp esi, ebx
je 0x551138
mov ax, word [ebp - 0x38]
mov byte [esi], bl
mov word [esi + 2], ax
mov byte [esi + 1], bl
mov dword [esi + 4], 0x1f0001
push dword [ebp - 0x18]
call dword [ebp - 0x20]
push eax
push dword [ebp - 0x18]
lea eax, [esi + 8]
push eax
call fcn.0057ae10
mov ecx, dword [ebp - 0x2c]
mov eax, dword [ebp - 0x38]
lea eax, [eax + ecx + 8]
push eax
mov dword [ebp - 0x2c], eax
call fcn.005684a2
add esp, 0x10
mov dword [ebp - 0x24], eax
cmp eax, ebx
je 0x551138
push 2
push dword [ebp - 0x2c]
push eax
call dword [ebp - 0x30]
test eax, eax
je 0x551138
movzx eax, word [edi + 2]
push eax
push edi
push 0xffffffffffffffff
push 2
push dword [ebp - 0x24]
call dword [ebp - 0x44]
test eax, eax
je 0x551138
movzx eax, word [esi + 2]
push eax
push esi
push 0xffffffffffffffff
push 2
push dword [ebp - 0x24]
call dword [ebp - 0x44]
test eax, eax
je 0x551138
push 0x200
call fcn.005684a2
pop ecx
mov dword [ebp - 0x1c], eax
cmp eax, ebx
je 0x551138
push 1
push eax
call dword [ebp - 0x48]
test eax, eax
je 0x551138
push ebx
push ebx
push 1
push dword [ebp - 0x1c]
call dword [ebp - 0x3c]
push dword [ebp - 0x4c]
mov eax, dword [ebp - 0x1c]
push dword [ebp + 8]
mov dword [ebp - 0x54], eax
lea eax, [ebp - 0x58]
push eax
mov dword [ebp - 0x58], 0xc
mov dword [ebp - 0x50], ebx
call dword [sym.imp.KERNEL32.DLL_CreateMutexA]
mov dword [ebp - 0x34], eax
call dword [sym.imp.KERNEL32.DLL_GetLastError]
mov dword [ebp - 0x40], eax
push edi
call fcn.005684ad
pop ecx
cmp esi, ebx
je 0x55114a
push esi
call fcn.005684ad
pop ecx
cmp dword [ebp - 0x1c], ebx
je 0x551158
push dword [ebp - 0x1c]
call fcn.005684ad
pop ecx
cmp dword [ebp - 0x24], ebx
je 0x551166
push dword [ebp - 0x24]
call fcn.005684ad
pop ecx
pop edi
pop esi
cmp dword [ebp - 0x14], ebx
je 0x551173
push dword [ebp - 0x14]
call dword [ebp - 0x28]
cmp dword [ebp - 0x18], ebx
je 0x55117e
push dword [ebp - 0x18]
call dword [ebp - 0x28]
push dword [ebp - 0x40]
call dword [sym.imp.KERNEL32.DLL_SetLastError]
cmp dword [ebp - 0x10], ebx
pop ebx
je 0x551196
push dword [ebp - 0x10]
call dword [sym.imp.KERNEL32.DLL_FreeLibrary]
mov ecx, dword [ebp - 4]
mov eax, dword [ebp - 0x34]
xor ecx, ebp
call fcn.0057943e
leave
ret 8