Function at 0x5b93d0
Capabilities:
Link many functions at runtime

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x64
mov eax, dword [0x7e6410]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push edi
push str.Advapi32.dll
mov dword [ebp - 0x60], eax
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov edi, eax
test edi, edi
jne 0x5b9407
pop edi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.006b3266
mov esp, ebp
pop ebp
ret
push ebx
push esi
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push 0x74e098
push edi
mov dword [ebp - 0x2c], 0
mov dword [ebp - 0x30], 0
mov dword [ebp - 0x40], 0
mov dword [ebp - 0x48], 0
mov dword [ebp - 0x14], 0x20089
mov dword [ebp - 0x10], 0x116
mov dword [ebp - 0xc], 0x200a0
mov dword [ebp - 8], 0x1f01ff
mov dword [ebp - 0x34], 0
mov dword [ebp - 0x50], 0
mov dword [ebp - 0x58], 0
mov dword [ebp - 0x44], 0
mov dword [ebp - 0x4c], 0x14
call esi
push 0x74e0a8
push edi
mov dword [ebp - 0x5c], eax
call esi
push str.DuplicateToken
push edi
mov dword [ebp - 0x64], eax
call esi
push str.MapGenericMask
push edi
mov ebx, eax
call esi
push str.GetNamedSecurityInfoW
push edi
mov dword [ebp - 0x38], eax
call esi
push str.AccessCheck
push edi
mov dword [ebp - 0x3c], eax
call esi
mov esi, dword [ebp - 0x64]
mov dword [ebp - 0x54], eax
test esi, esi
je 0x5b95d0
test ebx, ebx
je 0x5b95d0
cmp dword [ebp - 0x38], 0
je 0x5b95d0
cmp dword [ebp - 0x3c], 0
je 0x5b95d0
test eax, eax
je 0x5b95d0
lea eax, [ebp - 0x2c]
push eax
push 1
push 0xe
call dword [sym.imp.KERNEL32.dll_GetCurrentThread]
push eax
call dword [ebp - 0x5c]
test eax, eax
jne 0x5b9520
lea eax, [ebp - 0x2c]
push eax
push 0xe
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call esi
test eax, eax
jne 0x5b9520
push edi
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
pop esi
pop ebx
mov eax, 1
pop edi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.006b3266
mov esp, ebp
pop ebp
ret
lea eax, [ebp - 0x30]
push eax
push 2
push dword [ebp - 0x2c]
call ebx
mov esi, dword [sym.imp.KERNEL32.dll_CloseHandle]
test eax, eax
jne 0x5b954d
push dword [ebp - 0x2c]
call esi
push dword [ebp - 0x30]
mov dword [ebp - 0x2c], 0
call esi
mov dword [ebp - 0x30], 0
lea eax, [ebp - 0x14]
push eax
lea eax, [ebp + 0xc]
push eax
call dword [ebp - 0x38]
lea eax, [ebp - 0x34]
push eax
push 0
lea eax, [ebp - 0x44]
push eax
lea eax, [ebp - 0x58]
push eax
lea eax, [ebp - 0x50]
push eax
push 7
push 1
push dword [ebp - 0x60]
call dword [ebp - 0x3c]
lea eax, [ebp - 0x40]
push eax
lea eax, [ebp - 0x48]
push eax
lea eax, [ebp - 0x4c]
push eax
lea eax, [ebp - 0x28]
push eax
lea eax, [ebp - 0x14]
push eax
push dword [ebp + 0xc]
push dword [ebp - 0x30]
push dword [ebp - 0x34]
call dword [ebp - 0x54]
push dword [ebp - 0x2c]
call esi
push dword [ebp - 0x30]
mov dword [ebp - 0x2c], 0
call esi
push dword [ebp - 0x34]
mov dword [ebp - 0x30], 0
call dword [sym.imp.KERNEL32.dll_LocalFree]
push edi
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
mov eax, dword [ebp - 0x40]
pop esi
pop ebx
pop edi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.006b3266
mov esp, ebp
pop ebp
ret
push edi
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
mov ecx, dword [ebp - 4]
xor eax, eax
pop esi
pop ebx
xor ecx, ebp
pop edi
call fcn.006b3266
mov esp, ebp
pop ebp
ret