Function at 0x4ccb7c
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 0x4cce5a
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.004062d0
mov eax, dword [ebp - 0xc]
xor edx, edx
call fcn.0040627c
cmp dword [ebp - 8], 0
jne 0x4ccbce
test ebx, ebx
je 0x4cce3f
xor eax, eax
mov dword [ebp - 0x24], eax
test ebx, ebx
je 0x4cccfa
mov dword [ebp - 0x14], pe_nt_image_headers32
mov eax, dword [ebp - 0x14]
call fcn.0040305c
mov dword [ebp - 0x24], eax
xor eax, eax
push ebp
push 0x4cccd3
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 0x4ccc50
call sub.kernel32.dll_GetLastError
cmp eax, 0x7a
jne 0x4ccc50
lea eax, [ebp - 0x24]
mov edx, dword [ebp - 0x14]
call fcn.004030a8
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 0x4cccc9
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.00403090
xor eax, eax
mov dword [ebp - 0x24], eax
cmp byte [ebp - 0xd], 0
je 0x4cccc9
mov eax, dword [ebp - 0xc]
mov edx, dword [ebp - 0x28]
call fcn.00406428
xor eax, eax
push ebp
push 0x4cccb2
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 0x28]
push eax
call sub.kernel32.dll_LocalFree_1
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
jmp 0x4cccbc
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
jmp 0x4cce3f
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
jmp 0x4ccce1
cmp byte [ebp - 0xd], 0
jne 0x4cccfa
cmp dword [ebp - 0x24], 0
je 0x4cccfa
mov eax, dword [ebp - 0x24]
call fcn.00403090
xor eax, eax
mov dword [ebp - 0x24], eax
cmp byte [ebp - 0xd], 0
jne 0x4ccdfc
xor edx, edx
push ebp
push 0x4ccdf5
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.00406308
push eax
push 0
call sub.advapi32.dll_LookupAccountNameW
cmp dword [ebp - 0x14], 0
jbe 0x4ccdd8
mov eax, dword [ebp - 0x14]
call fcn.0040305c
mov dword [ebp - 0x20], eax
mov edx, dword [ebp - 0x18]
inc edx
lea eax, [ebp - 4]
call fcn.004065f8
mov eax, dword [ebp - 4]
test eax, eax
je 0x4ccd7a
mov edx, eax
sub edx, 0xa
cmp word [edx], 2
je 0x4ccd7a
lea eax, [ebp - 4]
mov edx, dword [ebp - 4]
call fcn.004056e8
mov ebx, eax
test ebx, ebx
je 0x4ccd85
sub ebx, 4
mov ebx, dword [ebx]
mov eax, dword [ebp - 4]
call fcn.00406308
mov edx, ebx
add edx, edx
xor ecx, ecx
call fcn.0040367c
lea eax, [ebp - 0x1c]
push eax
lea eax, [ebp - 0x18]
push eax
mov eax, dword [ebp - 4]
call fcn.00406308
push eax
lea eax, [ebp - 0x14]
push eax
mov eax, dword [ebp - 0x20]
push eax
mov eax, dword [ebp - 8]
call fcn.00406308
push eax
push 0
call sub.advapi32.dll_LookupAccountNameW
test eax, eax
jne 0x4ccde1
mov eax, dword [ebp - 0x20]
call fcn.00403090
xor eax, eax
mov dword [ebp - 0x20], eax
mov byte [ebp - 0xd], 0
jmp 0x4ccde1
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 0x4ccdfc
mov eax, dword [ebp - 0x20]
mov dword [ebp - 0x24], eax
ret
cmp dword [ebp - 0x24], 0
je 0x4cce3f
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 0x4cce37
mov eax, dword [ebp - 0xc]
mov edx, dword [ebp - 0x28]
call fcn.00406428
mov eax, dword [ebp - 0x28]
push eax
call sub.kernel32.dll_LocalFree_1
mov eax, dword [ebp - 0x24]
call fcn.00403090
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4cce61
lea eax, [ebp - 8]
mov edx, 2
call fcn.00406274
ret