Function at 0x10068470
Capabilities:
Get user security identifier

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x10100352
mov eax, dword fs:[0]
push eax
sub esp, 0x54
mov eax, dword [0x10172eb8]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x24], 0
mov dword [ebp - 0x14], 0
mov dword [ebp - 0x1c], 0
mov dword [ebp - 0x18], 0
mov dword [ebp - 0x10], 0
mov dword [ebp - 0x28], 0
cmp dword [ebp + 8], 0
jne 0x100684cd
mov eax, dword [ebp - 0x24]
jmp 0x10068689
lea eax, [ebp - 0x20]
push eax
lea ecx, [ebp - 0x18]
push ecx
mov edx, dword [ebp - 0x28]
push edx
lea eax, [ebp - 0x1c]
push eax
mov ecx, dword [ebp - 0x14]
push ecx
mov edx, dword [ebp + 8]
push edx
push 0
call dword [sym.imp.ADVAPI32.dll_LookupAccountNameA]
test eax, eax
jne 0x10068686
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp - 0x2c], eax
cmp dword [ebp - 0x2c], 0x7a
jne 0x10068640
mov eax, dword [ebp - 0x1c]
push eax
call fcn.100aaab5
add esp, 4
mov dword [ebp - 0x34], eax
mov ecx, dword [ebp - 0x34]
mov dword [ebp - 0x14], ecx
mov edx, dword [ebp - 0x1c]
push edx
push 0
mov eax, dword [ebp - 0x14]
push eax
call fcn.100cac20
add esp, 0xc
mov ecx, dword [ebp - 0x18]
push ecx
call fcn.100aaab5
add esp, 4
mov dword [ebp - 0x38], eax
mov edx, dword [ebp - 0x38]
mov dword [ebp - 0x28], edx
mov eax, dword [ebp - 0x18]
push eax
push 0
mov ecx, dword [ebp - 0x28]
push ecx
call fcn.100cac20
add esp, 0xc
lea edx, [ebp - 0x20]
push edx
lea eax, [ebp - 0x18]
push eax
mov ecx, dword [ebp - 0x28]
push ecx
lea edx, [ebp - 0x1c]
push edx
mov eax, dword [ebp - 0x14]
push eax
mov ecx, dword [ebp + 8]
push ecx
push 0
call dword [sym.imp.ADVAPI32.dll_LookupAccountNameA]
mov dword [ebp - 0x24], eax
cmp dword [ebp - 0x24], 0
je 0x1006860e
mov dword [ebp - 0x30], 0
lea edx, [ebp - 0x30]
push edx
mov eax, dword [ebp - 0x14]
push eax
call sub.ADVAPI32.dll_ConvertSidToStringSidA
test eax, eax
je 0x100685fa
mov dword [ebp - 0x24], 1
mov ecx, dword [ebp - 0x30]
push ecx
mov ecx, dword [ebp + 0xc]
call fcn.10012200
push ecx
mov ecx, esp
mov dword [ebp - 0x3c], esp
mov edx, dword [ebp + 0xc]
push edx
call fcn.10012140
mov dword [ebp - 0x50], eax
mov eax, dword [ebp - 0x50]
mov dword [ebp - 0x54], eax
mov dword [ebp - 4], 0
push ecx
mov ecx, esp
mov dword [ebp - 0x40], esp
mov edx, dword [ebp + 8]
push edx
call fcn.10012160
mov dword [ebp - 0x58], eax
mov dword [ebp - 4], 0xffffffff
call fcn.10068b20
add esp, 8
mov eax, dword [ebp - 0x30]
push eax
call dword [sym.imp.KERNEL32.dll_LocalFree]
jmp 0x1006860e
mov dword [ebp - 0x24], 0
push str.ConvertSidToStringSid_fails
call fcn.10093690
add esp, 4
cmp dword [ebp - 0x14], 0
je 0x10068626
mov ecx, dword [ebp - 0x14]
mov dword [ebp - 0x44], ecx
mov edx, dword [ebp - 0x44]
push edx
call fcn.100aaaba
add esp, 4
cmp dword [ebp - 0x28], 0
je 0x1006863e
mov eax, dword [ebp - 0x28]
mov dword [ebp - 0x48], eax
mov ecx, dword [ebp - 0x48]
push ecx
call fcn.100aaaba
add esp, 4
jmp 0x10068686
cmp dword [ebp - 0x2c], 0x6fc
je 0x10068658
cmp dword [ebp - 0x2c], 0x6fd
je 0x10068658
cmp dword [ebp - 0x2c], 5
jne 0x10068686
mov edx, dword [ebp + 0xc]
push edx
push ecx
mov ecx, esp
mov dword [ebp - 0x4c], esp
mov eax, dword [ebp + 8]
push eax
call fcn.10012160
mov dword [ebp - 0x5c], eax
call fcn.10068830
add esp, 8
mov dword [ebp - 0x60], eax
cmp dword [ebp - 0x60], 0
je 0x10068686
mov dword [ebp - 0x24], 1
mov eax, dword [ebp - 0x24]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
mov esp, ebp
pop ebp
ret