Function at 0x101d2b5b
Capabilities:
Get user security identifier

Disassembly:
push 0x284
mov eax, 0x10340400
call fcn.102f781d
mov eax, dword [ebp + 8]
mov esi, dword [ebp + 0x10]
push 8
xor edi, edi
mov dword [ebp - 0x54], edi
pop ebx
mov dword [ebp - 0x48], eax
mov eax, dword [ebp + 0xc]
push edi
lea ecx, [ebp - 0x2c]
mov dword [ebp - 0x34], eax
mov dword [ebp - 0x3c], edi
mov dword [ebp - 0x40], edi
mov dword [ebp - 0x50], ebx
mov dword [ebp - 0x14], 7
call fcn.101610ee
cmp dword [esi + 0x18], ebx
mov dword [ebp - 4], 1
mov dword [ebp - 0x38], edi
lea ebx, [esi + 4]
jb 0x101d2bb0
mov ecx, dword [ebx]
jmp 0x101d2bb2
mov ecx, ebx
mov eax, dword [ebp - 0x34]
cmp dword [eax + 0x18], 8
jb 0x101d2bc5
add eax, 4
mov dword [ebp - 0x30], eax
mov eax, dword [eax]
jmp 0x101d2bcb
add eax, 4
mov dword [ebp - 0x30], eax
lea edx, [ebp - 0x50]
push edx
lea edx, [ebp - 0x40]
push edx
push edi
lea edx, [ebp - 0x3c]
push edx
push edi
push ecx
push eax
call dword [sym.imp.ADVAPI32.dll_LookupAccountNameW]
test eax, eax
jne 0x101d2c3b
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x7a
je 0x101d2c3b
cmp dword [esi + 0x18], 8
jb 0x101d2bf8
mov ebx, dword [ebx]
mov ecx, dword [ebp - 0x34]
cmp dword [ecx + 0x18], 8
mov ecx, dword [ebp - 0x30]
jb 0x101d2c06
mov ecx, dword [ecx]
push ebx
push ecx
push 0x10021c20
push eax
lea eax, [ebp - 0x290]
push eax
call fcn.101b70ff
add esp, 0x14
push 0x43
pop ecx
mov esi, eax
push 0x103495b0
lea eax, [ebp - 0x184]
lea edi, [ebp - 0x184]
push eax
rep movsd dword es:[edi], dword [esi]
call fcn.102f72b2
mov eax, dword [ebp - 0x40]
dec eax
push edi
push eax
lea ecx, [ebp - 0x2c]
call fcn.101bbc74
push dword [ebp - 0x3c]
lea ecx, [ebp - 0x78]
call fcn.101df934
cmp dword [esi + 0x18], 8
mov eax, dword [ebp - 0x78]
mov byte [ebp - 4], 2
mov dword [ebp - 0x58], eax
jb 0x101d2c6b
mov eax, dword [ebx]
mov dword [ebp - 0x4c], eax
jmp 0x101d2c6e
mov dword [ebp - 0x4c], ebx
mov eax, dword [ebp - 0x34]
cmp dword [eax + 0x18], 8
mov eax, dword [ebp - 0x30]
jb 0x101d2c7c
mov eax, dword [eax]
mov dword [ebp - 0x44], eax
lea eax, [ebp - 0x50]
push eax
lea eax, [ebp - 0x40]
push eax
push edi
lea ecx, [ebp - 0x2c]
call fcn.1016c4dd
push eax
lea eax, [ebp - 0x3c]
push eax
push dword [ebp - 0x58]
push dword [ebp - 0x4c]
push dword [ebp - 0x44]
call dword [sym.imp.ADVAPI32.dll_LookupAccountNameW]
test eax, eax
jne 0x101d2cd0
cmp dword [esi + 0x18], 8
jb 0x101d2cb0
mov ebx, dword [ebx]
mov eax, dword [ebp - 0x34]
cmp dword [eax + 0x18], 8
mov eax, dword [ebp - 0x30]
jb 0x101d2cbe
mov eax, dword [eax]
push ebx
push eax
push 0x10021bb8
call dword [sym.imp.KERNEL32.dll_GetLastError]
jmp 0x101d2c0d
lea eax, [ebp - 0x38]
push eax
push dword [ebp - 0x78]
call sub.ADVAPI32.dll_ConvertSidToStringSidW
push dword [ebp - 0x38]
test eax, eax
jne 0x101d2d08
call dword [sym.imp.KERNEL32.dll_LocalFree]
cmp dword [esi + 0x18], 8
jb 0x101d2cf1
mov ebx, dword [ebx]
mov eax, dword [ebp - 0x34]
cmp dword [eax + 0x18], 8
mov eax, dword [ebp - 0x30]
jb 0x101d2cff
mov eax, dword [eax]
push ebx
push eax
push 0x10021b40
jmp 0x101d2cc5
mov ecx, dword [ebp - 0x48]
call fcn.10161547
push dword [ebp - 0x38]
xor esi, esi
inc esi
mov dword [ebp - 0x54], esi
call dword [sym.imp.KERNEL32.dll_LocalFree]
test eax, eax
je 0x101d2d43
push 0x10021b04
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
lea eax, [ebp - 0x290]
push eax
call fcn.101b70ff
add esp, 0xc
jmp 0x101d2c1d
lea ecx, [ebp - 0x78]
mov byte [ebp - 4], 1
call fcn.101df8a9
push edi
push esi
lea ecx, [ebp - 0x2c]
call fcn.10161215
mov eax, dword [ebp - 0x48]
call fcn.102f78a0
ret 0xc