Function at 0x40a8d0
Capabilities:
Get user security identifier

Disassembly:
push 0xffffffffffffffff
push 0x57ce78
mov eax, dword fs:[0]
push eax
sub esp, 0x228
mov eax, dword [0x6531f0]
xor eax, esp
mov dword [esp + 0x224], eax
push ebx
push ebp
push esi
push edi
mov eax, dword [0x6531f0]
xor eax, esp
push eax
lea eax, [esp + 0x23c]
mov dword fs:[0], eax
mov eax, dword [esp + 0x24c]
xor edi, edi
push 0x44
push edi
mov esi, ecx
mov dword [esp + 0x20], eax
xor bl, bl
mov dword [esp + 0x1c], edi
mov dword [esp + 0x28], 0x44
mov dword [esp + 0x30], 0x104
call dword [sym.imp.KERNEL32.dll_LocalAlloc]
mov ebp, eax
cmp ebp, edi
je 0x40aad8
push 0xc
call fcn.004fdddd
add esp, 4
mov dword [esp + 0x1c], eax
mov dword [esp + 0x244], edi
cmp eax, edi
je 0x40a986
mov dword [eax], vtable.StartupAreas::IFreeProcPtr.0
mov byte [esp + 0x244], 1
mov ecx, dword [sym.imp.KERNEL32.dll_LocalFree]
mov dword [eax], vtable.StartupAreas::FreeProcPtr_void_____stdcall___void____void__.0
mov dword [eax + 4], ecx
mov dword [eax + 8], ebp
mov byte [esp + 0x244], 0
mov edi, eax
or ebx, 0xffffffff
mov dword [esp + 0x244], ebx
mov dword [esp + 0x1c], edi
mov dword [esp + 0x244], 2
lea edx, [esp + 0x2c]
push edx
lea eax, [esp + 0x2c]
push eax
lea ecx, [esp + 0x38]
push ecx
lea edx, [esp + 0x2c]
push edx
push ebp
mov eax, esi
call fcn.0040e880
push eax
push 0
call dword [sym.imp.ADVAPI32.dll_LookupAccountNameW]
test eax, eax
jne 0x40a9e9
mov dword [esp + 0x244], ebx
mov eax, dword [edi]
mov edx, dword [eax]
mov ecx, edi
call edx
mov eax, dword [edi]
mov edx, dword [eax + 4]
push 1
mov ecx, edi
call edx
xor al, al
jmp 0x40aada
lea eax, [esp + 0x14]
push eax
push ebp
call sub.ADVAPI32.dll_ConvertSidToStringSidW
test eax, eax
jne 0x40aa19
mov dword [esp + 0x244], ebx
mov edx, dword [edi]
mov eax, dword [edx]
mov ecx, edi
call eax
mov edx, dword [edi]
mov eax, dword [edx + 4]
push 1
mov ecx, edi
call eax
xor al, al
jmp 0x40aada
mov esi, dword [esp + 0x14]
push 0xc
call fcn.004fdddd
add esp, 4
mov dword [esp + 0x24], eax
mov cl, 3
mov byte [esp + 0x244], cl
test eax, eax
je 0x40aa63
mov dword [eax], vtable.StartupAreas::IFreeProcPtr.0
mov byte [esp + 0x244], 4
mov edx, dword [sym.imp.KERNEL32.dll_LocalFree]
mov dword [eax], vtable.StartupAreas::FreeProcPtr_void_____stdcall___void____unsigned_short_int__.0
mov dword [eax + 4], edx
mov dword [eax + 8], esi
mov byte [esp + 0x244], cl
mov ebp, eax
jmp 0x40aa65
xor ebp, ebp
mov byte [esp + 0x244], 2
mov dword [esp + 0x24], ebp
mov byte [esp + 0x244], 5
mov eax, dword [esp + 0x14]
mov ecx, eax
lea esi, [ecx + 2]
mov dx, word [ecx]
add ecx, 2
test dx, dx
jne 0x40aa82
sub ecx, esi
mov esi, dword [esp + 0x18]
sar ecx, 1
push ecx
call fcn.0040e430
mov bl, 1
mov byte [esp + 0x244], 2
mov eax, dword [ebp]
mov edx, dword [eax]
mov ecx, ebp
call edx
mov eax, dword [ebp]
mov edx, dword [eax + 4]
push 1
mov ecx, ebp
call edx
mov dword [esp + 0x244], 0xffffffff
mov eax, dword [edi]
mov edx, dword [eax]
mov ecx, edi
call edx
mov eax, dword [edi]
mov edx, dword [eax + 4]
push 1
mov ecx, edi
call edx
mov al, bl
mov ecx, dword [esp + 0x23c]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
mov ecx, dword [esp + 0x224]
xor ecx, esp
call fcn.004fdb4a
add esp, 0x234
ret