Function at 0x4815c0
Capabilities:
Link many functions at runtime

Disassembly:
push 0xffffffffffffffff
push 0x4e69b8
mov eax, dword fs:[0]
push eax
sub esp, 0x1c
mov eax, dword [0x64a000]
xor eax, esp
mov dword [esp + 0x18], eax
push ebx
push ebp
push esi
push edi
mov eax, dword [0x64a000]
xor eax, esp
push eax
lea eax, [esp + 0x30]
mov dword fs:[0], eax
cmp byte [0x64ea78], 0
jne 0x48180b
push 0x64ea78
call fcn.004a2730
mov ebx, eax
add esp, 4
mov dword [esp + 0x20], ebx
test ebx, ebx
je 0x481624
mov ecx, ebx
call fcn.00424400
or ebx, 1
mov dword [esp + 0x20], ebx
cmp byte [0x64ea78], 0
mov dword [esp + 0x38], 0
jne 0x4817fc
push 1
push str.advapi32
mov byte [0x64ea78], 1
call fcn.0045a400
mov ebp, dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov esi, eax
add esp, 8
mov dword [esp + 0x1c], esi
test esi, esi
je 0x481693
push str.GetNamedSecurityInfoW
push esi
call ebp
push str.LookupAccountSidW
push esi
mov dword [0x64ea18], eax
call ebp
push str.BuildTrusteeWithSidW
push esi
mov dword [0x64ea1c], eax
call ebp
push str.GetEffectiveRightsFromAclW
push esi
mov dword [0x64ea20], eax
call ebp
mov dword [0x64ea24], eax
cmp dword [0x64ea20], 0
je 0x4817c0
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
cmp dword [0x64ea38], 0xfffffffe
mov edi, eax
mov dword [esp + 0x14], 0
jle 0x4816be
call fcn.00480300
lea eax, [esp + 0x14]
push eax
push 8
push edi
call dword [sym.imp.ADVAPI32.dll_OpenProcessToken]
test eax, eax
je 0x481772
lea eax, [esp + 0x18]
mov dword [esp + 0x18], 0
push eax
push 0
push 0
push 1
push dword [esp + 0x24]
call dword [sym.imp.ADVAPI32.dll_GetTokenInformation]
mov edi, dword [esp + 0x18]
test edi, edi
je 0x481768
push edi
call fcn.004c2808
add esp, 4
mov dword [esp + 0x24], eax
lea ecx, [esp + 0x18]
push ecx
push edi
push eax
push 1
push dword [esp + 0x24]
call dword [sym.imp.ADVAPI32.dll_GetTokenInformation]
test eax, eax
je 0x48175c
mov edi, dword [esp + 0x24]
mov edi, dword [edi]
push edi
call dword [sym.imp.ADVAPI32.dll_GetLengthSid]
mov esi, eax
push esi
call fcn.004c2808
add esp, 4
mov dword [0x64ea30], eax
push edi
push eax
push esi
call dword [sym.imp.ADVAPI32.dll_CopySid]
test eax, eax
je 0x481758
push dword [0x64ea30]
push 0x64ea44
call dword [0x64ea20]
mov esi, dword [esp + 0x1c]
push dword [esp + 0x24]
call fcn.004c27d0
add esp, 4
push dword [esp + 0x14]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push str.AllocateAndInitializeSid
push esi
call ebp
test eax, eax
je 0x4817c0
push 0x64ea34
push 0
push 0
push 0
push 0
push 0
push 0
push 0
push 0
push 1
lea ecx, [esp + 0x4c]
mov dword [esp + 0x4c], 0
push ecx
mov word [esp + 0x54], 0x100
call eax
test eax, eax
je 0x4817c0
push dword [0x64ea34]
push 0x64ea58
call dword [0x64ea20]
push 1
push str.userenv
call fcn.0045a400
add esp, 8
test eax, eax
je 0x4817e0
push str.GetUserProfileDirectoryW
push eax
call ebp
mov dword [0x64ea28], eax
push 0x51f310
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
test eax, eax
je 0x4817fc
push str.GetVolumePathNamesForVolumeNameW
push eax
call ebp
mov dword [0x64ea2c], eax
test bl, 1
je 0x48180b
and ebx, 0xfffffffe
mov ecx, ebx
call fcn.004247e0
mov ecx, dword [esp + 0x30]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
mov ecx, dword [esp + 0x18]
xor ecx, esp
call fcn.004c17c4
add esp, 0x28
ret