Function at 0x5298e0
Capabilities:
Get user security identifier

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffcc
push ebx
push esi
push edi
xor ecx, ecx
mov dword [ebp - 0x14], ecx
mov dword [ebp - 0x28], ecx
mov dword [ebp - 8], edx
mov dword [ebp - 4], eax
xor eax, eax
push ebp
push 0x529be2
push dword fs:[eax]
mov dword fs:[eax], esp
mov byte [ebp - 9], 0
xor eax, eax
mov dword [ebp - 0x20], eax
lea eax, [ebp - 0x28]
mov edx, dword [ebp - 4]
mov edx, dword [edx]
call fcn.00406dd4
mov eax, dword [ebp - 4]
xor edx, edx
call fcn.00406d80
cmp dword [ebp - 0x28], 0
jne 0x529935
cmp dword [ebp - 8], 0
je 0x529bc4
xor eax, eax
mov dword [ebp - 0x24], eax
cmp dword [ebp - 8], 0
je 0x529a69
mov dword [ebp - 0x10], pe_nt_image_headers32
mov eax, dword [ebp - 0x10]
call fcn.004030e4
mov dword [ebp - 0x24], eax
xor eax, eax
push ebp
push 0x529a42
push dword fs:[eax]
mov dword fs:[eax], esp
lea eax, [ebp - 0x10]
push eax
mov eax, dword [ebp - 0x10]
push eax
mov eax, dword [ebp - 0x24]
push eax
push 1
mov eax, dword [ebp - 8]
push eax
call sub.advapi32.dll_GetTokenInformation
cmp eax, 1
sbb eax, eax
inc eax
mov byte [ebp - 9], al
cmp byte [ebp - 9], 0
jne 0x5299bf
call sub.kernel32.dll_GetLastError_1
cmp eax, 0x7a
jne 0x5299bf
lea eax, [ebp - 0x24]
mov edx, dword [ebp - 0x10]
call fcn.00403130
lea eax, [ebp - 0x10]
push eax
mov eax, dword [ebp - 0x10]
push eax
mov eax, dword [ebp - 0x24]
push eax
push 1
mov eax, dword [ebp - 8]
push eax
call sub.advapi32.dll_GetTokenInformation
cmp eax, 1
sbb eax, eax
inc eax
mov byte [ebp - 9], al
cmp byte [ebp - 9], 0
je 0x529a38
xor eax, eax
mov dword [ebp - 0x2c], eax
lea eax, [ebp - 0x2c]
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 - 9], al
mov eax, dword [ebp - 0x24]
call fcn.00403118
xor eax, eax
mov dword [ebp - 0x24], eax
cmp byte [ebp - 9], 0
je 0x529a38
mov eax, dword [ebp - 4]
mov edx, dword [ebp - 0x2c]
call fcn.00406f3c
xor eax, eax
push ebp
push 0x529a21
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 0x2c]
push eax
call sub.kernel32.dll_LocalFree
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
jmp 0x529a2b
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
jmp 0x529bc4
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
jmp 0x529a50
cmp byte [ebp - 9], 0
jne 0x529a69
cmp dword [ebp - 0x24], 0
je 0x529a69
mov eax, dword [ebp - 0x24]
call fcn.00403118
xor eax, eax
mov dword [ebp - 0x24], eax
cmp byte [ebp - 9], 0
jne 0x529b81
xor eax, eax
push ebp
push 0x529b7a
push dword fs:[eax]
mov dword fs:[eax], esp
xor eax, eax
mov dword [ebp - 0x18], eax
xor eax, eax
mov dword [ebp - 0x10], eax
lea eax, [ebp - 0x1c]
push eax
lea eax, [ebp - 0x18]
push eax
push 0
lea eax, [ebp - 0x10]
push eax
push 0
mov eax, dword [ebp - 0x28]
call fcn.00406e0c
push eax
push 0
call sub.advapi32.dll_LookupAccountNameW
cmp dword [ebp - 0x10], 0
jbe 0x529b5d
mov eax, dword [ebp - 0x10]
call fcn.004030e4
mov dword [ebp - 0x20], eax
mov edx, dword [ebp - 0x18]
inc edx
lea eax, [ebp - 0x14]
call fcn.0040710c
mov eax, dword [ebp - 0x14]
mov dword [ebp - 0x30], eax
cmp dword [ebp - 0x30], 0
je 0x529af2
mov eax, dword [ebp - 0x30]
sub eax, 0xa
cmp word [eax], 2
je 0x529af2
lea eax, [ebp - 0x14]
mov edx, dword [ebp - 0x14]
call fcn.00405d84
mov dword [ebp - 0x30], eax
mov eax, dword [ebp - 0x30]
mov dword [ebp - 0x34], eax
cmp dword [ebp - 0x34], 0
je 0x529b09
mov eax, dword [ebp - 0x34]
sub eax, 4
mov eax, dword [eax]
mov dword [ebp - 0x34], eax
mov eax, dword [ebp - 0x14]
call fcn.00406e0c
mov edx, dword [ebp - 0x34]
add edx, edx
xor ecx, ecx
call fcn.00403b8c
lea eax, [ebp - 0x1c]
push eax
lea eax, [ebp - 0x18]
push eax
mov eax, dword [ebp - 0x14]
call fcn.00406e0c
push eax
lea eax, [ebp - 0x10]
push eax
mov eax, dword [ebp - 0x20]
push eax
mov eax, dword [ebp - 0x28]
call fcn.00406e0c
push eax
push 0
call sub.advapi32.dll_LookupAccountNameW
test eax, eax
jne 0x529b66
mov eax, dword [ebp - 0x20]
call fcn.00403118
xor eax, eax
mov dword [ebp - 0x20], eax
mov byte [ebp - 9], 0
jmp 0x529b66
mov byte [ebp - 9], 0
xor eax, eax
mov dword [ebp - 0x20], eax
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x529b81
mov eax, dword [ebp - 0x20]
mov dword [ebp - 0x24], eax
ret
cmp dword [ebp - 0x24], 0
je 0x529bc4
xor eax, eax
mov dword [ebp - 0x2c], eax
lea eax, [ebp - 0x2c]
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 - 9], al
cmp byte [ebp - 9], 0
je 0x529bbc
mov eax, dword [ebp - 4]
mov edx, dword [ebp - 0x2c]
call fcn.00406f3c
mov eax, dword [ebp - 0x2c]
push eax
call sub.kernel32.dll_LocalFree
mov eax, dword [ebp - 0x24]
call fcn.00403118
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x529be9
lea eax, [ebp - 0x28]
call fcn.00406d70
lea eax, [ebp - 0x14]
call fcn.00406d70
ret