Function at 0x45a29dda
Capabilities:
Get user security identifier

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x6c
push ebx
xor ebx, ebx
push edi
xor eax, eax
lea edi, [ebp - 0x28]
mov dword [ebp - 0x2c], ebx
stosd dword es:[edi], eax
mov edi, dword [ebp + 8]
mov eax, dword [edi + 8]
mov dword [ebp - 4], ebx
mov dword [ebp - 0x20], 0x44
mov dword [ebp - 0x1c], 0x10
mov dword [ebp - 0xc], 8
mov dword [ebp - 8], ebx
mov dword [ebp - 0x10], ebx
mov eax, dword [eax + 0x44]
or dword [ebp - 0x18], 0xffffffff
test byte [eax + 0x2fc], 2
mov dword [ebp - 0x24], eax
mov dword [ebp - 0x14], ebx
je 0x45a29e31
push 0x32
pop edi
jmp 0x45a2a0b6
cmp dword [ebp + 0xc], ebx
push esi
mov esi, dword [sym.imp.msvcrt.dll_wcslen]
jne 0x45a29e41
xor eax, eax
jmp 0x45a29e4e
push dword [ebp + 0xc]
call esi
neg eax
sbb eax, eax
and eax, dword [ebp + 0xc]
pop ecx
lea ecx, [ebp - 0x18]
push ecx
push eax
push dword [ebp + 0x10]
call fcn.45a2944e
test eax, eax
jne 0x45a29e6e
push dword [ebp + 0x18]
push ebx
push dword [ebp - 0x18]
push edi
call sym.azroles.DLL_AzInitializeContextFromToken
jmp 0x45a29eb8
lea eax, [ebp - 4]
push eax
push dword [ebp + 0x14]
lea eax, [edi + 0x348]
push ebx
push 8
push eax
push 1
push edi
call fcn.45a2d8da
mov edi, eax
cmp edi, ebx
jne 0x45a2a098
mov eax, dword [ebp - 4]
mov dword [eax + 0x1cc], 2
mov eax, dword [ebp - 4]
add eax, 0x280
push eax
call dword [sym.imp.ntdll.dll_NtAllocateLocallyUniqueId]
cmp eax, ebx
jge 0x45a29ebf
push eax
call dword [sym.imp.ntdll.dll_RtlNtStatusToDosError]
mov edi, eax
jmp 0x45a2a098
mov eax, dword [ebp + 0xc]
cmp eax, ebx
je 0x45a29f30
cmp word [eax], bx
je 0x45a29f30
mov edi, dword [sym.imp.msvcrt.dll_wcschr]
push 0x40
push dword [ebp + 0x10]
call edi
test eax, eax
pop ecx
pop ecx
jne 0x45a29f30
push 0x5c
push dword [ebp + 0x10]
call edi
test eax, eax
pop ecx
pop ecx
jne 0x45a29f30
push dword [ebp + 0xc]
call esi
push dword [ebp + 0x10]
mov edi, eax
call esi
pop ecx
pop ecx
add edi, eax
push 0x45a12c44
lea esi, [edi + edi + 4]
push esi
call fcn.45a3991f
cmp eax, ebx
mov dword [ebp - 0x14], eax
je 0x45a2a088
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push 0x45a12b84
push esi
push eax
call dword [sym.imp.SHLWAPI.dll_wnsprintfW]
mov eax, dword [ebp - 0x14]
add esp, 0x14
jmp 0x45a29f33
mov eax, dword [ebp + 0x10]
lea ecx, [ebp - 0xc]
push ecx
lea ecx, [ebp - 0x1c]
push ecx
lea ecx, [ebp - 0x6c]
push ecx
lea ecx, [ebp - 0x20]
push ecx
mov ecx, dword [ebp - 4]
add ecx, 0x1dc
push ecx
push eax
push ebx
call dword [sym.imp.ADVAPI32.dll_LookupAccountNameW]
test eax, eax
jne 0x45a29f5f
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp dword [ebp - 0xc], 1
je 0x45a29f6c
push 0x57
jmp 0x45a2a08a
mov esi, dword [sym.imp.ADVAPI32.dll_LookupAccountSidW]
lea eax, [ebp - 0xc]
push eax
lea eax, [ebp - 0x10]
push eax
push ebx
lea eax, [ebp - 8]
push eax
mov eax, dword [ebp - 4]
push ebx
add eax, 0x1dc
push eax
push ebx
call esi
test eax, eax
jne 0x45a2a088
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov edi, eax
cmp edi, 0x7a
jne 0x45a2a08b
mov eax, dword [ebp - 0x10]
mov ecx, dword [ebp - 8]
add eax, eax
push 0x45a12c3c
add ecx, ecx
push eax
mov dword [ebp - 0x10], eax
mov dword [ebp - 8], ecx
call fcn.45a3991f
mov ecx, dword [ebp - 4]
mov dword [ecx + 0x1d4], eax
mov eax, dword [ebp - 4]
cmp dword [eax + 0x1d4], ebx
je 0x45a2a088
push 0x45a12c30
push dword [ebp - 8]
call fcn.45a3991f
mov ecx, dword [ebp - 4]
mov dword [ecx + 0x1d8], eax
mov ecx, dword [ebp - 4]
mov eax, dword [ecx + 0x1d8]
cmp eax, ebx
je 0x45a2a088
lea edx, [ebp - 0xc]
push edx
lea edx, [ebp - 0x10]
push edx
push dword [ecx + 0x1d4]
lea edx, [ebp - 8]
push edx
push eax
add ecx, 0x1dc
push ecx
push ebx
call esi
test eax, eax
jne 0x45a2a02a
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov edi, eax
jmp 0x45a2a08b
mov eax, dword [ebp - 4]
mov esi, dword [ebp + 8]
lea ecx, [eax + 0x1c8]
push ecx
push ebx
push dword [ebp - 0x28]
add eax, 0x1dc
push dword [ebp - 0x2c]
push ebx
push dword [esi + 0x3a0]
push eax
push ebx
call dword [sym.imp.AUTHZ.dll_AuthzInitializeContextFromSid]
test eax, eax
je 0x45a2a020
cmp dword [esi + 0x168], ebx
je 0x45a2a079
mov eax, dword [ebp - 0x24]
test byte [eax + 0x2fc], 2
jne 0x45a2a079
push esi
push dword [ebp - 4]
call fcn.45a27b0e
mov edi, eax
cmp edi, ebx
jne 0x45a2a08b
mov eax, dword [ebp - 4]
mov ecx, dword [ebp + 0x18]
xor edi, edi
mov dword [ecx], eax
mov dword [ebp - 4], ebx
jmp 0x45a2a08b
push 8
pop edi
cmp dword [ebp - 0x14], ebx
je 0x45a2a098
push dword [ebp - 0x14]
call fcn.45a39953
cmp dword [ebp - 0x18], 0xffffffff
pop esi
je 0x45a2a0a8
push dword [ebp - 0x18]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
cmp dword [ebp - 4], ebx
je 0x45a2a0b6
push ebx
push dword [ebp - 4]
call sym.azroles.DLL_AzCloseHandle
mov eax, edi
pop edi
pop ebx
leave
ret 0x14