Function at 0x488e1c
Capabilities:
Get user security identifier

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffd8
push ebx
push esi
push edi
xor ecx, ecx
mov dword [ebp - 4], ecx
mov dword [ebp - 8], ecx
mov ebx, edx
mov dword [ebp - 0xc], eax
xor eax, eax
push ebp
push 0x4890fa
push dword fs:[eax]
mov dword fs:[eax], esp
mov byte [ebp - 0xd], 0
xor eax, eax
mov dword [ebp - 0x20], eax
lea eax, [ebp - 8]
mov edx, dword [ebp - 0xc]
mov edx, dword [edx]
call fcn.00405f1c
mov eax, dword [ebp - 0xc]
xor edx, edx
call fcn.00405ec8
cmp dword [ebp - 8], 0
jne 0x488e6e
test ebx, ebx
je 0x4890df
xor eax, eax
mov dword [ebp - 0x24], eax
test ebx, ebx
je 0x488f9a
mov dword [ebp - 0x14], pe_nt_image_headers32
mov eax, dword [ebp - 0x14]
call fcn.00403058
mov dword [ebp - 0x24], eax
xor eax, eax
push ebp
push 0x488f73
push dword fs:[eax]
mov dword fs:[eax], esp
lea eax, [ebp - 0x14]
push eax
mov eax, dword [ebp - 0x14]
push eax
mov eax, dword [ebp - 0x24]
push eax
push 1
push ebx
call sub.advapi32.dll_GetTokenInformation
cmp eax, 1
sbb eax, eax
inc eax
mov byte [ebp - 0xd], al
cmp byte [ebp - 0xd], 0
jne 0x488ef0
call sub.kernel32.dll_GetLastError
cmp eax, 0x7a
jne 0x488ef0
lea eax, [ebp - 0x24]
mov edx, dword [ebp - 0x14]
call fcn.004030c0
lea eax, [ebp - 0x14]
push eax
mov eax, dword [ebp - 0x14]
push eax
mov eax, dword [ebp - 0x24]
push eax
push 1
push ebx
call sub.advapi32.dll_GetTokenInformation
cmp eax, 1
sbb eax, eax
inc eax
mov byte [ebp - 0xd], al
cmp byte [ebp - 0xd], 0
je 0x488f69
xor eax, eax
mov dword [ebp - 0x28], eax
lea eax, [ebp - 0x28]
push eax
mov eax, dword [ebp - 0x24]
mov eax, dword [eax]
push eax
call sub.advapi32.dll_ConvertSidToStringSidW
cmp eax, 1
sbb eax, eax
inc eax
mov byte [ebp - 0xd], al
mov eax, dword [ebp - 0x24]
call fcn.004030a8
xor eax, eax
mov dword [ebp - 0x24], eax
cmp byte [ebp - 0xd], 0
je 0x488f69
mov eax, dword [ebp - 0xc]
mov edx, dword [ebp - 0x28]
call fcn.00406074
xor eax, eax
push ebp
push 0x488f52
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 0x28]
push eax
call sub.kernel32.dll_LocalFree
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
jmp 0x488f5c
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
jmp 0x4890df
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
jmp 0x488f81
cmp byte [ebp - 0xd], 0
jne 0x488f9a
cmp dword [ebp - 0x24], 0
je 0x488f9a
mov eax, dword [ebp - 0x24]
call fcn.004030a8
xor eax, eax
mov dword [ebp - 0x24], eax
cmp byte [ebp - 0xd], 0
jne 0x48909c
xor edx, edx
push ebp
push 0x489095
push dword fs:[edx]
mov dword fs:[edx], esp
xor eax, eax
mov dword [ebp - 0x18], eax
xor eax, eax
mov dword [ebp - 0x14], eax
lea eax, [ebp - 0x1c]
push eax
lea eax, [ebp - 0x18]
push eax
push 0
lea eax, [ebp - 0x14]
push eax
push 0
mov eax, dword [ebp - 8]
call fcn.00405f54
push eax
push 0
call sub.advapi32.dll_LookupAccountNameW
cmp dword [ebp - 0x14], 0
jbe 0x489078
mov eax, dword [ebp - 0x14]
call fcn.00403058
mov dword [ebp - 0x20], eax
mov edx, dword [ebp - 0x18]
inc edx
lea eax, [ebp - 4]
call fcn.00406244
mov eax, dword [ebp - 4]
test eax, eax
je 0x48901a
mov edx, eax
sub edx, 0xa
cmp word [edx], 2
je 0x48901a
lea eax, [ebp - 4]
mov edx, dword [ebp - 4]
call fcn.0040563c
mov ebx, eax
test ebx, ebx
je 0x489025
sub ebx, 4
mov ebx, dword [ebx]
mov eax, dword [ebp - 4]
call fcn.00405f54
mov edx, ebx
add edx, edx
xor ecx, ecx
call fcn.0040368c
lea eax, [ebp - 0x1c]
push eax
lea eax, [ebp - 0x18]
push eax
mov eax, dword [ebp - 4]
call fcn.00405f54
push eax
lea eax, [ebp - 0x14]
push eax
mov eax, dword [ebp - 0x20]
push eax
mov eax, dword [ebp - 8]
call fcn.00405f54
push eax
push 0
call sub.advapi32.dll_LookupAccountNameW
test eax, eax
jne 0x489081
mov eax, dword [ebp - 0x20]
call fcn.004030a8
xor eax, eax
mov dword [ebp - 0x20], eax
mov byte [ebp - 0xd], 0
jmp 0x489081
mov byte [ebp - 0xd], 0
xor eax, eax
mov dword [ebp - 0x20], eax
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x48909c
mov eax, dword [ebp - 0x20]
mov dword [ebp - 0x24], eax
ret
cmp dword [ebp - 0x24], 0
je 0x4890df
xor eax, eax
mov dword [ebp - 0x28], eax
lea eax, [ebp - 0x28]
push eax
mov eax, dword [ebp - 0x24]
push eax
call sub.advapi32.dll_ConvertSidToStringSidW
cmp eax, 1
sbb eax, eax
inc eax
mov byte [ebp - 0xd], al
cmp byte [ebp - 0xd], 0
je 0x4890d7
mov eax, dword [ebp - 0xc]
mov edx, dword [ebp - 0x28]
call fcn.00406074
mov eax, dword [ebp - 0x28]
push eax
call sub.kernel32.dll_LocalFree
mov eax, dword [ebp - 0x24]
call fcn.004030a8
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x489101
lea eax, [ebp - 8]
mov edx, 2
call fcn.00405ec0
ret