Function at 0x46d290
Capabilities:
Get session user name

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x493482
mov eax, dword fs:[0]
push eax
sub esp, 0xcec
push ebx
push esi
push edi
lea edi, [ebp - 0xcf8]
mov ecx, 0x33b
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_sExd
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
mov eax, dword [ebp + 0x10]
push eax
mov ecx, dword [ebp + 0xc]
push ecx
push str.bitsadmin__transfer_amijob__download__priority_high__s__s
push 0x400
lea edx, [ebp - 0xad8]
push edx
call fcn.0047724f
add esp, 0x14
lea ecx, [ebp - 0xb04]
call fcn.0046af10
mov dword [ebp - 4], 0
lea eax, [ebp - 0xb28]
push eax
call fcn.0046e9f0
add esp, 4
mov byte [ebp - 4], 1
push str.amijob
lea eax, [ebp - 0xad8]
push eax
lea ecx, [ebp - 0xb28]
call fcn.00403a00
push eax
lea ecx, [ebp - 0xb04]
call fcn.0046e8b0
movzx ecx, al
test ecx, ecx
jne 0x46d3af
mov dword [ebp - 0xcf0], 1
mov byte [ebp - 4], 0
lea ecx, [ebp - 0xb28]
call fcn.00403970
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0xb04]
call fcn.0046af70
mov eax, dword [ebp - 0xcf0]
jmp 0x46d92d
lea ecx, [ebp - 0xb34]
call fcn.004275f0
mov byte [ebp - 4], 2
push 1
push 0
push 0x49d190
lea ecx, [ebp - 0xb34]
call fcn.0046eb50
mov dword [ebp - 0xb40], eax
cmp dword [ebp - 0xb40], 0
jge 0x46d426
mov dword [ebp - 0xce4], 1
mov byte [ebp - 4], 1
lea ecx, [ebp - 0xb34]
call fcn.0046dab0
mov byte [ebp - 4], 0
lea ecx, [ebp - 0xb28]
call fcn.00403970
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0xb04]
call fcn.0046af70
mov eax, dword [ebp - 0xce4]
jmp 0x46d92d
lea ecx, [ebp - 0xb4c]
call fcn.004275f0
mov byte [ebp - 4], 3
lea ecx, [ebp - 0xb58]
call fcn.004275f0
mov byte [ebp - 4], 4
lea ecx, [ebp - 0xb34]
call fcn.00431080
mov dword [ebp - 0xcf8], eax
mov esi, esp
lea eax, [ebp - 0xb4]
push eax
mov ecx, dword [ebp - 0xcf8]
push ecx
mov edx, dword [ebp - 0xcf8]
mov eax, dword [edx]
mov ecx, dword [eax + 0x1c]
call ecx
cmp esi, esp
call fcn.004744d2
mov dword [ebp - 0xb40], eax
lea ecx, [ebp - 0xb34]
call fcn.00431080
mov dword [ebp - 0xcf8], eax
lea ecx, [ebp - 0xb58]
call fcn.004309d0
mov esi, esp
push eax
push 0x49d170
push 0x49d180
lea eax, [ebp - 0xb4]
push eax
mov ecx, dword [ebp - 0xcf8]
push ecx
mov edx, dword [ebp - 0xcf8]
mov eax, dword [edx]
mov ecx, dword [eax + 0x20]
call ecx
cmp esi, esp
call fcn.004744d2
mov dword [ebp - 0xb40], eax
cmp dword [ebp - 0xb40], 0
jge 0x46d53c
mov dword [ebp - 0xcd8], 1
mov byte [ebp - 4], 3
lea ecx, [ebp - 0xb58]
call fcn.0046dab0
mov byte [ebp - 4], 2
lea ecx, [ebp - 0xb4c]
call fcn.0046dab0
mov byte [ebp - 4], 1
lea ecx, [ebp - 0xb34]
call fcn.0046dab0
mov byte [ebp - 4], 0
lea ecx, [ebp - 0xb28]
call fcn.00403970
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0xb04]
call fcn.0046af70
mov eax, dword [ebp - 0xcd8]
jmp 0x46d92d
lea ecx, [ebp - 0xb58]
call fcn.00431080
mov dword [ebp - 0xcf8], eax
mov esi, esp
lea eax, [ebp - 0x2c4]
push eax
mov ecx, dword [ebp - 0xcf8]
push ecx
mov edx, dword [ebp - 0xcf8]
mov eax, dword [edx]
mov ecx, dword [eax + 0x50]
call ecx
cmp esi, esp
call fcn.004744d2
mov dword [ebp - 0xb40], eax
lea ecx, [ebp - 0xb58]
call fcn.00431080
mov dword [ebp - 0xcf8], eax
mov esi, esp
push 0
lea eax, [ebp - 0x2c4]
push eax
mov ecx, dword [ebp - 0xcf8]
push ecx
mov edx, dword [ebp - 0xcf8]
mov eax, dword [edx]
mov ecx, dword [eax + 0x78]
call ecx
cmp esi, esp
call fcn.004744d2
mov dword [ebp - 0xb40], eax
lea ecx, [ebp - 0xb58]
call fcn.00431080
mov dword [ebp - 0xcf8], eax
mov esi, esp
push 0x495bdc
mov eax, dword [ebp - 0xcf8]
push eax
mov ecx, dword [ebp - 0xcf8]
mov edx, dword [ecx]
mov eax, dword [edx + 0x48]
call eax
cmp esi, esp
call fcn.004744d2
lea ecx, [ebp - 0xb58]
call fcn.00431080
mov dword [ebp - 0xcf8], eax
lea ecx, [ebp - 0xb28]
call fcn.00403a00
mov esi, esp
push eax
mov eax, dword [ebp - 0xcf8]
push eax
mov ecx, dword [ebp - 0xcf8]
mov edx, dword [ecx]
mov eax, dword [edx + 0x80]
call eax
cmp esi, esp
call fcn.004744d2
lea ecx, [ebp - 0xb58]
call fcn.00431080
mov dword [ebp - 0xcf8], eax
mov esi, esp
push 0x495bdc
mov eax, dword [ebp - 0xcf8]
push eax
mov ecx, dword [ebp - 0xcf8]
mov edx, dword [ecx]
mov eax, dword [edx + 0x88]
call eax
cmp esi, esp
call fcn.004744d2
lea ecx, [ebp - 0xb58]
call fcn.00431080
mov dword [ebp - 0xcf8], eax
mov esi, esp
push 0x200b20
mov eax, dword [ebp - 0xcf8]
push eax
mov ecx, dword [ebp - 0xcf8]
mov edx, dword [ecx]
mov eax, dword [edx + 0xa8]
call eax
cmp esi, esp
call fcn.004744d2
lea ecx, [ebp - 0xb58]
call fcn.00431080
mov dword [ebp - 0xcf8], eax
mov esi, esp
push 0x2402
mov eax, dword [ebp - 0xcf8]
push eax
mov ecx, dword [ebp - 0xcf8]
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 - 0xba0], eax
mov dword [ebp - 0xb9c], edx
mov eax, dword [ebp + 0x14]
imul eax, eax, 0x3c
cdq
add eax, dword [ebp - 0xba0]
adc edx, dword [ebp - 0xb9c]
mov dword [ebp - 0xbb0], eax
mov dword [ebp - 0xbac], edx
lea eax, [ebp - 0xbb0]
push eax
lea ecx, [ebp - 0xbdc]
push ecx
call fcn.0046f140
add esp, 8
mov dword [ebp - 0xbe8], eax
push 0x30
push 0
lea eax, [ebp - 0xb90]
push eax
call fcn.004746d0
add esp, 0xc
mov eax, 0x30
mov word [ebp - 0xb90], ax
mov eax, dword [ebp - 0xbc8]
add eax, 0x76c
mov word [ebp - 0xb8c], ax
mov eax, dword [ebp - 0xbcc]
add eax, 1
mov word [ebp - 0xb8a], ax
mov ax, word [ebp - 0xbd0]
mov word [ebp - 0xb88], ax
mov ax, word [ebp - 0xbd4]
mov word [ebp - 0xb80], ax
mov ax, word [ebp - 0xbd8]
mov word [ebp - 0xb7e], ax
mov eax, dword [ebp - 0xbc8]
add eax, 0x76c
mov word [ebp - 0xb86], ax
mov eax, dword [ebp - 0xbcc]
add eax, 1
mov word [ebp - 0xb84], ax
mov ax, word [ebp - 0xbd0]
mov word [ebp - 0xb82], ax
mov dword [ebp - 0xb70], 0
lea ecx, [ebp - 0xbf4]
call fcn.004275f0
mov byte [ebp - 4], 5
xor eax, eax
mov word [ebp - 0xc00], ax
lea ecx, [ebp - 0xb58]
call fcn.00431080
mov dword [ebp - 0xcf8], eax
lea ecx, [ebp - 0xbf4]
call fcn.004309d0
mov esi, esp
push eax
lea eax, [ebp - 0xc00]
push eax
mov ecx, dword [ebp - 0xcf8]
push ecx
mov edx, dword [ebp - 0xcf8]
mov eax, dword [edx]
mov ecx, dword [eax + 0xc]
call ecx
cmp esi, esp
call fcn.004744d2
mov dword [ebp - 0xb40], eax
cmp dword [ebp - 0xb40], 0
jl 0x46d85c
lea ecx, [ebp - 0xbf4]
call fcn.00431080
mov dword [ebp - 0xcf8], eax
mov esi, esp
lea eax, [ebp - 0xb90]
push eax
mov ecx, dword [ebp - 0xcf8]
push ecx
mov edx, dword [ebp - 0xcf8]
mov eax, dword [edx]
mov ecx, dword [eax + 0xc]
call ecx
cmp esi, esp
call fcn.004744d2
mov dword [ebp - 0xb40], eax
lea ecx, [ebp - 0xb4c]
call fcn.004309d0
push eax
lea ecx, [ebp - 0xb58]
call fcn.00431080
push eax
call fcn.0046ec10
mov dword [ebp - 0xb40], eax
cmp dword [ebp - 0xb40], 0
jl 0x46d8c0
lea ecx, [ebp - 0xb4c]
call fcn.00431080
mov dword [ebp - 0xcf8], eax
mov esi, esp
push 0
push 0
mov eax, dword [ebp - 0xcf8]
push eax
mov ecx, dword [ebp - 0xcf8]
mov edx, dword [ecx]
mov eax, dword [edx + 0x18]
call eax
cmp esi, esp
call fcn.004744d2
mov dword [ebp - 0xb40], eax
mov dword [ebp - 0xccc], 0
mov byte [ebp - 4], 4
lea ecx, [ebp - 0xbf4]
call fcn.0046dab0
mov byte [ebp - 4], 3
lea ecx, [ebp - 0xb58]
call fcn.0046dab0
mov byte [ebp - 4], 2
lea ecx, [ebp - 0xb4c]
call fcn.0046dab0
mov byte [ebp - 4], 1
lea ecx, [ebp - 0xb34]
call fcn.0046dab0
mov byte [ebp - 4], 0
lea ecx, [ebp - 0xb28]
call fcn.00403970
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0xb04]
call fcn.0046af70
mov eax, dword [ebp - 0xccc]
push edx
mov ecx, ebp
push eax
lea edx, [0x46d968]
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, 0xcf8
cmp ebp, esp
call fcn.004744d2
mov esp, ebp
pop ebp
ret