Function at 0x1000ad30
Capabilities:
Get session user name

Disassembly:
mov eax, 0x1748
call fcn.1003d710
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
mov word [esp + 0x25], ax
mov byte [esp + 0x33], cl
mov byte [esp + 0x280], cl
mov ecx, 0xf
lea edi, [esp + 0x281]
mov byte [esp + 0x27], al
mov byte [esp + 0x28], al
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 + 0x3c5]
mov byte [esp + 0x3c4], 0
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 + 0x4c5]
mov byte [esp + 0x4c4], 0
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 + 0x445]
mov byte [esp + 0x444], 0
rep stosd dword es:[edi], eax
xor edx, edx
mov ecx, 0xfe
stosw word es:[edi], ax
mov dword [esp + 0x49], edx
mov byte [esp + 0xf74], 0
mov dword [esp + 0x4d], edx
mov byte [esp + 0x1c], 0
stosb byte es:[edi], al
mov dword [esp + 0x51], edx
xor eax, eax
lea edi, [esp + 0xf75]
mov dword [esp + 0x55], edx
rep stosd dword es:[edi], eax
mov word [esp + 0x59], dx
mov ecx, 0xa
lea edi, [esp + 0x229]
mov byte [esp + 0x48], al
mov byte [esp + 0x228], dl
mov byte [esp + 0x1fc], dl
rep stosd dword es:[edi], eax
stosb byte es:[edi], al
mov ecx, 0xa
xor eax, eax
lea edi, [esp + 0x1fd]
mov byte [esp + 0x254], dl
rep stosd dword es:[edi], eax
stosb byte es:[edi], al
mov ecx, 0xa
xor eax, eax
lea edi, [esp + 0x255]
mov byte [esp + 0x300], dl
rep stosd dword es:[edi], eax
stosb byte es:[edi], al
mov ecx, 0x20
xor eax, eax
lea edi, [esp + 0x301]
mov byte [esp + 0x5b], dl
rep stosd dword es:[edi], eax
mov byte [esp + 0x5a8], al
mov ecx, 0x7e
lea edi, [esp + 0x5a9]
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 + 0x7a4]
mov dword [esp + 0x3d], eax
push 0x40
mov dword [esp + 0x45], eax
mov dword [esp + 0x18], edx
mov word [esp + 0x49], ax
mov byte [esp + 0x3c], dl
rep stosd dword es:[edi], eax
mov ecx, 0xfa
lea edi, [esp + 0xb90]
rep stosd dword es:[edi], eax
mov ecx, 0xfa
lea edi, [esp + 0x1374]
rep stosd dword es:[edi], eax
lea ecx, [esp + 0x1c0]
mov byte [esp + 0x4b], al
push ecx
mov byte [esp + 0x64], al
mov byte [esp + 0x110], al
mov byte [esp + 0x38c], al
mov byte [esp + 0x1c4], al
mov byte [esp + 0x88], al
mov byte [esp + 0xf0], al
mov byte [esp + 0xd8], al
mov byte [esp + 0xc0], al
call fcn.10006fc0
add esp, 8
test eax, eax
jne 0x1000af3d
push eax
lea edx, [esp + 0x84]
lea eax, [esp + 0x1c0]
push edx
push eax
call fcn.10006480
add esp, 0xc
test eax, eax
je 0x1000af3d
mov byte [esp + 0x80], 0
jmp 0x1000af48
mov al, byte [esp + 0x80]
test al, al
jne 0x1000af86
lea ecx, [esp + 0x80]
push 0x40
push ecx
call fcn.10006910
add esp, 8
test eax, eax
je 0x1000af86
mov edx, dword [str.NoName]
mov ax, word [0x1005f73c]
mov cl, byte [0x1005f73e]
mov dword [esp + 0x80], edx
mov word [esp + 0x84], ax
mov byte [esp + 0x86], cl
mov edx, dword [esp + 0x1764]
push str.RNBO_SPN_LOCAL
push edx
call dword [sym.imp.MSVCR100.dll__stricmp]
add esp, 8
test eax, eax
jne 0x1000afe1
mov eax, dword [str.RNBO_SPN_LOCAL]
mov ecx, dword [0x1005e604]
mov edx, dword [0x1005e608]
mov dword [esp + 0x1bc], eax
mov ax, word [0x1005e60c]
mov dword [esp + 0x1c0], ecx
mov cl, byte [0x1005e60e]
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 0x1000b077
lea ecx, [esp + 0x384]
push 0x40
lea edx, [esp + 0x10c]
push ecx
push edx
call fcn.100192b0
add esp, 0xc
cmp eax, 0xffffffff
jne 0x1000b04a
mov eax, dword [str.NoName]
mov cx, word [0x1005f73c]
mov dl, byte [0x1005f73e]
mov dword [esp + 0x108], eax
mov word [esp + 0x10c], cx
mov byte [esp + 0x10e], dl
jmp 0x1000b09f
lea edi, [esp + 0x384]
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 0x1000b09f
mov ecx, dword [str.NoName]
mov dx, word [0x1005f73c]
mov al, byte [0x1005f73e]
mov dword [esp + 0x108], ecx
mov word [esp + 0x10c], dx
mov byte [esp + 0x10e], al
mov eax, dword [esp + 0x1760]
xor ecx, ecx
mov ebx, dword [sym.imp.MSVCR100.dll_sprintf]
mov dword [esp + 0x68], ecx
mov dword [esp + 0x6c], ecx
xor edx, edx
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 0x1005f734
push ecx
mov dword [esp + 0x88], edx
call ebx
mov ebp, dword [esp + 0x1768]
lea eax, [esp + 0x80]
mov edx, dword [ebp + 0x84]
push edx
push 0x1005f730
push eax
call ebx
mov ecx, dword [esp + 0x1780]
lea edx, [esp + 0x160]
and ecx, 0xffff
push ecx
push 0x1005f734
push edx
call ebx
mov eax, dword [0x100648c4]
lea ecx, [esp + 0x1b8]
push eax
push 0x1005f730
push ecx
call ebx
mov edx, dword [esp + 0x179c]
lea eax, [esp + 0x184]
and edx, 0xffff
push edx
push 0x1005f734
push eax
call ebx
mov ecx, dword [ebp + 0x1c0]
lea edx, [esp + 0x130]
push ecx
push 0x1005f730
push edx
call ebx
add esp, 0x48
lea eax, [esp + 0x160]
push 0x2c6
push 0x1005f734
push eax
call ebx
push 0
lea ecx, [esp + 0xf8]
push 0x1005f734
push ecx
call ebx
push 0
lea edx, [esp + 0xec]
push 0x1005f734
push edx
call ebx
add esp, 0x24
cmp word [ebp + 0x1c4], 0
jne 0x1000b1ca
push 0
lea eax, [esp + 0x198]
push 0x1005f730
push eax
call ebx
push 0
lea ecx, [esp + 0x104]
push 0x1005f730
push ecx
call ebx
add esp, 0x18
cmp word [ebp + 0x1c4], 1
jne 0x1000b1f2
cmp word [ebp + 0x1c6], 0
jne 0x1000b1f2
push 0
lea edx, [esp + 0xf8]
push 0x1005f730
push edx
call ebx
add esp, 0xc
mov eax, dword [esp + 0x1774]
cmp eax, 0x400
ja 0x1000b91d
test eax, eax
jne 0x1000b2a6
push eax
lea eax, [esp + 0x20]
push 0x1005f734
push eax
call ebx
push 0
lea ecx, [esp + 0x38]
push 0x1005f734
push ecx
call ebx
push 0
lea edx, [esp + 0xf8]
push 0x1005f734
push edx
call ebx
push 0
lea eax, [esp + 0x2a8]
push 0x1005f734
push eax
call ebx
push 0
lea ecx, [esp + 0x3f8]
push 0x1005f734
push ecx
call ebx
push 0
lea edx, [esp + 0x504]
push 0x1005f734
push edx
call ebx
add esp, 0x48
lea eax, [esp + 0x444]
push 0
push 0x1005f734
push eax
call ebx
push 0
lea ecx, [esp + 0x58]
push 0x1005f734
push ecx
call ebx
push 0
lea edx, [esp + 0xf90]
push 0x1005f734
push edx
call ebx
add esp, 0x24
jmp 0x1000b456
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 + 0x12], al
rep movsd dword es:[edi], dword [esi]
mov cl, byte [ebp + 0x69b]
lea eax, [esp + 0x14]
mov byte [esp + 0x11], cl
mov byte [esp + 0x13], dl
mov edx, dword [ebp + 0xaa4]
lea ecx, [esp + 0x5a8]
push eax
push ecx
lea eax, [ebp + 0xaa8]
push edx
push eax
mov dword [esp + 0x24], 0x1fc
movsw word es:[edi], word [esi]
call fcn.10010670
lea esi, [ebp + 0x61a]
mov ecx, 0x20
lea edi, [esp + 0x310]
lea edx, [esp + 0x2c]
rep movsd dword es:[edi], dword [esi]
movsx ecx, byte [esp + 0x22]
push ecx
push 0x1005f734
push edx
movsb byte es:[edi], byte [esi]
call ebx
movsx eax, byte [esp + 0x2d]
push eax
lea ecx, [esp + 0x48]
push 0x1005f734
push ecx
call ebx
movsx edx, byte [esp + 0x3b]
push edx
lea eax, [esp + 0x108]
push 0x1005f734
push eax
call ebx
lea edi, [esp + 0x334]
or ecx, 0xffffffff
xor eax, eax
add esp, 0x34
repne scasb al, byte es:[edi]
not ecx
dec ecx
je 0x1000b3cf
lea ecx, [esp + 0x38]
push 0x10
push ecx
lea edi, [esp + 0x308]
or ecx, 0xffffffff
lea edx, [esp + 0x308]
repne scasb al, byte es:[edi]
not ecx
dec ecx
push ecx
push edx
call fcn.1001af30
lea eax, [esp + 0x290]
lea ecx, [esp + 0x48]
push eax
push 0x10
push ecx
call fcn.100069f0
add esp, 0x1c
jmp 0x1000b3e3
push 0
lea edx, [esp + 0x284]
push 0x1005f734
push edx
call ebx
add esp, 0xc
lea eax, [esp + 0x3c4]
lea ecx, [esp + 0x228]
push eax
push 0x2a
push ecx
call fcn.100069f0
lea edx, [esp + 0x4d0]
lea eax, [esp + 0x208]
push edx
push 0x2a
push eax
call fcn.100069f0
lea ecx, [esp + 0x45c]
lea edx, [esp + 0x26c]
push ecx
push 0x2a
push edx
call fcn.100069f0
mov eax, dword [esp + 0x38]
lea ecx, [esp + 0x6c]
push eax
push 0x1005f734
push ecx
call ebx
mov eax, dword [esp + 0x44]
lea edx, [esp + 0xfa4]
push edx
lea ecx, [esp + 0x5dc]
push eax
push ecx
call fcn.100069f0
add esp, 0x3c
mov eax, dword [ebp + 0x78]
cmp eax, 0xffffffff
jne 0x1000b463
mov eax, 1
cmp dword [ebp + 0x1d8], 1
jne 0x1000b471
or eax, 0x1000000
push eax
lea edx, [esp + 0xbc]
push 0x1005f7bc
push edx
call ebx
lea eax, [esp + 0xf80]
lea ecx, [esp + 0x54]
push eax
lea edx, [esp + 0x454]
push ecx
lea eax, [esp + 0x4d8]
push edx
lea ecx, [esp + 0x3dc]
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 0x1005f72c
call fcn.10019ee0
mov edx, eax
add esp, 0x6c
test edx, edx
jne 0x1000b553
push ebp
push 0x4a
call fcn.1000a580
add esp, 8
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x1748
ret
mov edi, edx
or ecx, 0xffffffff
xor eax, eax
lea ebx, [esp + 0x1370]
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
push edx
mov eax, ecx
mov esi, edi
mov edi, ebx
mov ebx, dword [sym.imp.MSVCR100.dll_free]
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
call ebx
lea ecx, [esp + 0x60]
lea edx, [esp + 0x1374]
push ecx
push edx
push str.findFirstUnitEx2
push 3
push 0x1005f61c
call fcn.10019ee0
mov edx, eax
add esp, 0x18
test edx, edx
je 0x1000b91d
mov edi, edx
or ecx, 0xffffffff
xor eax, eax
lea esi, [esp + 0xb8c]
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov dword [esp + 0x18], esi
mov eax, ecx
mov esi, edi
mov edi, dword [esp + 0x18]
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 ebx
lea ecx, [esp + 0xb90]
push ecx
call fcn.10019fc0
mov edx, eax
add esp, 8
test edx, edx
je 0x1000b91d
mov edi, edx
or ecx, 0xffffffff
xor eax, eax
lea esi, [esp + 0xb8c]
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov dword [esp + 0x18], esi
mov eax, ecx
mov esi, edi
mov edi, dword [esp + 0x18]
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 ebx
lea ecx, [esp + 0x7a8]
lea edx, [esp + 0xb90]
push ecx
push ebp
push edx
call fcn.10017cc0
add esp, 0x10
test ax, ax
je 0x1000b658
push ebp
push eax
call fcn.1000a4a0
add esp, 8
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x1748
ret
lea eax, [esp + 0x7a4]
push eax
call fcn.10019cc0
mov esi, eax
add esp, 4
test esi, esi
jne 0x1000b67d
pop edi
pop esi
pop ebp
mov ax, 0x42
pop ebx
add esp, 0x1748
ret
xor ecx, ecx
xor eax, eax
mov dword [esp + 0x5c], ecx
lea edi, [esp + 0x544]
mov dword [esp + 0x60], ecx
lea edx, [esp + 0x7a4]
mov dword [esp + 0x64], ecx
mov ecx, 0x19
rep stosd dword es:[edi], eax
lea eax, [esp + 0x544]
push edx
lea ecx, [esp + 0x2c4]
push eax
push ecx
push esi
push 3
push 0x1005f61c
call fcn.10019b20
push esi
mov edi, eax
call ebx
add esp, 0x1c
test di, di
je 0x1000b6dc
pop edi
pop esi
pop ebp
mov ax, 0x42
pop ebx
add esp, 0x1748
ret
xor ebx, ebx
mov esi, str.error
mov byte [esp + 0x2ff], bl
lea eax, [esp + 0x2c0]
mov dl, byte [eax]
mov cl, dl
cmp dl, byte [esi]
jne 0x1000b715
test cl, cl
je 0x1000b711
mov dl, byte [eax + 1]
mov cl, dl
cmp dl, byte [esi + 1]
jne 0x1000b715
add eax, 2
add esi, 2
test cl, cl
jne 0x1000b6f1
xor eax, eax
jmp 0x1000b71a
sbb eax, eax
sbb eax, 0xffffffff
mov esi, dword [sym.imp.MSVCR100.dll_atoi]
test eax, eax
jne 0x1000b74d
lea eax, [esp + 0x544]
push eax
call esi
mov ebx, eax
add esp, 4
cmp bx, 0x46
je 0x1000b74d
cmp bx, 0x50
je 0x1000b74d
pop edi
pop esi
mov ax, bx
pop ebp
pop ebx
add esp, 0x1748
ret
lea ecx, [esp + 0x16c]
lea edx, [esp + 0x1a8]
push ecx
lea eax, [esp + 0x184]
push edx
lea ecx, [esp + 0xcc]
push eax
lea edx, [esp + 0xb8]
push ecx
lea eax, [esp + 0xb0]
push edx
lea ecx, [esp + 0x7b8]
push eax
push ecx
push 6
push 0x1005f72c
call fcn.10019b20
add esp, 0x24
test eax, eax
je 0x1000b7a7
pop edi
pop esi
pop ebp
mov ax, 0x42
pop ebx
add esp, 0x1748
ret
lea edx, [esp + 0xa0]
mov byte [esp + 0xab], 0
push edx
mov byte [esp + 0xbb], 0
mov byte [esp + 0xd3], 0
mov byte [esp + 0x197], 0
mov byte [esp + 0x1bf], 0
mov byte [esp + 0x183], 0
call esi
mov word [ebp + 0x44], ax
mov ax, word [esp + 0x1764]
lea ecx, [esp + 0xc8]
mov word [ebp + 0x42], ax
push ecx
call esi
lea edx, [esp + 0x188]
mov word [ebp + 0x1bc], ax
push edx
call esi
mov dword [ebp + 0x1cc], eax
lea eax, [esp + 0x1b4]
push eax
call esi
lea ecx, [esp + 0x17c]
mov dword [ebp + 0x1d4], eax
push ecx
call esi
mov ecx, dword [ebp + 0x1cc]
add esp, 0x14
xor edx, edx
cmp ecx, 5
je 0x1000b841
cmp ecx, 7
jne 0x1000b861
test ah, 0x40
mov edx, 8
je 0x1000b850
mov edx, 0xd
test ah, 0x20
je 0x1000b861
test byte [ebp + 0x1d4], 0x10
je 0x1000b861
or edx, 2
mov ax, word [ebp + 0x8c]
mov dword [ebp + 0x1d0], edx
cmp ax, 1
je 0x1000b87a
cmp ax, 2
jne 0x1000b88b
mov edx, dword [esp + 0x1764]
push edx
push ebp
call fcn.1000a3c0
add esp, 8
test bx, bx
je 0x1000b8a0
cmp bx, 0x46
je 0x1000b8a0
cmp bx, 0x50
jne 0x1000b73f
movsx edi, word [ebp + 0x70]
cmp edi, 9
jge 0x1000b8ac
inc edi
jmp 0x1000b8ae
xor edi, edi
lea eax, [esp + 0xac]
mov word [ebp + 0x70], di
push eax
call esi
add esp, 4
mov dword [ebp + edi*4 + 0x48], eax
test bx, bx
jne 0x1000b904
mov eax, dword [ebp + 0x74]
mov edi, dword [sym.imp.MSVCR100.dll__time32]
lea ecx, [ebp + 0x7c]
inc eax
push ecx
mov dword [ebp + 0x74], eax
call edi
lea esi, [ebp + 0x80]
push esi
mov dword [esi], 0x78
call edi
mov edx, dword [ebp + 0x78]
mov eax, dword [esi]
add esp, 8
add eax, edx
mov dword [esi], eax
mov ax, bx
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x1748
ret
cmp bx, 0x50
jne 0x1000b73f
pop edi
pop esi
pop ebp
mov ax, 0x46
pop ebx
add esp, 0x1748
ret
pop edi
pop esi
pop ebp
mov ax, 0x4a
pop ebx
add esp, 0x1748
ret