Function at 0x4cdb10
Capabilities:
Get user security identifier

Disassembly:
push 0xffffffffffffffff
push 0x553f10
mov eax, dword fs:[0]
push eax
sub esp, 0x58
push ebx
push ebp
push esi
push edi
mov eax, dword [0x668038]
xor eax, esp
push eax
lea eax, [esp + 0x6c]
mov dword fs:[0], eax
xor ecx, ecx
lea esi, [esp + 0x18]
call fcn.004ce090
xor ebx, ebx
mov dword [esp + 0x74], ebx
mov ecx, esi
call fcn.004ce130
test al, al
je 0x4cdbf6
mov ebp, dword [esp + 0x7c]
push ebp
call fcn.004cdec0
mov eax, ebp
call fcn.0049cb10
mov ecx, eax
lea eax, [esp + 0x34]
call fcn.004cdf90
mov byte [esp + 0x74], 1
mov eax, ebp
xor esi, esi
call fcn.0049cb10
test eax, eax
jle 0x4cdbae
mov eax, esi
mov ecx, ebp
call fcn.0040afa0
lea edx, [esp + 0x2c]
call fcn.0049a120
mov edi, eax
lea eax, [esp + 0x34]
call fcn.004cdfc0
mov eax, ebp
inc esi
call fcn.0049cb10
cmp esi, eax
jl 0x4cdb85
lea edi, [ebp + 0x2c]
lea eax, [ebp + 0x28]
push edi
push eax
lea eax, [esp + 0x3c]
call fcn.004665c0
push eax
mov eax, ebp
call fcn.0049cb10
push eax
lea eax, [esp + 0x28]
call fcn.00408130
push eax
call sub.ADVAPI32.dll_LsaLookupNames
cmp eax, ebx
jge 0x4cdc0e
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.004ab550
mov dword [esp + 0x74], 0xffffffff
lea edi, [esp + 0x18]
call fcn.004ce0f0
xor al, al
jmp 0x4cdd80
mov eax, ebp
mov dword [esp + 0x28], ebx
call fcn.0049cb10
test eax, eax
jle 0x4cdd5f
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 0x4cdd31
cmp ecx, 8
je 0x4cdd31
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 0x4cdcad
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 0x4cdc91
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 0x4cdcd0
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 0x4cdbe8
mov ecx, dword [esp + 0x2c]
lea edx, [esp + 0x20]
push edx
lea eax, [ebp + 0x14]
mov dword [esp + 0x24], ecx
call fcn.004b21c0
xor ebx, ebx
jmp 0x4cdd42
lea eax, [esp + 0x20]
push eax
lea eax, [ebp + 0x14]
mov dword [esp + 0x24], ebx
call fcn.004b21c0
mov esi, dword [esp + 0x28]
add dword [esp + 0x1c], 0xc
inc esi
mov eax, ebp
mov dword [esp + 0x28], esi
call fcn.0049cb10
cmp esi, eax
jl 0x4cdc25
mov byte [esp + 0x74], 0
lea eax, [esp + 0x34]
call fcn.004ab550
mov dword [esp + 0x74], 0xffffffff
lea edi, [esp + 0x18]
call fcn.004ce0f0
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