Function at 0x4a7640
Capabilities:
Get user security identifier

Disassembly:
push 0xffffffffffffffff
push 0x5ef2a0
mov eax, dword fs:[0]
push eax
sub esp, 0x58
push ebx
push ebp
push esi
push edi
mov eax, dword [0x72d630]
xor eax, esp
push eax
lea eax, [esp + 0x6c]
mov dword fs:[0], eax
xor ecx, ecx
lea esi, [esp + 0x18]
call fcn.004a7bc0
xor ebx, ebx
mov dword [esp + 0x74], ebx
mov ecx, esi
call fcn.004a7c60
test al, al
je 0x4a7726
mov ebp, dword [esp + 0x7c]
push ebp
call fcn.004a79f0
mov eax, ebp
call fcn.0044d900
mov ecx, eax
lea eax, [esp + 0x34]
call fcn.004a7ac0
mov byte [esp + 0x74], 1
mov eax, ebp
xor esi, esi
call fcn.0044d900
test eax, eax
jle 0x4a76de
mov eax, esi
mov ecx, ebp
call fcn.0040aa50
lea edx, [esp + 0x2c]
call fcn.00473640
mov edi, eax
lea eax, [esp + 0x34]
call fcn.004a7af0
mov eax, ebp
inc esi
call fcn.0044d900
cmp esi, eax
jl 0x4a76b5
lea edi, [ebp + 0x2c]
lea eax, [ebp + 0x28]
push edi
push eax
lea eax, [esp + 0x3c]
call fcn.0048d610
push eax
mov eax, ebp
call fcn.0044d900
push eax
lea eax, [esp + 0x28]
call fcn.004221b0
push eax
call sub.ADVAPI32.dll_LsaLookupNames
cmp eax, ebx
jge 0x4a773e
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.00510be0
mov dword [esp + 0x74], 0xffffffff
lea edi, [esp + 0x18]
call fcn.004a7c20
xor al, al
jmp 0x4a78b0
mov eax, ebp
mov dword [esp + 0x28], ebx
call fcn.0044d900
test eax, eax
jle 0x4a788f
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 0x4a7861
cmp ecx, 8
je 0x4a7861
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 0x4a77dd
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 0x4a77c1
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 0x4a7800
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 0x4a7718
mov ecx, dword [esp + 0x2c]
lea edx, [esp + 0x20]
push edx
lea eax, [ebp + 0x14]
mov dword [esp + 0x24], ecx
call fcn.0049aa30
xor ebx, ebx
jmp 0x4a7872
lea eax, [esp + 0x20]
push eax
lea eax, [ebp + 0x14]
mov dword [esp + 0x24], ebx
call fcn.0049aa30
mov esi, dword [esp + 0x28]
add dword [esp + 0x1c], 0xc
inc esi
mov eax, ebp
mov dword [esp + 0x28], esi
call fcn.0044d900
cmp esi, eax
jl 0x4a7755
mov byte [esp + 0x74], 0
lea eax, [esp + 0x34]
call fcn.00510be0
mov dword [esp + 0x74], 0xffffffff
lea edi, [esp + 0x18]
call fcn.004a7c20
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