Function at 0x4088e0
Capabilities:
Get session user name

Disassembly:
mov eax, dword [0x41c1f0]
sub esp, 0x210
push ebp
push esi
mov esi, dword [esp + 0x21c]
push str.IDI_APP
push eax
mov dword [0x41c1ac], esi
call dword [sym.imp.USER32.dll_LoadIconA]
push eax
push 0xfffffffffffffff2
push esi
call dword [sym.imp.USER32.dll_SetClassLongA]
push str._notray
push 0x41d1b0
call fcn.0040e8a0
add esp, 8
test eax, eax
jne 0x408941
xor ebp, ebp
push ebp
push ebp
push 0x86
push ebp
push esi
call fcn.004028d0
push esi
call fcn.00402950
add esp, 0x18
jmp 0x408943
xor ebp, ebp
push ebx
push edi
mov edi, dword [sym.imp.USER32.dll_SetWindowPos]
push 6
push 0x154
push 0x1c8
push ebp
push ebp
push ebp
push esi
call edi
push 4
push 0x154
push 0x1c8
push ebp
push ebp
push ebp
push 0x406
push esi
call dword [sym.imp.USER32.dll_GetDlgItem]
push eax
call edi
push str._nologo
push 0x41d1b0
call fcn.0040e8a0
mov ebx, dword [sym.imp.USER32.dll_SetTimer]
add esp, 8
test eax, eax
jne 0x4089a7
push ebp
push 0xfa0
push 0x86
push esi
call ebx
jmp 0x4089b5
push 0x80
push ebp
push ebp
push ebp
push ebp
push 1
push esi
call edi
or eax, 0xffffffff
push esi
mov dword [0x41c214], ebp
mov dword [0x41c218], ebp
mov dword [0x41d17c], ebp
mov dword [0x41d168], eax
mov dword [0x41d15c], eax
mov dword [0x41c1e4], eax
mov dword [0x41c178], eax
call fcn.00408750
mov ecx, dword [sym.imp.RSCLASS.dll_struct__ENVVAR_gEnvVar]
add esp, 4
test dword [ecx + 4], 0x10000000
je 0x408b0d
lea edx, [esp + 0x18]
lea eax, [esp + 0x11c]
push edx
push eax
mov dword [esp + 0x20], 0x101
call dword [sym.imp.ADVAPI32.dll_GetUserNameA]
test eax, eax
je 0x408a48
lea ecx, [esp + 0x11c]
push str.SYSTEM
push ecx
call dword [sym.imp.KERNEL32.dll_lstrcmpiA]
test eax, eax
jne 0x408a48
push ebp
push 0xbb8
push 0x8c
push esi
call ebx
mov dword [0x41d26c], 1
mov edx, dword [sym.imp.RSCLASS.dll_struct__ENVVAR_gEnvVar]
cmp dword [edx + 4], 0x10000008
jb 0x408b0d
cmp dword [0x41d26c], ebp
jne 0x408b0d
push str.Wtsapi32.dll
mov dword [esp + 0x14], ebp
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov edi, eax
cmp edi, ebp
mov dword [esp + 0x14], edi
je 0x408b0d
push str.WTSRegisterSessionNotification
push edi
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov ebx, eax
cmp ebx, ebp
je 0x408b06
push 1
push esi
call ebx
mov ebp, dword [sym.imp.KERNEL32.dll_GetLastError]
mov edi, eax
call ebp
cmp eax, 0x6a6
jne 0x408b00
mov eax, dword [esp + 0x10]
cmp eax, 0xa
jge 0x408b00
test edi, edi
jne 0x408b00
push str.GlobalTermSrvReadyEvent
inc eax
push edi
push 0x100000
mov dword [esp + 0x1c], eax
call dword [sym.imp.KERNEL32.dll_OpenEventA]
mov edi, eax
push 0xbb8
test edi, edi
je 0x408aea
push edi
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
jmp 0x408af0
call dword [sym.imp.KERNEL32.dll_Sleep]
push 1
push esi
call ebx
mov edi, eax
call ebp
cmp eax, 0x6a6
je 0x408aac
mov edi, dword [esp + 0x14]
xor ebp, ebp
push edi
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
push 0xb002
push 0x271
push str.Hotkey_Message
push esi
call sub.REDCOMM.dll_Ordinal_122
mov eax, dword [sym.imp.RSCLASS.dll_struct__ENVVAR_gEnvVar]
pop edi
pop ebx
mov ax, word [eax + 8]
cmp ax, 0x804
jne 0x408b3f
lea ecx, [esp + 0x14]
push str.IDB_LOGO_1
push ecx
jmp 0x408b56
cmp ax, 0x404
push str.IDB_LOGO_1
jne 0x408b51
lea edx, [esp + 0x18]
push edx
jmp 0x408b56
lea eax, [esp + 0x18]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcpyA]
lea ecx, [esp + 0x14]
push ecx
push str.RSCLASS.DLL
call dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
push eax
call dword [sym.imp.USER32.dll_LoadBitmapA]
push eax
push ebp
push 0x172
push 0x406
push esi
mov dword [0x41d264], eax
call dword [sym.imp.USER32.dll_SendDlgItemMessageA]
mov edx, dword [sym.imp.RSCLASS.dll_struct__ENVVAR_gEnvVar]
mov eax, 1
mov dword [edx + 0x30], esi
pop esi
pop ebp
add esp, 0x210
ret