Function at 0x441f40
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 0x44221e
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.004060c4
mov eax, dword [ebp - 0xc]
xor edx, edx
call fcn.00406070
cmp dword [ebp - 8], 0
jne 0x441f92
test ebx, ebx
je 0x442203
xor eax, eax
mov dword [ebp - 0x24], eax
test ebx, ebx
je 0x4420be
mov dword [ebp - 0x14], pe_nt_image_headers32
mov eax, dword [ebp - 0x14]
call fcn.0040304c
mov dword [ebp - 0x24], eax
xor eax, eax
push ebp
push 0x442097
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 0x442014
call sub.kernel32.dll_GetLastError
cmp eax, 0x7a
jne 0x442014
lea eax, [ebp - 0x24]
mov edx, dword [ebp - 0x14]
call fcn.00403098
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 0x44208d
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.00403080
xor eax, eax
mov dword [ebp - 0x24], eax
cmp byte [ebp - 0xd], 0
je 0x44208d
mov eax, dword [ebp - 0xc]
mov edx, dword [ebp - 0x28]
call fcn.0040621c
xor eax, eax
push ebp
push 0x442076
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 0x442080
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
jmp 0x442203
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
jmp 0x4420a5
cmp byte [ebp - 0xd], 0
jne 0x4420be
cmp dword [ebp - 0x24], 0
je 0x4420be
mov eax, dword [ebp - 0x24]
call fcn.00403080
xor eax, eax
mov dword [ebp - 0x24], eax
cmp byte [ebp - 0xd], 0
jne 0x4421c0
xor edx, edx
push ebp
push 0x4421b9
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.004060fc
push eax
push 0
call sub.advapi32.dll_LookupAccountNameW
cmp dword [ebp - 0x14], 0
jbe 0x44219c
mov eax, dword [ebp - 0x14]
call fcn.0040304c
mov dword [ebp - 0x20], eax
mov edx, dword [ebp - 0x18]
inc edx
lea eax, [ebp - 4]
call fcn.004063ec
mov eax, dword [ebp - 4]
test eax, eax
je 0x44213e
mov edx, eax
sub edx, 0xa
cmp word [edx], 2
je 0x44213e
lea eax, [ebp - 4]
mov edx, dword [ebp - 4]
call fcn.0040569c
mov ebx, eax
test ebx, ebx
je 0x442149
sub ebx, 4
mov ebx, dword [ebx]
mov eax, dword [ebp - 4]
call fcn.004060fc
mov edx, ebx
add edx, edx
xor ecx, ecx
call fcn.0040366c
lea eax, [ebp - 0x1c]
push eax
lea eax, [ebp - 0x18]
push eax
mov eax, dword [ebp - 4]
call fcn.004060fc
push eax
lea eax, [ebp - 0x14]
push eax
mov eax, dword [ebp - 0x20]
push eax
mov eax, dword [ebp - 8]
call fcn.004060fc
push eax
push 0
call sub.advapi32.dll_LookupAccountNameW
test eax, eax
jne 0x4421a5
mov eax, dword [ebp - 0x20]
call fcn.00403080
xor eax, eax
mov dword [ebp - 0x20], eax
mov byte [ebp - 0xd], 0
jmp 0x4421a5
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 0x4421c0
mov eax, dword [ebp - 0x20]
mov dword [ebp - 0x24], eax
ret
cmp dword [ebp - 0x24], 0
je 0x442203
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 0x4421fb
mov eax, dword [ebp - 0xc]
mov edx, dword [ebp - 0x28]
call fcn.0040621c
mov eax, dword [ebp - 0x28]
push eax
call sub.kernel32.dll_LocalFree_1
mov eax, dword [ebp - 0x24]
call fcn.00403080
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x442225
lea eax, [ebp - 8]
mov edx, 2
call fcn.00406068
ret