Function at 0x11096b20
Capabilities:
Get session user name

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x111dfb0f
mov eax, dword fs:[0]
push eax
sub esp, 0x480
mov eax, dword [0x11279148]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov eax, dword [ebp + 8]
xor ebx, ebx
push str.DoRegisterUser_n
mov esi, ecx
mov edi, edx
mov dword [ebp - 0x450], eax
mov dword [ebp - 0x44c], ebx
call fcn.111bd7b0
add esp, 4
cmp edi, ebx
je 0x110970aa
mov eax, dword [ebp + 0xc]
cmp eax, 0xa4
jne 0x11096bf6
mov ecx, dword [esi + 0x384]
push ecx
call sub.MSVCR100.dll_void___cdecl_operator_delete_void__
mov edx, dword [esi + 0x388]
push edx
mov dword [esi + 0x384], ebx
call sub.MSVCR100.dll_void___cdecl_operator_delete_void__
mov eax, dword [esi + 0x38c]
push eax
mov dword [esi + 0x388], ebx
call sub.MSVCR100.dll_void___cdecl_operator_delete_void__
mov ecx, dword [esi + 0x390]
push ecx
mov dword [esi + 0x38c], ebx
call sub.MSVCR100.dll_void___cdecl_operator_delete_void__
mov edx, dword [esi + 0x394]
push edx
mov dword [esi + 0x390], ebx
call sub.MSVCR100.dll_void___cdecl_operator_delete_void__
mov eax, dword [esi + 0x398]
push eax
mov dword [esi + 0x394], ebx
call sub.MSVCR100.dll_void___cdecl_operator_delete_void__
add esp, 0x18
mov dword [esi + 0x398], ebx
jmp 0x11097103
cmp eax, 0xa3
je 0x110970aa
mov ecx, dword [esi + 4]
call fcn.110c7040
cmp word [edi + 6], 1
mov dword [ebp - 0x454], eax
je 0x11096f70
cmp dword [esi + 0x36c], ebx
jne 0x110970bf
mov eax, dword [esi + 0x370]
push eax
call sub.MSVCR100.dll_void___cdecl_operator_delete_void__
mov eax, dword [esi + 0x374]
push eax
mov dword [esi + 0x370], ebx
call sub.MSVCR100.dll_void___cdecl_operator_delete_void__
mov eax, dword [esi + 0x378]
push eax
mov dword [esi + 0x374], ebx
call sub.MSVCR100.dll_void___cdecl_operator_delete_void__
mov eax, dword [esi + 0x37c]
push eax
mov dword [esi + 0x378], ebx
call sub.MSVCR100.dll_void___cdecl_operator_delete_void__
mov eax, dword [esi + 0x380]
push eax
mov dword [esi + 0x37c], ebx
call sub.MSVCR100.dll_void___cdecl_operator_delete_void__
mov dword [esi + 0x380], ebx
mov ecx, dword [0x1127b21c]
mov edx, dword [ecx]
mov eax, dword [edx + 0x38]
add esp, 0x14
push ebx
call eax
mov ecx, dword [ebp - 0x454]
mov edx, dword [ebp - 0x450]
push ecx
push edx
push edi
lea ecx, [ebp - 0x480]
call fcn.1111aaf0
mov edx, dword [ebp - 0x480]
lea eax, [ebp - 0x484]
push eax
mov eax, dword [edx + 0x58]
lea ecx, [ebp - 0x480]
mov dword [ebp - 4], ebx
call eax
mov edx, dword [eax]
mov edx, dword [edx + 0x5c]
lea ecx, [ebp - 0x44c]
push ecx
mov ecx, eax
call edx
mov edx, dword [eax]
mov edx, dword [edx + 0x58]
lea ecx, [ebp - 0x488]
push ecx
mov ecx, eax
call edx
lea ecx, [ebp - 0x464]
call fcn.1113dd30
test byte [ebp - 0x44c], 0x10
mov byte [ebp - 4], 1
je 0x11096d31
mov edx, dword [ebp - 0x480]
lea eax, [ebp - 0x464]
push eax
mov eax, dword [edx + 0x68]
lea ecx, [ebp - 0x480]
call eax
push ebx
lea ecx, [ebp - 0x464]
call fcn.1102f630
push eax
call fcn.111b7990
add esp, 8
mov dword [esi + 0x37c], eax
test byte [ebp - 0x44c], 0x20
je 0x11096d6d
mov edx, dword [ebp - 0x480]
mov eax, dword [edx + 0x68]
lea ecx, [ebp - 0x464]
push ecx
lea ecx, [ebp - 0x480]
call eax
push ebx
lea ecx, [ebp - 0x464]
call fcn.1102f630
push eax
call fcn.111b7990
add esp, 8
mov dword [esi + 0x380], eax
test byte [ebp - 0x44c], 0x40
je 0x11096da9
mov edx, dword [ebp - 0x480]
mov eax, dword [edx + 0x68]
lea ecx, [ebp - 0x464]
push ecx
lea ecx, [ebp - 0x480]
call eax
push ebx
lea ecx, [ebp - 0x464]
call fcn.1102f630
push eax
call fcn.111b7990
add esp, 8
mov dword [esi + 0x370], eax
test byte [ebp - 0x44c], 0x80
je 0x11096de5
mov edx, dword [ebp - 0x480]
mov eax, dword [edx + 0x68]
lea ecx, [ebp - 0x464]
push ecx
lea ecx, [ebp - 0x480]
call eax
push ebx
lea ecx, [ebp - 0x464]
call fcn.1102f630
push eax
call fcn.111b7990
add esp, 8
mov dword [esi + 0x374], eax
test dword [ebp - 0x44c], 0x100
je 0x11096e24
mov edx, dword [ebp - 0x480]
mov eax, dword [edx + 0x68]
lea ecx, [ebp - 0x464]
push ecx
lea ecx, [ebp - 0x480]
call eax
push ebx
lea ecx, [ebp - 0x464]
call fcn.1102f630
push eax
call fcn.111b7990
add esp, 8
mov dword [esi + 0x378], eax
mov byte [ebp - 0x454], bl
call fcn.110483b0
test al, al
jne 0x11096e40
call fcn.11048230
test al, al
je 0x11096ec4
lea edx, [ebp - 0x448]
xor ecx, ecx
push 0x104
push edx
mov word [ebp - 0x448], cx
call fcn.11048460
add esp, 8
mov byte [ebp - 0x454], al
cmp al, bl
je 0x11096ec4
lea eax, [ebp - 0x448]
push eax
push str.nsmexec.exe
push ebx
call fcn.111bb510
add esp, 4
push eax
push str.__s_s___s
call fcn.111be4a0
add esp, 0x10
mov dword [ebp - 0x450], eax
mov ecx, dword [0x1127b21c]
mov edx, dword [ecx]
push ebx
push 1
push ebx
push 0x4000000
push ebx
push ebx
push ebx
push eax
mov eax, dword [edx + 0xec]
mov byte [ebp - 4], 2
call eax
mov ecx, dword [ebp - 0x450]
push ecx
mov byte [ebp - 4], 1
call sub.MSVCR100.dll_void___cdecl_operator_delete_void__
add esp, 4
push ebx
push str.StudentRegister
call fcn.1106fd00
push 0xf0
mov dword [ebp - 0x450], eax
call fcn.111709c0
add esp, 0xc
mov dword [ebp - 0x48c], eax
mov byte [ebp - 4], 3
cmp eax, ebx
je 0x11096f05
mov edx, dword [ebp - 0x454]
mov ecx, dword [edi + 2]
push edx
push ecx
push esi
mov ecx, eax
call fcn.11085480
jmp 0x11096f07
xor eax, eax
mov edx, dword [ebp - 0x450]
mov dword [eax + 0xc4], edx
mov byte [ebp - 4], 1
push ebx
cmp byte [0x1127ab45], bl
je 0x11096f3a
mov ecx, dword [0x1127b21c]
mov edx, dword [ecx]
push 0xffffffffffffffff
push 0x471
push eax
mov eax, dword [edx + 0x16c]
call eax
jmp 0x11096f4b
mov edx, dword [eax]
mov ecx, eax
mov eax, dword [edx + 0x178]
push 0x471
call eax
lea ecx, [ebp - 0x464]
mov byte [ebp - 4], bl
call fcn.1113cd80
lea ecx, [ebp - 0x480]
mov dword [ebp - 4], 0xffffffff
call fcn.1111ab70
jmp 0x11097103
push 0x190
lea ecx, [ebp - 0x1a0]
push ebx
push ecx
call sub.MSVCR100.dll_memset
add esp, 0xc
cmp dword [0x1127aa48], 0xc0003
mov edx, 0xa2
mov eax, 1
mov word [ebp - 0x1a0], dx
mov word [ebp - 0x19a], ax
mov dword [ebp - 0x19e], ebx
lea edi, [ebp - 0x198]
jl 0x11096fda
mov ecx, dword [0x1127b21c]
mov edx, dword [ecx]
push eax
push eax
mov eax, dword [edx + 0x1c]
call eax
test eax, eax
jne 0x11096fda
push str.Info._No_logged_on_user_for_Register_n
call fcn.111bd7b0
add esp, 4
jmp 0x110970bf
mov ecx, dword [0x1127b21c]
mov edx, dword [ecx]
mov eax, dword [edx + 0x90]
push ebx
push 0xffffffffffffffff
call eax
lea edx, [ebp - 0x450]
push edx
lea eax, [ebp - 0x240]
xor ecx, ecx
push eax
mov word [ebp - 0x240], cx
mov dword [ebp - 0x450], 0x50
call dword [sym.imp.ADVAPI32.dll_GetUserNameW]
test eax, eax
jne 0x11097038
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push str.Error._Failed_to_get_username_for_Register__e_d_n
call fcn.111bd7b0
add esp, 8
mov dword [ebp - 0x44c], 1
jmp 0x11097065
mov ecx, dword [ebp - 0x454]
or dword [ebp - 0x19e], 1
push ecx
push 0x50
lea edx, [ebp - 0x198]
push edx
lea eax, [ebp - 0x240]
push eax
call fcn.111b7fb0
add esp, 0x10
lea edi, [ebp + eax - 0x197]
lea ecx, [ebp - 0x240]
push ecx
push str.Login_name__s_n
call fcn.111bd7b0
mov ecx, dword [0x1127b21c]
mov edx, dword [ecx]
mov eax, dword [edx + 0x90]
add esp, 8
push ebx
push ebx
call eax
cmp dword [ebp - 0x44c], ebx
jne 0x110970bf
mov esi, dword [esi + 4]
mov edx, dword [esi]
mov edx, dword [edx + 0x48]
lea eax, [ebp - 0x1a0]
push 1
sub edi, eax
push edi
mov ecx, eax
jmp 0x110970fe
mov ecx, dword [esi + 0x36c]
cmp ecx, ebx
je 0x11097103
mov eax, dword [ecx]
mov edx, dword [eax + 0x14]
call edx
cmp edi, ebx
jne 0x11097103
push 0x190
lea eax, [ebp - 0x3d0]
push ebx
push eax
call sub.MSVCR100.dll_memset
mov esi, dword [esi + 4]
mov ecx, 0xa2
mov edx, 0xffff
add esp, 0xc
mov word [ebp - 0x3d0], cx
mov word [ebp - 0x3ca], dx
mov eax, dword [esi]
mov edx, dword [eax + 0x48]
push 1
push 8
lea ecx, [ebp - 0x3d0]
push ecx
mov ecx, esi
call 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.111d9022
mov esp, ebp
pop ebp
ret