Function at 0x417e18
Capabilities:
Get session user name
Resolve function by parsing pe exports
Set registry value

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x467d67
mov eax, dword fs:[0]
push eax
sub esp, 0x2d8
mov eax, dword [0x4947b8]
xor eax, esp
mov dword [esp + 0x2d0], eax
push ebx
push esi
push edi
mov eax, dword [0x4947b8]
xor eax, esp
push eax
lea eax, [esp + 0x2e8]
mov dword fs:[0], eax
mov edi, ecx
mov eax, dword [edi]
lea ecx, [esp + 0x34]
push ecx
mov ecx, edi
call dword [eax + 0xe4]
xor ebx, ebx
mov dword [esp + 0x2f0], ebx
cmp dword [eax + 0x14], 8
jb 0x417e7a
mov eax, dword [eax]
xor edx, edx
cmp byte [edi + 0x4d], dl
push ebx
sete dl
push ebx
push eax
lea ecx, [esp + 0x24]
add edx, 0x80000001
call fcn.00426fc0
add esp, 0xc
push ebx
xor ebx, ebx
inc ebx
push ebx
lea ecx, [esp + 0x3c]
mov byte [esp + 0x2f8], 2
call fcn.004095c3
mov eax, dword [edi]
lea ecx, [esp + 0x94]
push ecx
mov ecx, edi
call dword [eax + 0xe0]
mov esi, eax
mov byte [esp + 0x2f0], 3
mov edx, dword [edi]
lea eax, [esp + 0xc4]
push eax
mov ecx, edi
call dword [edx + 0xa4]
mov ecx, eax
mov byte [esp + 0x2f0], 4
cmp dword [esi + 0x14], 8
jb 0x417eed
mov esi, dword [esi]
cmp dword [ecx + 0x14], 8
jb 0x417ef5
mov ecx, dword [ecx]
cmp byte [edi + 0x4d], 0
mov edx, str.__alluser
mov eax, 0x477da8
cmove eax, edx
push eax
push esi
push ecx
lea eax, [esp + 0x70]
push str.__s_s___uninstall_s
push eax
call fcn.00429b41
add esp, 0x14
xor esi, esi
push esi
push ebx
lea ecx, [esp + 0xcc]
call fcn.004095c3
push esi
push ebx
lea ecx, [esp + 0x9c]
mov byte [esp + 0x2f8], 7
call fcn.004095c3
cmp dword [esp + 0x78], 8
lea eax, [esp + 0x64]
cmovae eax, dword [esp + 0x64]
push 2
push eax
push str.UninstallString
lea ecx, [esp + 0x24]
call fcn.0040c605
mov edx, str.Failed_to_set_UninstallString_key
mov ecx, eax
call fcn.00426e1d
push ebx
push str.ROBLOX_Corporation
push str.Publisher
lea ecx, [esp + 0x24]
call fcn.0040c605
mov edx, str.Failed_to_set_Publisher_key
mov ecx, eax
call fcn.00426e1d
push ebx
push str.http:__www.roblox.com
push str.URLInfoAbout
lea ecx, [esp + 0x24]
call fcn.0040c605
mov edx, str.Failed_to_set_URLInfoAbout_key
mov ecx, eax
call fcn.00426e1d
lea edx, [edi + 0xd4]
lea ecx, [esp + 0x34]
call fcn.004297c4
mov byte [esp + 0x2f0], 8
cmp dword [eax + 0x14], 8
jb 0x417fcb
mov eax, dword [eax]
push ebx
push eax
push str.Comments
lea ecx, [esp + 0x24]
call fcn.0040c605
mov edx, str.Failed_to_set_Comments_key
mov ecx, eax
call fcn.00426e1d
push esi
push ebx
lea ecx, [esp + 0x3c]
mov byte [esp + 0x2f8], 7
call fcn.004095c3
mov eax, dword [edi]
lea ecx, [esp + 0x34]
push ecx
mov ecx, edi
call dword [eax + 0xa4]
mov byte [esp + 0x2f0], 9
cmp dword [eax + 0x14], 8
jb 0x418019
mov eax, dword [eax]
push ebx
push eax
push str.InstallLocation
lea ecx, [esp + 0x24]
call fcn.0040c605
mov edx, str.Failed_to_set_InstallLocation_key
mov ecx, eax
call fcn.00426e1d
push esi
push ebx
lea ecx, [esp + 0x3c]
mov byte [esp + 0x2f8], 7
call fcn.004095c3
push 4
lea eax, [esp + 0x18]
push eax
push 4
push esi
mov esi, dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
push str.NoModify
push dword [esp + 0x2c]
mov dword [esp + 0x2c], ebx
call esi
mov edx, str.Failed_to_set_NoModify_key
mov ecx, eax
call fcn.00426e1d
push 4
lea eax, [esp + 0x18]
push eax
push 4
push 0
push str.NoRepair
push dword [esp + 0x2c]
mov dword [esp + 0x2c], ebx
call esi
mov edx, str.Failed_to_set_NoRepair_key
mov ecx, eax
call fcn.00426e1d
mov eax, dword [edi]
lea ecx, [esp + 0xac]
push ecx
mov ecx, edi
call dword [eax + 0xe0]
mov esi, eax
mov byte [esp + 0x2f0], 0xa
mov edx, dword [edi]
lea eax, [esp + 0x34]
push eax
mov ecx, edi
call dword [edx + 0xa4]
mov byte [esp + 0x2f0], 0xb
cmp dword [esi + 0x14], 8
jb 0x4180d4
mov esi, dword [esi]
cmp dword [eax + 0x14], 8
jb 0x4180dc
mov eax, dword [eax]
push esi
push eax
lea eax, [esp + 0x84]
push str._s_s_0
push eax
call fcn.00429b41
add esp, 0x10
xor esi, esi
push esi
push ebx
lea ecx, [esp + 0x3c]
call fcn.004095c3
push esi
push ebx
lea ecx, [esp + 0xb4]
mov byte [esp + 0x2f8], 0xe
call fcn.004095c3
cmp dword [esp + 0x90], 8
lea eax, [esp + 0x7c]
cmovae eax, dword [esp + 0x7c]
push ebx
push eax
push str.DisplayIcon
lea ecx, [esp + 0x24]
call fcn.0040c605
mov edx, str.Failed_to_set_IconPath_key
mov ecx, eax
call fcn.00426e1d
lea eax, [esp + 0x24]
push eax
call dword [sym.imp.KERNEL32.dll_GetLocalTime]
movzx eax, word [esp + 0x2a]
push eax
movzx eax, word [esp + 0x2a]
push eax
movzx eax, word [esp + 0x2c]
push eax
lea eax, [esp + 0xa0]
push str._04d_02d_02d
push eax
call fcn.00429b41
add esp, 0x14
mov byte [esp + 0x2f0], 0xf
cmp dword [eax + 0x14], 8
jb 0x418185
mov eax, dword [eax]
push ebx
push eax
push str.InstallDate
lea ecx, [esp + 0x24]
call fcn.0040c605
mov edx, str.Failed_to_set_InstallDate_key
mov ecx, eax
call fcn.00426e1d
push esi
push ebx
lea ecx, [esp + 0x9c]
mov byte [esp + 0x2f8], 0xe
call fcn.004095c3
push str.ROBLOX_Player
lea ecx, [esp + 0x50]
call fcn.004082fa
mov byte [esp + 0x2f0], 0x10
cmp byte [edi + 0x4d], 0
je 0x418231
xor eax, eax
mov word [esp + 0xdc], ax
lea eax, [esp + 0x14]
push eax
lea eax, [esp + 0xe0]
push eax
mov dword [esp + 0x1c], 0x100
call dword [sym.imp.ADVAPI32.dll_GetUserNameW]
mov esi, str._for
push esi
call fcn.004010b3
pop ecx
push eax
push esi
lea ecx, [esp + 0x54]
call fcn.0040b363
lea eax, [esp + 0xdc]
push eax
call fcn.004010b3
pop ecx
push eax
lea eax, [esp + 0xe0]
push eax
lea ecx, [esp + 0x54]
call fcn.0040b363
xor esi, esi
cmp dword [esp + 0x60], 8
lea eax, [esp + 0x4c]
cmovae eax, dword [esp + 0x4c]
push ebx
push eax
push str.DisplayName
lea ecx, [esp + 0x24]
call fcn.0040c605
mov edx, str.Failed_to_set_DisplayName_key
mov ecx, eax
call fcn.00426e1d
push esi
push ebx
lea ecx, [esp + 0x54]
call fcn.004095c3
push esi
push ebx
lea ecx, [esp + 0x84]
call fcn.004095c3
push esi
push ebx
lea ecx, [esp + 0x6c]
call fcn.004095c3
cmp dword [esp + 0x18], 0
je 0x418290
push dword [esp + 0x18]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov ecx, dword [esp + 0x2e8]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x2d0]
xor ecx, esp
call fcn.004492e4
mov esp, ebp
pop ebp
ret 4