Function at 0x100694a
Capabilities:
Get user security identifier

Disassembly:
mov eax, 0x1008b73
call fcn.01008168
sub esp, 0x85c
mov eax, dword [0x100b27c]
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 0x1006c53
cmp word [eax], bx
je 0x1006c53
cmp esi, ebx
je 0x1006c53
cmp edx, ebx
je 0x1006c53
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_2
lea ecx, [ebp - 0x828]
mov dword [ebp - 4], ebx
call sub.MFC42u.dll_CString::MakeLower
mov edi, dword [sym.imp.msvcrt.dll_wcscmp]
push 0x1001ee8
push dword [ebp - 0x828]
call edi
test eax, eax
pop ecx
pop ecx
jne 0x1006a71
lea eax, [ebp - 0x818]
push 0x20
mov dword [ebp - 0x82c], eax
mov byte [ebp - 0x830], 2
pop eax
mov dword [ebp - 0x864], 0x220
jmp 0x1006aeb
push 0x1001f08
push dword [ebp - 0x828]
call edi
test eax, eax
pop ecx
pop ecx
jne 0x1006a9b
lea eax, [ebp - 0x820]
mov dword [ebp - 0x82c], eax
mov byte [ebp - 0x830], 1
xor eax, eax
jmp 0x1006aeb
push 0x1002124
push dword [ebp - 0x828]
call edi
test eax, eax
pop ecx
pop ecx
jne 0x1006ac6
push 0x12
lea eax, [ebp - 0x818]
mov dword [ebp - 0x82c], eax
mov byte [ebp - 0x830], 1
pop eax
jmp 0x1006aeb
push 0x100210c
push dword [ebp - 0x828]
call edi
test eax, eax
pop ecx
pop ecx
jne 0x1006add
push 4
jmp 0x1006ab0
mov eax, dword [ebp - 0x840]
mov dword [eax], ebx
mov eax, dword [ebp - 0x868]
mov ecx, dword [ebp - 0x840]
cmp dword [ecx], ebx
je 0x1006b38
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 0x1006be6
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 0x1006bf6
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 0x1006bb1
mov dword [ebp - 0x824], 8
jmp 0x1006c00
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 0x1006c2b
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp - 0x824], eax
mov eax, dword [ebp - 0x824]
cmp eax, ebx
je 0x1006c2b
mov eax, dword [esi]
cmp eax, ebx
je 0x1006c21
mov ecx, dword [ebp - 0x840]
cmp dword [ecx], ebx
push eax
je 0x1006c19
call dword [sym.imp.ADVAPI32.dll_FreeSid]
jmp 0x1006c1f
call dword [sym.imp.KERNEL32.dll_LocalFree]
mov dword [esi], ebx
mov eax, dword [ebp - 0x824]
cmp eax, ebx
jg 0x1006c33
mov esi, dword [ebp - 0x824]
jmp 0x1006c3f
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 0x1006c58
mov eax, 0x80070057
mov ecx, dword [ebp - 0xc]
pop esi
mov dword fs:[0], ecx
mov ecx, dword [ebp - 0x10]
pop ebx
call fcn.01007865
leave
ret 0x10