Function at 0x1002a9dc
Capabilities:
Get session user name

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x1008d5a7
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x158
push esi
mov dword [ebp - 0x24], 0xffffffff
mov dword [ebp - 0x1c], 0xe0f7
mov dword [ebp - 0x110], 0xb0badcab
mov dword [ebp - 0x44], 0
jmp 0x1002aa23
mov eax, dword [ebp - 0x44]
inc eax
mov dword [ebp - 0x44], eax
cmp dword [ebp - 0x44], 1
jge 0x1002aa36
mov eax, dword [ebp - 0x44]
mov dword [ebp + eax*4 - 0x28], 0xb194
jmp 0x1002aa1c
mov byte [ebp - 0x2a], 0
movzx eax, byte [ebp - 0x2a]
test eax, eax
je 0x1002aa51
push 0
push 0
push 0x1cea
call dword [sym.imp.ADVAPI32.dll_CopySid]
mov dword [ebp - 0x24], 0
jmp 0x1002aa61
mov eax, dword [ebp - 0x24]
inc eax
mov dword [ebp - 0x24], eax
cmp dword [ebp - 0x24], 2
jne 0x1002ad56
mov dword [ebp - 0x10], 0x8531d14
mov eax, 0xe6f7fbf2
test eax, eax
je 0x1002aad4
push 4
pop eax
imul eax, eax, 0
cmp dword [ebp + eax - 0x28], 1
jl 0x1002aa94
mov dword [ebp - 0xd0], 1
jmp 0x1002aa9b
and dword [ebp - 0xd0], 0
mov eax, dword [ebp - 0x24]
cmp dword [ebp - 0xd0], eax
jge 0x1002aab8
cmp dword [ebp - 0x10], 0
je 0x1002aab8
mov dword [ebp - 0xc4], 1
jmp 0x1002aabf
and dword [ebp - 0xc4], 0
cmp dword [ebp - 0xc4], 0x98aa
jl 0x1002aad4
mov dword [ebp - 0x64], 1
jmp 0x1002aad8
and dword [ebp - 0x64], 0
mov eax, dword [ebp - 0x24]
mov ecx, dword [ebp - 0x10]
imul ecx, dword [ebp - 0x64]
sub eax, ecx
je 0x1002aaf8
cmp dword [ebp - 0x10], 0
je 0x1002aaf8
mov dword [ebp - 0xcc], 1
jmp 0x1002aaff
and dword [ebp - 0xcc], 0
mov eax, dword [ebp - 0x24]
sub eax, dword [ebp - 0xcc]
je 0x1002ac39
mov dword [ebp - 0x4c], 0x39e6a413
cmp dword [ebp - 0x10], 0
jne 0x1002ab24
mov dword [ebp - 0x7c], 1
jmp 0x1002ab28
and dword [ebp - 0x7c], 0
mov eax, dword [ebp - 0x4c]
mov dword [ebp - 0x128], eax
cmp dword [ebp - 0x1c], 0
je 0x1002ab46
cmp dword [ebp - 0x24], 0
je 0x1002ab46
mov dword [ebp - 0x6c], 1
jmp 0x1002ab4a
and dword [ebp - 0x6c], 0
mov eax, dword [ebp - 0x10]
cmp dword [ebp - 0x6c], eax
jg 0x1002ab5e
mov dword [ebp - 0xd4], 1
jmp 0x1002ab65
and dword [ebp - 0xd4], 0
mov eax, dword [ebp - 0x1c]
imul eax, dword [ebp - 0xd4]
test eax, eax
je 0x1002ab89
push 4
pop eax
imul eax, eax, 0
cmp dword [ebp + eax - 0x28], 0
je 0x1002ab89
mov dword [ebp - 0x74], 1
jmp 0x1002ab8d
and dword [ebp - 0x74], 0
mov eax, dword [ebp - 0x10]
cmp dword [ebp - 0x74], eax
jle 0x1002aba1
mov dword [ebp - 0xdc], 1
jmp 0x1002aba8
and dword [ebp - 0xdc], 0
cmp dword [ebp - 0xdc], 1
jle 0x1002abba
mov dword [ebp - 0x80], 1
jmp 0x1002abbe
and dword [ebp - 0x80], 0
cmp dword [ebp - 0x80], 1
jl 0x1002abd0
mov dword [ebp - 0xec], 1
jmp 0x1002abd7
and dword [ebp - 0xec], 0
mov eax, dword [ebp - 0x10]
mov dword [ebp - 0x144], eax
mov eax, dword [ebp - 0x4c]
cmp dword [ebp - 0x7c], eax
jle 0x1002abf4
mov dword [ebp - 0xb0], 1
jmp 0x1002abfb
and dword [ebp - 0xb0], 0
mov eax, dword [ebp - 0x10]
mov ecx, dword [ebp - 0xb0]
lea eax, [ecx + eax - 0x51232810]
cmp eax, 0x1912
jg 0x1002ac1e
mov dword [ebp - 0x88], 1
jmp 0x1002ac25
and dword [ebp - 0x88], 0
mov eax, dword [ebp - 0x4c]
add eax, dword [ebp - 0x88]
mov dword [ebp - 0x110], eax
jmp 0x1002ad51
mov dword [ebp - 0xf4], 0
mov dword [ebp - 0x11c], 0x1fa46b4c
mov dword [ebp - 0x1c], 0
jmp 0x1002ac5d
mov eax, dword [ebp - 0x1c]
inc eax
mov dword [ebp - 0x1c], eax
cmp dword [ebp - 0x1c], 0
jg 0x1002ad3b
mov eax, dword [ebp - 0x1c]
mov ecx, dword [ebp - 0xf4]
cmp dword [ebp + eax*4 - 0x28], ecx
jl 0x1002acff
push 4
pop eax
imul eax, eax, 0
cmp dword [ebp + eax - 0x28], 0
jl 0x1002ac93
mov dword [ebp - 0xc8], 1
jmp 0x1002ac9a
and dword [ebp - 0xc8], 0
mov eax, dword [ebp - 0x10]
cmp dword [ebp - 0xc8], eax
jl 0x1002acb1
mov dword [ebp - 0x90], 1
jmp 0x1002acb8
and dword [ebp - 0x90], 0
mov eax, dword [ebp - 0x1c]
mov eax, dword [ebp + eax*4 - 0x28]
add eax, dword [ebp - 0x90]
push 4
pop ecx
imul ecx, ecx, 0
cmp eax, dword [ebp + ecx - 0x28]
jl 0x1002acdd
mov dword [ebp - 0xb8], 1
jmp 0x1002ace4
and dword [ebp - 0xb8], 0
mov eax, dword [ebp - 0x1c]
mov eax, dword [ebp + eax*4 - 0x28]
cmp dword [ebp - 0xb8], eax
jle 0x1002acff
mov dword [ebp - 0x98], 1
jmp 0x1002ad06
and dword [ebp - 0x98], 0
mov eax, dword [ebp - 0x98]
mov dword [ebp - 0x11c], eax
mov dword [ebp - 0x10], 0
jmp 0x1002ad22
mov eax, dword [ebp - 0x10]
inc eax
mov dword [ebp - 0x10], eax
cmp dword [ebp - 0x10], 0
jg 0x1002ad36
mov eax, dword [ebp - 0x10]
cmp dword [ebp + eax*4 - 0x28], 0
je 0x1002ad34
jmp 0x1002ad36
jmp 0x1002ad1b
jmp 0x1002ac56
mov byte [ebp - 0x2b], 0
movzx eax, byte [ebp - 0x2b]
test eax, eax
je 0x1002ad51
push 0
push 0
call dword [sym.imp.ADVAPI32.dll_GetUserNameA]
jmp 0x1002aa5a
movzx eax, byte [ebp + 0x18]
test eax, eax
je 0x1002b12f
mov eax, dword [ebp + 0x14]
mov dword [ebp - 0x118], eax
mov dword [ebp - 0x20], 0
mov dword [ebp - 0x30], 0x32ffab8c
push 2
lea ecx, [ebp - 0xe8]
call fcn.10018732
and dword [ebp - 4], 0
mov dword [ebp - 0x100], 0
mov dword [ebp - 0x140], 8
push 1
lea ecx, [ebp - 0x150]
call fcn.10018732
mov byte [ebp - 4], 1
mov dword [ebp - 0x134], 0x2ad14ca7
mov dword [ebp - 0x94], 0
mov dword [ebp - 0x14], 0
jmp 0x1002add3
mov eax, dword [ebp - 0x14]
inc eax
mov dword [ebp - 0x14], eax
cmp dword [ebp - 0x14], 2
jge 0x1002adef
push dword [ebp - 0x14]
lea ecx, [ebp - 0xe8]
call fcn.100187be
mov dword [eax], 8
jmp 0x1002adcc
mov dword [ebp - 0x14], 0
jmp 0x1002adff
mov eax, dword [ebp - 0x14]
inc eax
mov dword [ebp - 0x14], eax
cmp dword [ebp - 0x14], 2
jge 0x1002ae15
mov eax, dword [ebp - 0x14]
mov dword [ebp + eax*4 - 0x164], 1
jmp 0x1002adf8
mov dword [ebp - 0x14], 0
jmp 0x1002ae25
mov eax, dword [ebp - 0x14]
inc eax
mov dword [ebp - 0x14], eax
cmp dword [ebp - 0x14], 1
jge 0x1002ae41
push dword [ebp - 0x14]
lea ecx, [ebp - 0x150]
call fcn.100187be
mov dword [eax], 0x6c49a7e1
jmp 0x1002ae1e
mov eax, dword [ebp - 0x20]
mov dword [ebp - 0x30], eax
cmp dword [ebp - 0x30], 0
jne 0x1002afa0
mov eax, 0xc8748afa
test eax, eax
je 0x1002af97
mov eax, dword [ebp - 0x20]
mov dword [ebp - 0x138], eax
mov eax, dword [ebp - 0x20]
mov dword [ebp - 0x13c], eax
mov eax, 0xffff
test eax, eax
jne 0x1002ae8b
mov eax, 0xe11a
test eax, eax
jne 0x1002ae8b
and dword [ebp - 0xd8], 0
jmp 0x1002ae95
mov dword [ebp - 0xd8], 1
mov eax, dword [ebp - 0x30]
cmp dword [ebp - 0xd8], eax
jg 0x1002aeac
mov dword [ebp - 0xa0], 1
jmp 0x1002aeb3
and dword [ebp - 0xa0], 0
mov eax, dword [ebp - 0x20]
add eax, dword [ebp - 0xa0]
imul eax, dword [ebp - 0x20]
test eax, eax
jne 0x1002aed3
cmp dword [ebp - 0x20], 0
jne 0x1002aed3
and dword [ebp - 0xc0], 0
jmp 0x1002aedd
mov dword [ebp - 0xc0], 1
mov esi, dword [ebp - 0x30]
imul esi, dword [ebp - 0xc0]
push 0
lea ecx, [ebp - 0xe8]
call fcn.100187be
cmp esi, dword [eax]
jl 0x1002af04
mov dword [ebp - 0xa8], 1
jmp 0x1002af0b
and dword [ebp - 0xa8], 0
mov eax, dword [ebp - 0x20]
cmp dword [ebp - 0xa8], eax
jl 0x1002af1f
mov dword [ebp - 0x58], 1
jmp 0x1002af23
and dword [ebp - 0x58], 0
mov eax, dword [ebp - 0x20]
add eax, dword [ebp - 0x58]
neg eax
je 0x1002af3d
xor eax, eax
je 0x1002af3d
mov dword [ebp - 0x124], 1
jmp 0x1002af44
and dword [ebp - 0x124], 0
push 0
lea ecx, [ebp - 0xe8]
call fcn.100187be
mov esi, eax
push 0
lea ecx, [ebp - 0xe8]
call fcn.100187be
mov ecx, dword [esi]
add ecx, dword [eax]
jne 0x1002af72
cmp dword [ebp - 0x30], 0
jne 0x1002af72
and dword [ebp - 0x78], 0
jmp 0x1002af79
mov dword [ebp - 0x78], 1
mov eax, dword [ebp - 0x78]
mov dword [ebp - 0x30], eax
cmp dword [ebp - 0x30], 0
je 0x1002af97
push 1
lea ecx, [ebp - 0xe8]
call fcn.100187be
cmp dword [eax], 0
jne 0x1002afa0
and dword [ebp - 0x84], 0
jmp 0x1002afaa
mov dword [ebp - 0x84], 1
push 0
lea ecx, [ebp - 0xe8]
call fcn.100187be
mov ecx, dword [ebp - 0x84]
cmp ecx, dword [eax]
jl 0x1002afcd
mov dword [ebp - 0x8c], 1
jmp 0x1002afd4
and dword [ebp - 0x8c], 0
mov eax, dword [ebp - 0x8c]
mov dword [ebp - 0x100], eax
mov eax, dword [ebp - 0x94]
dec eax
mov dword [ebp - 0x94], eax
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x150]
call fcn.100187b9
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0xe8]
call fcn.100187b9
mov dword [ebp - 0x48], 0xd3df75dc
mov dword [ebp - 0x120], 2
mov dword [ebp - 0x34], 2
mov dword [ebp - 0x40], 0
jmp 0x1002b033
mov eax, dword [ebp - 0x40]
inc eax
mov dword [ebp - 0x40], eax
cmp dword [ebp - 0x40], 3
jge 0x1002b049
mov eax, dword [ebp - 0x40]
mov dword [ebp + eax*4 - 0x15c], 0x2189f42
jmp 0x1002b02c
mov dword [ebp - 0x48], 0
jmp 0x1002b059
mov eax, dword [ebp - 0x48]
inc eax
mov dword [ebp - 0x48], eax
cmp dword [ebp - 0x48], 0xa
jg 0x1002b109
mov dword [ebp - 0x50], 0
mov dword [ebp - 0x38], 0x590f0234
mov eax, dword [ebp - 0x120]
mov dword [ebp - 0x38], eax
cmp dword [ebp - 0x38], 0
je 0x1002b093
push 0xfffffffffffffffa
pop eax
test eax, eax
je 0x1002b093
mov dword [ebp - 0x108], 1
jmp 0x1002b09a
and dword [ebp - 0x108], 0
mov eax, dword [ebp - 0x50]
mov dword [ebp - 0x12c], eax
mov eax, dword [ebp - 0x50]
sub eax, dword [ebp - 0x50]
mov dword [ebp - 0x34], eax
mov dword [ebp - 0x34], 2
jmp 0x1002b0bc
mov eax, dword [ebp - 0x34]
dec eax
mov dword [ebp - 0x34], eax
cmp dword [ebp - 0x34], 0
jl 0x1002b104
mov dword [ebp - 0x38], 0
jmp 0x1002b0d2
mov eax, dword [ebp - 0x38]
inc eax
mov dword [ebp - 0x38], eax
cmp dword [ebp - 0x38], 2
jg 0x1002b102
mov eax, dword [ebp - 0x34]
cmp dword [ebp + eax*4 - 0x15c], 0
je 0x1002b0e7
jmp 0x1002b102
mov byte [ebp - 0x29], 0
movzx eax, byte [ebp - 0x29]
test eax, eax
je 0x1002b100
call dword [sym.imp.USER32.dll_GetDesktopWindow]
push eax
call dword [sym.imp.USER32.dll_DestroyWindow]
jmp 0x1002b0cb
jmp 0x1002b0b5
jmp 0x1002b052
mov eax, dword [ebp - 0x118]
mov dword [ebp - 0xf8], eax
mov eax, dword [ebp - 0xf8]
movzx eax, byte [eax]
test eax, eax
je 0x1002b12a
push 0
call dword [sym.imp.USER32.dll_RegisterClassW]
jmp 0x1002b30f
mov eax, dword [ebp + 8]
mov dword [ebp - 0xfc], eax
mov eax, dword [ebp + 0x10]
mov dword [ebp - 0x104], eax
mov eax, dword [ebp + 0xc]
mov dword [ebp - 0x10c], eax
mov eax, dword [ebp - 0xfc]
mov dword [ebp - 0x18], eax
mov eax, dword [ebp - 0x104]
mov dword [ebp - 0x54], eax
mov eax, dword [ebp - 0x10c]
mov dword [ebp - 0x3c], eax
push 1
mov ecx, dword [ebp - 0x18]
call fcn.100187be
push 1
mov ecx, dword [ebp - 0x18]
call fcn.100187be
cmp dword [eax], 0x7c70ab2
jge 0x1002b18d
mov dword [ebp - 0xa4], 1
jmp 0x1002b194
and dword [ebp - 0xa4], 0
mov eax, dword [ebp - 0x3c]
mov eax, dword [eax]
mov dword [ebp - 0x130], eax
mov eax, dword [ebp - 0x3c]
cmp dword [eax], 0
je 0x1002b1bf
push 1
mov ecx, dword [ebp - 0x18]
call fcn.100187be
cmp dword [eax], 0
jne 0x1002b1bf
and dword [ebp - 0x9c], 0
jmp 0x1002b1c9
mov dword [ebp - 0x9c], 1
mov eax, dword [ebp - 0x3c]
mov ecx, dword [ebp - 0x9c]
mov dword [eax], ecx
push 3
mov ecx, dword [ebp - 0x18]
call fcn.100187be
mov esi, eax
push 1
mov ecx, dword [ebp - 0x18]
call fcn.100187be
mov ecx, dword [esi]
cmp ecx, dword [eax]
jne 0x1002b1fc
mov dword [ebp - 0xac], 1
jmp 0x1002b203
and dword [ebp - 0xac], 0
mov eax, dword [ebp - 0xa4]
cmp eax, dword [ebp - 0xac]
jle 0x1002b21d
mov dword [ebp - 0xb4], 1
jmp 0x1002b224
and dword [ebp - 0xb4], 0
push 1
mov ecx, dword [ebp - 0x18]
call fcn.100187be
mov ecx, dword [ebp - 0xb4]
cmp ecx, dword [eax]
jl 0x1002b244
mov dword [ebp - 0xbc], 1
jmp 0x1002b24b
and dword [ebp - 0xbc], 0
push 1
mov ecx, dword [ebp - 0x18]
call fcn.100187be
mov ecx, dword [ebp - 0xbc]
cmp ecx, dword [eax]
jge 0x1002b268
mov dword [ebp - 0x5c], 1
jmp 0x1002b26c
and dword [ebp - 0x5c], 0
push 2
mov ecx, dword [ebp - 0x18]
call fcn.100187be
mov ecx, dword [ebp - 0x5c]
cmp ecx, dword [eax]
jl 0x1002b285
mov eax, dword [ebp - 0x3c]
cmp dword [eax], 0
je 0x1002b28f
push 3
mov ecx, dword [ebp - 0x18]
call fcn.100187be
mov eax, dword [ebp - 0x3c]
cmp dword [eax], 0xffff
jne 0x1002b2a3
mov dword [ebp - 0x60], 1
jmp 0x1002b2a7
and dword [ebp - 0x60], 0
mov eax, dword [ebp - 0x54]
mov eax, dword [eax]
mov dword [ebp - 0x114], eax
mov eax, dword [ebp - 0x60]
mov dword [ebp - 0xf0], eax
mov eax, dword [ebp - 0x54]
mov eax, dword [eax]
inc eax
mov ecx, dword [ebp - 0x54]
mov dword [ecx], eax
mov eax, dword [ebp - 0x114]
cmp eax, dword [ebp - 0xf0]
jl 0x1002b2dd
mov dword [ebp - 0x68], 1
jmp 0x1002b2e1
and dword [ebp - 0x68], 0
cmp dword [ebp - 0x68], 1
jne 0x1002b2f0
mov dword [ebp - 0x70], 1
jmp 0x1002b2f4
and dword [ebp - 0x70], 0
push 0
mov ecx, dword [ebp - 0x18]
call fcn.100187be
mov esi, dword [ebp - 0x70]
add esi, dword [eax]
push 1
mov ecx, dword [ebp - 0x18]
call fcn.100187be
mov dword [eax], esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop esi
mov esp, ebp
pop ebp
ret