Function at 0x4aff30
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
mov eax, dword fs:[0]
push 0xffffffffffffffff
push 0x6fec0d
push eax
mov dword fs:[0], esp
sub esp, 0x50
mov eax, dword [ebp + 8]
push esi
push edi
mov edi, str.SOFTWAREROBLOX_CorporationEnvironmentsRobloxPlayerChannel
sub eax, 0
jne 0x4aff5f
mov edi, str.SOFTWAREROBLOX_CorporationEnvironmentsRobloxStudioChannel
push 0
lea eax, [ebp + 8]
mov dword [ebp - 4], 0
push eax
push 0
push 0x20006
push 0
push 0
push 0
push edi
push bind
mov dword [ebp + 8], 0
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExW]
test eax, eax
jne 0x4b00ff
lea eax, [ebp - 0x2c]
push eax
lea ecx, [ebp + 0x14]
call fcn.004ead20
mov edx, dword [eax + 0x10]
sub esp, 8
cmp dword [eax + 0x14], 0x10
mov ecx, esp
mov byte [ebp - 4], 1
jb 0x4affb4
mov eax, dword [eax]
mov dword [ecx], eax
lea eax, [ebp - 0x44]
push eax
mov dword [ecx + 4], edx
call fcn.004ea340
add esp, 0xc
mov edx, dword [ebp - 0x18]
mov byte [ebp - 4], 3
cmp edx, 0x10
jb 0x4afffd
mov ecx, dword [ebp - 0x2c]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x4afff3
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x4b0185
push edx
push ecx
call fcn.004e7fa0
add esp, 8
mov eax, dword [ebp - 0x34]
mov dword [ebp - 0x1c], 0
mov dword [ebp - 0x18], 0xf
mov byte [ebp - 0x2c], 0
lea ecx, [eax + 1]
cmp ecx, eax
jb 0x4b018a
mov eax, 2
mul ecx
mov esi, eax
test edx, edx
ja 0x4b018a
jb 0x4b0039
cmp esi, 0xffffffff
ja 0x4b018a
cmp dword [ebp - 0x30], 8
lea eax, [ebp - 0x44]
push dword [ebp + 0x10]
cmovae eax, dword [ebp - 0x44]
push dword [ebp + 0xc]
mov dword [ebp - 0x10], eax
lea eax, [ebp - 0x5c]
push eax
call fcn.004ea340
add esp, 0xc
cmp dword [eax + 0x14], 8
jb 0x4b0061
mov eax, dword [eax]
push esi
push dword [ebp - 0x10]
push 1
push 0
push eax
push dword [ebp + 8]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
lea ecx, [ebp - 0x5c]
mov esi, eax
call fcn.00471710
lea ecx, [ebp - 0x44]
mov byte [ebp - 4], 0
call fcn.00471710
test esi, esi
jne 0x4b00ff
cmp byte [0x991b00], 0
mov eax, dword [str.Output]
mov ecx, dword [0x7f0018]
mov dword [ebp - 0x10], eax
je 0x4b00cc
cmp byte [0x7f0008], 0
je 0x4b00cc
test cl, cl
je 0x4b0167
cmp cl, 6
jb 0x4b0167
shr ecx, 8
cmp cl, 3
jb 0x4b0167
jmp 0x4b00d4
test cl, cl
je 0x4b0167
mov dword [ebp - 0x10], 0x86f774
mov eax, dword [ebp - 0x10]
push dword [ebp + 0xc]
sub eax, 0x153790
push dword [ebp + 0x10]
push edi
push dword [ebp + 0x14]
push dword [ebp + 0x18]
push eax
push dword [0x7f001c]
push dword [0x7f0018]
jmp 0x4b015f
cmp byte [0x991b00], 0
mov eax, dword [str.Error]
mov ecx, dword [0x7f0020]
mov dword [ebp - 0x10], eax
je 0x4b0132
cmp byte [0x7f0008], 0
je 0x4b0132
test cl, cl
je 0x4b0167
cmp cl, 6
jb 0x4b0167
shr ecx, 8
cmp cl, 3
jb 0x4b0167
jmp 0x4b0136
test cl, cl
je 0x4b0167
mov dword [ebp - 0x10], 0x8901fc
mov eax, dword [ebp - 0x10]
push dword [ebp + 0xc]
sub eax, 0x1741d4
push dword [ebp + 0x10]
push edi
push dword [ebp + 0x14]
push dword [ebp + 0x18]
push eax
push dword [0x7f0024]
push dword [0x7f0020]
call fcn.004e9480
add esp, 0x20
mov eax, dword [ebp + 8]
test eax, eax
je 0x4b0175
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov ecx, dword [ebp - 0xc]
pop edi
mov dword fs:[0], ecx
pop esi
mov esp, ebp
pop ebp
ret
call fcn.006cc674
call fcn.00481390
int3