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

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x434
push ebx
push esi
push edi
lea eax, [ebp - 0x20]
mov dword [ebp - 0x28], ecx
push eax
lea eax, [ebp - 0x330]
mov dword [ebp - 0x20], 0xff
push eax
call dword [sym.imp.ADVAPI32.dll_GetUserNameA]
lea eax, [ebp - 0x2c]
mov dword [ebp - 4], 0xff
push eax
lea eax, [ebp - 0x24]
mov dword [ebp - 0x24], 0xff
push eax
lea eax, [ebp - 0x430]
push eax
lea eax, [ebp - 4]
push eax
lea eax, [ebp - 0x230]
push eax
lea eax, [ebp - 0x330]
push eax
push 0
call dword [sym.imp.ADVAPI32.dll_LookupAccountNameA]
lea eax, [ebp - 0x230]
push eax
call dword [sym.imp.ADVAPI32.dll_GetSidIdentifierAuthority]
sub esp, 0x18
mov edi, eax
mov ecx, esp
push 0x4364f4
call fcn.00412c60
lea ecx, [ebp - 0x1c]
call fcn.00402b70
add esp, 0x18
cmp dword [eax + 0x14], 0x10
jb 0x402f6f
mov eax, dword [eax]
push 1
push eax
lea eax, [ebp - 0x130]
push eax
call fcn.00402120
mov edx, dword [ebp - 8]
add esp, 0xc
mov dword [ebp - 4], eax
cmp edx, 0x10
jb 0x402fb8
mov ecx, dword [ebp - 0x1c]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x402fae
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x40317e
push edx
push ecx
call fcn.00414180
add esp, 8
lea esi, [ebp - 0x130]
lea ecx, [esi + 1]
mov al, byte [esi]
inc esi
test al, al
jne 0x402fc1
sub esp, 0x18
sub esi, ecx
mov ecx, esp
push 0x4361dc
call fcn.00412c60
lea ecx, [ebp - 0x1c]
call fcn.00402b70
add esp, 0x18
cmp dword [eax + 0x14], 0x10
jb 0x402fec
mov eax, dword [eax]
movzx ecx, byte [edi + 5]
push ecx
push eax
lea eax, [ebp - 0x130]
add eax, esi
push eax
call fcn.00402120
add dword [ebp - 4], eax
add esp, 0xc
mov edx, dword [ebp - 8]
cmp edx, 0x10
jb 0x40303a
mov ecx, dword [ebp - 0x1c]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x403030
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x403183
push edx
push ecx
call fcn.00414180
add esp, 8
lea eax, [ebp - 0x230]
push eax
call dword [sym.imp.ADVAPI32.dll_GetSidSubAuthorityCount]
xor edi, edi
movzx ebx, byte [eax]
test ebx, ebx
je 0x4030dd
sub esp, 0x18
mov ecx, esp
push 0x4359cc
call fcn.00412c60
lea ecx, [ebp - 0x1c]
call fcn.00402b70
mov esi, eax
add esp, 0x18
cmp dword [esi + 0x14], 0x10
jb 0x403078
mov esi, dword [esi]
push edi
lea eax, [ebp - 0x230]
push eax
call dword [sym.imp.ADVAPI32.dll_GetSidSubAuthority]
lea ecx, [ebp - 0x130]
push dword [eax]
mov eax, dword [ebp - 4]
add eax, ecx
push esi
push eax
call fcn.00402120
add dword [ebp - 4], eax
add esp, 0xc
mov edx, dword [ebp - 8]
cmp edx, 0x10
jb 0x4030d4
mov ecx, dword [ebp - 0x1c]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x4030ca
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x40317e
push edx
push ecx
call fcn.00414180
add esp, 8
inc edi
cmp edi, ebx
jl 0x403054
lea ecx, [ebp - 0x130]
mov dword [ebp - 0xc], 0
mov dword [ebp - 8], 0xf
lea edx, [ecx + 1]
mov byte [ebp - 0x1c], 0
mov al, byte [ecx]
inc ecx
test al, al
jne 0x4030f8
sub ecx, edx
lea eax, [ebp - 0x130]
push ecx
push eax
lea ecx, [ebp - 0x1c]
call fcn.00412fd0
mov ebx, dword [ebp - 0x28]
lea eax, [ebp - 0x1c]
mov ecx, 0x28
cmp dword [ebp - 0xc], ecx
cmovb ecx, dword [ebp - 0xc]
cmp dword [ebp - 8], 0x10
push ecx
cmovae eax, dword [ebp - 0x1c]
mov ecx, ebx
push eax
mov dword [ebx + 0x10], 0
mov dword [ebx + 0x14], 0xf
mov byte [ebx], 0
call fcn.00412fd0
mov edx, dword [ebp - 8]
cmp edx, 0x10
jb 0x403175
mov ecx, dword [ebp - 0x1c]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x40316b
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x403188
push edx
push ecx
call fcn.00414180
add esp, 8
pop edi
pop esi
mov eax, ebx
pop ebx
mov esp, ebp
pop ebp
ret
call fcn.004188f4
call fcn.004188f4
call fcn.004188f4
int3