Function at 0x4c8c00
Capabilities:
Get user security identifier

Disassembly:
push 0xffffffffffffffff
push 0x54e0d0
mov eax, dword fs:[0]
push eax
sub esp, 0x58
push ebx
push ebp
push esi
push edi
mov eax, dword [0x660038]
xor eax, esp
push eax
lea eax, [esp + 0x6c]
mov dword fs:[0], eax
xor ecx, ecx
lea esi, [esp + 0x18]
call fcn.004c91b0
xor ebx, ebx
mov dword [esp + 0x74], ebx
mov ecx, esi
call fcn.004c9250
test al, al
je 0x4c8ce6
mov ebp, dword [esp + 0x7c]
push ebp
call fcn.004c8fb0
mov eax, ebp
call fcn.00452440
mov ecx, eax
lea eax, [esp + 0x34]
call fcn.004c90b0
mov byte [esp + 0x74], 1
mov eax, ebp
xor esi, esi
call fcn.00452440
test eax, eax
jle 0x4c8c9e
mov eax, esi
mov ecx, ebp
call fcn.00487850
lea edx, [esp + 0x2c]
call fcn.004957e0
mov edi, eax
lea eax, [esp + 0x34]
call fcn.004c90e0
mov eax, ebp
inc esi
call fcn.00452440
cmp esi, eax
jl 0x4c8c75
lea edi, [ebp + 0x2c]
lea eax, [ebp + 0x28]
push edi
push eax
lea eax, [esp + 0x3c]
call fcn.00497fe0
push eax
mov eax, ebp
call fcn.00452440
push eax
lea eax, [esp + 0x28]
call fcn.00407eb0
push eax
call sub.ADVAPI32.dll_LsaLookupNames
cmp eax, ebx
jge 0x4c8cfe
push eax
call sub.ADVAPI32.dll_LsaNtStatusToWinError
push eax
call dword [sym.imp.KERNEL32.dll_SetLastError]
mov byte [esp + 0x74], 0
lea eax, [esp + 0x34]
call fcn.004a6940
mov dword [esp + 0x74], 0xffffffff
lea edi, [esp + 0x18]
call fcn.004c9210
xor al, al
jmp 0x4c8e70
mov eax, ebp
mov dword [esp + 0x28], ebx
call fcn.00452440
test eax, eax
jle 0x4c8e4f
mov dword [esp + 0x1c], ebx
mov ecx, dword [esp + 0x1c]
mov eax, dword [edi]
add eax, ecx
mov ecx, dword [eax]
cmp ecx, 7
je 0x4c8e21
cmp ecx, 8
je 0x4c8e21
mov eax, dword [eax + 8]
lea edx, [eax + eax*2]
mov eax, dword [ebp + 0x28]
mov ecx, dword [eax + 4]
mov esi, dword [ecx + edx*4 + 8]
push esi
call dword [sym.imp.ADVAPI32.dll_GetSidSubAuthorityCount]
mov bl, byte [eax]
xor eax, eax
mov byte [esp + 0x24], bl
mov dword [esp + 0x48], eax
mov dword [esp + 0x4c], eax
mov dword [esp + 0x50], eax
mov dword [esp + 0x54], eax
mov dword [esp + 0x58], eax
mov dword [esp + 0x5c], eax
mov dword [esp + 0x60], eax
mov dword [esp + 0x64], eax
test bl, bl
jbe 0x4c8d9d
movzx edx, bl
xor edi, edi
lea ebp, [esp + 0x48]
mov dword [esp + 0x20], edx
push edi
push esi
call dword [sym.imp.ADVAPI32.dll_GetSidSubAuthority]
mov eax, dword [eax]
mov dword [ebp], eax
inc edi
add ebp, 4
sub dword [esp + 0x20], 1
jne 0x4c8d81
mov ebp, dword [esp + 0x7c]
mov ecx, dword [ebp + 0x2c]
mov edx, dword [esp + 0x1c]
cmp dword [edx + ecx], 3
lea edi, [ebp + 0x2c]
lea eax, [edx + ecx]
je 0x4c8dc0
mov edx, dword [eax + 4]
movzx ecx, bl
inc bl
mov dword [esp + ecx*4 + 0x48], edx
mov byte [esp + 0x24], bl
mov ecx, dword [esp + 0x64]
mov edx, dword [esp + 0x60]
lea eax, [esp + 0x2c]
push eax
mov eax, dword [esp + 0x60]
push ecx
mov ecx, dword [esp + 0x60]
push edx
mov edx, dword [esp + 0x60]
push eax
mov eax, dword [esp + 0x60]
push ecx
mov ecx, dword [esp + 0x60]
push edx
mov edx, dword [esp + 0x60]
push eax
mov eax, dword [esp + 0x40]
push ecx
push edx
push eax
push esi
call dword [sym.imp.ADVAPI32.dll_GetSidIdentifierAuthority]
push eax
call dword [sym.imp.ADVAPI32.dll_AllocateAndInitializeSid]
test eax, eax
je 0x4c8cd8
mov ecx, dword [esp + 0x2c]
lea edx, [esp + 0x20]
push edx
lea eax, [ebp + 0x14]
mov dword [esp + 0x24], ecx
call fcn.004c9080
xor ebx, ebx
jmp 0x4c8e32
lea eax, [esp + 0x20]
push eax
lea eax, [ebp + 0x14]
mov dword [esp + 0x24], ebx
call fcn.004c9080
mov esi, dword [esp + 0x28]
add dword [esp + 0x1c], 0xc
inc esi
mov eax, ebp
mov dword [esp + 0x28], esi
call fcn.00452440
cmp esi, eax
jl 0x4c8d15
mov byte [esp + 0x74], 0
lea eax, [esp + 0x34]
call fcn.004a6940
mov dword [esp + 0x74], 0xffffffff
lea edi, [esp + 0x18]
call fcn.004c9210
mov al, 1
mov ecx, dword [esp + 0x6c]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x64
ret 4