Function at 0x1002c264
Capabilities:
Get session user name

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x1007c16d
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x64
movzx eax, byte [ebp + 0x20]
test eax, eax
je 0x1002c2ae
mov eax, dword [ebp + 0x1c]
mov dword [ebp - 0x30], eax
mov eax, dword [ebp + 0x10]
mov dword [ebp - 0x34], eax
mov eax, dword [ebp - 0x30]
mov dword [ebp - 0x38], eax
mov eax, dword [ebp - 0x34]
mov dword [ebp - 0x3c], eax
mov eax, dword [ebp - 0x38]
mov ecx, dword [ebp - 0x3c]
mov ecx, dword [ecx]
mov dword [eax], ecx
jmp 0x1002c46a
mov eax, dword [ebp + 0x24]
mov dword [ebp - 0x58], eax
lea eax, [ebp + 8]
mov dword [ebp - 0x40], eax
lea eax, [ebp + 0xc]
mov dword [ebp - 0x44], eax
lea eax, [ebp + 0x18]
mov dword [ebp - 0x48], eax
mov eax, dword [ebp + 0x14]
mov dword [ebp - 0x24], eax
push 1
lea ecx, [ebp - 0x70]
call fcn.10016394
and dword [ebp - 4], 0
push 0x2dd6
push 0x52ea
lea eax, [ebp - 0x70]
push eax
lea eax, [ebp - 0x5c]
push eax
push 0
call fcn.1002e3c6
add esp, 0x14
push 0
lea ecx, [ebp - 0x70]
call fcn.10016432
and dword [eax], 0
jmp 0x1002c31d
push 0
lea ecx, [ebp - 0x70]
call fcn.10016432
mov dword [ebp - 0x28], eax
mov eax, dword [ebp - 0x28]
mov eax, dword [eax]
dec eax
mov ecx, dword [ebp - 0x28]
mov dword [ecx], eax
push 0
lea ecx, [ebp - 0x70]
call fcn.10016432
cmp dword [eax], 0xffffffe2
je 0x1002c358
push 0x5ad7
push 0x426e
push 0
call fcn.10028bbe
add esp, 0xc
mov byte [ebp - 0xd], 0
movzx eax, byte [ebp - 0xd]
test eax, eax
je 0x1002c356
push 0
push 0
call dword [sym.imp.ADVAPI32.dll_GetUserNameA]
jmp 0x1002c305
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x70]
call fcn.10016416
mov eax, dword [ebp - 0x40]
mov eax, dword [eax]
shl eax, 4
mov ecx, dword [ebp - 0x44]
mov ecx, dword [ecx]
lea eax, [eax + ecx*8 + 0x1008286c]
mov ecx, dword [ebp - 0x48]
mov ecx, dword [ecx]
mov edx, dword [ebp - 0x24]
mov eax, dword [eax + ecx*4]
mov dword [edx], eax
mov dword [ebp - 0x20], 0x14c90d29
mov dword [ebp - 0x1c], 0x65e790e8
mov dword [ebp - 0x54], 0x47d2038
mov dword [ebp - 0x14], 0x76e5
mov dword [ebp - 0x18], 0
jmp 0x1002c3b1
mov eax, dword [ebp - 0x18]
inc eax
mov dword [ebp - 0x18], eax
cmp dword [ebp - 0x18], 2
jge 0x1002c3c4
mov eax, dword [ebp - 0x18]
mov dword [ebp + eax*4 - 0x64], 0xf951fe77
jmp 0x1002c3aa
mov eax, dword [ebp - 0x1c]
sub eax, 0x896e
cmp dword [ebp - 0x20], eax
jge 0x1002c3da
mov dword [ebp - 0x2c], 1
jmp 0x1002c3de
and dword [ebp - 0x2c], 0
mov eax, dword [ebp - 0x2c]
mov dword [ebp - 0x1c], eax
mov eax, dword [ebp - 0x1c]
cmp dword [ebp - 0x20], eax
je 0x1002c3f5
mov dword [ebp - 0x4c], 1
jmp 0x1002c3f9
and dword [ebp - 0x4c], 0
push 4
pop eax
imul eax, eax, 0
mov eax, dword [ebp + eax - 0x64]
mov dword [ebp - 0x50], eax
push 4
pop eax
imul eax, eax, 0
mov ecx, dword [ebp - 0x50]
mov dword [ebp + eax - 0x64], ecx
mov eax, dword [ebp - 0x54]
add eax, dword [ebp - 0x14]
mov dword [ebp - 0x20], eax
mov dword [ebp - 0x14], 1
jmp 0x1002c42c
mov eax, dword [ebp - 0x14]
dec eax
mov dword [ebp - 0x14], eax
cmp dword [ebp - 0x14], 0
jl 0x1002c44e
mov byte [ebp - 0xe], 0
movzx eax, byte [ebp - 0xe]
test eax, eax
je 0x1002c44c
push 0
push 0x5447
call fcn.1002bd03
pop ecx
pop ecx
jmp 0x1002c425
mov eax, dword [ebp - 0x58]
mov eax, dword [eax + 0x24]
and eax, 0x4000000
je 0x1002c46a
mov eax, dword [ebp - 0x24]
mov eax, dword [eax]
or eax, 0x200
mov ecx, dword [ebp - 0x24]
mov dword [ecx], eax
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
mov esp, ebp
pop ebp
ret