Function at 0x46f560
Capabilities:
Get session user name

Disassembly:
mov eax, 0x1744
call fcn.004cf4b0
xor ecx, ecx
xor eax, eax
mov dword [esp + 0x19], ecx
mov dword [esp + 0xd], eax
mov dword [esp + 0x1d], ecx
push ebx
push ebp
mov dword [esp + 0x19], eax
mov word [esp + 0x29], cx
push esi
push edi
xor ebx, ebx
mov word [esp + 0x25], ax
mov byte [esp + 0x33], cl
mov ecx, 0xf
lea edi, [esp + 0x281]
mov byte [esp + 0x27], al
mov byte [esp + 0x280], bl
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
mov ecx, 0x1f
xor eax, eax
lea edi, [esp + 0x441]
mov byte [esp + 0x440], bl
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
mov ecx, 0x1f
xor eax, eax
lea edi, [esp + 0x3c1]
mov byte [esp + 0x3c0], bl
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
mov ecx, 0x1f
xor eax, eax
lea edi, [esp + 0x4c1]
mov byte [esp + 0x4c0], bl
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
mov ecx, 0xfe
xor eax, eax
lea edi, [esp + 0xf71]
mov byte [esp + 0xf70], bl
rep stosd dword es:[edi], eax
mov ecx, 0xa
lea edi, [esp + 0x229]
mov byte [esp + 0x228], bl
mov byte [esp + 0x1fc], bl
rep stosd dword es:[edi], eax
stosb byte es:[edi], al
mov ecx, 0xa
xor eax, eax
lea edi, [esp + 0x1fd]
xor edx, edx
rep stosd dword es:[edi], eax
stosb byte es:[edi], al
mov ecx, 0xa
xor eax, eax
lea edi, [esp + 0x255]
mov byte [esp + 0x254], bl
rep stosd dword es:[edi], eax
mov dword [esp + 0x49], edx
mov ecx, 0x1f
mov dword [esp + 0x4d], edx
mov byte [esp + 0x340], bl
mov dword [esp + 0x51], edx
mov byte [esp + 0x1c], bl
mov dword [esp + 0x55], edx
mov byte [esp + 0x28], bl
stosb byte es:[edi], al
mov word [esp + 0x59], dx
xor eax, eax
lea edi, [esp + 0x341]
mov byte [esp + 0x48], bl
mov byte [esp + 0x5b], dl
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
mov ecx, 0x7e
xor eax, eax
lea edi, [esp + 0x5a5]
mov byte [esp + 0x5a4], bl
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
xor eax, eax
mov ecx, 0xfa
mov dword [esp + 0x39], eax
lea edi, [esp + 0x7a0]
mov dword [esp + 0x3d], eax
push 0x40
mov dword [esp + 0x45], eax
mov dword [esp + 0x1c], ebx
mov word [esp + 0x49], ax
mov byte [esp + 0x3c], bl
rep stosd dword es:[edi], eax
mov ecx, 0xfa
lea edi, [esp + 0xb8c]
rep stosd dword es:[edi], eax
mov ecx, 0xfa
lea edi, [esp + 0x1370]
rep stosd dword es:[edi], eax
lea ecx, [esp + 0x1c0]
mov byte [esp + 0x4b], al
push ecx
mov byte [esp + 0x64], bl
mov byte [esp + 0x110], bl
mov byte [esp + 0x308], bl
mov byte [esp + 0x1c4], bl
mov byte [esp + 0x88], bl
mov byte [esp + 0xf0], bl
mov byte [esp + 0xd8], bl
mov byte [esp + 0xc0], bl
call fcn.0046bad0
add esp, 8
test eax, eax
jne 0x46f76e
lea edx, [esp + 0x80]
push ebx
lea eax, [esp + 0x1c0]
push edx
push eax
call fcn.0046af80
add esp, 0xc
test eax, eax
je 0x46f76e
mov byte [esp + 0x80], bl
jmp 0x46f777
cmp byte [esp + 0x80], bl
jne 0x46f7b5
lea ecx, [esp + 0x80]
push 0x40
push ecx
call fcn.0046b400
add esp, 8
test eax, eax
je 0x46f7b5
mov edx, dword [str.NoName]
mov ax, word [0x5cfdbc]
mov cl, byte [0x5cfdbe]
mov dword [esp + 0x80], edx
mov word [esp + 0x84], ax
mov byte [esp + 0x86], cl
mov edx, dword [esp + 0x1760]
push str.RNBO_SPN_LOCAL
push edx
call fcn.004d48bd
add esp, 8
test eax, eax
jne 0x46f80f
mov eax, dword [str.RNBO_SPN_LOCAL]
mov ecx, dword [0x5ced7c]
mov edx, dword [0x5ced80]
mov dword [esp + 0x1bc], eax
mov ax, word [0x5ced84]
mov dword [esp + 0x1c0], ecx
mov cl, byte [0x5ced86]
mov dword [esp + 0x1c4], edx
mov word [esp + 0x1c8], ax
mov byte [esp + 0x1ca], cl
lea edx, [esp + 0x34]
lea eax, [esp + 0x108]
push edx
push eax
mov dword [esp + 0x3c], 0x40
call dword [sym.imp.ADVAPI32.dll_GetUserNameA]
cmp eax, 1
jne 0x46f8a5
lea ecx, [esp + 0x300]
push 0x40
lea edx, [esp + 0x10c]
push ecx
push edx
call fcn.00479710
add esp, 0xc
cmp eax, 0xffffffff
jne 0x46f878
mov eax, dword [str.NoName]
mov cx, word [0x5cfdbc]
mov dl, byte [0x5cfdbe]
mov dword [esp + 0x108], eax
mov word [esp + 0x10c], cx
mov byte [esp + 0x10e], dl
jmp 0x46f8cd
lea edi, [esp + 0x300]
or ecx, 0xffffffff
xor eax, eax
lea edx, [esp + 0x108]
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov eax, ecx
mov esi, edi
mov edi, edx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
jmp 0x46f8cd
mov ecx, dword [str.NoName]
mov dx, word [0x5cfdbc]
mov al, byte [0x5cfdbe]
mov dword [esp + 0x108], ecx
mov word [esp + 0x10c], dx
mov byte [esp + 0x10e], al
mov eax, dword [esp + 0x175c]
xor ecx, ecx
mov dword [esp + 0x68], ecx
xor edx, edx
mov dword [esp + 0x6c], ecx
and eax, 0xffff
mov dword [esp + 0x70], ecx
mov dword [esp + 0x74], edx
push eax
lea ecx, [esp + 0x6c]
mov dword [esp + 0x7c], edx
push 0x5cfdb4
push ecx
mov dword [esp + 0x88], edx
call fcn.004ce616
mov ebp, dword [esp + 0x1764]
lea eax, [esp + 0x80]
mov edx, dword [ebp + 0x84]
push edx
push 0x5cfdb0
push eax
call fcn.004ce616
mov ecx, dword [esp + 0x177c]
lea edx, [esp + 0x160]
and ecx, 0xffff
push ecx
push 0x5cfdb4
push edx
call fcn.004ce616
mov eax, dword [0x5da3b8]
lea ecx, [esp + 0x1b8]
push eax
push 0x5cfdb0
push ecx
call fcn.004ce616
mov edx, dword [esp + 0x1798]
lea eax, [esp + 0x184]
and edx, 0xffff
push edx
push 0x5cfdb4
push eax
call fcn.004ce616
mov ecx, dword [ebp + 0x1c0]
lea edx, [esp + 0x130]
push ecx
push 0x5cfdb0
push edx
call fcn.004ce616
add esp, 0x48
lea eax, [esp + 0x160]
push 0x2c6
push 0x5cfdb4
push eax
call fcn.004ce616
push ebx
lea ecx, [esp + 0xf8]
push 0x5cfdb4
push ecx
call fcn.004ce616
push ebx
lea edx, [esp + 0xec]
push 0x5cfdb4
push edx
call fcn.004ce616
add esp, 0x24
cmp word [ebp + 0x1c4], bx
jne 0x46fa0e
push ebx
lea eax, [esp + 0x198]
push 0x5cfdb0
push eax
call fcn.004ce616
push ebx
lea ecx, [esp + 0x104]
push 0x5cfdb0
push ecx
call fcn.004ce616
add esp, 0x18
cmp word [ebp + 0x1c4], 1
jne 0x46fa37
cmp word [ebp + 0x1c6], bx
jne 0x46fa37
push ebx
lea edx, [esp + 0xf8]
push 0x5cfdb0
push edx
call fcn.004ce616
add esp, 0xc
mov eax, dword [esp + 0x1770]
cmp eax, 0x400
ja 0x47019f
cmp eax, ebx
jne 0x46fafe
push ebx
lea eax, [esp + 0x20]
push 0x5cfdb4
push eax
call fcn.004ce616
push ebx
lea ecx, [esp + 0x38]
push 0x5cfdb4
push ecx
call fcn.004ce616
push ebx
lea edx, [esp + 0xf8]
push 0x5cfdb4
push edx
call fcn.004ce616
push ebx
lea eax, [esp + 0x2a8]
push 0x5cfdb4
push eax
call fcn.004ce616
push ebx
lea ecx, [esp + 0x474]
push 0x5cfdb4
push ecx
call fcn.004ce616
push ebx
lea edx, [esp + 0x400]
push 0x5cfdb4
push edx
call fcn.004ce616
add esp, 0x48
lea eax, [esp + 0x4c0]
push ebx
push 0x5cfdb4
push eax
call fcn.004ce616
push ebx
lea ecx, [esp + 0x58]
push 0x5cfdb4
push ecx
call fcn.004ce616
push ebx
lea edx, [esp + 0xf8c]
push 0x5cfdb4
push edx
call fcn.004ce616
add esp, 0x24
jmp 0x46fcbb
lea esi, [ebp + 0x5f0]
mov ecx, 0xa
lea edi, [esp + 0x228]
mov al, byte [ebp + 0x69d]
rep movsd dword es:[edi], dword [esi]
movsw word es:[edi], word [esi]
lea esi, [ebp + 0xca4]
mov ecx, 0xa
lea edi, [esp + 0x1fc]
mov dl, byte [ebp + 0x69c]
rep movsd dword es:[edi], dword [esi]
movsw word es:[edi], word [esi]
lea esi, [ebp + 0xcce]
mov ecx, 0xa
lea edi, [esp + 0x254]
mov byte [esp + 0x17], al
rep movsd dword es:[edi], dword [esi]
mov cl, byte [ebp + 0x69b]
lea eax, [esp + 0x18]
mov byte [esp + 0x16], cl
mov byte [esp + 0x15], dl
mov edx, dword [ebp + 0xaa4]
lea ecx, [esp + 0x5a4]
push eax
push ecx
lea eax, [ebp + 0xaa8]
push edx
push eax
mov dword [esp + 0x28], 0x1fc
movsw word es:[edi], word [esi]
call fcn.00473310
lea esi, [ebp + 0x61a]
mov ecx, 0x20
lea edi, [esp + 0x350]
lea edx, [esp + 0x2c]
rep movsd dword es:[edi], dword [esi]
movsx ecx, byte [esp + 0x27]
push ecx
push 0x5cfdb4
push edx
call fcn.004ce616
movsx eax, byte [esp + 0x32]
push eax
lea ecx, [esp + 0x48]
push 0x5cfdb4
push ecx
call fcn.004ce616
movsx edx, byte [esp + 0x3d]
push edx
lea eax, [esp + 0x108]
push 0x5cfdb4
push eax
call fcn.004ce616
lea edi, [esp + 0x374]
or ecx, 0xffffffff
xor eax, eax
add esp, 0x34
repne scasb al, byte es:[edi]
not ecx
dec ecx
je 0x46fc2f
lea ecx, [esp + 0x38]
push 0x10
push ecx
lea edi, [esp + 0x348]
or ecx, 0xffffffff
lea edx, [esp + 0x348]
repne scasb al, byte es:[edi]
not ecx
dec ecx
push ecx
push edx
call fcn.0047b370
lea eax, [esp + 0x290]
lea ecx, [esp + 0x48]
push eax
push 0x10
push ecx
call fcn.0046b4d0
add esp, 0x1c
jmp 0x46fc45
push ebx
lea edx, [esp + 0x284]
push 0x5cfdb4
push edx
call fcn.004ce616
add esp, 0xc
lea eax, [esp + 0x440]
lea ecx, [esp + 0x228]
push eax
push 0x2a
push ecx
call fcn.0046b4d0
lea edx, [esp + 0x3cc]
lea eax, [esp + 0x208]
push edx
push 0x2a
push eax
call fcn.0046b4d0
lea ecx, [esp + 0x4d8]
lea edx, [esp + 0x26c]
push ecx
push 0x2a
push edx
call fcn.0046b4d0
mov eax, dword [esp + 0x3c]
lea ecx, [esp + 0x6c]
push eax
push 0x5cfdb4
push ecx
call fcn.004ce616
mov eax, dword [esp + 0x48]
lea edx, [esp + 0xfa0]
push edx
lea ecx, [esp + 0x5d8]
push eax
push ecx
call fcn.0046b4d0
add esp, 0x3c
mov eax, dword [ebp + 0x78]
cmp eax, 0xffffffff
jne 0x46fcc8
mov eax, 1
cmp dword [ebp + 0x1d8], 1
jne 0x46fcd6
or eax, 0x1000000
push eax
lea edx, [esp + 0xbc]
push 0x5cfe3c
push edx
call fcn.004ce616
lea eax, [esp + 0xf7c]
lea ecx, [esp + 0x54]
push eax
lea edx, [esp + 0x4d0]
push ecx
lea eax, [esp + 0x3d4]
push edx
lea ecx, [esp + 0x458]
push eax
lea edx, [esp + 0x29c]
push ecx
lea eax, [esp + 0xfc]
push edx
lea ecx, [esp + 0x4c]
push eax
lea edx, [esp + 0x44]
push ecx
lea eax, [esp + 0xe4]
push edx
lea ecx, [esp + 0x190]
push eax
lea edx, [esp + 0x104]
push ecx
lea eax, [esp + 0x120]
push edx
lea ecx, [esp + 0x130]
push eax
lea edx, [esp + 0x194]
push ecx
lea eax, [esp + 0x18c]
push edx
lea ecx, [esp + 0x1dc]
push eax
lea edx, [esp + 0xb4]
push ecx
lea eax, [esp + 0xd0]
push edx
lea ecx, [esp + 0x210]
push eax
lea edx, [esp + 0x160]
push ecx
lea eax, [esp + 0xd0]
push edx
push eax
push 0x16
push 0x5cfdac
call fcn.0047a330
mov edx, eax
add esp, 0x6c
cmp edx, ebx
jne 0x46fdbb
push ebp
push 0x4a
call fcn.0046ebe0
add esp, 8
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x1744
ret
mov edi, edx
or ecx, 0xffffffff
xor eax, eax
lea esi, [esp + 0x136c]
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov dword [esp + 0x10], esi
mov eax, ecx
mov esi, edi
mov edi, dword [esp + 0x10]
push edx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
call fcn.004ce2e1
lea ecx, [esp + 0x60]
lea edx, [esp + 0x1370]
push ecx
push edx
push str.findFirstUnitEx2
push 3
push 0x5cfc9c
call fcn.0047a330
mov edx, eax
add esp, 0x18
cmp edx, ebx
je 0x47019f
mov edi, edx
or ecx, 0xffffffff
xor eax, eax
lea esi, [esp + 0xb88]
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov dword [esp + 0x10], esi
mov eax, ecx
mov esi, edi
mov edi, dword [esp + 0x10]
push edx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
call fcn.004ce2e1
lea ecx, [esp + 0xb8c]
push ecx
call fcn.0047a410
mov edx, eax
add esp, 8
cmp edx, ebx
je 0x47019f
mov edi, edx
or ecx, 0xffffffff
xor eax, eax
lea esi, [esp + 0xb88]
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov dword [esp + 0x10], esi
mov eax, ecx
mov esi, edi
mov edi, dword [esp + 0x10]
push edx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
call fcn.004ce2e1
lea ecx, [esp + 0x7a4]
lea edx, [esp + 0xb8c]
push ecx
push ebp
push edx
call fcn.004780b0
add esp, 0x10
cmp ax, bx
je 0x46fec9
push ebp
push eax
call fcn.0046eb00
add esp, 8
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x1744
ret
lea eax, [esp + 0x7a0]
push eax
call fcn.0047a100
mov esi, eax
add esp, 4
cmp esi, ebx
jne 0x46feee
pop edi
pop esi
pop ebp
mov ax, 0x42
pop ebx
add esp, 0x1744
ret
xor ecx, ecx
xor eax, eax
mov dword [esp + 0x5c], ecx
lea edi, [esp + 0x540]
mov dword [esp + 0x60], ecx
lea edx, [esp + 0x7a0]
mov dword [esp + 0x64], ecx
mov ecx, 0x19
rep stosd dword es:[edi], eax
lea eax, [esp + 0x540]
push edx
lea ecx, [esp + 0x2c4]
push eax
push ecx
push esi
push 3
push 0x5cfc9c
call fcn.00479f60
push esi
mov edi, eax
call fcn.004ce2e1
add esp, 0x1c
cmp di, bx
je 0x46ff50
pop edi
pop esi
pop ebp
mov ax, 0x42
pop ebx
add esp, 0x1744
ret
mov dword [esp + 0x10], ebx
mov byte [esp + 0x2ff], bl
mov edi, str.error
lea esi, [esp + 0x2c0]
mov dl, byte [esi]
mov cl, byte [edi]
mov al, dl
cmp dl, cl
jne 0x46ff8f
cmp al, bl
je 0x46ff8b
mov cl, byte [esi + 1]
mov dl, byte [edi + 1]
mov al, cl
cmp cl, dl
jne 0x46ff8f
add esi, 2
add edi, 2
cmp al, bl
jne 0x46ff67
xor eax, eax
jmp 0x46ff94
sbb eax, eax
sbb eax, 0xffffffff
cmp eax, ebx
jne 0x46ffc3
lea edx, [esp + 0x540]
push edx
call fcn.004ce463
add esp, 4
cmp ax, 0x46
mov dword [esp + 0x10], eax
je 0x46ffc3
cmp ax, 0x50
je 0x46ffc3
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x1744
ret
lea eax, [esp + 0x16c]
lea ecx, [esp + 0x1a8]
push eax
lea edx, [esp + 0x184]
push ecx
lea eax, [esp + 0xcc]
push edx
lea ecx, [esp + 0xb8]
push eax
lea edx, [esp + 0xb0]
push ecx
lea eax, [esp + 0x7b4]
push edx
push eax
push 6
push 0x5cfdac
call fcn.00479f60
add esp, 0x24
test eax, eax
je 0x47001d
pop edi
pop esi
pop ebp
mov ax, 0x42
pop ebx
add esp, 0x1744
ret
lea ecx, [esp + 0xa0]
mov byte [esp + 0xab], bl
push ecx
mov byte [esp + 0xbb], bl
mov byte [esp + 0xd3], bl
mov byte [esp + 0x197], bl
mov byte [esp + 0x1bf], bl
mov byte [esp + 0x183], bl
call fcn.004ce463
mov dx, word [esp + 0x1760]
mov word [ebp + 0x44], ax
lea eax, [esp + 0xc8]
mov word [ebp + 0x42], dx
push eax
call fcn.004ce463
lea ecx, [esp + 0x188]
mov word [ebp + 0x1bc], ax
push ecx
call fcn.004ce463
lea edx, [esp + 0x1b4]
mov dword [ebp + 0x1cc], eax
push edx
call fcn.004ce463
mov dword [ebp + 0x1d4], eax
lea eax, [esp + 0x17c]
push eax
call fcn.004ce463
mov edx, dword [ebp + 0x1cc]
add esp, 0x14
xor ecx, ecx
cmp edx, 5
je 0x4700c0
cmp edx, 7
jne 0x4700e0
test ah, 0x40
mov ecx, 8
je 0x4700cf
mov ecx, 0xd
test ah, 0x20
je 0x4700e0
test byte [ebp + 0x1d4], 0x10
je 0x4700e0
or ecx, 2
mov ax, word [ebp + 0x8c]
mov dword [ebp + 0x1d0], ecx
cmp ax, 1
je 0x4700f9
cmp ax, 2
jne 0x47010a
mov ecx, dword [esp + 0x1760]
push ecx
push ebp
call fcn.0046ea20
add esp, 8
mov edi, dword [esp + 0x10]
cmp di, bx
je 0x47011f
cmp di, 0x46
je 0x47011f
cmp di, 0x50
jne 0x47017c
movsx esi, word [ebp + 0x70]
cmp esi, 9
jge 0x47012f
inc esi
mov word [ebp + 0x70], si
jmp 0x470135
mov word [ebp + 0x70], bx
xor esi, esi
lea edx, [esp + 0xac]
push edx
call fcn.004ce463
add esp, 4
cmp di, bx
mov dword [ebp + esi*4 + 0x48], eax
jne 0x47018a
mov eax, dword [ebp + 0x74]
inc eax
mov dword [ebp + 0x74], eax
lea eax, [ebp + 0x7c]
push eax
call fcn.004e7776
lea esi, [ebp + 0x80]
push esi
mov dword [esi], 0x78
call fcn.004e7776
mov ecx, dword [ebp + 0x78]
mov eax, dword [esi]
add esp, 8
add eax, ecx
mov dword [esi], eax
mov ax, di
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x1744
ret
cmp di, 0x50
jne 0x47017c
pop edi
pop esi
pop ebp
mov ax, 0x46
pop ebx
add esp, 0x1744
ret
pop edi
pop esi
pop ebp
mov ax, 0x4a
pop ebx
add esp, 0x1744
ret