Function at 0x4419bc
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 0x441c9a
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.00405e48
mov eax, dword [ebp - 0xc]
xor edx, edx
call fcn.00405df4
cmp dword [ebp - 8], 0
jne 0x441a0e
test ebx, ebx
je 0x441c7f
xor eax, eax
mov dword [ebp - 0x24], eax
test ebx, ebx
je 0x441b3a
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 0x441b13
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 0x441a90
call sub.kernel32.dll_GetLastError
cmp eax, 0x7a
jne 0x441a90
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 0x441b09
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 0x441b09
mov eax, dword [ebp - 0xc]
mov edx, dword [ebp - 0x28]
call fcn.00405fa0
xor eax, eax
push ebp
push 0x441af2
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 0x441afc
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
jmp 0x441c7f
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
jmp 0x441b21
cmp byte [ebp - 0xd], 0
jne 0x441b3a
cmp dword [ebp - 0x24], 0
je 0x441b3a
mov eax, dword [ebp - 0x24]
call fcn.00403080
xor eax, eax
mov dword [ebp - 0x24], eax
cmp byte [ebp - 0xd], 0
jne 0x441c3c
xor edx, edx
push ebp
push 0x441c35
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.00405e80
push eax
push 0
call sub.advapi32.dll_LookupAccountNameW
cmp dword [ebp - 0x14], 0
jbe 0x441c18
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.00406170
mov eax, dword [ebp - 4]
test eax, eax
je 0x441bba
mov edx, eax
sub edx, 0xa
cmp word [edx], 2
je 0x441bba
lea eax, [ebp - 4]
mov edx, dword [ebp - 4]
call fcn.00405648
mov ebx, eax
test ebx, ebx
je 0x441bc5
sub ebx, 4
mov ebx, dword [ebx]
mov eax, dword [ebp - 4]
call fcn.00405e80
mov edx, ebx
add edx, edx
xor ecx, ecx
call fcn.00403618
lea eax, [ebp - 0x1c]
push eax
lea eax, [ebp - 0x18]
push eax
mov eax, dword [ebp - 4]
call fcn.00405e80
push eax
lea eax, [ebp - 0x14]
push eax
mov eax, dword [ebp - 0x20]
push eax
mov eax, dword [ebp - 8]
call fcn.00405e80
push eax
push 0
call sub.advapi32.dll_LookupAccountNameW
test eax, eax
jne 0x441c21
mov eax, dword [ebp - 0x20]
call fcn.00403080
xor eax, eax
mov dword [ebp - 0x20], eax
mov byte [ebp - 0xd], 0
jmp 0x441c21
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 0x441c3c
mov eax, dword [ebp - 0x20]
mov dword [ebp - 0x24], eax
ret
cmp dword [ebp - 0x24], 0
je 0x441c7f
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 0x441c77
mov eax, dword [ebp - 0xc]
mov edx, dword [ebp - 0x28]
call fcn.00405fa0
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 0x441ca1
lea eax, [ebp - 8]
mov edx, 2
call fcn.00405dec
ret