Function at 0x1084790
Capabilities:
Get user security identifier

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x838
mov eax, dword [0x111127c]
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 0x10847dd
push 0x1007270
push 0x59
push 0x100815c
call fcn.0107b4be
cmp dword [ebp - 0x80c], ebx
jne 0x10847f6
push 0x10077ac
push 0x5a
push 0x100815c
call fcn.0107b4be
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.0107b8ea
mov edi, eax
cmp edi, ebx
jge 0x1084878
mov eax, dword [0x111124c]
cmp eax, 0x111124c
je 0x1084bd9
test byte [eax + 0x1c], 1
je 0x1084bd9
cmp byte [eax + 0x19], 2
jb 0x1084bd9
push edi
push esi
push 0x10080cc
push 0xa
push dword [eax + 0x14]
push dword [eax + 0x10]
call fcn.010196ed
jmp 0x1084bd9
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 0x1084903
mov edi, dword [sym.imp.KERNEL32.dll_GetLastError]
call edi
cmp eax, 0x7a
je 0x1084903
call edi
cmp eax, ebx
jle 0x10848c4
and eax, 0xffff
or eax, 0x80070000
mov edi, eax
mov eax, dword [0x111124c]
cmp eax, 0x111124c
je 0x10849da
test byte [eax + 0x1c], 1
je 0x10849da
cmp byte [eax + 0x19], 2
jb 0x10849da
push edi
push dword [ebp - 0x80c]
push dword [ebp - 0x810]
push 0x10080cc
push 0xb
jmp 0x10849cf
push dword [ebp - 0x820]
mov edi, dword [sym.imp.ole32.dll_CoTaskMemAlloc]
call edi
mov dword [ebp - 0x818], eax
cmp eax, ebx
je 0x1084942
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 0x108494c
mov edi, 0x8007000e
jmp 0x1084bd9
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 0x10849eb
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, ebx
jle 0x10849a1
and eax, 0xffff
or eax, 0x80070000
mov edi, eax
mov eax, dword [0x111124c]
cmp eax, 0x111124c
je 0x10849da
test byte [eax + 0x1c], 1
je 0x10849da
cmp byte [eax + 0x19], 2
jb 0x10849da
push edi
push dword [ebp - 0x80c]
push dword [ebp - 0x810]
push 0x10080cc
push 0xc
push dword [eax + 0x14]
push dword [eax + 0x10]
call fcn.01019a40
cmp edi, 0x80070534
jne 0x1084bd9
jmp 0x1084a78
mov eax, dword [0x111124c]
mov esi, 0x10080cc
cmp eax, 0x111124c
je 0x1084a1d
test byte [eax + 0x1c], 1
je 0x1084a1d
cmp byte [eax + 0x19], 4
jb 0x1084a1d
push edi
push dword [ebp - 0x80c]
push esi
push 0xd
push dword [eax + 0x14]
push dword [eax + 0x10]
call fcn.01019979
cmp byte [ebp + 0x10], bl
jne 0x1084a82
lea eax, [ebp - 0x805]
push eax
push dword [ebp - 0x810]
push dword [ebp - 0x80c]
call fcn.01083fce
mov edi, eax
cmp edi, ebx
jl 0x1084bd9
cmp byte [ebp - 0x805], bl
je 0x1084a82
mov eax, dword [0x111124c]
cmp eax, 0x111124c
je 0x1084a78
test byte [eax + 0x1c], 1
je 0x1084a78
cmp byte [eax + 0x19], 2
jb 0x1084a78
push dword [ebp - 0x80c]
push esi
push 0xe
push dword [eax + 0x14]
push dword [eax + 0x10]
call fcn.01019680
mov edi, 0x8078008b
jmp 0x1084bd9
lea eax, [ebp - 0x814]
push eax
push dword [ebp - 0x818]
call sub.ADVAPI32.dll_ConvertSidToStringSidW
test eax, eax
jne 0x1084adb
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, ebx
jle 0x1084aac
and eax, 0xffff
or eax, 0x80070000
mov edi, eax
mov eax, dword [0x111124c]
cmp eax, 0x111124c
je 0x1084bd9
test byte [eax + 0x1c], 1
je 0x1084bd9
cmp byte [eax + 0x19], 2
jb 0x1084bd9
push edi
push esi
push 0xf
jmp 0x1084ba6
mov eax, dword [0x111124c]
cmp eax, 0x111124c
je 0x1084b13
test byte [eax + 0x1c], 1
je 0x1084b13
cmp byte [eax + 0x19], 4
jb 0x1084b13
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.01019b0d
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 0x10081c0
push 0x400
push eax
call fcn.01025c69
mov edi, eax
add esp, 0x20
cmp edi, ebx
jl 0x1084bd9
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 0x1084bb3
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, ebx
jle 0x1084b88
and eax, 0xffff
or eax, 0x80070000
mov edi, eax
mov eax, dword [0x111124c]
cmp eax, 0x111124c
je 0x1084bd9
test byte [eax + 0x1c], 1
je 0x1084bd9
cmp byte [eax + 0x19], 2
jb 0x1084bd9
push edi
push esi
push 0x11
push dword [eax + 0x14]
push dword [eax + 0x10]
call fcn.010189f6
jmp 0x1084bd9
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.0106f5f8
leave
ret 0x14