Function at 0x405cf0
Capabilities:
Get session user name
Get user security identifier

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x44a6d8
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x438
push ebx
push esi
push edi
lea eax, [ebp - 0x30]
mov dword [ebp - 0x30], 0xff
push eax
lea eax, [ebp - 0x340]
mov ebx, ecx
push eax
mov dword [ebp - 0x38], ebx
call dword [sym.imp.ADVAPI32.dll_GetUserNameA]
lea eax, [ebp - 0x3c]
mov dword [ebp - 0x10], 0xff
push eax
lea eax, [ebp - 0x34]
mov dword [ebp - 0x34], 0xff
push eax
lea eax, [ebp - 0x440]
push eax
lea eax, [ebp - 0x10]
push eax
lea eax, [ebp - 0x240]
push eax
lea eax, [ebp - 0x340]
push eax
push 0
call dword [sym.imp.ADVAPI32.dll_LookupAccountNameA]
lea eax, [ebp - 0x240]
push eax
call dword [sym.imp.ADVAPI32.dll_GetSidIdentifierAuthority]
push 1
sub esp, 0x18
mov edi, eax
mov ecx, esp
push 0x4645c8
call fcn.00419ff0
lea ecx, [ebp - 0x28]
call fcn.00405210
add esp, 0x18
cmp dword [eax + 0x14], 0x10
jb 0x405d98
mov eax, dword [eax]
push eax
lea eax, [ebp - 0x140]
push eax
call fcn.00402380
mov edx, dword [ebp - 0x14]
add esp, 0xc
mov dword [ebp - 0x10], eax
cmp edx, 0x10
jb 0x405ddf
mov ecx, dword [ebp - 0x28]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x405dd5
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x405fb4
push edx
push ecx
call fcn.0041f5bc
add esp, 8
lea esi, [ebp - 0x140]
lea ecx, [esi + 1]
mov al, byte [esi]
inc esi
test al, al
jne 0x405de8
movzx eax, byte [edi + 5]
sub esi, ecx
push eax
sub esp, 0x18
mov ecx, esp
push 0x464298
call fcn.00419ff0
lea ecx, [ebp - 0x28]
call fcn.00405210
add esp, 0x18
cmp dword [eax + 0x14], 0x10
jb 0x405e18
mov eax, dword [eax]
push eax
lea eax, [ebp - 0x140]
add eax, esi
push eax
call fcn.00402380
add dword [ebp - 0x10], eax
add esp, 0xc
mov edx, dword [ebp - 0x14]
cmp edx, 0x10
jb 0x405e61
mov ecx, dword [ebp - 0x28]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x405e57
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x405fb9
push edx
push ecx
call fcn.0041f5bc
add esp, 8
lea eax, [ebp - 0x240]
push eax
call dword [sym.imp.ADVAPI32.dll_GetSidSubAuthorityCount]
xor esi, esi
movzx edi, byte [eax]
test edi, edi
je 0x405f03
mov ebx, dword [sym.imp.ADVAPI32.dll_GetSidSubAuthority]
push esi
lea eax, [ebp - 0x240]
push eax
call ebx
push dword [eax]
sub esp, 0x18
mov ecx, esp
push 0x463a40
call fcn.00419ff0
lea ecx, [ebp - 0x28]
call fcn.00405210
add esp, 0x18
cmp dword [eax + 0x14], 0x10
jb 0x405eaf
mov eax, dword [eax]
push eax
mov eax, dword [ebp - 0x10]
lea ecx, [ebp - 0x140]
add eax, ecx
push eax
call fcn.00402380
add dword [ebp - 0x10], eax
add esp, 0xc
mov edx, dword [ebp - 0x14]
cmp edx, 0x10
jb 0x405efb
mov ecx, dword [ebp - 0x28]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x405ef1
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x405fb4
push edx
push ecx
call fcn.0041f5bc
add esp, 8
inc esi
cmp esi, edi
jl 0x405e81
mov ebx, dword [ebp - 0x38]
lea ecx, [ebp - 0x140]
mov dword [ebp - 0x18], 0
mov dword [ebp - 0x14], 0xf
lea edx, [ecx + 1]
mov byte [ebp - 0x28], 0
nop
mov al, byte [ecx]
inc ecx
test al, al
jne 0x405f20
sub ecx, edx
lea eax, [ebp - 0x140]
push ecx
push eax
lea ecx, [ebp - 0x28]
call fcn.0041a7c0
mov dword [ebp - 4], 0
lea eax, [ebp - 0x28]
mov ecx, 0x28
mov dword [ebx + 0x10], 0
cmp dword [ebp - 0x18], ecx
mov dword [ebx + 0x14], 0xf
cmovb ecx, dword [ebp - 0x18]
cmp dword [ebp - 0x14], 0x10
push ecx
cmovae eax, dword [ebp - 0x28]
mov ecx, ebx
push eax
mov byte [ebx], 0
call fcn.0041a7c0
mov edx, dword [ebp - 0x14]
cmp edx, 0x10
jb 0x405fa1
mov ecx, dword [ebp - 0x28]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x405f97
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x405fbe
push edx
push ecx
call fcn.0041f5bc
add esp, 8
mov ecx, dword [ebp - 0xc]
mov eax, ebx
pop edi
pop esi
mov dword fs:[0], ecx
pop ebx
mov esp, ebp
pop ebp
ret
call fcn.00438cc7
call fcn.00438cc7
call fcn.00438cc7
int3