Function at 0x1084753
Capabilities:
Get user security identifier

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x838
mov eax, dword [0x111027c]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 0xc]
push ebx
push esi
mov esi, dword [ebp + 8]
push edi
mov edi, dword [ebp + 0x18]
mov dword [ebp - 0x80c], eax
mov eax, dword [ebp + 0x14]
xor ebx, ebx
mov dword [ebp - 0x830], eax
mov dword [ebp - 0x834], edi
cmp esi, ebx
jne 0x10847a0
push 0x1007280
push 0x59
push 0x100816c
call fcn.0107b644
cmp dword [ebp - 0x80c], ebx
jne 0x10847b9
push 0x10077bc
push 0x5a
push 0x100816c
call fcn.0107b644
lea eax, [ebp - 0x810]
push eax
push esi
mov dword [ebp - 0x824], ebx
mov dword [ebp - 0x814], ebx
mov dword [ebp - 0x810], ebx
mov dword [ebp - 0x828], ebx
mov dword [ebp - 0x81c], ebx
mov dword [ebp - 0x818], ebx
mov dword [ebp - 0x820], ebx
mov byte [ebp - 0x805], bl
mov dword [edi], ebx
call fcn.0107ba70
mov edi, eax
cmp edi, ebx
jge 0x108483b
mov eax, dword [0x111024c]
cmp eax, 0x111024c
je 0x1084b9c
test byte [eax + 0x1c], 1
je 0x1084b9c
cmp byte [eax + 0x19], 2
jb 0x1084b9c
push edi
push esi
push 0x10080dc
push 0xa
push dword [eax + 0x14]
push dword [eax + 0x10]
call fcn.01048c37
jmp 0x1084b9c
mov esi, dword [sym.imp.ADVAPI32.dll_LookupAccountNameW]
lea eax, [ebp - 0x82c]
push eax
lea eax, [ebp - 0x81c]
push eax
push ebx
lea eax, [ebp - 0x820]
push eax
push ebx
push dword [ebp - 0x80c]
push dword [ebp - 0x810]
call esi
test eax, eax
jne 0x10848c6
mov edi, dword [sym.imp.KERNEL32.dll_GetLastError]
call edi
cmp eax, 0x7a
je 0x10848c6
call edi
cmp eax, ebx
jle 0x1084887
and eax, 0xffff
or eax, 0x80070000
mov edi, eax
mov eax, dword [0x111024c]
cmp eax, 0x111024c
je 0x108499d
test byte [eax + 0x1c], 1
je 0x108499d
cmp byte [eax + 0x19], 2
jb 0x108499d
push edi
push dword [ebp - 0x80c]
push dword [ebp - 0x810]
push 0x10080dc
push 0xb
jmp 0x1084992
push dword [ebp - 0x820]
mov edi, dword [sym.imp.ole32.dll_CoTaskMemAlloc]
call edi
mov dword [ebp - 0x818], eax
cmp eax, ebx
je 0x1084905
push dword [ebp - 0x820]
push ebx
push eax
call sub.msvcrt.dll_memset
mov eax, dword [ebp - 0x81c]
add esp, 0xc
add eax, eax
push eax
call edi
mov edi, eax
mov dword [ebp - 0x828], edi
cmp edi, ebx
jne 0x108490f
mov edi, 0x8007000e
jmp 0x1084b9c
mov eax, dword [ebp - 0x81c]
add eax, eax
push eax
push ebx
push edi
call sub.msvcrt.dll_memset
add esp, 0xc
lea eax, [ebp - 0x82c]
push eax
lea eax, [ebp - 0x81c]
push eax
push edi
lea eax, [ebp - 0x820]
push eax
push dword [ebp - 0x818]
push dword [ebp - 0x80c]
push dword [ebp - 0x810]
call esi
test eax, eax
jne 0x10849ae
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, ebx
jle 0x1084964
and eax, 0xffff
or eax, 0x80070000
mov edi, eax
mov eax, dword [0x111024c]
cmp eax, 0x111024c
je 0x108499d
test byte [eax + 0x1c], 1
je 0x108499d
cmp byte [eax + 0x19], 2
jb 0x108499d
push edi
push dword [ebp - 0x80c]
push dword [ebp - 0x810]
push 0x10080dc
push 0xc
push dword [eax + 0x14]
push dword [eax + 0x10]
call fcn.010198ad
cmp edi, 0x80070534
jne 0x1084b9c
jmp 0x1084a3b
mov eax, dword [0x111024c]
mov esi, 0x10080dc
cmp eax, 0x111024c
je 0x10849e0
test byte [eax + 0x1c], 1
je 0x10849e0
cmp byte [eax + 0x19], 4
jb 0x10849e0
push edi
push dword [ebp - 0x80c]
push esi
push 0xd
push dword [eax + 0x14]
push dword [eax + 0x10]
call fcn.010197e6
cmp byte [ebp + 0x10], bl
jne 0x1084a45
lea eax, [ebp - 0x805]
push eax
push dword [ebp - 0x810]
push dword [ebp - 0x80c]
call fcn.01083f91
mov edi, eax
cmp edi, ebx
jl 0x1084b9c
cmp byte [ebp - 0x805], bl
je 0x1084a45
mov eax, dword [0x111024c]
cmp eax, 0x111024c
je 0x1084a3b
test byte [eax + 0x1c], 1
je 0x1084a3b
cmp byte [eax + 0x19], 2
jb 0x1084a3b
push dword [ebp - 0x80c]
push esi
push 0xe
push dword [eax + 0x14]
push dword [eax + 0x10]
call fcn.01019633
mov edi, 0x8078008b
jmp 0x1084b9c
lea eax, [ebp - 0x814]
push eax
push dword [ebp - 0x818]
call sub.ADVAPI32.dll_ConvertSidToStringSidW
test eax, eax
jne 0x1084a9e
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, ebx
jle 0x1084a6f
and eax, 0xffff
or eax, 0x80070000
mov edi, eax
mov eax, dword [0x111024c]
cmp eax, 0x111024c
je 0x1084b9c
test byte [eax + 0x1c], 1
je 0x1084b9c
cmp byte [eax + 0x19], 2
jb 0x1084b9c
push edi
push esi
push 0xf
jmp 0x1084b69
mov eax, dword [0x111024c]
cmp eax, 0x111024c
je 0x1084ad6
test byte [eax + 0x1c], 1
je 0x1084ad6
cmp byte [eax + 0x19], 4
jb 0x1084ad6
push dword [ebp - 0x814]
push dword [ebp - 0x810]
push dword [ebp - 0x80c]
push esi
push 0x10
push dword [eax + 0x14]
push dword [eax + 0x10]
call fcn.0101997a
push 0x800
lea eax, [ebp - 0x804]
push ebx
push eax
call sub.msvcrt.dll_memset
push dword [ebp - 0x814]
lea eax, [ebp - 0x804]
push dword [ebp - 0x814]
push 0x10081d0
push 0x400
push eax
call fcn.01025c20
mov edi, eax
add esp, 0x20
cmp edi, ebx
jl 0x1084b9c
lea eax, [ebp - 0x838]
push eax
lea eax, [ebp - 0x824]
push eax
push 1
lea eax, [ebp - 0x804]
push eax
call sub.ADVAPI32.dll_ConvertStringSecurityDescriptorToSecurityDescriptorW
test eax, eax
jne 0x1084b76
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, ebx
jle 0x1084b4b
and eax, 0xffff
or eax, 0x80070000
mov edi, eax
mov eax, dword [0x111024c]
cmp eax, 0x111024c
je 0x1084b9c
test byte [eax + 0x1c], 1
je 0x1084b9c
cmp byte [eax + 0x19], 2
jb 0x1084b9c
push edi
push esi
push 0x11
push dword [eax + 0x14]
push dword [eax + 0x10]
call fcn.01019fa8
jmp 0x1084b9c
mov eax, dword [ebp - 0x838]
mov ecx, dword [ebp - 0x834]
mov dword [ecx], eax
mov eax, dword [ebp - 0x830]
mov ecx, dword [ebp - 0x824]
mov dword [eax + 8], ebx
mov dword [eax + 4], ecx
mov dword [eax], 0xc
push dword [ebp - 0x810]
mov esi, dword [sym.imp.ole32.dll_CoTaskMemFree]
call esi
push dword [ebp - 0x828]
call esi
push dword [ebp - 0x818]
call esi
push dword [ebp - 0x814]
call dword [sym.imp.KERNEL32.dll_LocalFree]
mov ecx, dword [ebp - 4]
mov eax, edi
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0106f798
leave
ret 0x14