Function at 0x458744
Capabilities:
Get user security identifier

Disassembly:
push ebx
push esi
push edi
push ebp
add esp, 0xfffffcac
mov ebx, eax
mov dword [esp + 0x20], 0x80
xor eax, eax
mov dword [esp + 0x28], eax
xor eax, eax
mov dword [esp + 0xc], eax
xor eax, eax
mov dword [esp + 8], eax
mov dword [esp], 0xffffffff
xor eax, eax
mov dword [esp + 0x10], eax
xor eax, eax
mov dword [esp + 4], eax
lea eax, [esp + 0x30]
mov edx, dword [ebx + 0x30]
call fcn.00408550
mov eax, ebx
call fcn.00458504
mov esi, eax
mov eax, esi
call fcn.00407994
mov dword [esp + 0xc], eax
push 2
push esi
mov eax, dword [esp + 0x14]
push eax
call sub.advapi32.dll_InitializeAcl
test eax, eax
jne 0x4587fc
call sub.kernel32.dll_GetLastError_1
mov esi, eax
push 0
push 0x400
lea eax, [esp + 0x138]
push eax
push 0
push esi
push 0
push 0x1000
call sub.kernel32.dll_FormatMessageA
lea eax, [esp + 0xc]
xor edx, edx
call fcn.004026e4
lea eax, [esp + 8]
xor edx, edx
call fcn.004026e4
mov ecx, 6
mov edx, esi
mov eax, ebx
call fcn.004572ec
jmp 0x458db6
mov eax, dword [ebx + 0x24]
mov ebp, dword [eax + 8]
dec ebp
test ebp, ebp
jl 0x458c33
inc ebp
mov dword [esp + 0x24], 0
xor eax, eax
mov dword [esp + 0x1c], eax
xor eax, eax
mov dword [esp + 0x18], eax
mov edx, dword [esp + 0x24]
mov eax, dword [ebx + 0x24]
call fcn.0040dce8
mov edi, eax
mov edx, dword [edi]
lea eax, [esp + 0x230]
call fcn.00408550
lea eax, [esp + 0x331]
mov edx, dword [ebx + 0x3c]
call fcn.00408550
lea eax, [esp + 0x14]
push eax
lea eax, [esp + 0x1c]
push eax
push 0
lea eax, [esp + 0x28]
push eax
push 0
lea eax, [esp + 0x244]
push eax
lea eax, [esp + 0x349]
push eax
call sub.advapi32.dll_LookupAccountNameA
test eax, eax
jne 0x4588b4
call sub.kernel32.dll_GetLastError_1
mov esi, eax
cmp esi, 0x7a
je 0x4588b4
push 0
push 0x400
lea eax, [esp + 0x138]
push eax
push 0
push esi
push 0
push 0x1000
call sub.kernel32.dll_FormatMessageA
mov ecx, 7
mov edx, esi
mov eax, ebx
call fcn.004572ec
jmp 0x458db6
lea eax, [esp + 8]
mov edx, dword [esp + 0x1c]
call fcn.004026e4
lea eax, [esp + 0x14]
push eax
lea eax, [esp + 0x1c]
push eax
lea eax, [esp + 0x349]
push eax
lea eax, [esp + 0x28]
push eax
mov eax, dword [esp + 0x18]
push eax
lea eax, [esp + 0x244]
push eax
lea eax, [esp + 0x349]
push eax
call sub.advapi32.dll_LookupAccountNameA
test eax, eax
jne 0x458937
call sub.kernel32.dll_GetLastError_1
mov esi, eax
push 0
push 0x400
lea eax, [esp + 0x138]
push eax
push 0
push esi
push 0
push 0x1000
call sub.kernel32.dll_FormatMessageA
mov eax, dword [esp + 8]
call fcn.004026cc
mov ecx, 7
mov edx, esi
mov eax, ebx
call fcn.004572ec
jmp 0x458db6
cmp byte [ebx + 0x2c], 0
je 0x458a35
mov al, byte [0x458dc4]
cmp al, byte [edi + 9]
je 0x458c1d
mov al, byte [edi + 9]
call fcn.0045842c
mov esi, eax
mov eax, dword [esp + 8]
push eax
push esi
push 2
mov eax, dword [esp + 0x18]
push eax
call sub.advapi32.dll_AddAccessAllowedAce
test eax, eax
jne 0x4589bd
call sub.kernel32.dll_GetLastError_1
mov esi, eax
push 0
push 0x400
lea eax, [esp + 0x138]
push eax
push 0
push esi
push 0
push 0x1000
call sub.kernel32.dll_FormatMessageA
lea eax, [esp + 0xc]
xor edx, edx
call fcn.004026e4
lea eax, [esp + 8]
xor edx, edx
call fcn.004026e4
mov ecx, 8
mov edx, esi
mov eax, ebx
call fcn.004572ec
jmp 0x458db6
inc dword [esp + 0x28]
lea eax, [esp + 0x2c]
push eax
mov eax, dword [esp + 0x2c]
dec eax
push eax
mov eax, dword [esp + 0x14]
push eax
call sub.advapi32.dll_GetAce
test eax, eax
jne 0x458a28
call sub.kernel32.dll_GetLastError_1
mov esi, eax
push 0
push 0x400
lea eax, [esp + 0x138]
push eax
push 0
push esi
push 0
push 0x1000
call sub.kernel32.dll_FormatMessageA
lea eax, [esp + 0xc]
xor edx, edx
call fcn.004026e4
lea eax, [esp + 8]
xor edx, edx
call fcn.004026e4
mov ecx, 4
mov edx, esi
mov eax, ebx
call fcn.004572ec
jmp 0x458db6
mov eax, dword [esp + 0x2c]
mov byte [eax + 1], 1
jmp 0x458c1d
cmp byte [ebx + 0x2d], 0
je 0x458c1d
mov al, byte [0x458dc4]
cmp al, byte [edi + 9]
je 0x458b2e
mov al, byte [edi + 9]
call fcn.00458498
mov esi, eax
mov eax, dword [esp + 8]
push eax
push esi
push 2
mov eax, dword [esp + 0x18]
push eax
call sub.advapi32.dll_AddAccessAllowedAce
test eax, eax
jne 0x458abb
call sub.kernel32.dll_GetLastError_1
mov esi, eax
push 0
push 0x400
lea eax, [esp + 0x138]
push eax
push 0
push esi
push 0
push 0x1000
call sub.kernel32.dll_FormatMessageA
lea eax, [esp + 0xc]
xor edx, edx
call fcn.004026e4
lea eax, [esp + 8]
xor edx, edx
call fcn.004026e4
mov ecx, 8
mov edx, esi
mov eax, ebx
call fcn.004572ec
jmp 0x458db6
inc dword [esp + 0x28]
lea eax, [esp + 0x2c]
push eax
mov eax, dword [esp + 0x2c]
dec eax
push eax
mov eax, dword [esp + 0x14]
push eax
call sub.advapi32.dll_GetAce
test eax, eax
jne 0x458b26
call sub.kernel32.dll_GetLastError_1
mov esi, eax
push 0
push 0x400
lea eax, [esp + 0x138]
push eax
push 0
push esi
push 0
push 0x1000
call sub.kernel32.dll_FormatMessageA
lea eax, [esp + 0xc]
xor edx, edx
call fcn.004026e4
lea eax, [esp + 8]
xor edx, edx
call fcn.004026e4
mov ecx, 4
mov edx, esi
mov eax, ebx
call fcn.004572ec
jmp 0x458db6
mov eax, dword [esp + 0x2c]
mov byte [eax + 1], 9
mov al, byte [0x458dc4]
cmp al, byte [edi + 0xa]
je 0x458c1d
mov al, byte [edi + 0xa]
call fcn.0045842c
mov esi, eax
mov eax, dword [esp + 8]
push eax
push esi
push 2
mov eax, dword [esp + 0x18]
push eax
call sub.advapi32.dll_AddAccessAllowedAce
test eax, eax
jne 0x458baa
call sub.kernel32.dll_GetLastError_1
mov esi, eax
push 0
push 0x400
lea eax, [esp + 0x138]
push eax
push 0
push esi
push 0
push 0x1000
call sub.kernel32.dll_FormatMessageA
lea eax, [esp + 0xc]
xor edx, edx
call fcn.004026e4
lea eax, [esp + 8]
xor edx, edx
call fcn.004026e4
mov ecx, 8
mov edx, esi
mov eax, ebx
call fcn.004572ec
jmp 0x458db6
inc dword [esp + 0x28]
lea eax, [esp + 0x2c]
push eax
mov eax, dword [esp + 0x2c]
dec eax
push eax
mov eax, dword [esp + 0x14]
push eax
call sub.advapi32.dll_GetAce
test eax, eax
jne 0x458c15
call sub.kernel32.dll_GetLastError_1
mov esi, eax
push 0
push 0x400
lea eax, [esp + 0x138]
push eax
push 0
push esi
push 0
push 0x1000
call sub.kernel32.dll_FormatMessageA
lea eax, [esp + 0xc]
xor edx, edx
call fcn.004026e4
lea eax, [esp + 8]
xor edx, edx
call fcn.004026e4
mov ecx, 4
mov edx, esi
mov eax, ebx
call fcn.004572ec
jmp 0x458db6
mov eax, dword [esp + 0x2c]
mov byte [eax + 1], 2
lea eax, [esp + 8]
xor edx, edx
call fcn.004026e4
inc dword [esp + 0x24]
dec ebp
jne 0x458814
lea eax, [esp + 0x10]
mov edx, dword [esp + 0x20]
call fcn.004026e4
push 1
mov eax, dword [esp + 0x14]
push eax
call sub.advapi32.dll_InitializeSecurityDescriptor
test eax, eax
jne 0x458ca9
call sub.kernel32.dll_GetLastError_1
mov esi, eax
push 0
push 0x400
lea eax, [esp + 0x138]
push eax
push 0
push esi
push 0
push 0x1000
call sub.kernel32.dll_FormatMessageA
lea eax, [esp + 0xc]
xor edx, edx
call fcn.004026e4
lea eax, [esp + 8]
xor edx, edx
call fcn.004026e4
lea eax, [esp + 0x10]
xor edx, edx
call fcn.004026e4
mov ecx, 0xa
mov edx, esi
mov eax, ebx
call fcn.004572ec
jmp 0x458db6
mov eax, dword [esp + 4]
push eax
mov eax, dword [esp + 0x10]
push eax
mov eax, dword [esp + 8]
push eax
mov eax, dword [esp + 0x1c]
push eax
call sub.advapi32.dll_SetSecurityDescriptorDacl
test eax, eax
jne 0x458d1f
call sub.kernel32.dll_GetLastError_1
mov esi, eax
push 0
push 0x400
lea eax, [esp + 0x138]
push eax
push 0
push esi
push 0
push 0x1000
call sub.kernel32.dll_FormatMessageA
lea eax, [esp + 0xc]
xor edx, edx
call fcn.004026e4
lea eax, [esp + 8]
xor edx, edx
call fcn.004026e4
lea eax, [esp + 0x10]
xor edx, edx
call fcn.004026e4
mov ecx, 0xb
mov edx, esi
mov eax, ebx
call fcn.004572ec
jmp 0x458db6
mov eax, dword [esp + 0x10]
push eax
push 4
lea eax, [esp + 0x38]
push eax
call sub.advapi32.dll_SetFileSecurityA
test eax, eax
jne 0x458d8a
call sub.kernel32.dll_GetLastError_1
mov esi, eax
push 0
push 0x400
lea eax, [esp + 0x138]
push eax
push 0
push esi
push 0
push 0x1000
call sub.kernel32.dll_FormatMessageA
lea eax, [esp + 0xc]
xor edx, edx
call fcn.004026e4
lea eax, [esp + 8]
xor edx, edx
call fcn.004026e4
lea eax, [esp + 0x10]
xor edx, edx
call fcn.004026e4
mov ecx, 0xc
mov edx, esi
mov eax, ebx
call fcn.004572ec
jmp 0x458db6
lea eax, [esp + 0xc]
xor edx, edx
call fcn.004026e4
lea eax, [esp + 8]
xor edx, edx
call fcn.004026e4
lea eax, [esp + 0x10]
xor edx, edx
call fcn.004026e4
xor ecx, ecx
xor edx, edx
mov eax, ebx
call fcn.004572ec
add esp, 0x354
pop ebp
pop edi
pop esi
pop ebx
ret