Function at 0xba200
Capabilities:
Get user security identifier

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffc4
push ebx
push esi
push edi
xor ebx, ebx
mov dword [ebp - 0x3c], ebx
mov dword [ebp - 0x38], ebx
mov dword [ebp - 0x18], ebx
mov dword [ebp - 0x30], ebx
mov dword [ebp - 4], ecx
mov ebx, edx
xor eax, eax
push ebp
push 0xba4ff
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [0x149c70]
mov eax, dword [eax]
mov edx, 0xba518
call fcn.00065094
xor edx, edx
push ebp
push 0xba4b0
push dword fs:[edx]
mov dword fs:[edx], esp
mov eax, dword [0x15e728]
call fcn.00016574
mov esi, eax
lea edi, [esi + 1]
push edi
mov eax, 0x15e728
mov ecx, 1
mov edx, dword [0xb9f58]
call fcn.00016730
add esp, 4
push edi
mov eax, 0x15e724
mov ecx, 1
mov edx, dword [0xb9f58]
call fcn.00016730
add esp, 4
mov eax, dword [0x15e724]
call fcn.0001657c
mov ecx, eax
mov edx, dword [0x15e724]
mov eax, ebx
call fcn.000ba158
mov edi, eax
mov eax, dword [0x15e724]
lea eax, [eax + esi*4]
mov edx, ebx
call fcn.00013e38
cmp edi, 0xffffffff
je 0xba2ca
mov eax, dword [ebp + 8]
mov edx, dword [0x15e728]
mov edx, dword [edx + edi*4]
call fcn.00013e38
mov al, byte [0xba52c]
push eax
lea eax, [ebp - 0x18]
push eax
mov ecx, 0xba538
mov edx, 0xba544
mov eax, ebx
call fcn.0001f26c
mov eax, dword [ebp - 0x18]
mov edx, ebx
call fcn.00014174
jne 0xba49a
inc edi
jne 0xba49a
xor eax, eax
mov dword [ebp - 8], eax
xor eax, eax
mov dword [ebp - 0xc], eax
lea eax, [ebp - 0x14]
push eax
lea eax, [ebp - 0xc]
push eax
push 0
lea eax, [ebp - 8]
push eax
push 0
push ebx
mov edi, dword [ebp - 4]
push edi
call sub.advapi32.dll_LookupAccountNameA
call sub.kernel32.dll_GetLastError_1
cmp eax, 0x7a
je 0xba34b
mov eax, dword [ebp + 8]
call fcn.00013de4
mov eax, dword [0x149c70]
mov eax, dword [eax]
call fcn.000650e0
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
jmp 0xba4d4
mov eax, dword [ebp - 8]
call fcn.000127e0
mov dword [ebp - 0x1c], eax
mov eax, dword [ebp - 0xc]
call fcn.000127e0
mov dword [ebp - 0x10], eax
lea eax, [ebp - 0x14]
push eax
lea eax, [ebp - 0xc]
push eax
mov eax, dword [ebp - 0x10]
push eax
lea eax, [ebp - 8]
push eax
mov eax, dword [ebp - 0x1c]
push eax
push ebx
push edi
call sub.advapi32.dll_LookupAccountNameA
test eax, eax
jne 0xba39d
mov eax, dword [ebp - 0x1c]
call fcn.000127f8
mov eax, dword [ebp - 0x10]
call fcn.000127f8
mov eax, dword [ebp + 8]
call fcn.00013de4
jmp 0xba49a
mov eax, dword [ebp - 0x1c]
push eax
call sub.advapi32.dll_IsValidSid
neg eax
sbb eax, eax
neg eax
test al, al
je 0xba492
lea eax, [ebp - 0x30]
mov edx, 0xba554
call fcn.00013e7c
mov eax, dword [ebp - 0x1c]
push eax
call sub.advapi32.dll_GetSidIdentifierAuthority_1
lea edx, [ebp - 0x2a]
mov ecx, 6
xchg edx, eax
call fcn.00019324
mov ebx, 6
lea edi, [ebp - 0x2a]
cmp byte [edi], 0
je 0xba409
push dword [ebp - 0x30]
push 0xba560
lea edx, [ebp - 0x38]
xor eax, eax
mov al, byte [edi]
call fcn.0001aa1c
push dword [ebp - 0x38]
lea eax, [ebp - 0x30]
mov edx, 3
call fcn.00014124
inc edi
dec ebx
jne 0xba3e0
mov eax, dword [ebp - 0x1c]
push eax
call sub.advapi32.dll_GetSidSubAuthorityCount
lea edx, [ebp - 0x20]
mov ecx, 4
xchg edx, eax
call fcn.00019324
mov eax, dword [ebp - 0x20]
dec eax
test eax, eax
jl 0xba477
inc eax
mov dword [ebp - 0x34], eax
xor ebx, ebx
push ebx
mov eax, dword [ebp - 0x1c]
push eax
call sub.advapi32.dll_GetSidSubAuthority
lea edx, [ebp - 0x24]
mov ecx, 4
xchg edx, eax
call fcn.00019324
push dword [ebp - 0x30]
push 0xba560
mov eax, dword [ebp - 0x24]
xor edx, edx
push edx
push eax
lea eax, [ebp - 0x3c]
call fcn.0001aa4c
push dword [ebp - 0x3c]
lea eax, [ebp - 0x30]
mov edx, 3
call fcn.00014124
inc ebx
dec dword [ebp - 0x34]
jne 0xba432
mov eax, dword [0x15e728]
lea eax, [eax + esi*4]
mov edx, dword [ebp - 0x30]
call fcn.00013e38
mov eax, dword [ebp + 8]
mov edx, dword [ebp - 0x30]
call fcn.00013e38
mov eax, dword [ebp - 0x10]
call fcn.000127f8
mov eax, dword [0x149c70]
mov eax, dword [eax]
call fcn.000650e0
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
jmp 0xba4d4
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0xba506
lea eax, [ebp - 0x3c]
mov edx, 2
call fcn.00013e08
lea eax, [ebp - 0x30]
call fcn.00013de4
lea eax, [ebp - 0x18]
call fcn.00013de4
ret