Function at 0x457914
Capabilities:
Get user security identifier

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffbd0
push ebx
push esi
push edi
xor ebx, ebx
mov dword [ebp - 0x428], ebx
mov dword [ebp - 0x42c], ebx
mov dword [ebp - 0x430], ebx
mov dword [ebp - 8], ecx
mov dword [ebp - 4], edx
mov esi, eax
mov eax, dword [ebp - 4]
call fcn.00403ed4
mov eax, dword [ebp - 8]
call fcn.00403ed4
xor eax, eax
push ebp
push 0x457bf4
push dword fs:[eax]
mov dword fs:[eax], esp
xor eax, eax
mov dword [ebp - 0xc], eax
mov dword [ebp - 0x10], 0x10
lea eax, [ebp - 0x14]
push eax
lea eax, [ebp - 0x10]
push eax
lea eax, [ebp - 0x24]
push eax
lea eax, [ebp - 0xc]
push eax
push 0
mov eax, dword [ebp - 8]
call fcn.00403ee4
push eax
mov eax, dword [ebp - 4]
call fcn.00403ee4
push eax
call sub.advapi32.dll_LookupAccountNameA
test eax, eax
jne 0x4579df
call sub.kernel32.dll_GetLastError_1
mov ebx, eax
cmp ebx, 0x7a
je 0x4579df
push 0
push 0x400
lea eax, [ebp - 0x424]
push eax
push 0
push ebx
push 0
push 0x1000
call sub.kernel32.dll_FormatMessageA
lea eax, [ebp - 0x428]
lea edx, [ebp - 0x424]
mov ecx, 0x400
call fcn.00403cd0
mov edx, dword [ebp - 0x428]
mov eax, esi
call fcn.004571ac
mov eax, dword [ebp - 0xc]
call fcn.00407994
mov edi, eax
lea eax, [ebp - 0x14]
push eax
lea eax, [ebp - 0x10]
push eax
lea eax, [ebp - 0x24]
push eax
lea eax, [ebp - 0xc]
push eax
push edi
mov eax, dword [ebp - 8]
call fcn.00403ee4
push eax
mov eax, dword [ebp - 4]
call fcn.00403ee4
push eax
call sub.advapi32.dll_LookupAccountNameA
test eax, eax
jne 0x457a63
call sub.kernel32.dll_GetLastError_1
mov ebx, eax
mov eax, edi
call fcn.004026cc
push 0
push 0x400
lea eax, [ebp - 0x424]
push eax
push 0
push ebx
push 0
push 0x1000
call sub.kernel32.dll_FormatMessageA
lea eax, [ebp - 0x428]
lea edx, [ebp - 0x424]
mov ecx, 0x400
call fcn.00403cd0
mov edx, dword [ebp - 0x428]
mov eax, esi
call fcn.004571ac
mov edx, dword [0x456fa8]
mov eax, 0xc
call fcn.004045f4
mov ebx, eax
mov eax, ebx
mov edx, dword [ebp - 8]
call fcn.00403af8
lea edx, [ebp - 0x42c]
lea eax, [ebp - 0x24]
call fcn.00408674
mov eax, dword [ebp - 0x42c]
lea edx, [ebp - 0x428]
call fcn.00407a18
mov eax, dword [ebp - 0x428]
mov edx, 0x457c0c
call fcn.00403e30
je 0x457b09
lea edx, [ebp - 0x42c]
lea eax, [ebp - 0x24]
call fcn.00408674
mov eax, dword [ebp - 0x42c]
lea edx, [ebp - 0x428]
call fcn.00407a18
cmp dword [ebp - 0x428], 0
je 0x457b09
lea edx, [ebp - 0x430]
lea eax, [ebp - 0x24]
call fcn.00408674
mov eax, dword [ebp - 0x430]
lea edx, [ebp - 0x42c]
call fcn.00407a18
mov eax, dword [ebp - 0x42c]
mov edx, 0x457c1c
call fcn.00403e30
jne 0x457b16
lea eax, [ebx + 4]
mov edx, dword [ebp - 4]
call fcn.00403af8
jmp 0x457b32
lea edx, [ebp - 0x428]
lea eax, [ebp - 0x24]
call fcn.00408674
mov edx, dword [ebp - 0x428]
lea eax, [ebx + 4]
call fcn.00403af8
mov eax, dword [ebp - 0x14]
cmp eax, 8
ja case.0x457b3a.0
jmp dword [eax*4 + 0x457b41]
mov byte [ebx + 8], 1
jmp case.0x457b3a.0
mov byte [ebx + 8], 2
jmp case.0x457b3a.0
mov byte [ebx + 8], 3
jmp case.0x457b3a.0
mov byte [ebx + 8], 4
jmp case.0x457b3a.0
mov byte [ebx + 8], 5
jmp case.0x457b3a.0
mov byte [ebx + 8], 6
jmp case.0x457b3a.0
mov byte [ebx + 8], 7
jmp case.0x457b3a.0
mov byte [ebx + 8], 8
mov al, byte [0x457c2c]
mov byte [ebx + 9], al
mov al, byte [0x457c2c]
mov byte [ebx + 0xa], al
mov eax, edi
call fcn.004026cc
mov edx, dword [ebx]
mov eax, dword [esi + 0x28]
mov ecx, dword [eax]
call dword [ecx + 0x34]
mov eax, dword [esi + 0x24]
mov eax, dword [eax + 8]
mov dword [esi + 0x48], eax
mov edx, ebx
mov eax, dword [esi + 0x24]
call fcn.0040dbd0
mov ebx, eax
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x457bfb
lea eax, [ebp - 0x430]
mov edx, 3
call fcn.00403ac8
lea eax, [ebp - 8]
mov edx, 2
call fcn.00403ac8
ret