Function at 0x10198ac0
Capabilities:
Get session user name

Disassembly:
sub esp, 0x98c
push ebx
push ebp
push esi
mov esi, dword [esp + 0x99c]
xor ebx, ebx
push edi
cmp esi, ebx
jne 0x10198ae8
pop edi
pop esi
pop ebp
mov ax, 0x10
pop ebx
add esp, 0x98c
ret 4
mov ecx, dword [0x10283b08]
mov eax, dword [esi + 0x54]
push ecx
push eax
call fcn.10197940
mov ebp, eax
add esp, 8
cmp ebp, ebx
jne 0x10198b12
pop edi
pop esi
pop ebp
mov ax, 2
pop ebx
add esp, 0x98c
ret 4
cmp word [ebp + 0x44], bx
jne 0x10198b29
pop edi
pop esi
pop ebp
mov ax, 0x47
pop ebx
add esp, 0x98c
ret 4
cmp dword [ebp + 0x1b0], 0x18
jne 0x10198b43
pop edi
pop esi
pop ebp
mov ax, 0x48
pop ebx
add esp, 0x98c
ret 4
mov ecx, 0x64
xor eax, eax
lea edi, [esp + 0x1cc]
mov byte [esp + 0x24], bl
rep stosd dword es:[edi], eax
mov ecx, 0x64
lea edi, [esp + 0x4ec]
rep stosd dword es:[edi], eax
mov ecx, 0x64
lea edi, [esp + 0x35c]
mov byte [esp + 0x18], bl
mov byte [esp + 0x5c], bl
mov byte [esp + 0x74], bl
mov byte [esp + 0xe0], bl
mov byte [esp + 0x14c], bl
mov byte [esp + 0xa0], bl
mov byte [esp + 0x18c], bl
mov byte [esp + 0x10c], bl
mov byte [esp + 0x30], bl
mov byte [esp + 0x80], bl
mov byte [esp + 0x50], bl
rep stosd dword es:[edi], eax
movsx edx, word [ebp + 0x5a]
lea ecx, [esp + 0x24]
mov ax, word [ebp + edx*2 + 0x46]
push eax
push 0x1020dd80
push ecx
call fcn.101bc928
xor edx, edx
lea eax, [esp + 0x68]
mov dx, word [ebp + 0x42]
push edx
push 0x1020dd80
push eax
call fcn.101bc928
xor ecx, ecx
lea edx, [esp + 0x30]
mov cx, word [ebp + 0x44]
push ecx
push 0x1020dd80
push edx
call fcn.101bc928
mov eax, dword [0x1021d290]
lea ecx, [esp + 0x11c]
push eax
push 0x1020dd7c
push ecx
call fcn.101bc928
mov edx, dword [ebp + 0x1a8]
lea eax, [esp + 0xbc]
push edx
push 0x1020dd7c
push eax
call fcn.101bc928
push 0x284
lea ecx, [esp + 0x12c]
push 0x1020dd80
push ecx
call fcn.101bc928
add esp, 0x48
lea edx, [esp + 0x80]
push ebx
push 0x1020dd80
push edx
call fcn.101bc928
push ebx
lea eax, [esp + 0x60]
push 0x1020dd80
push eax
call fcn.101bc928
add esp, 0x18
cmp word [ebp + 0x1ac], bx
jne 0x10198c99
push ebx
lea ecx, [esp + 0xfc]
push 0x1020dd7c
push ecx
call fcn.101bc928
push ebx
lea edx, [esp + 0x9c]
push 0x1020dd7c
push edx
call fcn.101bc928
add esp, 0x18
cmp word [ebp + 0x1ac], 1
jne 0x10198cc2
cmp word [ebp + 0x1ae], bx
jne 0x10198cc2
push ebx
lea eax, [esp + 0x90]
push 0x1020dd7c
push eax
call fcn.101bc928
add esp, 0xc
lea ecx, [esp + 0x14c]
push 0x40
push ecx
push esi
mov dword [ebp + 0x5c], ebx
mov word [ebp + 0x44], bx
call fcn.101960c0
cmp ax, bx
jne 0x101990ad
lea edx, [esp + 0x10c]
push 0x40
push edx
call fcn.101935c0
add esp, 8
test eax, eax
jne 0x10198d18
lea eax, [esp + 0x30]
push ebx
lea ecx, [esp + 0x110]
push eax
push ecx
call fcn.10192ad0
add esp, 0xc
test eax, eax
je 0x10198d18
mov byte [esp + 0x30], bl
jmp 0x10198d1e
cmp byte [esp + 0x30], bl
jne 0x10198d50
lea edx, [esp + 0x30]
push 0x40
push edx
call fcn.10192f50
add esp, 8
test eax, eax
je 0x10198d50
mov eax, dword [str.NoName]
mov cx, word [0x1020dd88]
mov dl, byte [0x1020dd8a]
mov dword [esp + 0x30], eax
mov word [esp + 0x34], cx
mov byte [esp + 0x36], dl
lea eax, [esp + 0x14c]
push str.RNBO_SPN_LOCAL
push eax
call fcn.101d5c48
add esp, 8
test eax, eax
jne 0x10198dab
mov ecx, dword [str.RNBO_SPN_LOCAL]
mov edx, dword [0x1020cd58]
mov eax, dword [0x1020cd5c]
mov dword [esp + 0x10c], ecx
mov cx, word [0x1020cd60]
mov dword [esp + 0x110], edx
mov dl, byte [0x1020cd62]
mov dword [esp + 0x114], eax
mov word [esp + 0x118], cx
mov byte [esp + 0x11a], dl
lea eax, [esp + 0x14]
lea ecx, [esp + 0xa0]
push eax
push ecx
mov dword [esp + 0x1c], 0x40
call dword [sym.imp.ADVAPI32.dll_GetUserNameA]
cmp eax, 1
jne 0x10198e17
lea edx, [esp + 0x18c]
push 0x40
lea eax, [esp + 0xa4]
push edx
push eax
call fcn.1019ec30
add esp, 0xc
cmp eax, 0xffffffff
je 0x10198e17
lea edi, [esp + 0x18c]
or ecx, 0xffffffff
xor eax, eax
lea edx, [esp + 0xa0]
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 0x10198e3f
mov ecx, dword [str.NoName]
mov dx, word [0x1020dd88]
mov al, byte [0x1020dd8a]
mov dword [esp + 0xa0], ecx
mov word [esp + 0xa4], dx
mov byte [esp + 0xa6], al
mov ecx, dword [ebp + 0x6c]
lea edx, [esp + 0x74]
push ecx
push 0x1020dd7c
push edx
call fcn.101bc928
lea eax, [esp + 0xf8]
lea ecx, [esp + 0x5c]
push eax
lea edx, [esp + 0x90]
push ecx
lea eax, [esp + 0xa0]
push edx
lea ecx, [esp + 0x110]
push eax
lea edx, [esp + 0x4c]
push ecx
lea eax, [esp + 0x12c]
push edx
lea ecx, [esp + 0xc4]
push eax
lea edx, [esp + 0x9c]
push ecx
lea eax, [esp + 0x88]
push edx
lea ecx, [esp + 0x48]
push eax
lea edx, [esp + 0x58]
push ecx
push edx
push 0xc
push 0x1020dd78
call fcn.1019fa00
mov edx, eax
add esp, 0x44
cmp edx, ebx
jne 0x10198ec3
push ebp
push 0x4a
jmp 0x101990a5
mov edi, edx
or ecx, 0xffffffff
xor eax, eax
lea esi, [esp + 0x4ec]
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.101bceaa
lea ecx, [esp + 0xe4]
lea edx, [esp + 0x4f0]
push ecx
push edx
push str.findNextUnitEx2
push 3
push 0x1020dc74
call fcn.1019fa00
mov edx, eax
add esp, 0x18
cmp edx, ebx
jne 0x10198f27
push ebp
push 0x4a
jmp 0x101990a5
mov edi, edx
or ecx, 0xffffffff
xor eax, eax
lea esi, [esp + 0x35c]
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.101bceaa
lea ecx, [esp + 0x360]
push ecx
call fcn.1019fae0
mov edx, eax
add esp, 8
cmp edx, ebx
jne 0x10198f77
push ebp
push 0x4a
jmp 0x101990a5
mov edi, edx
or ecx, 0xffffffff
xor eax, eax
lea esi, [esp + 0x35c]
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.101bceaa
lea ecx, [esp + 0x1d0]
lea edx, [esp + 0x360]
push ecx
push ebp
push edx
call fcn.1019d090
add esp, 0x10
cmp ax, bx
je 0x10198fde
push ebp
push eax
call fcn.10196660
add esp, 8
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x98c
ret 4
lea eax, [esp + 0x1cc]
push eax
call fcn.1019f7d0
mov esi, eax
add esp, 4
cmp esi, ebx
jne 0x10198ffc
push ebp
push 0x42
jmp 0x101990a5
lea ecx, [esp + 0x1cc]
lea edx, [esp + 0x80c]
push ecx
lea eax, [esp + 0x680]
push edx
push eax
push esi
push 3
push 0x1020dc74
call fcn.1019f630
mov edi, eax
push esi
mov dword [esp + 0x2c], edi
call fcn.101bceaa
add esp, 0x1c
cmp di, bx
je 0x1019903a
push ebp
push 0x42
jmp 0x101990a5
mov byte [esp + 0x80b], bl
mov byte [esp + 0x99b], bl
mov edi, str.error
lea esi, [esp + 0x67c]
mov cl, byte [esi]
mov dl, byte [edi]
mov al, cl
cmp cl, dl
jne 0x1019907c
cmp al, bl
je 0x10199078
mov dl, byte [esi + 1]
mov cl, byte [edi + 1]
mov al, dl
cmp dl, cl
jne 0x1019907c
add esi, 2
add edi, 2
cmp al, bl
jne 0x10199054
xor eax, eax
jmp 0x10199081
sbb eax, eax
sbb eax, 0xffffffff
cmp eax, ebx
jne 0x101990ba
lea eax, [esp + 0x80c]
push eax
call fcn.101bfa53
mov edi, eax
add esp, 4
cmp di, 0x46
je 0x101990be
cmp di, 0x50
je 0x101990be
push ebp
push edi
call fcn.10196730
add esp, 8
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x98c
ret 4
mov edi, dword [esp + 0x10]
lea ecx, [esp + 0x68]
lea edx, [esp + 0x24]
push ecx
lea eax, [esp + 0x1c]
push edx
lea ecx, [esp + 0x1d4]
push eax
push ecx
push 3
push 0x1020dd78
call fcn.1019f630
add esp, 0x18
test eax, eax
je 0x101990ed
push ebp
push 0x42
jmp 0x101990a5
mov byte [esp + 0x73], bl
movsx esi, word [ebp + 0x5a]
cmp esi, 9
jge 0x10199101
inc esi
mov word [ebp + 0x5a], si
jmp 0x10199107
mov word [ebp + 0x5a], bx
xor esi, esi
lea edx, [esp + 0x18]
push edx
call fcn.101bfa53
mov word [ebp + 0x44], ax
lea eax, [esp + 0x28]
push eax
call fcn.101bfa53
lea ecx, [esp + 0x70]
mov word [ebp + esi*2 + 0x46], ax
push ecx
call fcn.101bfa53
add esp, 0xc
cmp di, bx
mov word [ebp + 0x1a4], ax
jne 0x10199166
lea edx, [ebp + 0x64]
push edx
call fcn.101cdda5
mov eax, dword [ebp + 0x60]
mov ecx, dword [esp + 0x9a4]
add esp, 4
mov dword [ebp + 0x68], 0x78
push eax
push ecx
call fcn.1019b3d0
jmp 0x101990a3
cmp di, 0x50
jne 0x101990a3
pop edi
pop esi
pop ebp
mov ax, 0x46
pop ebx
add esp, 0x98c
ret 4