Function at 0x4594c0
Capabilities:
Get user security identifier

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4ad9cd
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x70
push 0
push 0x400
lea ecx, [ebp - 0x7c]
call fcn.00454e13
mov dword [ebp - 4], 0
mov dword [ebp - 0x14], 0x400
mov eax, dword [ebp + 0x10]
mov dword [ebp - 0x24], eax
lea ecx, [ebp - 0x7c]
mov dword [ebp - 0x18], ecx
mov edx, dword [ebp - 0x18]
mov dword [ebp - 0x30], edx
mov eax, dword [ebp - 0x18]
cmp dword [eax + 0x14], 8
jb 0x45951c
mov dword [ebp - 0x2c], 1
jmp 0x459523
mov dword [ebp - 0x2c], 0
mov cl, byte [ebp - 0x2c]
mov byte [ebp - 0xd], cl
movzx edx, byte [ebp - 0xd]
test edx, edx
je 0x45953f
mov eax, dword [ebp - 0x18]
mov ecx, dword [eax]
mov dword [ebp - 0x44], ecx
mov edx, dword [ebp - 0x44]
mov dword [ebp - 0x30], edx
mov eax, dword [ebp - 0x30]
mov dword [ebp - 0x48], eax
xor ecx, ecx
shl ecx, 1
add ecx, dword [ebp - 0x48]
mov dword [ebp - 0x4c], ecx
lea edx, [ebp - 0x5c]
push edx
lea eax, [ebp - 0x14]
push eax
mov ecx, dword [ebp - 0x4c]
push ecx
lea edx, [ebp - 0x24]
push edx
mov eax, dword [ebp + 0xc]
push eax
mov ecx, dword [ebp + 8]
push ecx
push 0
call dword [sym.imp.ADVAPI32.dll_LookupAccountNameW]
mov dword [ebp - 0x28], eax
cmp dword [ebp - 0x28], 0
jne 0x459661
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x7a
jne 0x459661
mov edx, dword [ebp - 0x24]
cmp edx, dword [ebp + 0x10]
jbe 0x4595b1
mov dword [ebp - 0x50], 0
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x7c]
call fcn.00401880
mov eax, dword [ebp - 0x50]
jmp 0x45968f
cmp dword [ebp - 0x14], 0x400
jbe 0x4595ed
mov eax, dword [ebp - 0x14]
mov dword [ebp - 0x1c], eax
mov ecx, dword [ebp - 0x6c]
mov dword [ebp - 0x34], ecx
mov edx, dword [ebp - 0x1c]
cmp edx, dword [ebp - 0x34]
ja 0x4595dc
mov eax, dword [ebp - 0x1c]
push eax
lea ecx, [ebp - 0x7c]
call fcn.0040f450
jmp 0x4595ed
push 0
mov ecx, dword [ebp - 0x1c]
sub ecx, dword [ebp - 0x34]
push ecx
lea ecx, [ebp - 0x7c]
call fcn.0040f480
lea edx, [ebp - 0x7c]
mov dword [ebp - 0x20], edx
mov eax, dword [ebp - 0x20]
mov dword [ebp - 0x3c], eax
mov ecx, dword [ebp - 0x20]
cmp dword [ecx + 0x14], 8
jb 0x45960b
mov dword [ebp - 0x38], 1
jmp 0x459612
mov dword [ebp - 0x38], 0
mov dl, byte [ebp - 0x38]
mov byte [ebp - 0xe], dl
movzx eax, byte [ebp - 0xe]
test eax, eax
je 0x45962e
mov ecx, dword [ebp - 0x20]
mov edx, dword [ecx]
mov dword [ebp - 0x54], edx
mov eax, dword [ebp - 0x54]
mov dword [ebp - 0x3c], eax
mov ecx, dword [ebp - 0x3c]
mov dword [ebp - 0x58], ecx
xor edx, edx
shl edx, 1
add edx, dword [ebp - 0x58]
mov dword [ebp - 0x60], edx
lea eax, [ebp - 0x5c]
push eax
lea ecx, [ebp - 0x14]
push ecx
mov edx, dword [ebp - 0x60]
push edx
lea eax, [ebp - 0x24]
push eax
mov ecx, dword [ebp + 0xc]
push ecx
mov edx, dword [ebp + 8]
push edx
push 0
call dword [sym.imp.ADVAPI32.dll_LookupAccountNameW]
mov dword [ebp - 0x28], eax
cmp dword [ebp - 0x28], 0
je 0x459670
mov dword [ebp - 0x40], 1
jmp 0x459677
mov dword [ebp - 0x40], 0
mov eax, dword [ebp - 0x40]
mov dword [ebp - 0x64], eax
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x7c]
call fcn.00401880
mov eax, dword [ebp - 0x64]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
mov esp, ebp
pop ebp
ret