Function at 0x1003130c
Capabilities:
Get session user name

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x100886b5
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x17c
push esi
movzx eax, byte [ebp + 8]
test eax, eax
je 0x10031347
push 0
call dword [sym.imp.USER32.dll_GetDesktopWindow]
push eax
call dword [sym.imp.USER32.dll_RemovePropA]
jmp 0x10031bab
mov eax, dword [ebp + 0xc]
mov dword [ebp - 0xd0], eax
lea eax, [ebp + 0x10]
mov dword [ebp - 0xc8], eax
lea eax, [ebp + 0x1c]
mov dword [ebp - 0xb8], eax
lea eax, [ebp + 0x14]
mov dword [ebp - 0xd4], eax
mov eax, dword [ebp + 0x18]
mov dword [ebp - 0x40], eax
push 1
lea ecx, [ebp - 0x50]
call fcn.100097db
and dword [ebp - 4], 0
mov dword [ebp - 0x28], 0x81c2900
push 2
lea ecx, [ebp - 0x10c]
call fcn.100097db
mov byte [ebp - 4], 1
push 0x4322
push 0x69ad
push 0
lea eax, [ebp - 0xbc]
push eax
lea eax, [ebp - 0x50]
push eax
call fcn.10033d7d
add esp, 0x14
lea eax, [ebp - 0x10c]
push eax
lea eax, [ebp - 0xbc]
push eax
push 0
call fcn.1002d1e3
add esp, 0xc
mov dword [ebp - 0x28], 0
jmp 0x100313de
mov eax, dword [ebp - 0x28]
dec eax
mov dword [ebp - 0x28], eax
cmp dword [ebp - 0x28], 0
jl 0x1003170c
mov dword [ebp - 0x14], 0x62751c76
mov dword [ebp - 0xcc], 0
mov dword [ebp - 0x14], 0
jmp 0x10031409
mov eax, dword [ebp - 0x14]
inc eax
mov dword [ebp - 0x14], eax
cmp dword [ebp - 0x14], 0
jg 0x10031707
mov dword [ebp - 0x64], 0xa30b9130
mov dword [ebp - 0xb0], 0xd070feea
push dword [ebp - 0x14]
lea ecx, [ebp - 0x50]
call fcn.10009879
cmp dword [eax], 0
je 0x1003144f
mov byte [ebp - 0x1a], 0
movzx eax, byte [ebp - 0x1a]
test eax, eax
je 0x1003144a
push 0
push 0
call dword [sym.imp.ADVAPI32.dll_GetUserNameA]
jmp 0x100316e6
mov dword [ebp - 0xa4], 0x215e1abe
mov dword [ebp - 0xa0], 0x215e1abe
mov dword [ebp - 0x9c], 0x215e1abe
mov dword [ebp - 0x98], 0x215e1abe
mov dword [ebp - 0xa8], 0xffffffff
mov byte [ebp - 0x19], 0
movzx eax, byte [ebp - 0x19]
test eax, eax
je 0x1003149b
push 0
push 0x1239
call fcn.1002d150
pop ecx
pop ecx
push 4
pop eax
imul eax, eax, 0
mov dword [ebp + eax - 0xa4], 0
jmp 0x100314c9
push 4
pop eax
imul eax, eax, 0
mov eax, dword [ebp + eax - 0xa4]
inc eax
push 4
pop ecx
imul ecx, ecx, 0
mov dword [ebp + ecx - 0xa4], eax
push 4
pop eax
imul eax, eax, 0
cmp dword [ebp + eax - 0xa4], 0
jg 0x100316e6
mov dword [ebp - 0x24], 0x8b6b0e1b
mov dword [ebp - 0x24], 0
jmp 0x100314f4
mov eax, dword [ebp - 0x24]
dec eax
mov dword [ebp - 0x24], eax
cmp dword [ebp - 0x24], 0
jl 0x100316e1
mov dword [ebp - 0x18], 0x1013923c
mov dword [ebp - 0x18], 0
jmp 0x10031515
mov eax, dword [ebp - 0x18]
dec eax
mov dword [ebp - 0x18], eax
cmp dword [ebp - 0x18], 0
jl 0x100316dc
push 2
lea ecx, [ebp - 0xe0]
call fcn.100097db
mov byte [ebp - 4], 2
mov dword [ebp - 0x30], 0
jmp 0x10031540
mov eax, dword [ebp - 0x30]
inc eax
mov dword [ebp - 0x30], eax
cmp dword [ebp - 0x30], 2
jge 0x1003155c
push dword [ebp - 0x30]
lea ecx, [ebp - 0xe0]
call fcn.10009879
mov dword [eax], 0xfffffffe
jmp 0x10031539
push 4
pop eax
imul eax, eax, 0
push dword [ebp + eax - 0xa4]
lea ecx, [ebp - 0x50]
call fcn.10009879
cmp dword [eax], 0
je 0x10031690
push dword [ebp - 0x18]
lea ecx, [ebp - 0x50]
call fcn.10009879
cmp dword [eax], 0
je 0x100315a3
push dword [ebp - 0x14]
lea ecx, [ebp - 0x50]
call fcn.10009879
cmp dword [eax], 0
je 0x100315a3
mov dword [ebp - 0x80], 1
jmp 0x100315a7
and dword [ebp - 0x80], 0
mov eax, dword [ebp - 0x80]
neg eax
cmp eax, dword [ebp - 0x24]
jg 0x100315bd
mov dword [ebp - 0x88], 1
jmp 0x100315c4
and dword [ebp - 0x88], 0
push 0
lea ecx, [ebp - 0x50]
call fcn.10009879
mov esi, dword [ebp - 0x88]
imul esi, dword [eax]
push dword [ebp - 0x18]
lea ecx, [ebp - 0x50]
call fcn.10009879
sub esi, dword [eax]
mov dword [ebp - 0xc4], esi
push dword [ebp - 0x14]
lea ecx, [ebp - 0x50]
call fcn.10009879
mov ecx, dword [ebp - 0xc4]
mov dword [eax], ecx
mov eax, dword [ebp - 0x24]
mov dword [ebp - 0x154], eax
cmp dword [ebp - 0xcc], 0xfffffffb
jge 0x1003161b
mov dword [ebp - 0x84], 1
jmp 0x10031622
and dword [ebp - 0x84], 0
mov eax, dword [ebp - 0x84]
mov dword [ebp - 0x64], eax
cmp dword [ebp - 0x64], 0xffffffff
jle 0x1003163d
cmp dword [ebp - 0x18], 0
jne 0x1003163d
and dword [ebp - 0x7c], 0
jmp 0x10031644
mov dword [ebp - 0x7c], 1
mov eax, 0xfff8
sub eax, dword [ebp - 0x7c]
cmp eax, dword [ebp - 0x14]
jge 0x1003165a
mov dword [ebp - 0x6c], 1
jmp 0x1003165e
and dword [ebp - 0x6c], 0
mov eax, dword [ebp - 0x18]
cmp dword [ebp - 0x6c], eax
jg 0x1003166f
mov dword [ebp - 0x58], 1
jmp 0x10031673
and dword [ebp - 0x58], 0
push 1
lea ecx, [ebp - 0xe0]
call fcn.10009879
mov ecx, dword [ebp - 0x58]
cmp ecx, dword [eax]
jle 0x10031690
mov dword [ebp - 0x74], 1
jmp 0x10031694
and dword [ebp - 0x74], 0
mov eax, dword [ebp - 0xb0]
cmp dword [ebp - 0x74], eax
je 0x100316a8
mov dword [ebp - 0x5c], 1
jmp 0x100316ac
and dword [ebp - 0x5c], 0
cmp dword [ebp - 0x5c], 1
jle 0x100316bb
mov dword [ebp - 0x60], 1
jmp 0x100316bf
and dword [ebp - 0x60], 0
mov eax, dword [ebp - 0x60]
mov dword [ebp - 0xa8], eax
mov byte [ebp - 4], 1
lea ecx, [ebp - 0xe0]
call fcn.1000985d
jmp 0x1003150e
jmp 0x100314ed
jmp 0x100314ae
push dword [ebp - 0x28]
lea ecx, [ebp - 0x50]
call fcn.10009879
mov esi, eax
push dword [ebp - 0x28]
lea ecx, [ebp - 0x50]
call fcn.10009879
mov ecx, dword [esi]
mov dword [eax], ecx
jmp 0x10031402
jmp 0x100313d7
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x10c]
call fcn.1000985d
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x50]
call fcn.1000985d
mov eax, dword [ebp - 0xc8]
mov eax, dword [eax]
shl eax, 4
mov ecx, dword [ebp - 0xb8]
mov ecx, dword [ecx]
lea eax, [eax + ecx*8 + 0x10679114]
mov ecx, dword [ebp - 0xd4]
mov ecx, dword [ecx]
mov edx, dword [ebp - 0x40]
mov eax, dword [eax + ecx*4]
mov dword [edx], eax
mov dword [ebp - 0x34], 0xfffffff6
mov dword [ebp - 0x38], 0
jmp 0x10031768
mov eax, dword [ebp - 0x38]
inc eax
mov dword [ebp - 0x38], eax
cmp dword [ebp - 0x38], 3
jge 0x1003177e
mov eax, dword [ebp - 0x38]
mov dword [ebp + eax*4 - 0x170], 0
jmp 0x10031761
mov dword [ebp - 0x34], 0
jmp 0x1003178e
mov eax, dword [ebp - 0x34]
inc eax
mov dword [ebp - 0x34], eax
cmp dword [ebp - 0x34], 2
jg 0x100317bb
mov dword [ebp - 0xc0], 0xb0c
push 1
push 0x6b7b
lea eax, [ebp - 0xc0]
push eax
push 0x473a
call fcn.1002c857
add esp, 0x10
jmp 0x10031787
mov eax, dword [ebp - 0xd0]
mov eax, dword [eax + 0x24]
and eax, 0x4000000
je 0x10031bab
push 3
lea ecx, [ebp - 0x94]
call fcn.100097db
mov dword [ebp - 4], 3
mov dword [ebp - 0x130], 0x8bd4dfbd
mov dword [ebp - 0x164], 0xb34c266d
push 2
lea ecx, [ebp - 0x14c]
call fcn.100097db
mov byte [ebp - 4], 4
mov dword [ebp - 0xf4], 0xadc9fe9a
mov dword [ebp - 0xfc], 0xf5c9b8db
push 1
lea ecx, [ebp - 0xec]
call fcn.100097db
mov byte [ebp - 4], 5
mov dword [ebp - 0x160], 1
mov dword [ebp - 0x10], 0
jmp 0x10031847
mov eax, dword [ebp - 0x10]
inc eax
mov dword [ebp - 0x10], eax
cmp dword [ebp - 0x10], 3
jge 0x1003185d
mov eax, dword [ebp - 0x10]
mov dword [ebp + eax*4 - 0x188], 0
jmp 0x10031840
mov dword [ebp - 0x10], 0
jmp 0x1003186d
mov eax, dword [ebp - 0x10]
inc eax
mov dword [ebp - 0x10], eax
cmp dword [ebp - 0x10], 3
jge 0x10031886
push dword [ebp - 0x10]
lea ecx, [ebp - 0x94]
call fcn.10009879
or dword [eax], 0xffffffff
jmp 0x10031866
mov dword [ebp - 0x10], 0
jmp 0x10031896
mov eax, dword [ebp - 0x10]
inc eax
mov dword [ebp - 0x10], eax
cmp dword [ebp - 0x10], 2
jge 0x100318b2
push dword [ebp - 0x10]
lea ecx, [ebp - 0x14c]
call fcn.10009879
mov dword [eax], 1
jmp 0x1003188f
mov dword [ebp - 0x10], 0
jmp 0x100318c2
mov eax, dword [ebp - 0x10]
inc eax
mov dword [ebp - 0x10], eax
cmp dword [ebp - 0x10], 1
jge 0x100318de
push dword [ebp - 0x10]
lea ecx, [ebp - 0xec]
call fcn.10009879
mov dword [eax], 7
jmp 0x100318bb
push 2
lea ecx, [ebp - 0x94]
call fcn.10009879
mov dword [eax], 2
jmp 0x1003190e
push 2
lea ecx, [ebp - 0x94]
call fcn.10009879
mov dword [ebp - 0x68], eax
mov eax, dword [ebp - 0x68]
mov eax, dword [eax]
dec eax
mov ecx, dword [ebp - 0x68]
mov dword [ecx], eax
push 2
lea ecx, [ebp - 0x94]
call fcn.10009879
cmp dword [eax], 0
jl 0x10031b6f
mov dword [ebp - 0x2c], 0x25260417
mov dword [ebp - 0x3c], 0
jmp 0x1003193b
mov eax, dword [ebp - 0x3c]
inc eax
mov dword [ebp - 0x3c], eax
cmp dword [ebp - 0x3c], 2
jge 0x10031951
mov eax, dword [ebp - 0x3c]
mov dword [ebp + eax*4 - 0x15c], 0
jmp 0x10031934
mov dword [ebp - 0x2c], 2
jmp 0x10031961
mov eax, dword [ebp - 0x2c]
dec eax
mov dword [ebp - 0x2c], eax
cmp dword [ebp - 0x2c], 0
jl 0x10031acd
mov dword [ebp - 0xf8], 0
mov dword [ebp - 0x140], 0xfffffffc
mov dword [ebp - 0x100], 0xffffffff
push 2
lea ecx, [ebp - 0x13c]
call fcn.100097db
mov byte [ebp - 4], 6
mov dword [ebp - 0xac], 0xffff
mov dword [ebp - 0xf0], 0xfffffff8
mov dword [ebp - 0x110], 0xffffffff
mov dword [ebp - 0x150], 0xd0e7
mov dword [ebp - 0x120], 8
push 1
lea ecx, [ebp - 0x12c]
call fcn.100097db
mov byte [ebp - 4], 7
push 1
lea ecx, [ebp - 0x11c]
call fcn.100097db
mov byte [ebp - 4], 8
mov dword [ebp - 0xb4], 0xc64e719b
push 0x5d18
push 0x438e
push 1
lea eax, [ebp - 0x20]
push eax
lea eax, [ebp - 0x13c]
push eax
call fcn.1002c8cd
add esp, 0x14
mov dword [ebp - 0x20], 0
jmp 0x10031a27
mov eax, dword [ebp - 0x20]
inc eax
mov dword [ebp - 0x20], eax
cmp dword [ebp - 0x20], 3
jge 0x10031a3d
mov eax, dword [ebp - 0x20]
mov dword [ebp + eax*4 - 0x17c], 1
jmp 0x10031a20
lea eax, [ebp - 0x20]
push eax
push 0x1a6a
lea eax, [ebp - 0x12c]
push eax
push 0x2ecb
push 0
call fcn.1002f203
add esp, 0x14
lea eax, [ebp - 0x11c]
push eax
lea eax, [ebp - 0x20]
push eax
push 0
call fcn.1002f0cc
add esp, 0xc
push 0xd8d
lea eax, [ebp - 0xac]
push eax
push 0x610b
push 0x187a
push 0
call fcn.10033e0b
add esp, 0x14
mov dword [ebp - 0xb4], 1
mov byte [ebp - 4], 7
lea ecx, [ebp - 0x11c]
call fcn.1000985d
mov byte [ebp - 4], 6
lea ecx, [ebp - 0x12c]
call fcn.1000985d
mov byte [ebp - 4], 5
lea ecx, [ebp - 0x13c]
call fcn.1000985d
jmp 0x1003195a
mov eax, 0x7def
test eax, eax
je 0x10031ae5
cmp dword [ebp - 0x2c], 0
je 0x10031ae5
mov dword [ebp - 0x54], 1
jmp 0x10031ae9
and dword [ebp - 0x54], 0
push 0
lea ecx, [ebp - 0xec]
call fcn.10009879
mov ecx, dword [ebp - 0x54]
mov dword [eax], ecx
cmp dword [ebp - 0x54], 0
jb 0x10031b0a
mov dword [ebp - 0x70], 1
jmp 0x10031b0e
and dword [ebp - 0x70], 0
push 0
lea ecx, [ebp - 0x94]
call fcn.10009879
imul eax, dword [eax], 0xc83b
cmp dword [ebp - 0x70], eax
jl 0x10031b2f
mov dword [ebp - 0x44], 1
jmp 0x10031b33
and dword [ebp - 0x44], 0
push 4
pop eax
shl eax, 0
mov ecx, dword [ebp - 0x44]
mov dword [ebp + eax - 0x15c], ecx
push 2
lea ecx, [ebp - 0x94]
call fcn.10009879
mov ecx, dword [ebp - 0x44]
cmp ecx, dword [eax]
jl 0x10031b60
mov dword [ebp - 0x78], 1
jmp 0x10031b64
and dword [ebp - 0x78], 0
mov eax, dword [ebp - 0x78]
mov dword [ebp - 0x2c], eax
jmp 0x100318f3
mov byte [ebp - 4], 4
lea ecx, [ebp - 0xec]
call fcn.1000985d
mov byte [ebp - 4], 3
lea ecx, [ebp - 0x14c]
call fcn.1000985d
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x94]
call fcn.1000985d
mov eax, dword [ebp - 0x40]
mov eax, dword [eax]
or eax, 0x200
mov ecx, dword [ebp - 0x40]
mov dword [ecx], eax
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop esi
mov esp, ebp
pop ebp
ret