Function at 0x46daf0
Capabilities:
Get session user name

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4934dc
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 [0x4abc14]
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.0047724f
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.004275f0
mov dword [ebp - 4], 0
push 1
push 0
push 0x49d190
lea ecx, [ebp - 0x2dc]
call fcn.0046eb50
mov dword [ebp - 0x2e8], eax
cmp dword [ebp - 0x2e8], 0
jge 0x46dbc5
mov dword [ebp - 0x48c], 1
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x2dc]
call fcn.0046dab0
mov eax, dword [ebp - 0x48c]
jmp 0x46e087
lea ecx, [ebp - 0x2f4]
call fcn.004275f0
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x300]
call fcn.004275f0
mov byte [ebp - 4], 2
lea ecx, [ebp - 0x2dc]
call fcn.00431080
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.004744d2
mov dword [ebp - 0x2e8], eax
lea ecx, [ebp - 0x2dc]
call fcn.00431080
mov dword [ebp - 0x494], eax
lea ecx, [ebp - 0x300]
call fcn.004309d0
mov esi, esp
push eax
push 0x49d170
push 0x49d180
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.004744d2
mov dword [ebp - 0x2e8], eax
cmp dword [ebp - 0x2e8], 0
jge 0x46dcbd
mov dword [ebp - 0x480], 1
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x300]
call fcn.0046dab0
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x2f4]
call fcn.0046dab0
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x2dc]
call fcn.0046dab0
mov eax, dword [ebp - 0x480]
jmp 0x46e087
lea ecx, [ebp - 0x300]
call fcn.00431080
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.004744d2
mov dword [ebp - 0x2e8], eax
lea ecx, [ebp - 0x300]
call fcn.00431080
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.004744d2
mov dword [ebp - 0x2e8], eax
lea ecx, [ebp - 0x300]
call fcn.00431080
mov dword [ebp - 0x494], eax
mov esi, esp
push 0x495bdc
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.004744d2
lea ecx, [ebp - 0x300]
call fcn.00431080
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.004744d2
lea ecx, [ebp - 0x300]
call fcn.00431080
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.004744d2
lea ecx, [ebp - 0x300]
call fcn.00431080
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.004744d2
lea ecx, [ebp - 0x300]
call fcn.00431080
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.004744d2
push 0
call fcn.00454860
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.0046f140
add esp, 8
mov dword [ebp - 0x390], eax
push 0x30
push 0
lea eax, [ebp - 0x338]
push eax
call fcn.004746d0
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.004275f0
mov byte [ebp - 4], 3
xor eax, eax
mov word [ebp - 0x3a8], ax
lea ecx, [ebp - 0x300]
call fcn.00431080
mov dword [ebp - 0x494], eax
lea ecx, [ebp - 0x39c]
call fcn.004309d0
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.004744d2
mov dword [ebp - 0x2e8], eax
cmp dword [ebp - 0x2e8], 0
jl 0x46dfd4
lea ecx, [ebp - 0x39c]
call fcn.00431080
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.004744d2
mov dword [ebp - 0x2e8], eax
lea ecx, [ebp - 0x2f4]
call fcn.004309d0
push eax
lea ecx, [ebp - 0x300]
call fcn.00431080
push eax
call fcn.0046ec10
mov dword [ebp - 0x2e8], eax
cmp dword [ebp - 0x2e8], 0
jl 0x46e038
lea ecx, [ebp - 0x2f4]
call fcn.00431080
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.004744d2
mov dword [ebp - 0x2e8], eax
mov dword [ebp - 0x474], 0
mov byte [ebp - 4], 2
lea ecx, [ebp - 0x39c]
call fcn.0046dab0
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x300]
call fcn.0046dab0
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x2f4]
call fcn.0046dab0
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x2dc]
call fcn.0046dab0
mov eax, dword [ebp - 0x474]
push edx
mov ecx, ebp
push eax
lea edx, [0x46e0c4]
call fcn.004744f5
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.004744c3
add esp, 0x494
cmp ebp, esp
call fcn.004744d2
mov esp, ebp
pop ebp
ret