Function at 0x10008070
Capabilities:
Get user security identifier

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x100190f7
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x12c
push ebx
push ebp
push esi
push edi
xor ebx, ebx
mov esi, ecx
push ebx
lea ecx, [esp + 0x1c]
mov dword [esp + 0x18], ebx
mov dword [esp + 0x24], 0xff
call fcn.1000dd80
lea eax, [esp + 0x24]
push eax
lea ecx, [esp + 0x24]
push ecx
mov ecx, dword [esi]
lea edx, [esp + 0x40]
push edx
lea eax, [esp + 0x20]
push eax
lea edi, [esi + 4]
push ecx
mov ecx, edi
mov dword [esp + 0x158], ebx
call fcn.1000dd60
mov ebp, dword [sym.imp.ADVAPI32.dll_LookupAccountNameA]
push eax
push ebx
call ebp
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x7a
jne 0x10008244
mov edx, dword [esp + 0x14]
push edx
call fcn.1000ea50
add esp, 4
lea ecx, [esp + 0x24]
push ecx
lea edx, [esp + 0x24]
push edx
lea ecx, [esp + 0x40]
push ecx
lea edx, [esp + 0x20]
push edx
push eax
mov ecx, edi
mov dword [esi], eax
call fcn.1000dd60
push eax
push ebx
call ebp
test eax, eax
je 0x10008244
push ebx
push ebx
push 0x5c
mov ecx, edi
call fcn.1000dcd0
test eax, eax
je 0x10008190
push ebx
lea ecx, [esp + 0x34]
call fcn.1000dd80
push ebx
push ebx
push 0x1001a330
push 1
lea eax, [esp + 0x38]
push eax
mov ecx, edi
mov byte [esp + 0x158], 1
call fcn.1000e540
push eax
lea ecx, [esp + 0x34]
mov byte [esp + 0x148], 2
call fcn.1000e0f0
lea ecx, [esp + 0x28]
mov byte [esp + 0x144], 1
call fcn.1000d8c0
push edi
lea ecx, [esp + 0x1c]
call fcn.1000e0f0
lea ecx, [esp + 0x30]
jmp 0x100081f2
push edi
lea ecx, [esp + 0x2c]
push 0x1001a330
push ecx
call fcn.1000e2c0
add esp, 0xc
push eax
lea ecx, [esp + 0x1c]
mov byte [esp + 0x148], 3
call fcn.1000e0f0
lea ecx, [esp + 0x28]
mov byte [esp + 0x144], bl
call fcn.1000d8c0
lea edx, [esp + 0x18]
push edx
lea eax, [esp + 0x3c]
push eax
lea ecx, [esp + 0x30]
push ecx
call fcn.1000e2c0
add esp, 0xc
push eax
lea ecx, [esp + 0x1c]
mov byte [esp + 0x148], 4
call fcn.1000e0f0
lea ecx, [esp + 0x28]
mov byte [esp + 0x144], bl
call fcn.1000d8c0
mov eax, dword [esi]
push eax
mov dword [esp + 0x24], 0xff
call fcn.1000ce20
add esp, 4
lea edx, [esp + 0x24]
push edx
lea eax, [esp + 0x24]
push eax
lea ecx, [esp + 0x40]
push ecx
lea edx, [esp + 0x20]
push edx
push ebx
lea ecx, [esp + 0x2c]
mov dword [esi], ebx
mov dword [esp + 0x28], ebx
call fcn.1000dd60
push eax
push ebx
call ebp
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x7a
je 0x10008270
mov dword [esp + 0x144], 0xffffffff
lea ecx, [esp + 0x18]
call fcn.1000d8c0
xor eax, eax
mov ecx, dword [esp + 0x13c]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebp
pop ebx
mov esp, ebp
pop ebp
ret
mov eax, dword [esp + 0x14]
push eax
call fcn.1000ea50
add esp, 4
lea ecx, [esp + 0x24]
push ecx
lea edx, [esp + 0x24]
push edx
lea ecx, [esp + 0x40]
push ecx
lea edx, [esp + 0x20]
push edx
push eax
lea ecx, [esp + 0x2c]
mov dword [esi], eax
call fcn.1000dd60
push eax
push ebx
call ebp
test eax, eax
lea ecx, [esp + 0x18]
mov dword [esp + 0x144], 0xffffffff
je 0x10008253
call fcn.1000d8c0
mov ecx, dword [esp + 0x13c]
pop edi
mov eax, 1
mov dword fs:[0], ecx
pop esi
pop ebp
pop ebx
mov esp, ebp
pop ebp
ret