Function at 0x66d360
Capabilities:
Get session user name

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x692bcc
mov eax, dword fs:[0]
push eax
sub esp, 0x488
push ebx
push esi
push edi
lea edi, [ebp - 0x494]
mov ecx, 0x122
mov eax, 0xcccccccc
rep stosd dword es:[edi], eax
mov eax, dword [0x6aac14]
xor eax, ebp
mov dword [ebp - 0x10], eax
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov eax, dword [ebp + 8]
push eax
push str.ami_sExi
push 0x50
lea ecx, [ebp - 0xb4]
push ecx
call fcn.0067693f
add esp, 0x10
mov dword [ebp - 0x2d0], 0x104
lea eax, [ebp - 0x2d0]
push eax
lea ecx, [ebp - 0x2c4]
push ecx
push 2
call sub.Secur32.dll_GetUserNameExW
lea ecx, [ebp - 0x2dc]
call fcn.00613c90
mov dword [ebp - 4], 0
push 1
push 0
push 0x69c1c0
lea ecx, [ebp - 0x2dc]
call fcn.0066e3c0
mov dword [ebp - 0x2e8], eax
cmp dword [ebp - 0x2e8], 0
jge 0x66d435
mov dword [ebp - 0x48c], 1
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x2dc]
call fcn.00622ea0
mov eax, dword [ebp - 0x48c]
jmp 0x66d8f7
lea ecx, [ebp - 0x2f4]
call fcn.00613c90
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x300]
call fcn.00613c90
mov byte [ebp - 4], 2
lea ecx, [ebp - 0x2dc]
call fcn.00612bb0
mov dword [ebp - 0x494], eax
mov esi, esp
lea eax, [ebp - 0xb4]
push eax
mov ecx, dword [ebp - 0x494]
push ecx
mov edx, dword [ebp - 0x494]
mov eax, dword [edx]
mov ecx, dword [eax + 0x1c]
call ecx
cmp esi, esp
call fcn.00673bc2
mov dword [ebp - 0x2e8], eax
lea ecx, [ebp - 0x2dc]
call fcn.00612bb0
mov dword [ebp - 0x494], eax
lea ecx, [ebp - 0x300]
call fcn.0066e780
mov esi, esp
push eax
push 0x69c1a0
push 0x69c1b0
lea eax, [ebp - 0xb4]
push eax
mov ecx, dword [ebp - 0x494]
push ecx
mov edx, dword [ebp - 0x494]
mov eax, dword [edx]
mov ecx, dword [eax + 0x20]
call ecx
cmp esi, esp
call fcn.00673bc2
mov dword [ebp - 0x2e8], eax
cmp dword [ebp - 0x2e8], 0
jge 0x66d52d
mov dword [ebp - 0x480], 1
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x300]
call fcn.00622ea0
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x2f4]
call fcn.00622ea0
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x2dc]
call fcn.00622ea0
mov eax, dword [ebp - 0x480]
jmp 0x66d8f7
lea ecx, [ebp - 0x300]
call fcn.00612bb0
mov dword [ebp - 0x494], eax
mov esi, esp
lea eax, [ebp - 0x2c4]
push eax
mov ecx, dword [ebp - 0x494]
push ecx
mov edx, dword [ebp - 0x494]
mov eax, dword [edx]
mov ecx, dword [eax + 0x50]
call ecx
cmp esi, esp
call fcn.00673bc2
mov dword [ebp - 0x2e8], eax
lea ecx, [ebp - 0x300]
call fcn.00612bb0
mov dword [ebp - 0x494], eax
mov esi, esp
push 0
lea eax, [ebp - 0x2c4]
push eax
mov ecx, dword [ebp - 0x494]
push ecx
mov edx, dword [ebp - 0x494]
mov eax, dword [edx]
mov ecx, dword [eax + 0x78]
call ecx
cmp esi, esp
call fcn.00673bc2
mov dword [ebp - 0x2e8], eax
lea ecx, [ebp - 0x300]
call fcn.00612bb0
mov dword [ebp - 0x494], eax
mov esi, esp
push 0x694bc4
mov eax, dword [ebp - 0x494]
push eax
mov ecx, dword [ebp - 0x494]
mov edx, dword [ecx]
mov eax, dword [edx + 0x48]
call eax
cmp esi, esp
call fcn.00673bc2
lea ecx, [ebp - 0x300]
call fcn.00612bb0
mov dword [ebp - 0x494], eax
mov esi, esp
mov eax, dword [ebp + 0xc]
push eax
mov ecx, dword [ebp - 0x494]
push ecx
mov edx, dword [ebp - 0x494]
mov eax, dword [edx]
mov ecx, dword [eax + 0x80]
call ecx
cmp esi, esp
call fcn.00673bc2
lea ecx, [ebp - 0x300]
call fcn.00612bb0
mov dword [ebp - 0x494], eax
mov esi, esp
mov eax, dword [ebp + 0x10]
push eax
mov ecx, dword [ebp - 0x494]
push ecx
mov edx, dword [ebp - 0x494]
mov eax, dword [edx]
mov ecx, dword [eax + 0x88]
call ecx
cmp esi, esp
call fcn.00673bc2
lea ecx, [ebp - 0x300]
call fcn.00612bb0
mov dword [ebp - 0x494], eax
mov esi, esp
push 0x200b20
mov eax, dword [ebp - 0x494]
push eax
mov ecx, dword [ebp - 0x494]
mov edx, dword [ecx]
mov eax, dword [edx + 0xa8]
call eax
cmp esi, esp
call fcn.00673bc2
lea ecx, [ebp - 0x300]
call fcn.00612bb0
mov dword [ebp - 0x494], eax
mov esi, esp
push 0x2402
mov eax, dword [ebp - 0x494]
push eax
mov ecx, dword [ebp - 0x494]
mov edx, dword [ecx]
mov eax, dword [edx + 0x70]
call eax
cmp esi, esp
call fcn.00673bc2
push 0
call fcn.00649000
add esp, 4
mov dword [ebp - 0x348], eax
mov dword [ebp - 0x344], edx
mov eax, dword [ebp + 0x14]
imul eax, eax, 0x3c
cdq
add eax, dword [ebp - 0x348]
adc edx, dword [ebp - 0x344]
mov dword [ebp - 0x358], eax
mov dword [ebp - 0x354], edx
lea eax, [ebp - 0x358]
push eax
lea ecx, [ebp - 0x384]
push ecx
call fcn.0066e980
add esp, 8
mov dword [ebp - 0x390], eax
push 0x30
push 0
lea eax, [ebp - 0x338]
push eax
call fcn.00673dc0
add esp, 0xc
mov eax, 0x30
mov word [ebp - 0x338], ax
mov eax, dword [ebp - 0x370]
add eax, 0x76c
mov word [ebp - 0x334], ax
mov eax, dword [ebp - 0x374]
add eax, 1
mov word [ebp - 0x332], ax
mov ax, word [ebp - 0x378]
mov word [ebp - 0x330], ax
mov ax, word [ebp - 0x37c]
mov word [ebp - 0x328], ax
mov ax, word [ebp - 0x380]
mov word [ebp - 0x326], ax
mov eax, dword [ebp - 0x370]
add eax, 0x76c
mov word [ebp - 0x32e], ax
mov eax, dword [ebp - 0x374]
add eax, 1
mov word [ebp - 0x32c], ax
mov ax, word [ebp - 0x378]
mov word [ebp - 0x32a], ax
mov dword [ebp - 0x318], 0
lea ecx, [ebp - 0x39c]
call fcn.00613c90
mov byte [ebp - 4], 3
xor eax, eax
mov word [ebp - 0x3a8], ax
lea ecx, [ebp - 0x300]
call fcn.00612bb0
mov dword [ebp - 0x494], eax
lea ecx, [ebp - 0x39c]
call fcn.0066e780
mov esi, esp
push eax
lea eax, [ebp - 0x3a8]
push eax
mov ecx, dword [ebp - 0x494]
push ecx
mov edx, dword [ebp - 0x494]
mov eax, dword [edx]
mov ecx, dword [eax + 0xc]
call ecx
cmp esi, esp
call fcn.00673bc2
mov dword [ebp - 0x2e8], eax
cmp dword [ebp - 0x2e8], 0
jl 0x66d844
lea ecx, [ebp - 0x39c]
call fcn.00612bb0
mov dword [ebp - 0x494], eax
mov esi, esp
lea eax, [ebp - 0x338]
push eax
mov ecx, dword [ebp - 0x494]
push ecx
mov edx, dword [ebp - 0x494]
mov eax, dword [edx]
mov ecx, dword [eax + 0xc]
call ecx
cmp esi, esp
call fcn.00673bc2
mov dword [ebp - 0x2e8], eax
lea ecx, [ebp - 0x2f4]
call fcn.0066e780
push eax
lea ecx, [ebp - 0x300]
call fcn.00612bb0
push eax
call fcn.0066e420
mov dword [ebp - 0x2e8], eax
cmp dword [ebp - 0x2e8], 0
jl 0x66d8a8
lea ecx, [ebp - 0x2f4]
call fcn.00612bb0
mov dword [ebp - 0x494], eax
mov esi, esp
push 0
push 0
mov eax, dword [ebp - 0x494]
push eax
mov ecx, dword [ebp - 0x494]
mov edx, dword [ecx]
mov eax, dword [edx + 0x18]
call eax
cmp esi, esp
call fcn.00673bc2
mov dword [ebp - 0x2e8], eax
mov dword [ebp - 0x474], 0
mov byte [ebp - 4], 2
lea ecx, [ebp - 0x39c]
call fcn.00622ea0
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x300]
call fcn.00622ea0
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x2f4]
call fcn.00622ea0
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x2dc]
call fcn.00622ea0
mov eax, dword [ebp - 0x474]
push edx
mov ecx, ebp
push eax
lea edx, [0x66d934]
call fcn.00673be5
pop eax
pop edx
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.00673bb3
add esp, 0x494
cmp ebp, esp
call fcn.00673bc2
mov esp, ebp
pop ebp
ret