Function at 0x41defb
Capabilities:
Get session user name
Set registry value

Disassembly:
push 0x2e4
mov eax, 0x46eda7
call fcn.004492af
mov edi, ecx
mov eax, dword [edi]
lea ecx, [ebp - 0x240]
mov ebx, dword [ebp + 8]
push ecx
mov ecx, edi
call dword [eax + 0x94]
xor esi, esi
cmp dword [eax + 0x14], 8
mov dword [ebp - 4], esi
jb 0x41df2d
mov eax, dword [eax]
push esi
push esi
push eax
xor eax, eax
cmp byte [edi + 0x4d], al
sete al
add eax, 0x80000001
push eax
lea eax, [ebp - 0x2f0]
push eax
call fcn.0041386c
add esp, 0x14
push esi
push 1
lea ecx, [ebp - 0x240]
mov byte [ebp - 4], 2
call fcn.00408c9a
mov eax, dword [edi]
lea ecx, [ebp - 0x2a0]
push ecx
mov ecx, edi
call dword [eax + 0x90]
mov esi, eax
mov edx, dword [edi]
lea eax, [ebp - 0x2b8]
push eax
mov ecx, edi
mov byte [ebp - 4], 3
call dword [edx + 0x60]
mov ecx, eax
cmp dword [esi + 0x14], 8
mov byte [ebp - 4], 4
jb 0x41df92
mov esi, dword [esi]
cmp dword [ecx + 0x14], 8
jb 0x41df9a
mov ecx, dword [ecx]
cmp byte [edi + 0x4d], 0
mov edx, str.__alluser
mov eax, 0x473ad4
cmove eax, edx
push eax
push esi
push ecx
lea eax, [ebp - 0x288]
push str.__s_s___uninstall_s
push eax
call fcn.0040ecac
add esp, 0x14
xor esi, esi
lea ecx, [ebp - 0x2b8]
push 0
inc esi
push esi
call fcn.00408c9a
push 0
push esi
lea ecx, [ebp - 0x2a0]
mov byte [ebp - 4], 7
call fcn.00408c9a
push str.Failed_to_set_UninstallString_key
lea ecx, [ebp - 0x228]
call fcn.00403984
cmp dword [ebp - 0x274], 8
lea ecx, [ebp - 0x228]
push ecx
lea eax, [ebp - 0x288]
mov byte [ebp - 4], 8
cmovae eax, dword [ebp - 0x288]
lea ecx, [ebp - 0x2f0]
push 2
push eax
push str.UninstallString
call fcn.00407e66
push eax
call fcn.0041561c
pop ecx
pop ecx
push 0
push esi
lea ecx, [ebp - 0x228]
mov byte [ebp - 4], 7
call fcn.00408c45
push str.Failed_to_set_Publisher_key
lea ecx, [ebp - 0x228]
call fcn.00403984
lea eax, [ebp - 0x228]
mov byte [ebp - 4], 9
push eax
push esi
push 0x47ab6c
push str.Publisher
lea ecx, [ebp - 0x2f0]
call fcn.00407e66
push eax
call fcn.0041561c
pop ecx
pop ecx
push 0
push esi
lea ecx, [ebp - 0x228]
mov byte [ebp - 4], 7
call fcn.00408c45
push str.Failed_to_set_URLInfoAbout_key
lea ecx, [ebp - 0x228]
call fcn.00403984
lea eax, [ebp - 0x228]
mov byte [ebp - 4], 0xa
push eax
push esi
push str.http:__www.roblox.com
push str.URLInfoAbout
lea ecx, [ebp - 0x2f0]
call fcn.00407e66
push eax
call fcn.0041561c
pop ecx
pop ecx
push 0
push esi
lea ecx, [ebp - 0x228]
mov byte [ebp - 4], 7
call fcn.00408c45
push str.Failed_to_set_Comments_key
lea ecx, [ebp - 0x228]
call fcn.00403984
lea eax, [edi + 0xd4]
mov byte [ebp - 4], 0xb
push eax
lea eax, [ebp - 0x240]
push eax
call fcn.0040eabd
pop ecx
pop ecx
cmp dword [eax + 0x14], 8
mov byte [ebp - 4], 0xc
jb 0x41e10c
mov eax, dword [eax]
lea ecx, [ebp - 0x228]
push ecx
push esi
push eax
push str.Comments
lea ecx, [ebp - 0x2f0]
call fcn.00407e66
push eax
call fcn.0041561c
pop ecx
pop ecx
push 0
push esi
lea ecx, [ebp - 0x240]
call fcn.00408c9a
push 0
push esi
lea ecx, [ebp - 0x228]
mov byte [ebp - 4], 7
call fcn.00408c45
push str.Failed_to_set_InstallLocation_key
lea ecx, [ebp - 0x228]
call fcn.00403984
mov eax, dword [edi]
lea ecx, [ebp - 0x240]
push ecx
mov ecx, edi
mov byte [ebp - 4], 0xd
call dword [eax + 0x60]
cmp dword [eax + 0x14], 8
mov byte [ebp - 4], 0xe
jb 0x41e17b
mov eax, dword [eax]
lea ecx, [ebp - 0x228]
push ecx
push esi
push eax
push str.InstallLocation
lea ecx, [ebp - 0x2f0]
call fcn.00407e66
push eax
call fcn.0041561c
pop ecx
pop ecx
push 0
push esi
lea ecx, [ebp - 0x240]
call fcn.00408c9a
push 0
push esi
lea ecx, [ebp - 0x228]
mov byte [ebp - 4], 7
call fcn.00408c45
push str.Failed_to_set_NoModify_key
lea ecx, [ebp - 0x228]
call fcn.00403984
lea eax, [ebp - 0x228]
mov dword [ebp - 0x2e4], esi
mov esi, dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
push eax
push 4
lea eax, [ebp - 0x2e4]
mov byte [ebp - 4], 0xf
push eax
push 4
push 0
push str.NoModify
push dword [ebp - 0x2f0]
call esi
push eax
call fcn.0041561c
pop ecx
pop ecx
push 0
push 1
lea ecx, [ebp - 0x228]
mov byte [ebp - 4], 7
call fcn.00408c45
push str.Failed_to_set_NoRepair_key
lea ecx, [ebp - 0x228]
call fcn.00403984
lea eax, [ebp - 0x228]
mov byte [ebp - 4], 0x10
push eax
push 4
lea eax, [ebp - 0x2e4]
mov dword [ebp - 0x2e4], 1
push eax
push 4
push 0
push str.NoRepair
push dword [ebp - 0x2f0]
call esi
push eax
call fcn.0041561c
pop ecx
pop ecx
push 0
push 1
lea ecx, [ebp - 0x228]
mov byte [ebp - 4], 7
call fcn.00408c45
mov eax, dword [edi]
lea ecx, [ebp - 0x2d0]
push ecx
mov ecx, edi
call dword [eax + 0x90]
mov esi, eax
mov edx, dword [edi]
lea eax, [ebp - 0x240]
mov byte [ebp - 4], 0x11
push eax
mov ecx, edi
call dword [edx + 0x60]
cmp dword [esi + 0x14], 8
mov byte [ebp - 4], 0x12
jb 0x41e2a3
mov esi, dword [esi]
cmp dword [eax + 0x14], 8
jb 0x41e2ab
mov eax, dword [eax]
push esi
push eax
lea eax, [ebp - 0x270]
push str._s_s_0
push eax
call fcn.0040ecac
add esp, 0x10
xor esi, esi
lea ecx, [ebp - 0x240]
push 0
inc esi
push esi
call fcn.00408c9a
push 0
push esi
lea ecx, [ebp - 0x2d0]
mov byte [ebp - 4], 0x15
call fcn.00408c9a
push str.Failed_to_set_IconPath_key
lea ecx, [ebp - 0x228]
call fcn.00403984
cmp dword [ebp - 0x25c], 8
lea ecx, [ebp - 0x228]
push ecx
lea eax, [ebp - 0x270]
mov byte [ebp - 4], 0x16
cmovae eax, dword [ebp - 0x270]
lea ecx, [ebp - 0x2f0]
push esi
push eax
push str.DisplayIcon
call fcn.00407e66
push eax
call fcn.0041561c
pop ecx
pop ecx
push 0
push esi
lea ecx, [ebp - 0x228]
mov byte [ebp - 4], 0x15
call fcn.00408c45
lea eax, [ebp - 0x2e0]
push eax
call dword [sym.imp.KERNEL32.dll_GetLocalTime]
push str.Failed_to_set_InstallDate_key
lea ecx, [ebp - 0x228]
call fcn.00403984
movzx eax, word [ebp - 0x2da]
push eax
movzx eax, word [ebp - 0x2de]
push eax
movzx eax, word [ebp - 0x2e0]
push eax
lea eax, [ebp - 0x2a0]
mov byte [ebp - 4], 0x17
push str._04d_02d_02d
push eax
call fcn.0040ecac
add esp, 0x14
cmp dword [eax + 0x14], 8
mov byte [ebp - 4], 0x18
jb 0x41e398
mov eax, dword [eax]
lea ecx, [ebp - 0x228]
push ecx
push esi
push eax
push str.InstallDate
lea ecx, [ebp - 0x2f0]
call fcn.00407e66
push eax
call fcn.0041561c
pop ecx
pop ecx
push 0
push esi
lea ecx, [ebp - 0x2a0]
call fcn.00408c9a
push 0
push esi
lea ecx, [ebp - 0x228]
mov byte [ebp - 4], 0x15
call fcn.00408c45
push ebx
lea ecx, [ebp - 0x258]
call fcn.00403a00
cmp byte [edi + 0x4d], 0
mov byte [ebp - 4], 0x19
je 0x41e452
xor eax, eax
mov dword [ebp - 0x2e4], 0x100
mov word [ebp - 0x210], ax
lea eax, [ebp - 0x2e4]
push eax
lea eax, [ebp - 0x210]
push eax
call dword [sym.imp.ADVAPI32.dll_GetUserNameW]
mov esi, str._for
push esi
call fcn.0040afe0
pop ecx
push eax
push esi
lea ecx, [ebp - 0x258]
call fcn.00409042
lea eax, [ebp - 0x210]
push eax
call fcn.0040afe0
pop ecx
push eax
lea eax, [ebp - 0x210]
push eax
lea ecx, [ebp - 0x258]
call fcn.00409042
xor esi, esi
inc esi
push str.Failed_to_set_DisplayName_key
lea ecx, [ebp - 0x228]
call fcn.00403984
cmp dword [ebp - 0x244], 8
lea ecx, [ebp - 0x228]
push ecx
lea eax, [ebp - 0x258]
mov byte [ebp - 4], 0x1a
cmovae eax, dword [ebp - 0x258]
lea ecx, [ebp - 0x2f0]
push esi
push eax
push str.DisplayName
call fcn.00407e66
push eax
call fcn.0041561c
pop ecx
pop ecx
xor ebx, ebx
lea ecx, [ebp - 0x228]
push ebx
push esi
call fcn.00408c45
push ebx
push esi
lea ecx, [ebp - 0x258]
call fcn.00408c9a
push ebx
push esi
lea ecx, [ebp - 0x270]
call fcn.00408c9a
push ebx
push esi
lea ecx, [ebp - 0x288]
call fcn.00408c9a
lea ecx, [ebp - 0x2f0]
call fcn.00405901
call fcn.00449259
ret 4