Function at 0x406220
Capabilities:
Check if file exists
Get file attributes
Set registry value

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x46c42d
mov eax, dword fs:[0]
push eax
sub esp, 0xc8
mov eax, dword [0x49b7f8]
xor eax, ebp
mov dword [ebp - 0x14], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x10], esp
mov edi, ecx
lea ebx, [edi + 0x160]
push str.BootstrapperQTStudio::DoInstallApp
push ebx
mov dword [ebp - 0xa8], edi
call fcn.004087a0
add esp, 8
lea eax, [ebp - 0x5c]
push eax
mov ecx, edi
call fcn.00402310
cmp dword [eax + 0x10], 0
setne byte [ebp - 0xac]
cmp dword [ebp - 0x48], 0x10
jb 0x406294
push dword [ebp - 0x5c]
call fcn.0044f82f
add esp, 4
mov ecx, edi
call fcn.0041f77e
push str.BootstrapperQTStudio::DoInstallApp___set_install_key
push ebx
call fcn.004087a0
mov eax, dword [edi]
add esp, 8
lea ecx, [ebp - 0x74]
push ecx
mov ecx, edi
call dword [eax + 0xa4]
push str.Limb16StudioLauncherBeta.exe
mov edx, eax
lea ecx, [ebp - 0x44]
mov dword [ebp - 4], 0
call fcn.0040b6e0
add esp, 4
mov esi, eax
mov byte [ebp - 4], 1
mov edx, dword [edi]
lea eax, [ebp - 0x2c]
push eax
mov ecx, edi
call dword [edx + 0xb4]
mov ecx, eax
mov byte [ebp - 4], 2
cmp dword [esi + 0x14], 8
jb 0x4062f2
mov esi, dword [esi]
cmp dword [ecx + 0x14], 8
jb 0x4062fa
mov ecx, dword [ecx]
mov al, byte [edi + 0x4d]
xor edx, edx
test al, al
sete dl
push ecx
push esi
push ecx
lea ecx, [ebp - 0xb8]
add edx, 0x80000001
call fcn.0042db09
add esp, 0xc
cmp dword [ebp - 0x18], 8
jb 0x40632c
push dword [ebp - 0x2c]
call fcn.0044f82f
add esp, 4
xor eax, eax
mov dword [ebp - 0x18], 7
mov dword [ebp - 0x1c], 0
mov word [ebp - 0x2c], ax
cmp dword [ebp - 0x30], 8
jb 0x406351
push dword [ebp - 0x44]
call fcn.0044f82f
add esp, 4
xor eax, eax
mov dword [ebp - 0x30], 7
mov dword [ebp - 0x34], 0
mov word [ebp - 0x44], ax
mov byte [ebp - 4], 6
cmp dword [ebp - 0x60], 8
jb 0x40637a
push dword [ebp - 0x74]
call fcn.0044f82f
add esp, 4
xor eax, eax
push str.BootstrapperQTStudio::DoInstallApp___set_install_host_key_value
push ebx
mov dword [ebp - 0x60], 7
mov dword [ebp - 0x64], 0
mov word [ebp - 0x74], ax
call fcn.004087a0
mov eax, dword [edi]
add esp, 8
lea ecx, [ebp - 0x8c]
push ecx
mov ecx, edi
call dword [eax + 4]
mov edx, eax
lea ecx, [ebp - 0x5c]
mov byte [ebp - 4], 7
call fcn.0042f884
mov edx, eax
mov byte [ebp - 4], 8
cmp dword [edx + 0x14], 8
jb 0x4063c6
mov edx, dword [edx]
xor eax, eax
test edx, edx
setne al
test eax, eax
je 0x40647a
mov ecx, edx
lea esi, [ecx + 2]
lea ebx, [ebx]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x4063e0
sub ecx, esi
sar ecx, 1
lea eax, [ecx*2 + 2]
push eax
push edx
push 1
push 0
push str.install_host
push dword [ebp - 0xb8]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
test eax, eax
jns 0x40647a
push ecx
mov edx, eax
lea ecx, [ebp - 0xa8]
call fcn.00411d10
mov byte [ebp - 4], 9
push dword [eax]
lea eax, [ebp - 0x2c]
push str.Failed_to_set_install_host_key_value
push str._s:__S
push eax
call fcn.0042fa5d
add esp, 0x14
mov byte [ebp - 4], 0xa
cmp dword [eax + 0x14], 0x10
jb 0x406447
mov eax, dword [eax]
mov dword [ebp - 0xac], eax
lea eax, [ebp - 0xac]
push eax
lea ecx, [ebp - 0xc4]
call fcn.0044f8e7
push 0x48e968
lea eax, [ebp - 0xc4]
push eax
mov dword [ebp - 0xc4], vtable.std::runtime_error.0
call fcn.00454ac3
cmp dword [ebp - 0x48], 8
jb 0x40648b
push dword [ebp - 0x5c]
call fcn.0044f82f
add esp, 4
xor eax, eax
mov byte [ebp - 4], 6
cmp dword [ebp - 0x78], 0x10
mov dword [ebp - 0x48], 7
mov dword [ebp - 0x4c], 0
mov word [ebp - 0x5c], ax
jb 0x4064b7
push dword [ebp - 0x8c]
call fcn.0044f82f
add esp, 4
mov eax, dword [edi]
mov ecx, edi
call dword [eax + 0x14]
push str.BootstrapperQTStudio::DoInstallApp___deploying_studio_bootstrapper
push ebx
call fcn.004087a0
add esp, 4
mov ecx, edi
call fcn.0041fe46
mov eax, dword [edi]
mov ecx, edi
call dword [eax + 0x14]
push str.BootstrapperQTStudio::DoInstallApp___DeployComponents__
push ebx
call fcn.004087a0
mov eax, dword [edi]
add esp, 8
mov ecx, edi
push 1
push dword [ebp - 0xac]
call dword [eax + 0xe8]
mov eax, dword [edi]
mov ecx, edi
call dword [eax + 0x14]
push str.BootstrapperQTStudio::DoInstallApp___writeAppSettings__
push ebx
call fcn.004087a0
add esp, 8
mov ecx, edi
call fcn.0042159e
mov eax, dword [edi]
mov ecx, edi
call dword [eax + 0x14]
push str.BootstrapperQTStudio::DoInstallApp___RegisterElevationPolicy
push ebx
call fcn.004087a0
mov eax, dword [edi]
add esp, 8
lea ecx, [ebp - 0xa4]
push ecx
mov ecx, edi
call dword [eax + 0xa4]
mov byte [ebp - 4], 0xb
cmp dword [ebp - 0x90], 8
lea eax, [ebp - 0xa4]
cmovae eax, dword [ebp - 0xa4]
push eax
push str.RobloxStudioBeta.exe
mov ecx, edi
call fcn.0041ea3f
mov eax, dword [edi]
mov ecx, edi
call dword [eax + 0x14]
push str.BootstrapperQTStudio::DoInstallApp___registerFileTypes__
push ebx
call fcn.004087a0
add esp, 8
mov ecx, edi
call fcn.00405c80
push str.BootstrapperQTStudio::DoInstallApp___RegisterProtocolHandler__
push ebx
call fcn.004087a0
mov eax, dword [edi]
add esp, 8
mov ecx, edi
call dword [eax + 0xd0]
mov esi, eax
xor eax, eax
mov dword [ebp - 0x18], 7
mov dword [ebp - 0x1c], 0
mov word [ebp - 0x2c], ax
cmp word [esi], ax
jne 0x4065b4
xor ecx, ecx
jmp 0x4065cf
mov ecx, esi
lea edx, [ecx + 2]
lea esp, [esp]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x4065c0
sub ecx, edx
sar ecx, 1
push ecx
push esi
lea ecx, [ebp - 0x2c]
call fcn.0040a280
lea ecx, [ebp - 0x74]
mov byte [ebp - 4], 0xc
mov eax, dword [edi]
push ecx
mov ecx, edi
call dword [eax + 0xb4]
mov esi, eax
mov byte [ebp - 4], 0xd
mov edx, dword [edi]
lea eax, [ebp - 0x44]
push eax
mov ecx, edi
call dword [edx + 0xa4]
push str.Limb16StudioLauncherBeta.exe
mov edx, eax
lea ecx, [ebp - 0x5c]
mov byte [ebp - 4], 0xe
call fcn.0040b6e0
add esp, 4
push esi
push eax
lea eax, [ebp - 0x2c]
push eax
mov ecx, edi
mov byte [ebp - 4], 0xf
call fcn.0041f26d
cmp dword [ebp - 0x48], 8
jb 0x406637
push dword [ebp - 0x5c]
call fcn.0044f82f
add esp, 4
xor eax, eax
cmp dword [ebp - 0x30], 8
mov dword [ebp - 0x48], 7
mov dword [ebp - 0x4c], 0
mov word [ebp - 0x5c], ax
jb 0x40665c
push dword [ebp - 0x44]
call fcn.0044f82f
add esp, 4
xor eax, eax
cmp dword [ebp - 0x60], 8
mov dword [ebp - 0x30], 7
mov dword [ebp - 0x34], 0
mov word [ebp - 0x44], ax
jb 0x406681
push dword [ebp - 0x74]
call fcn.0044f82f
add esp, 4
xor eax, eax
mov byte [ebp - 4], 0xb
cmp dword [ebp - 0x18], 8
mov dword [ebp - 0x60], 7
mov dword [ebp - 0x64], 0
mov word [ebp - 0x74], ax
jb 0x4066aa
push dword [ebp - 0x2c]
call fcn.0044f82f
add esp, 4
push str.BootstrapperQTStudio::DoInstallApp___registerUninstall
push ebx
call fcn.004087a0
add esp, 4
mov ecx, edi
call fcn.0041ee0f
mov ecx, edi
mov byte [ebp - 4], 0x10
call fcn.004256fc
test al, al
je 0x4066d2
mov bl, 1
jmp 0x4066e0
mov edx, str.ROBLOX_Studio_2013
mov ecx, ebx
call fcn.0042eede
mov bl, al
mov ecx, edi
call fcn.00406f30
cmp byte [ebp - 0xac], 0
je 0x4066f8
test bl, bl
jne 0x4066f8
xor al, al
jmp 0x4066fd
mov eax, 1
sub esp, 0xc
mov ecx, edi
push eax
call fcn.0042172c
mov dword [ebp - 4], 0xb
jmp 0x40673d
lea esi, [edi + 0x160]
push str.Cleaning_up_old_beta_leftovers
push esi
mov byte [ebp - 4], 0x12
call fcn.004087a0
add esp, 8
push str.Looking_for_old_beta_programs_link_folder
push esi
call fcn.004087a0
mov al, byte [edi + 0x4d]
add esp, 8
xor edx, edx
test al, al
sete dl
push 0
push 0
push 0
lea ecx, [ebp - 0x2c]
add edx, 3
call fcn.0042ff61
add esp, 0xc
push 0xb
push str.RobloxBeta_
lea ecx, [ebp - 0x2c]
mov byte [ebp - 4], 0x13
call fcn.0040a150
cmp dword [ebp - 0x18], 8
mov ebx, dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
lea eax, [ebp - 0x2c]
cmovae eax, dword [ebp - 0x2c]
push eax
call ebx
cmp eax, 0xffffffff
je 0x4067be
test al, 0x10
je 0x4067be
push 0
lea eax, [ebp - 0x2c]
push eax
mov ecx, edi
call fcn.004236e4
push str.Looking_for_old_beta_data_folder
push esi
call fcn.004087a0
mov al, byte [edi + 0x4d]
add esp, 8
xor ecx, ecx
push 1
test al, al
mov edx, 5
push str.StudioBetaVersions
cmovne edx, ecx
push 0
lea ecx, [ebp - 0x44]
call fcn.0042ff61
add esp, 0xc
mov byte [ebp - 4], 0x14
cmp dword [ebp - 0x30], 8
lea eax, [ebp - 0x44]
cmovae eax, dword [ebp - 0x44]
push eax
call ebx
cmp eax, 0xffffffff
je 0x406817
test al, 0x10
je 0x406817
push 0
lea eax, [ebp - 0x44]
push eax
mov ecx, edi
call fcn.004236e4
push str.Deleting_old_beta_uninstall_entry
push esi
call fcn.004087a0
mov al, byte [edi + 0x4d]
add esp, 8
xor edx, edx
test al, al
sete dl
push ecx
push 0
push str.SoftwareMicrosoftWindowsCurrentVersionUninstall_
lea ecx, [ebp - 0x68]
add edx, 0x80000001
call fcn.0042db09
add esp, 0xc
mov byte [ebp - 4], 0x15
mov edx, dword [ebp - 0x68]
push str.6B64A6DF_79A4_418A_9A30_C7CFFAB603E9
mov ecx, esi
call fcn.0042dbda
mov eax, dword [ebp - 0x68]
add esp, 4
test eax, eax
je 0x406873
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov dword [ebp - 0x68], 0
cmp dword [ebp - 0x30], 8
mov dword [ebp - 0x64], 0
jb 0x40688b
push dword [ebp - 0x44]
call fcn.0044f82f
add esp, 4
xor eax, eax
cmp dword [ebp - 0x18], 8
mov dword [ebp - 0x30], 7
mov dword [ebp - 0x34], 0
mov word [ebp - 0x44], ax
jb 0x4068b0
push dword [ebp - 0x2c]
call fcn.0044f82f
add esp, 4
mov dword [ebp - 4], 0xb
jmp 0x4068f1
lea eax, [edi + 0x160]
push str.BootstrapperQTStudio::DoInstallApp___set_version_key_value
push eax
call fcn.004087a0
mov eax, dword [edi]
add esp, 8
lea ecx, [ebp - 0x8c]
push ecx
mov ecx, edi
call dword [eax + 8]
mov edx, eax
lea ecx, [ebp - 0x5c]
mov byte [ebp - 4], 0x17
call fcn.0042f884
mov edx, eax
mov byte [ebp - 4], 0x18
cmp dword [edx + 0x14], 8
jb 0x40692f
mov edx, dword [edx]
xor eax, eax
test edx, edx
setne al
test eax, eax
je 0x4069dd
mov ecx, edx
lea esi, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x406943
sub ecx, esi
sar ecx, 1
lea eax, [ecx*2 + 2]
push eax
push edx
push 1
push 0
push 0x47d374
push dword [ebp - 0xb8]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
test eax, eax
jns 0x4069dd
push ecx
mov edx, eax
lea ecx, [ebp - 0xa8]
call fcn.00411d10
mov byte [ebp - 4], 0x19
push dword [eax]
lea eax, [ebp - 0x2c]
push str.Failed_to_set_version_key_value
push str._s:__S
push eax
call fcn.0042fa5d
add esp, 0x14
mov byte [ebp - 4], 0x1a
cmp dword [eax + 0x14], 0x10
jb 0x4069aa
mov eax, dword [eax]
mov dword [ebp - 0xac], eax
lea eax, [ebp - 0xac]
push eax
lea ecx, [ebp - 0xd0]
call fcn.0044f8e7
push 0x48e968
lea eax, [ebp - 0xd0]
push eax
mov dword [ebp - 0xd0], vtable.std::runtime_error.0
call fcn.00454ac3
cmp dword [ebp - 0x48], 8
jb 0x4069ee
push dword [ebp - 0x5c]
call fcn.0044f82f
add esp, 4
xor eax, eax
mov byte [ebp - 4], 0xb
cmp dword [ebp - 0x78], 0x10
mov dword [ebp - 0x48], 7
mov dword [ebp - 0x4c], 0
mov word [ebp - 0x5c], ax
jb 0x406a1a
push dword [ebp - 0x8c]
call fcn.0044f82f
add esp, 4
mov eax, dword [edi]
lea ecx, [ebp - 0x8c]
push ecx
mov ecx, edi
call dword [eax]
mov edx, eax
lea ecx, [ebp - 0x74]
mov byte [ebp - 4], 0x1b
call fcn.0042f884
mov ebx, eax
mov byte [ebp - 4], 0x1c
mov edx, dword [edi]
lea eax, [ebp - 0x44]
push eax
mov ecx, edi
call dword [edx + 8]
mov edx, eax
lea ecx, [ebp - 0x2c]
mov byte [ebp - 4], 0x1d
call fcn.0042f884
mov esi, eax
lea ecx, [ebp - 0x5c]
mov byte [ebp - 4], 0x1e
call fcn.0042e3da
mov byte [ebp - 4], 0x1f
cmp dword [ebx + 0x14], 8
jb 0x406a6e
mov ebx, dword [ebx]
cmp dword [esi + 0x14], 8
jb 0x406a76
mov esi, dword [esi]
cmp dword [eax + 0x14], 8
jb 0x406a7e
mov eax, dword [eax]
mov dl, byte [edi + 0x4d]
push ebx
push esi
push eax
lea ecx, [edi + 0x160]
call fcn.0042e1d8
add esp, 0xc
cmp dword [ebp - 0x48], 8
jb 0x406aa3
push dword [ebp - 0x5c]
call fcn.0044f82f
add esp, 4
xor eax, eax
cmp dword [ebp - 0x18], 8
mov dword [ebp - 0x48], 7
mov dword [ebp - 0x4c], 0
mov word [ebp - 0x5c], ax
jb 0x406ac8
push dword [ebp - 0x2c]
call fcn.0044f82f
add esp, 4
xor eax, eax
cmp dword [ebp - 0x30], 0x10
mov dword [ebp - 0x18], 7
mov dword [ebp - 0x1c], 0
mov word [ebp - 0x2c], ax
jb 0x406aed
push dword [ebp - 0x44]
call fcn.0044f82f
add esp, 4
cmp dword [ebp - 0x60], 8
mov dword [ebp - 0x30], 0xf
mov dword [ebp - 0x34], 0
mov byte [ebp - 0x44], 0
jb 0x406b10
push dword [ebp - 0x74]
call fcn.0044f82f
add esp, 4
xor eax, eax
cmp dword [ebp - 0x78], 0x10
mov dword [ebp - 0x60], 7
mov dword [ebp - 0x64], 0
mov word [ebp - 0x74], ax
jb 0x406b38
push dword [ebp - 0x8c]
call fcn.0044f82f
add esp, 4
cmp dword [ebp - 0x90], 8
jb 0x406b4f
push dword [ebp - 0xa4]
call fcn.0044f82f
add esp, 4
xor eax, eax
mov word [ebp - 0xa4], ax
mov eax, dword [ebp - 0xb8]
mov dword [ebp - 0x90], 7
mov dword [ebp - 0x94], 0
test eax, eax
je 0x406b7d
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x14]
xor ecx, ebp
call fcn.0044f834
mov esp, ebp
pop ebp
ret