Function at 0x4186f0
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 0x46949b
mov eax, dword fs:[0]
push eax
sub esp, 0x2d8
mov eax, dword [0x4977b8]
xor eax, esp
mov dword [esp + 0x2d0], eax
push ebx
push esi
push edi
mov eax, dword [0x4977b8]
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 + 0xe8]
xor ebx, ebx
mov dword [esp + 0x2f0], ebx
cmp dword [eax + 0x14], 8
jb 0x418752
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.00427fcb
add esp, 0xc
push ebx
xor ebx, ebx
inc ebx
push ebx
lea ecx, [esp + 0x3c]
mov byte [esp + 0x2f8], 2
call fcn.00409522
mov eax, dword [edi]
lea ecx, [esp + 0x94]
push ecx
mov ecx, edi
call dword [eax + 0xe4]
mov esi, eax
mov byte [esp + 0x2f0], 3
mov edx, dword [edi]
lea eax, [esp + 0xc4]
push eax
mov ecx, edi
call dword [edx + 0xa8]
mov ecx, eax
mov byte [esp + 0x2f0], 4
cmp dword [esi + 0x14], 8
jb 0x4187c5
mov esi, dword [esi]
cmp dword [ecx + 0x14], 8
jb 0x4187cd
mov ecx, dword [ecx]
cmp byte [edi + 0x4d], 0
mov edx, str.__alluser
mov eax, 0x479d50
cmove eax, edx
push eax
push esi
push ecx
lea eax, [esp + 0x70]
push str.__s_s___uninstall_s
push eax
call fcn.0042ab25
add esp, 0x14
xor esi, esi
push esi
push ebx
lea ecx, [esp + 0xcc]
call fcn.00409522
push esi
push ebx
lea ecx, [esp + 0x9c]
mov byte [esp + 0x2f8], 7
call fcn.00409522
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.0040c51b
mov edx, str.Failed_to_set_UninstallString_key
mov ecx, eax
call fcn.00427e28
push ebx
push 0x47e374
push str.Publisher
lea ecx, [esp + 0x24]
call fcn.0040c51b
mov edx, str.Failed_to_set_Publisher_key
mov ecx, eax
call fcn.00427e28
push ebx
push str.http:__www.roblox.com
push str.URLInfoAbout
lea ecx, [esp + 0x24]
call fcn.0040c51b
mov edx, str.Failed_to_set_URLInfoAbout_key
mov ecx, eax
call fcn.00427e28
lea edx, [edi + 0xd4]
lea ecx, [esp + 0x34]
call fcn.0042a7a8
mov byte [esp + 0x2f0], 8
cmp dword [eax + 0x14], 8
jb 0x4188a3
mov eax, dword [eax]
push ebx
push eax
push str.Comments
lea ecx, [esp + 0x24]
call fcn.0040c51b
mov edx, str.Failed_to_set_Comments_key
mov ecx, eax
call fcn.00427e28
push esi
push ebx
lea ecx, [esp + 0x3c]
mov byte [esp + 0x2f8], 7
call fcn.00409522
mov eax, dword [edi]
lea ecx, [esp + 0x34]
push ecx
mov ecx, edi
call dword [eax + 0xa8]
mov byte [esp + 0x2f0], 9
cmp dword [eax + 0x14], 8
jb 0x4188f1
mov eax, dword [eax]
push ebx
push eax
push str.InstallLocation
lea ecx, [esp + 0x24]
call fcn.0040c51b
mov edx, str.Failed_to_set_InstallLocation_key
mov ecx, eax
call fcn.00427e28
push esi
push ebx
lea ecx, [esp + 0x3c]
mov byte [esp + 0x2f8], 7
call fcn.00409522
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.00427e28
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.00427e28
mov eax, dword [edi]
lea ecx, [esp + 0xac]
push ecx
mov ecx, edi
call dword [eax + 0xe4]
mov esi, eax
mov byte [esp + 0x2f0], 0xa
mov edx, dword [edi]
lea eax, [esp + 0x34]
push eax
mov ecx, edi
call dword [edx + 0xa8]
mov byte [esp + 0x2f0], 0xb
cmp dword [esi + 0x14], 8
jb 0x4189ac
mov esi, dword [esi]
cmp dword [eax + 0x14], 8
jb 0x4189b4
mov eax, dword [eax]
push esi
push eax
lea eax, [esp + 0x84]
push str._s_s_0
push eax
call fcn.0042ab25
add esp, 0x10
xor esi, esi
push esi
push ebx
lea ecx, [esp + 0x3c]
call fcn.00409522
push esi
push ebx
lea ecx, [esp + 0xb4]
mov byte [esp + 0x2f8], 0xe
call fcn.00409522
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.0040c51b
mov edx, str.Failed_to_set_IconPath_key
mov ecx, eax
call fcn.00427e28
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.0042ab25
add esp, 0x14
mov byte [esp + 0x2f0], 0xf
cmp dword [eax + 0x14], 8
jb 0x418a5d
mov eax, dword [eax]
push ebx
push eax
push str.InstallDate
lea ecx, [esp + 0x24]
call fcn.0040c51b
mov edx, str.Failed_to_set_InstallDate_key
mov ecx, eax
call fcn.00427e28
push esi
push ebx
lea ecx, [esp + 0x9c]
mov byte [esp + 0x2f8], 0xe
call fcn.00409522
push str.ROBLOX_Player
lea ecx, [esp + 0x50]
call fcn.00408227
mov byte [esp + 0x2f0], 0x10
cmp byte [edi + 0x4d], 0
je 0x418b09
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.0040b278
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.0040b278
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.0040c51b
mov edx, str.Failed_to_set_DisplayName_key
mov ecx, eax
call fcn.00427e28
push esi
push ebx
lea ecx, [esp + 0x54]
call fcn.00409522
push esi
push ebx
lea ecx, [esp + 0x84]
call fcn.00409522
push esi
push ebx
lea ecx, [esp + 0x6c]
call fcn.00409522
cmp dword [esp + 0x18], 0
je 0x418b68
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.0044a9a4
mov esp, ebp
pop ebp
ret 4