Function at 0x4090b4
Capabilities:
Get session user name

Disassembly:
push ebp
sub esp, 0x254
lea ebp, [esp - 4]
mov eax, dword [0x43d2ac]
xor eax, ebp
mov dword [ebp + 0x254], eax
push 0x3c
mov eax, 0x42c06d
call fcn.0042a26c
mov eax, dword [ebp + 0x260]
and dword [ebp - 0x28], 0
mov dword [ebp - 0x10], eax
lea eax, [ebp - 0x24]
push eax
lea eax, [ebp + 0x54]
push eax
mov dword [ebp - 0x24], 0x100
call dword [sym.imp.ADVAPI32.dll_GetUserNameW]
lea eax, [ebp + 0x54]
push eax
lea ecx, [ebp + 0x38]
call dword [sym.imp.MSVCP80.dll_public:_void___thiscall_std::basic_string_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t__::constructor_wchar_t_const__]
push 0
mov dword [ebp - 4], 1
push dword [ebp + 0x4c]
lea ecx, [ebp + 0x1c]
call dword [sym.imp.MSVCP80.dll_public:_void___thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::constructor_unsigned_int__char_]
lea eax, [ebp - 0x48]
push eax
lea ecx, [ebp + 0x1c]
mov byte [ebp - 4], 2
call dword [sym.imp.MSVCP80.dll_public:_class_std::_String_iterator_char__struct_std::char_traits_char___class_std::allocator_char_____thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::begin_void_]
mov esi, dword [eax]
mov edi, dword [eax + 4]
lea eax, [ebp - 0x30]
push eax
lea ecx, [ebp + 0x38]
call dword [sym.imp.MSVCP80.dll_public:_class_std::_String_iterator_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t_____thiscall_std::basic_string_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t__::end_void_]
mov ecx, dword [eax]
mov eax, dword [eax + 4]
mov dword [ebp - 0x14], eax
lea eax, [ebp - 0x40]
mov dword [ebp - 0x18], ecx
push eax
lea ecx, [ebp + 0x38]
call dword [sym.imp.MSVCP80.dll_public:_class_std::_String_iterator_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t_____thiscall_std::basic_string_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t__::begin_void_]
mov ecx, dword [eax]
mov ebx, dword [eax + 4]
mov eax, dword [ebp - 0x14]
sub eax, ebx
sar eax, 1
mov dword [ebp - 0x20], ecx
mov dword [ebp - 0x20], esi
push eax
lea esi, [ebp - 0x38]
lea eax, [ebp - 0x20]
mov dword [ebp - 0x1c], edi
call fcn.0040298d
jmp 0x409181
mov al, byte [ebx]
inc ebx
mov byte [edi], al
inc ebx
inc edi
cmp ebx, dword [ebp - 0x14]
jne 0x40917a
push str.AdobeHeadlights
lea ecx, [ebp]
call dword [sym.imp.MSVCP80.dll_public:_void___thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::constructor_char_const__]
lea eax, [ebp + 0x1c]
push eax
lea ecx, [ebp]
mov byte [ebp - 4], 3
call dword [sym.imp.MSVCP80.dll_public:_class_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char______thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::append_class_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char___const__]
mov ecx, dword [ebp - 0x10]
push eax
call dword [sym.imp.MSVCP80.dll_public:_void___thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::constructor_class_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char___const__]
lea ecx, [ebp]
mov dword [ebp - 0x28], 1
mov byte [ebp - 4], 2
call dword [sym.imp.MSVCP80.dll_public:_void___thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::destructor_void_]
lea ecx, [ebp + 0x1c]
mov byte [ebp - 4], 1
call dword [sym.imp.MSVCP80.dll_public:_void___thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::destructor_void_]
lea ecx, [ebp + 0x38]
mov byte [ebp - 4], 0
call dword [sym.imp.MSVCP80.dll_public:_void___thiscall_std::basic_string_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t__::destructor_void_]
mov eax, dword [ebp - 0x10]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp + 0x254]
xor ecx, ebp
call fcn.00418cca
add ebp, 0x258
leave
ret