Function at 0x41ee80
Capabilities:
Get session user name

Disassembly:
push ebp
mov ebp, esp
mov eax, dword fs:[0]
push 0xffffffffffffffff
push 0x49f550
push eax
mov dword fs:[0], esp
sub esp, 0x20c
push esi
push edi
mov edi, dword [ebp + 8]
push str.svchost.exe
mov esi, edi
call fcn.00459700
push eax
call fcn.00473ffc
add esp, 8
test eax, eax
jne 0x41eedb
push str.Found_svchost.exe__matched_at_tier_1__considered_system_regardless_of_user
call fcn.004261a0
add esp, 4
pop edi
xor eax, eax
pop esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
mov esp, ebp
pop ebp
ret
push str.ramjet_tier1.exe
call fcn.00459700
push eax
call fcn.00473ffc
add esp, 8
test eax, eax
jne 0x41ef11
push str.Found_ramjet_tier1.exe__matched_at_tier_1
call fcn.004261a0
add esp, 4
pop edi
xor eax, eax
pop esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
mov esp, ebp
pop ebp
ret
push str.ramjet_tier2.exe
call fcn.00459700
push eax
call fcn.00473ffc
add esp, 8
test eax, eax
jne 0x41ef4a
push str.Found_ramjet_tier2.exe__matched_at_tier_2
call fcn.004261a0
add esp, 4
pop edi
mov eax, 1
pop esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
mov esp, ebp
pop ebp
ret
push str.ramjet_tier3.exe
call fcn.00459700
push eax
call fcn.00473ffc
add esp, 8
test eax, eax
jne 0x41ef83
push str.Found_ramjet_tier3.exe__matched_at_tier_3
call fcn.004261a0
add esp, 4
pop edi
mov eax, 2
pop esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
mov esp, ebp
pop ebp
ret
push ebx
mov ebx, 1
test byte [0x4cbbc8], bl
jne 0x41efae
or dword [0x4cbbc8], ebx
mov esi, 0x4cbbc4
call fcn.00401e80
push 0x4a4520
call fcn.00472a86
add esp, 4
xor eax, eax
push 0x200
push eax
lea ecx, [ebp - 0x216]
push ecx
mov word [ebp - 0x218], ax
call fcn.00479dd0
mov edx, dword [0x4cbbc4]
add esp, 0xc
cmp dword [edx - 0xc], 0
jne 0x41f02a
lea eax, [ebp - 0x10]
push eax
lea ecx, [ebp - 0x218]
push ecx
mov dword [ebp - 0x10], 0x101
call dword [sym.imp.ADVAPI32.dll_GetUserNameW]
test eax, eax
je 0x41f01d
lea edx, [ebp - 0x218]
mov edi, 0x4cbbc4
call fcn.00402c40
mov edx, dword [0x4cbbc4]
push edx
push str.Got_current_user___s
call fcn.004261a0
mov edi, dword [ebp + 8]
add esp, 8
jmp 0x41f02a
push str.ERROR:_Could_not_get_current_user__Tier_discrimination_non_functional.
call fcn.004261a0
add esp, 4
mov eax, dword [0x4cbbc4]
cmp dword [eax - 0xc], 0
je 0x41f10e
lea esi, [ebp - 0x14]
call fcn.00401e80
lea esi, [ebp - 0x10]
mov dword [ebp - 4], 0
call fcn.00401e80
mov ecx, esi
push ecx
lea edx, [ebp - 0x14]
push edx
mov eax, edi
mov byte [ebp - 4], bl
call fcn.00456f90
test al, al
je 0x41f0ef
mov eax, dword [ebp - 0x10]
cmp dword [eax - 0xc], 0
jne 0x41f077
mov eax, str.NULL
mov esi, dword [ebp - 0x14]
push esi
push eax
push str.Got_user_for_process__domainuser__s_s
call fcn.004261a0
mov ecx, dword [0x4cbbc4]
add esp, 0xc
lea eax, [ebp - 0x14]
push eax
call fcn.00406bb0
test eax, eax
jne 0x41f0b3
mov ecx, dword [0x4cbbc4]
push esi
push ecx
push str.Matched_current_user.__s_s._Tier_2__normal_.
call fcn.004261a0
add esp, 0xc
jmp 0x41f0fe
lea edx, [ebp - 0x14]
push edx
mov ecx, str.SYSTEM
call fcn.00406bb0
push esi
test eax, eax
jne 0x41f0d5
push str.System_user.__s._Tier_1__low_.
call fcn.004261a0
add esp, 8
jmp 0x41f0fe
mov eax, dword [0x4cbbc4]
push eax
push str.Other_user.__s_s._Tier_3__high_.
call fcn.004261a0
add esp, 0xc
mov ebx, 2
jmp 0x41f0fe
push str.WARNING:_Could_not_retrieve_process_user_name._Assuming_SYSTEM._Tier_3.
call fcn.004261a0
add esp, 4
xor ebx, ebx
lea eax, [ebp - 0x10]
call fcn.00401ea0
lea eax, [ebp - 0x14]
call fcn.00401ea0
mov ecx, dword [ebp - 0xc]
mov eax, ebx
pop ebx
pop edi
pop esi
mov dword fs:[0], ecx
mov esp, ebp
pop ebp
ret