Function at 0x405640
Capabilities:
Check if file exists
Set registry value

Disassembly:
push ebp
lea ebp, [esp - 0x6c]
sub esp, 0x6c
push 0xffffffffffffffff
push 0x46e4f7
mov eax, dword fs:[0]
push eax
sub esp, 0x10c
mov eax, dword [0x493350]
xor eax, ebp
mov dword [ebp + 0x68], 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 + 0x1ac]
push str.BootstrapperQTStudio::DoInstallApp
mov esi, ebx
mov dword [ebp + 0xc], edi
mov dword [ebp + 8], ebx
call fcn.00406fa0
add esp, 4
lea ecx, [ebp - 0x4c]
mov esi, edi
call fcn.00401d40
cmp dword [eax + 0x14], 0
setne byte [ebp - 0x30]
cmp dword [ebp - 0x34], 0x10
jb 0x4056b7
mov eax, dword [ebp - 0x48]
push eax
call fcn.0044cce2
add esp, 4
push edi
call fcn.0041f334
push str.BootstrapperQTStudio::DoInstallApp___set_install_key
mov esi, ebx
call fcn.00406fa0
mov edx, dword [edi]
mov edx, dword [edx + 0x9c]
add esp, 4
lea eax, [ebp - 0x4c]
push eax
mov ecx, edi
call edx
push eax
mov ebx, 0x474544
lea esi, [ebp + 0x4c]
mov dword [ebp - 4], 0
call fcn.00409470
add esp, 4
mov esi, eax
mov byte [ebp - 4], 1
mov eax, dword [edi]
mov edx, dword [eax + 0xac]
lea ecx, [ebp + 0x30]
push ecx
mov ecx, edi
call edx
mov ebx, 8
mov byte [ebp - 4], 2
cmp dword [esi + 0x18], ebx
jb 0x40571d
mov esi, dword [esi + 4]
jmp 0x405720
add esi, 4
cmp dword [eax + 0x18], ebx
jb 0x40572a
mov ecx, dword [eax + 4]
jmp 0x40572d
lea ecx, [eax + 4]
mov al, byte [edi + 0x59]
push esi
push ecx
xor ecx, ecx
xor esi, esi
test al, al
sete cl
lea edx, [ebp - 0x54]
add ecx, 0x80000001
push ecx
push edx
call fcn.0042fb3b
add esp, 0x10
cmp dword [ebp + 0x48], ebx
jb 0x40575f
mov eax, dword [ebp + 0x34]
push eax
call fcn.0044cce2
add esp, 4
xor ecx, ecx
mov dword [ebp + 0x48], 7
mov dword [ebp + 0x44], esi
mov word [ebp + 0x34], cx
cmp dword [ebp + 0x64], ebx
jb 0x405780
mov edx, dword [ebp + 0x50]
push edx
call fcn.0044cce2
add esp, 4
xor eax, eax
mov dword [ebp + 0x64], 7
mov dword [ebp + 0x60], esi
mov word [ebp + 0x50], ax
mov byte [ebp - 4], 6
cmp dword [ebp - 0x34], ebx
jb 0x4057a5
mov ecx, dword [ebp - 0x48]
push ecx
call fcn.0044cce2
add esp, 4
mov esi, dword [ebp + 8]
xor edx, edx
push str.BootstrapperQTStudio::DoInstallApp___set_install_host_key_value
mov dword [ebp - 0x34], 7
mov dword [ebp - 0x38], 0
mov word [ebp - 0x48], dx
call fcn.00406fa0
mov eax, dword [edi]
mov edx, dword [eax + 4]
add esp, 4
lea ecx, [ebp - 0x70]
push ecx
mov ecx, edi
call edx
mov ecx, eax
lea edi, [ebp - 0x2c]
mov byte [ebp - 4], 7
call fcn.00431734
mov byte [ebp - 4], bl
cmp dword [eax + 0x18], ebx
jb 0x4057f1
mov esi, dword [eax + 4]
jmp 0x4057f4
lea esi, [eax + 4]
xor eax, eax
test esi, esi
setne al
test eax, eax
je 0x40586f
push esi
call dword [sym.imp.KERNEL32.dll_lstrlenW]
mov ecx, dword [ebp - 0x54]
lea eax, [eax + eax + 2]
push eax
push esi
push 1
push 0
push str.install_host
push ecx
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
test eax, eax
jge 0x40586f
lea edx, [ebp + 4]
push edx
mov ecx, eax
call fcn.0040d6c0
mov byte [ebp - 4], 9
mov eax, dword [eax]
push eax
push str.Failed_to_set_install_host_key_value
push str._s:__S
lea esi, [ebp - 0xc8]
call fcn.004318ef
add esp, 0x10
push eax
lea eax, [ebp - 0xf0]
push eax
mov byte [ebp - 4], 0xa
call fcn.00401340
push 0x486be4
lea ecx, [ebp - 0xf0]
push ecx
call fcn.00450dab
cmp dword [ebp - 0x14], ebx
jb 0x405880
mov edx, dword [ebp - 0x28]
push edx
call fcn.0044cce2
add esp, 4
xor eax, eax
mov byte [ebp - 4], 6
cmp dword [ebp - 0x58], 0x10
mov dword [ebp - 0x14], 7
mov dword [ebp - 0x18], 0
mov word [ebp - 0x28], ax
jb 0x4058aa
mov ecx, dword [ebp - 0x6c]
push ecx
call fcn.0044cce2
add esp, 4
mov edi, dword [ebp + 0xc]
mov edx, dword [edi]
mov eax, dword [edx + 0x14]
mov ecx, edi
call eax
mov esi, dword [ebp + 8]
push str.BootstrapperQTStudio::DoInstallApp___deploying_studio_bootstrapper
call fcn.00406fa0
push str.deploySelf
call fcn.00406fa0
add esp, 8
call fcn.0041fa9a
mov edx, dword [edi]
mov eax, dword [edx + 0x14]
mov ecx, edi
call eax
push str.BootstrapperQTStudio::DoInstallApp___DeployComponents__
call fcn.00406fa0
mov edx, dword [edi]
mov eax, dword [ebp - 0x30]
mov edx, dword [edx + 0xe0]
add esp, 4
push 1
push eax
mov ecx, edi
call edx
mov eax, dword [edi]
mov edx, dword [eax + 0x14]
mov ecx, edi
call edx
push str.BootstrapperQTStudio::DoInstallApp___writeAppSettings__
call fcn.00406fa0
add esp, 4
call fcn.0042129e
mov eax, dword [edi]
mov edx, dword [eax + 0x14]
mov ecx, edi
call edx
push str.BootstrapperQTStudio::DoInstallApp___RegisterElevationPolicy
call fcn.00406fa0
mov eax, dword [edi]
mov edx, dword [eax + 0x9c]
add esp, 4
lea ecx, [ebp + 0x14]
push ecx
mov ecx, edi
call edx
mov byte [ebp - 4], 0xb
mov eax, dword [ebp + 0x18]
cmp dword [ebp + 0x2c], ebx
jae 0x40594d
lea eax, [ebp + 0x18]
push eax
push str.RobloxStudioBeta.exe
push edi
call fcn.0041e553
mov eax, dword [edi]
mov edx, dword [eax + 0x14]
mov ecx, edi
call edx
push str.BootstrapperQTStudio::DoInstallApp___registerFileTypes__
call fcn.00406fa0
add esp, 4
mov ecx, edi
call fcn.004051d0
push str.BootstrapperQTStudio::DoInstallApp___RegisterProtocolHandler__
call fcn.00406fa0
mov eax, dword [edi]
mov edx, dword [eax + 0xc8]
add esp, 4
mov ecx, edi
call edx
xor ecx, ecx
mov word [ebp + 0x34], cx
mov ecx, eax
mov dword [ebp + 0x48], 7
mov dword [ebp + 0x44], 0
lea esi, [ecx + 2]
jmp 0x4059b0
mov dx, word [ecx]
add ecx, 2
test dx, dx
jne 0x4059b0
sub ecx, esi
sar ecx, 1
push ecx
lea esi, [ebp + 0x30]
call fcn.00408070
mov byte [ebp - 4], 0xc
mov edx, dword [edi]
mov edx, dword [edx + 0xac]
lea eax, [ebp + 0x4c]
push eax
mov ecx, edi
call edx
mov dword [ebp + 4], eax
mov byte [ebp - 4], 0xd
mov eax, dword [edi]
mov edx, dword [eax + 0x9c]
lea ecx, [ebp - 0x4c]
push ecx
mov ecx, edi
call edx
push eax
mov ebx, 0x474544
lea esi, [ebp - 0x2c]
mov byte [ebp - 4], 0xe
call fcn.00409470
add esp, 4
mov edi, dword [ebp + 0xc]
push eax
lea eax, [ebp + 0x30]
mov byte [ebp - 4], 0xf
mov ecx, dword [ebp + 4]
push eax
mov edx, edi
call fcn.0041edf3
mov esi, 8
cmp dword [ebp - 0x14], esi
jb 0x405a34
mov ecx, dword [ebp - 0x28]
push ecx
call fcn.0044cce2
add esp, 4
xor edx, edx
mov ebx, 7
mov dword [ebp - 0x14], ebx
mov dword [ebp - 0x18], 0
mov word [ebp - 0x28], dx
cmp dword [ebp - 0x34], esi
jb 0x405a5a
mov eax, dword [ebp - 0x48]
push eax
call fcn.0044cce2
add esp, 4
xor ecx, ecx
mov dword [ebp - 0x34], ebx
mov dword [ebp - 0x38], 0
mov word [ebp - 0x48], cx
cmp dword [ebp + 0x64], esi
jb 0x405a7b
mov edx, dword [ebp + 0x50]
push edx
call fcn.0044cce2
add esp, 4
xor eax, eax
mov byte [ebp - 4], 0xb
mov dword [ebp + 0x64], ebx
mov dword [ebp + 0x60], 0
mov word [ebp + 0x50], ax
cmp dword [ebp + 0x48], esi
jb 0x405aa0
mov ecx, dword [ebp + 0x34]
push ecx
call fcn.0044cce2
add esp, 4
mov esi, dword [ebp + 8]
push str.BootstrapperQTStudio::DoInstallApp___registerUninstall
call fcn.00406fa0
add esp, 4
mov ebx, edi
call fcn.0041e937
mov eax, edi
mov byte [ebp - 4], 0x10
call fcn.00425568
test al, al
je 0x405acc
mov byte [ebp + 0x13], 1
jmp 0x405adf
mov ecx, dword [ebp + 8]
mov edi, str.ROBLOX_Studio_2013
call fcn.0043108d
mov edi, dword [ebp + 0xc]
mov byte [ebp + 0x13], al
call fcn.004255bc
mov esi, dword [ebp + 8]
mov edx, str.ROBLOX_Studio_2013
mov ecx, esi
call fcn.0043113e
mov ebx, dword [ebp + 0xc]
mov dl, byte [ebx + 0x59]
mov byte [ebp + 4], dl
mov eax, dword [ebp + 4]
push eax
mov edx, str.ROBLOX_Studio_2013
mov ecx, esi
call fcn.004311f2
add esp, 4
cmp byte [ebp - 0x30], 0
je 0x405b2e
cmp byte [ebp + 0x13], 0
jne 0x405b2e
xor al, al
mov ecx, ebx
push eax
call fcn.00421437
mov dword [ebp - 4], 0xb
jmp 0x405b6a
mov eax, 1
push eax
mov ecx, ebx
call fcn.00421437
mov dword [ebp - 4], 0xb
jmp 0x405b6a
lea esi, [ebx + 0x1ac]
push str.Cleaning_up_old_beta_leftovers
mov byte [ebp - 4], 0x12
call fcn.00406fa0
add esp, 4
push str.Looking_for_old_beta_programs_link_folder
call fcn.00406fa0
mov al, byte [ebx + 0x59]
add esp, 4
xor ecx, ecx
test al, al
sete cl
push 0
push 0
push 0
lea edx, [ebp + 0x30]
add ecx, 3
push ecx
push edx
call fcn.0043290e
add esp, 0x14
push 0xb
mov eax, str.RobloxBeta_
lea ecx, [ebp + 0x30]
mov byte [ebp - 4], 0x13
call fcn.00407f90
cmp dword [ebp + 0x48], 8
mov eax, dword [ebp + 0x34]
jae 0x405bcd
lea eax, [ebp + 0x34]
mov edi, dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
push eax
call edi
cmp eax, 0xffffffff
je 0x405bec
test al, 0x10
je 0x405bec
push 0
lea eax, [ebp + 0x30]
push eax
mov ecx, ebx
call fcn.004234b7
push str.Looking_for_old_beta_data_folder
call fcn.00406fa0
mov al, byte [ebx + 0x59]
add esp, 4
xor ecx, ecx
test al, al
setne cl
push 1
push str.StudioBetaVersions
push 0
lea edx, [ebp + 0x4c]
dec ecx
and ecx, 5
push ecx
push edx
call fcn.0043290e
add esp, 0x14
mov byte [ebp - 4], 0x14
cmp dword [ebp + 0x64], 8
mov eax, dword [ebp + 0x50]
jae 0x405c2d
lea eax, [ebp + 0x50]
push eax
call edi
cmp eax, 0xffffffff
je 0x405c46
test al, 0x10
je 0x405c46
push 0
lea eax, [ebp + 0x4c]
push eax
mov ecx, ebx
call fcn.004234b7
push str.Deleting_old_beta_uninstall_entry
call fcn.00406fa0
mov al, byte [ebx + 0x59]
add esp, 4
xor ecx, ecx
test al, al
sete cl
push 0
push str.SoftwareMicrosoftWindowsCurrentVersionUninstall_
lea edx, [ebp]
add ecx, 0x80000001
push ecx
push edx
call fcn.0042fb3b
add esp, 0x10
mov byte [ebp - 4], 0x15
mov eax, dword [ebp]
push eax
push esi
mov edi, str.6B64A6DF_79A4_418A_9A30_C7CFFAB603E9
call fcn.0042fbe7
mov eax, dword [ebp]
xor esi, esi
add esp, 8
cmp eax, esi
je 0x405ca0
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov dword [ebp], esi
mov edi, 8
mov dword [ebp + 4], esi
cmp dword [ebp + 0x64], edi
jb 0x405cb9
mov ecx, dword [ebp + 0x50]
push ecx
call fcn.0044cce2
add esp, 4
xor edx, edx
mov dword [ebp + 0x64], 7
mov dword [ebp + 0x60], esi
mov word [ebp + 0x50], dx
cmp dword [ebp + 0x48], edi
jb 0x405cda
mov eax, dword [ebp + 0x34]
push eax
call fcn.0044cce2
add esp, 4
mov dword [ebp - 4], 0xb
jmp 0x405d14
lea esi, [ebx + 0x1ac]
push str.BootstrapperQTStudio::DoInstallApp___set_version_key_value
mov dword [ebp + 8], esi
call fcn.00406fa0
mov edx, dword [ebx]
mov edx, dword [edx + 8]
add esp, 4
lea eax, [ebp - 0x70]
push eax
mov ecx, ebx
call edx
mov ecx, eax
lea edi, [ebp - 0x2c]
mov byte [ebp - 4], 0x17
call fcn.00431734
mov byte [ebp - 4], 0x18
cmp dword [eax + 0x18], 8
jb 0x405d54
mov edi, dword [eax + 4]
jmp 0x405d57
lea edi, [eax + 4]
xor eax, eax
test edi, edi
setne al
test eax, eax
je 0x405dd2
push edi
call dword [sym.imp.KERNEL32.dll_lstrlenW]
mov ecx, dword [ebp - 0x54]
lea eax, [eax + eax + 2]
push eax
push edi
push 1
push 0
push str.version
push ecx
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
test eax, eax
jge 0x405dd2
lea edx, [ebp + 4]
push edx
mov ecx, eax
call fcn.0040d6c0
mov byte [ebp - 4], 0x19
mov eax, dword [eax]
push eax
push str.Failed_to_set_version_key_value
push str._s:__S
lea esi, [ebp - 0xc8]
call fcn.004318ef
add esp, 0x10
push eax
lea eax, [ebp - 0x118]
push eax
mov byte [ebp - 4], 0x1a
call fcn.00401340
push 0x486be4
lea ecx, [ebp - 0x118]
push ecx
call fcn.00450dab
cmp dword [ebp - 0x14], 8
jb 0x405de4
mov edx, dword [ebp - 0x28]
push edx
call fcn.0044cce2
add esp, 4
xor eax, eax
mov byte [ebp - 4], 0xb
cmp dword [ebp - 0x58], 0x10
mov dword [ebp - 0x14], 7
mov dword [ebp - 0x18], 0
mov word [ebp - 0x28], ax
jb 0x405e0e
mov ecx, dword [ebp - 0x6c]
push ecx
call fcn.0044cce2
add esp, 4
mov edx, dword [ebx]
mov edx, dword [edx]
lea eax, [ebp - 0xc8]
push eax
mov ecx, ebx
call edx
mov ecx, eax
lea edi, [ebp - 0x70]
mov byte [ebp - 4], 0x1b
call fcn.00431734
mov esi, eax
mov byte [ebp - 4], 0x1c
mov eax, dword [ebx]
mov edx, dword [eax + 8]
lea ecx, [ebp - 0x90]
push ecx
mov ecx, ebx
call edx
mov ecx, eax
lea edi, [ebp - 0xac]
mov byte [ebp - 4], 0x1d
call fcn.00431734
mov edi, eax
lea eax, [ebp - 0x2c]
push eax
mov byte [ebp - 4], 0x1e
call fcn.00430532
add esp, 4
mov byte [ebp - 4], 0x1f
cmp dword [esi + 0x18], 8
jb 0x405e73
mov ecx, dword [esi + 4]
jmp 0x405e76
lea ecx, [esi + 4]
mov edx, 8
cmp dword [edi + 0x18], edx
jb 0x405e85
mov edi, dword [edi + 4]
jmp 0x405e88
add edi, 4
cmp dword [eax + 0x18], edx
jb 0x405e92
mov edx, dword [eax + 4]
jmp 0x405e95
lea edx, [eax + 4]
movzx eax, byte [ebx + 0x59]
push edi
mov edi, dword [ebp + 8]
push eax
call fcn.00430332
mov ebx, 8
add esp, 8
cmp dword [ebp - 0x14], ebx
jb 0x405ebc
mov ecx, dword [ebp - 0x28]
push ecx
call fcn.0044cce2
add esp, 4
xor esi, esi
xor edx, edx
mov edi, 7
mov dword [ebp - 0x14], edi
mov dword [ebp - 0x18], esi
mov word [ebp - 0x28], dx
cmp dword [ebp - 0x94], ebx
jb 0x405ee6
mov eax, dword [ebp - 0xa8]
push eax
call fcn.0044cce2
add esp, 4
xor ecx, ecx
cmp dword [ebp - 0x78], 0x10
mov dword [ebp - 0x94], edi
mov dword [ebp - 0x98], esi
mov word [ebp - 0xa8], cx
jb 0x405f10
mov edx, dword [ebp - 0x8c]
push edx
call fcn.0044cce2
add esp, 4
mov dword [ebp - 0x78], 0xf
mov dword [ebp - 0x7c], esi
mov byte [ebp - 0x8c], 0
cmp dword [ebp - 0x58], ebx
jb 0x405f32
mov eax, dword [ebp - 0x6c]
push eax
call fcn.0044cce2
add esp, 4
xor ecx, ecx
cmp dword [ebp - 0xb0], 0x10
mov dword [ebp - 0x58], edi
mov dword [ebp - 0x5c], esi
mov word [ebp - 0x6c], cx
jb 0x405f56
mov edx, dword [ebp - 0xc4]
push edx
call fcn.0044cce2
add esp, 4
cmp dword [ebp + 0x2c], ebx
jb 0x405f67
mov eax, dword [ebp + 0x18]
push eax
call fcn.0044cce2
add esp, 4
mov eax, dword [ebp - 0x54]
xor ecx, ecx
mov dword [ebp + 0x2c], edi
mov dword [ebp + 0x28], esi
mov word [ebp + 0x18], cx
cmp eax, esi
je 0x405f81
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 + 0x68]
xor ecx, ebp
call fcn.0044cced
add ebp, 0x6c
mov esp, ebp
pop ebp
ret