Function at 0x10053fa
Capabilities:
Get user security identifier

Disassembly:
mov eax, 0x100798d
call fcn.010071b8
sub esp, 0x85c
mov eax, dword [0x1009264]
mov edx, dword [ebp + 0x14]
mov dword [ebp - 0x10], eax
mov eax, dword [ebp + 8]
push ebx
mov dword [ebp - 0x844], eax
mov eax, dword [ebp + 0xc]
xor ebx, ebx
cmp eax, ebx
push esi
mov esi, dword [ebp + 0x10]
mov dword [ebp - 0x834], eax
mov dword [ebp - 0x840], edx
je 0x1005703
cmp word [eax], bx
je 0x1005703
cmp esi, ebx
je 0x1005703
cmp edx, ebx
je 0x1005703
push edi
push 8
pop ecx
push dword [ebp - 0x834]
xor eax, eax
lea edi, [ebp - 0x868]
rep stosd dword es:[edi], eax
mov dword [esi], ebx
lea ecx, [ebp - 0x828]
mov byte [ebp - 0x818], bl
mov byte [ebp - 0x817], bl
mov byte [ebp - 0x816], bl
mov byte [ebp - 0x815], bl
mov byte [ebp - 0x814], bl
mov byte [ebp - 0x813], 5
mov byte [ebp - 0x820], bl
mov byte [ebp - 0x81f], bl
mov byte [ebp - 0x81e], bl
mov byte [ebp - 0x81d], bl
mov byte [ebp - 0x81c], bl
mov byte [ebp - 0x81b], 1
mov dword [ebp - 0x82c], ebx
mov dword [ebp - 0x824], ebx
mov byte [ebp - 0x830], bl
mov dword [edx], 1
call sub.MFC42u.DLL_CString::CString_1
lea ecx, [ebp - 0x828]
mov dword [ebp - 4], ebx
call sub.MFC42u.DLL_CString::MakeLower
mov edi, dword [sym.imp.msvcrt.dll_wcscmp]
push 0x1001910
push dword [ebp - 0x828]
call edi
test eax, eax
pop ecx
pop ecx
jne 0x1005521
lea eax, [ebp - 0x818]
push 0x20
mov dword [ebp - 0x82c], eax
mov byte [ebp - 0x830], 2
pop eax
mov dword [ebp - 0x864], 0x220
jmp 0x100559b
push 0x10018fc
push dword [ebp - 0x828]
call edi
test eax, eax
pop ecx
pop ecx
jne 0x100554b
lea eax, [ebp - 0x820]
mov dword [ebp - 0x82c], eax
mov byte [ebp - 0x830], 1
xor eax, eax
jmp 0x100559b
push 0x10019e0
push dword [ebp - 0x828]
call edi
test eax, eax
pop ecx
pop ecx
jne 0x1005576
push 0x12
lea eax, [ebp - 0x818]
mov dword [ebp - 0x82c], eax
mov byte [ebp - 0x830], 1
pop eax
jmp 0x100559b
push 0x10019c8
push dword [ebp - 0x828]
call edi
test eax, eax
pop ecx
pop ecx
jne 0x100558d
push 4
jmp 0x1005560
mov eax, dword [ebp - 0x840]
mov dword [eax], ebx
mov eax, dword [ebp - 0x868]
mov ecx, dword [ebp - 0x840]
cmp dword [ecx], ebx
je 0x10055e8
push esi
push dword [ebp - 0x84c]
push dword [ebp - 0x850]
push dword [ebp - 0x854]
push dword [ebp - 0x858]
push dword [ebp - 0x85c]
push dword [ebp - 0x860]
push dword [ebp - 0x864]
push eax
push dword [ebp - 0x830]
push dword [ebp - 0x82c]
call dword [sym.imp.ADVAPI32.dll_AllocateAndInitializeSid]
jmp 0x1005696
mov edi, dword [sym.imp.ADVAPI32.dll_LookupAccountNameW]
lea eax, [ebp - 0x848]
push eax
lea eax, [ebp - 0x83c]
push eax
lea eax, [ebp - 0x810]
push eax
lea eax, [ebp - 0x838]
push eax
push dword [esi]
mov dword [ebp - 0x838], ebx
push dword [ebp - 0x834]
mov dword [ebp - 0x83c], 0x400
push dword [ebp - 0x844]
call edi
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x7a
mov dword [ebp - 0x824], eax
jne 0x10056a6
push dword [ebp - 0x838]
mov dword [ebp - 0x824], ebx
push 0x40
call dword [sym.imp.KERNEL32.dll_LocalAlloc]
cmp eax, ebx
mov dword [esi], eax
jne 0x1005661
mov dword [ebp - 0x824], 8
jmp 0x10056b0
lea ecx, [ebp - 0x848]
push ecx
lea ecx, [ebp - 0x83c]
push ecx
lea ecx, [ebp - 0x810]
push ecx
lea ecx, [ebp - 0x838]
push ecx
push eax
push dword [ebp - 0x834]
mov dword [ebp - 0x83c], 0x400
push dword [ebp - 0x844]
call edi
test eax, eax
jne 0x10056db
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp - 0x824], eax
mov eax, dword [ebp - 0x824]
cmp eax, ebx
je 0x10056db
mov eax, dword [esi]
cmp eax, ebx
je 0x10056d1
mov ecx, dword [ebp - 0x840]
cmp dword [ecx], ebx
push eax
je 0x10056c9
call dword [sym.imp.ADVAPI32.dll_FreeSid]
jmp 0x10056cf
call dword [sym.imp.KERNEL32.dll_LocalFree]
mov dword [esi], ebx
mov eax, dword [ebp - 0x824]
cmp eax, ebx
jg 0x10056e3
mov esi, dword [ebp - 0x824]
jmp 0x10056ef
and eax, 0xffff
or eax, 0x80070000
mov esi, eax
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x828]
call sub.MFC42u.DLL_CString::CString
mov eax, esi
pop edi
jmp 0x1005708
mov eax, 0x80070057
mov ecx, dword [ebp - 0xc]
pop esi
mov dword fs:[0], ecx
mov ecx, dword [ebp - 0x10]
pop ebx
call fcn.010068c7
leave
ret 0x10