Function at 0x4a09d0
Capabilities:
Link many functions at runtime

Disassembly:
sub esp, 0x54
mov eax, dword [0x5265f0]
xor eax, esp
mov dword [esp + 0x50], eax
mov eax, dword [esp + 0x5c]
push ebx
xor ebx, ebx
push ebp
push esi
push edi
push str.Advapi32.dll
mov dword [esp + 0x48], eax
mov dword [esp + 0x40], ebx
mov dword [esp + 0x14], ebx
mov dword [esp + 0x18], ebx
mov dword [esp + 0x1c], ebx
mov dword [esp + 0x3c], ebx
mov byte [esp + 0x5c], bl
mov byte [esp + 0x5d], bl
mov byte [esp + 0x5e], bl
mov byte [esp + 0x5f], bl
mov byte [esp + 0x60], bl
mov byte [esp + 0x61], 5
xor edi, edi
mov dword [esp + 0x28], ebx
mov dword [esp + 0x20], ebx
mov dword [esp + 0x38], ebx
mov dword [esp + 0x34], ebx
mov dword [esp + 0x30], ebx
mov dword [esp + 0x24], ebx
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov esi, eax
cmp esi, ebx
mov dword [esp + 0x40], esi
je 0x4a0adc
mov ebp, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push 0x4e2e78
push esi
call ebp
mov edi, eax
cmp edi, ebx
je 0x4a0cbb
push 0x4e2e70
push esi
call ebp
cmp eax, ebx
mov dword [esp + 0x24], eax
je 0x4a0cbb
push 0x4e2e60
push esi
call ebp
cmp eax, ebx
mov dword [esp + 0x1c], eax
je 0x4a0cbb
push 0x4e2e50
push esi
call ebp
cmp eax, ebx
mov dword [esp + 0x34], eax
je 0x4a0cbb
push 0x4e2e30
push esi
call ebp
cmp eax, ebx
mov dword [esp + 0x30], eax
je 0x4a0cbb
push 0x4e2e14
push esi
call ebp
cmp eax, ebx
mov dword [esp + 0x2c], eax
je 0x4a0cbb
push str.AddAce
push esi
call ebp
cmp eax, ebx
mov dword [esp + 0x20], eax
je 0x4a0cbb
lea ecx, [esp + 0x10]
push ecx
push ebx
push ebx
push ebx
push ebx
push ebx
push ebx
push 0x220
push 0x20
push 2
lea edx, [esp + 0x80]
push edx
call edi
test eax, eax
je 0x4a0cbb
lea eax, [esp + 0x14]
push eax
push ebx
push ebx
push ebx
push ebx
push ebx
push ebx
push ebx
push 0x12
push 1
lea ecx, [esp + 0x80]
push ecx
call edi
test eax, eax
je 0x4a0cbb
mov edx, dword [esp + 0x10]
push edx
call dword [esp + 0x20]
mov edi, eax
add edi, 0xc
push edi
mov dword [esp + 0x2c], edi
call fcn.004b3e82
mov ebp, eax
add esp, 4
cmp ebp, ebx
je 0x4a0cbb
mov esi, dword [esp + 0x1c]
mov byte [ebp], bl
mov word [ebp + 2], di
mov byte [ebp + 1], bl
mov dword [ebp + 4], 0x1f0001
mov eax, dword [esp + 0x10]
push eax
call esi
mov ecx, dword [esp + 0x10]
push eax
push ecx
lea edx, [ebp + 8]
push edx
call fcn.004c4ce0
mov eax, dword [esp + 0x20]
add esp, 0xc
push eax
call esi
mov edi, eax
add edi, 0xc
push edi
call fcn.004b3e82
mov esi, eax
add esp, 4
cmp esi, ebx
je 0x4a0c81
mov byte [esi], bl
mov word [esi + 2], di
mov byte [esi + 1], bl
mov dword [esi + 4], 0x1f0001
mov ecx, dword [esp + 0x14]
push ecx
call dword [esp + 0x20]
mov edx, dword [esp + 0x14]
push eax
push edx
lea eax, [esi + 8]
push eax
call fcn.004c4ce0
mov ecx, dword [esp + 0x34]
lea edi, [edi + ecx + 8]
push edi
mov dword [esp + 0x38], edi
call fcn.004b3e82
mov edi, eax
add esp, 0x10
cmp edi, ebx
je 0x4a0c83
mov edx, dword [esp + 0x28]
push 2
push edx
push edi
call dword [esp + 0x40]
test eax, eax
je 0x4a0c83
movzx eax, word [ebp + 2]
push eax
push ebp
push 0xffffffffffffffff
push 2
push edi
call dword [esp + 0x34]
test eax, eax
je 0x4a0c83
movzx ecx, word [esi + 2]
push ecx
push esi
push 0xffffffffffffffff
push 2
push edi
call dword [esp + 0x34]
test eax, eax
je 0x4a0c83
push 0x200
call fcn.004b3e82
add esp, 4
cmp eax, ebx
mov dword [esp + 0x18], eax
je 0x4a0c83
push 1
push eax
call dword [esp + 0x38]
test eax, eax
je 0x4a0c83
mov edx, dword [esp + 0x18]
push ebx
push edi
push 1
push edx
call dword [esp + 0x3c]
test eax, eax
je 0x4a0c83
mov ecx, dword [esp + 0x44]
mov eax, dword [esp + 0x18]
mov edx, dword [esp + 0x68]
push ecx
mov dword [esp + 0x54], eax
push edx
lea eax, [esp + 0x54]
push eax
mov dword [esp + 0x58], 0xc
mov dword [esp + 0x60], ebx
call dword [sym.imp.KERNEL32.dll_CreateMutexA]
mov dword [esp + 0x3c], eax
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [esp + 0x38], eax
jmp 0x4a0c83
mov edi, ebx
push ebp
call fcn.004b3e87
add esp, 4
cmp esi, ebx
je 0x4a0c99
push esi
call fcn.004b3e87
add esp, 4
mov eax, dword [esp + 0x18]
cmp eax, ebx
je 0x4a0caa
push eax
call fcn.004b3e87
add esp, 4
cmp edi, ebx
je 0x4a0cb7
push edi
call fcn.004b3e87
add esp, 4
mov esi, dword [esp + 0x40]
mov eax, dword [esp + 0x10]
cmp eax, ebx
je 0x4a0cc8
push eax
call dword [esp + 0x28]
mov eax, dword [esp + 0x14]
cmp eax, ebx
je 0x4a0cd5
push eax
call dword [esp + 0x28]
mov edi, dword [esp + 0x3c]
cmp edi, ebx
je 0x4a0ce8
mov ecx, dword [esp + 0x38]
push ecx
call dword [sym.imp.KERNEL32.dll_SetLastError]
cmp esi, ebx
je 0x4a0cf3
push esi
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
mov ecx, dword [esp + 0x60]
mov eax, edi
pop edi
pop esi
pop ebp
pop ebx
xor ecx, esp
call fcn.004c2fd1
add esp, 0x54
ret 8