Function at 0x1001f78a
Capabilities:
Get session user name

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x1006beb1
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x80
movzx eax, byte [ebp + 0x2c]
test eax, eax
je 0x1001f94e
mov dword [ebp - 0x34], 0x1f61
cmp dword [ebp - 0x34], 0x10a5
jge 0x1001f8fe
lea eax, [ebp - 0x3c]
push eax
lea eax, [ebp - 0x20]
push eax
push 0x100078ec
call fcn.1005459b
add esp, 0xc
and dword [ebp - 0x14], 0
and dword [ebp - 0x38], 0
lea eax, [ebp - 0x38]
push eax
mov eax, dword [ebp - 0x20]
inc eax
push eax
lea ecx, [ebp - 0x8c]
call fcn.1002c4c3
and dword [ebp - 4], 0
and dword [ebp - 0x1c], 0
jmp 0x1001f80a
mov eax, dword [ebp - 0x1c]
inc eax
mov dword [ebp - 0x1c], eax
mov eax, dword [ebp - 0x1c]
cmp eax, dword [ebp - 0x3c]
jge 0x1001f8e4
lea eax, [ebp - 0x24]
push eax
push 0x100077e4
call fcn.1005459b
pop ecx
pop ecx
push dword [ebp - 0x24]
lea ecx, [ebp - 0x8c]
call fcn.1002c5a0
cmp dword [eax], 0
jne 0x1001f840
mov eax, dword [ebp - 0x14]
inc eax
mov dword [ebp - 0x14], eax
push dword [ebp - 0x24]
lea ecx, [ebp - 0x8c]
call fcn.1002c5a0
mov dword [ebp - 0x28], eax
mov eax, dword [ebp - 0x28]
mov eax, dword [eax]
inc eax
mov ecx, dword [ebp - 0x28]
mov dword [ecx], eax
mov eax, dword [ebp - 0x14]
cmp eax, dword [ebp - 0x20]
jne 0x1001f8d4
and dword [ebp - 0x14], 0
mov dword [ebp - 0x18], 1
jmp 0x1001f878
mov eax, dword [ebp - 0x18]
inc eax
mov dword [ebp - 0x18], eax
mov eax, dword [ebp - 0x18]
cmp eax, dword [ebp - 0x20]
jg 0x1001f8c7
push dword [ebp - 0x18]
lea ecx, [ebp - 0x8c]
call fcn.1002c5a0
mov dword [ebp - 0x2c], eax
mov eax, dword [ebp - 0x2c]
mov eax, dword [eax]
dec eax
mov ecx, dword [ebp - 0x2c]
mov dword [ecx], eax
push dword [ebp - 0x18]
lea ecx, [ebp - 0x8c]
call fcn.1002c5a0
cmp dword [eax], 0
jle 0x1001f8b8
mov dword [ebp - 0x30], 1
jmp 0x1001f8bc
and dword [ebp - 0x30], 0
mov eax, dword [ebp - 0x14]
add eax, dword [ebp - 0x30]
mov dword [ebp - 0x14], eax
jmp 0x1001f871
push 0x10007a18
call fcn.10054c24
pop ecx
jmp 0x1001f8df
push 0x10007808
call fcn.10054c24
pop ecx
jmp 0x1001f803
push 0x1000774d
call fcn.10055012
pop ecx
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x8c]
call fcn.1002c64d
mov eax, dword [ebp + 0x1c]
mov dword [ebp - 0x4c], eax
mov eax, dword [ebp + 0x34]
mov dword [ebp - 0x50], eax
mov eax, dword [ebp + 0xc]
mov dword [ebp - 0x48], eax
mov eax, dword [ebp + 0x30]
mov dword [ebp - 0x58], eax
mov eax, dword [ebp + 0x20]
mov dword [ebp - 0x54], eax
mov eax, dword [ebp + 0x28]
mov dword [ebp - 0x44], eax
mov eax, dword [ebp + 8]
mov dword [ebp - 0x40], eax
push dword [ebp - 0x40]
push dword [ebp - 0x44]
push dword [ebp - 0x48]
push dword [ebp - 0x4c]
push dword [ebp - 0x50]
push 1
push dword [ebp - 0x54]
push 0x76b5
push dword [ebp - 0x58]
call fcn.1001f9cd
add esp, 0x24
jmp 0x1001f9bf
mov eax, dword [ebp + 0x10]
mov dword [ebp - 0x68], eax
mov eax, dword [ebp + 0x14]
mov dword [ebp - 0x60], eax
mov eax, dword [ebp + 0x24]
mov dword [ebp - 0x64], eax
lea eax, [ebp + 0x18]
mov dword [ebp - 0x5c], eax
mov eax, dword [ebp - 0x5c]
movzx eax, byte [eax]
test eax, eax
je 0x1001f988
mov byte [ebp - 0xd], 0
movzx eax, byte [ebp - 0xd]
test eax, eax
je 0x1001f986
push 0
push 0
call dword [sym.imp.ADVAPI32.dll_GetUserNameA]
jmp 0x1001f9bf
mov eax, dword [ebp - 0x60]
mov dword [ebp - 0x6c], eax
mov eax, dword [ebp - 0x64]
mov dword [ebp - 0x70], eax
mov eax, dword [ebp - 0x68]
mov dword [ebp - 0x74], eax
mov eax, dword [ebp - 0x6c]
mov dword [ebp - 0x80], eax
mov eax, dword [ebp - 0x70]
mov dword [ebp - 0x7c], eax
mov eax, dword [ebp - 0x74]
mov dword [ebp - 0x78], eax
mov eax, dword [ebp - 0x78]
mov eax, dword [eax]
mov ecx, dword [ebp - 0x7c]
mov ecx, dword [ecx]
add ecx, dword [eax]
mov eax, dword [ebp - 0x80]
mov eax, dword [eax]
mov dword [eax], ecx
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
mov esp, ebp
pop ebp
ret