Function at 0x450f30
Capabilities:
Get user security identifier

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4f6f2e
mov eax, dword fs:[0]
push eax
sub esp, 0x84c
mov eax, dword [0x5365f0]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov eax, dword [ebp + 8]
mov dword [ebp - 0x858], eax
xor ebx, ebx
mov dword [ebp - 4], ebx
mov esi, 7
xor ecx, ecx
mov dword [ebp - 0x818], esi
mov dword [ebp - 0x81c], ebx
mov word [ebp - 0x82c], cx
mov byte [ebp - 4], 1
cmp dword [ebp + 0x1c], ebx
jne 0x450fa0
lea edx, [ebp - 0x82c]
push edx
call fcn.00450e60
add esp, 4
jmp 0x450fb3
push ebx
lea eax, [ebp + 0xc]
push eax
or eax, 0xffffffff
lea ecx, [ebp - 0x82c]
call fcn.004022e0
cmp dword [ebp - 0x81c], ebx
je 0x451251
push 0x800
lea ecx, [ebp - 0x810]
push ebx
push ecx
mov dword [ebp - 0x84c], ebx
mov dword [ebp - 0x850], 0x800
call fcn.004da450
mov eax, dword [ebp - 0x82c]
add esp, 0xc
cmp dword [ebp - 0x818], 8
mov dword [ebp - 0x854], esi
jae 0x450fff
lea eax, [ebp - 0x82c]
mov edi, dword [sym.imp.ADVAPI32.dll_LookupAccountNameW]
lea edx, [ebp - 0x854]
push edx
lea ecx, [ebp - 0x850]
push ecx
lea edx, [ebp - 0x810]
push edx
lea ecx, [ebp - 0x84c]
push ecx
push ebx
push eax
push ebx
call edi
test eax, eax
jne 0x451251
mov edx, dword [ebp - 0x84c]
push edx
call fcn.004d4853
mov esi, eax
add esp, 4
cmp esi, ebx
je 0x45124c
cmp dword [ebp - 0x818], 8
mov eax, dword [ebp - 0x82c]
jae 0x45105c
lea eax, [ebp - 0x82c]
lea ecx, [ebp - 0x854]
push ecx
lea edx, [ebp - 0x850]
push edx
lea ecx, [ebp - 0x810]
push ecx
lea edx, [ebp - 0x84c]
push edx
push esi
push eax
push ebx
call edi
push esi
test eax, eax
jne 0x4510ad
call fcn.004d5559
add esp, 4
mov byte [ebp - 4], 0
lea esi, [ebp - 0x82c]
call fcn.00401ca0
mov dword [ebp - 4], 0xffffffff
lea esi, [ebp + 0xc]
call fcn.00401ca0
jmp 0x4512aa
call dword [sym.imp.ADVAPI32.dll_IsValidSid]
push esi
test eax, eax
je 0x451082
call dword [sym.imp.ADVAPI32.dll_GetSidIdentifierAuthority]
push esi
mov edi, eax
call dword [sym.imp.ADVAPI32.dll_GetSidSubAuthorityCount]
movzx ebx, byte [eax]
xor eax, eax
mov dword [ebp - 0x834], 7
mov dword [ebp - 0x838], 0
mov word [ebp - 0x848], ax
mov byte [ebp - 4], 2
push 1
push str.S__lu_
lea ecx, [ebp - 0x848]
call fcn.004512d0
mov al, byte [edi]
add esp, 8
test al, al
jne 0x451140
cmp byte [edi + 1], al
jne 0x451140
movzx ecx, byte [edi + 2]
movzx edx, byte [edi + 3]
movzx eax, byte [edi + 4]
shl ecx, 8
add ecx, edx
movzx edx, byte [edi + 5]
shl ecx, 8
add ecx, eax
shl ecx, 8
add ecx, edx
push ecx
push 0x5178e4
lea ecx, [ebp - 0x848]
call fcn.004512f0
add esp, 8
jmp 0x451170
movzx ecx, byte [edi + 5]
movzx edx, byte [edi + 4]
push ecx
movzx ecx, byte [edi + 3]
push edx
movzx edx, byte [edi + 2]
push ecx
movzx ecx, byte [edi + 1]
push edx
push ecx
movzx edx, al
push edx
push str.0x_02hx_02hx_02hx_02hx_02hx_02hx
lea ecx, [ebp - 0x848]
call fcn.004512f0
add esp, 0x1c
xor edi, edi
test ebx, ebx
je 0x451199
push edi
push esi
call dword [sym.imp.ADVAPI32.dll_GetSidSubAuthority]
mov eax, dword [eax]
push eax
push str.__lu
lea ecx, [ebp - 0x848]
call fcn.004512f0
inc edi
add esp, 8
cmp edi, ebx
jb 0x451176
push 0
lea ecx, [ebp - 0x848]
push ecx
mov ecx, dword [ebp - 0x858]
or eax, 0xffffffff
call fcn.004022e0
push esi
call fcn.004d5559
add esp, 4
mov byte [ebp - 4], 1
mov esi, 8
cmp dword [ebp - 0x834], esi
jb 0x4511d9
mov edx, dword [ebp - 0x848]
push edx
call fcn.004d5559
add esp, 4
xor eax, eax
mov edi, 7
xor ebx, ebx
mov dword [ebp - 0x834], edi
mov dword [ebp - 0x838], ebx
mov word [ebp - 0x848], ax
mov byte [ebp - 4], al
cmp dword [ebp - 0x818], esi
jb 0x45120f
mov ecx, dword [ebp - 0x82c]
push ecx
call fcn.004d5559
add esp, 4
xor edx, edx
mov dword [ebp - 0x818], edi
mov dword [ebp - 0x81c], ebx
mov word [ebp - 0x82c], dx
mov dword [ebp - 4], 0xffffffff
cmp dword [ebp + 0x20], esi
jb 0x45123c
mov eax, dword [ebp + 0xc]
push eax
call fcn.004d5559
add esp, 4
xor ecx, ecx
mov dword [ebp + 0x20], edi
mov dword [ebp + 0x1c], ebx
mov word [ebp + 0xc], cx
mov al, 1
jmp 0x4512ac
mov esi, 7
mov byte [ebp - 4], 0
mov edi, 8
cmp dword [ebp - 0x818], edi
jb 0x451271
mov edx, dword [ebp - 0x82c]
push edx
call fcn.004d5559
add esp, 4
xor eax, eax
mov dword [ebp - 0x818], esi
mov dword [ebp - 0x81c], ebx
mov word [ebp - 0x82c], ax
mov dword [ebp - 4], 0xffffffff
cmp dword [ebp + 0x20], edi
jb 0x45129e
mov ecx, dword [ebp + 0xc]
push ecx
call fcn.004d5559
add esp, 4
xor edx, edx
mov dword [ebp + 0x20], esi
mov dword [ebp + 0x1c], ebx
mov word [ebp + 0xc], dx
xor al, al
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.004d5564
mov esp, ebp
pop ebp
ret