Function at 0x405afe
Capabilities:
Delete file

Disassembly:
push ebp
sub esp, 0x4b8
lea ebp, [esp - 4]
mov eax, dword [0x488180]
xor eax, ebp
mov dword [ebp + 0x4b8], eax
push 0xf4
mov eax, 0x464a21
call fcn.00447edc
mov eax, dword [ebp + 0x4e0]
and dword [ebp - 0x1c], 0
mov dword [ebp - 0x24], eax
mov eax, dword [ebp + 0x504]
mov edi, ecx
mov dword [ebp - 0x20], edi
mov dword [ebp - 0x28], eax
mov dword [ebp - 4], 1
cmp dword [ebp + 0x4fc], 8
mov ecx, dword [ebp + 0x4e8]
jae 0x405b5c
lea ecx, [ebp + 0x4e8]
cmp dword [ebp + 0x4dc], 0x10
mov eax, dword [ebp + 0x4c8]
jae 0x405b71
lea eax, [ebp + 0x4c8]
push ecx
push dword [ebp - 0x24]
lea esi, [edi + 0x188]
push eax
mov ebx, str.BootstrapperClient::deployExtraStudioBootstrapper_name___s__linkName___S__component___S
push ebx
mov dword [ebp - 0x1c], esi
call fcn.0040939b
mov eax, dword [edi]
add esp, 0x10
push str.BootstrapperDeployStudioBootstrapperStarted
mov ecx, edi
call dword [eax + 0x6c]
mov byte [ebp - 4], 2
cmp dword [ebp + 0x4fc], 8
mov ecx, dword [ebp + 0x4e8]
jae 0x405bb2
lea ecx, [ebp + 0x4e8]
cmp dword [ebp + 0x4dc], 0x10
mov eax, dword [ebp + 0x4c8]
jae 0x405bc7
lea eax, [ebp + 0x4c8]
mov esi, dword [ebp - 0x1c]
push ecx
push dword [ebp - 0x24]
push eax
push ebx
call fcn.0040939b
add esp, 0x10
lea eax, [ebp + 0x4c4]
push eax
lea ecx, [ebp + 0x1c]
call fcn.004084ee
mov byte [ebp - 4], 3
mov al, byte [edi + 0x59]
mov byte [ebp - 0x18], al
push dword [ebp - 0x18]
lea eax, [ebp + 0x8c]
push eax
call fcn.004170d7
lea edx, [ebp + 0x1c]
lea ecx, [ebp + 0x70]
mov byte [ebp - 4], 4
call fcn.0042a528
push 0xffffffffffffffff
xor ebx, ebx
push ebx
lea ecx, [ebp + 0x8c]
mov byte [ebp - 4], 5
call fcn.004097fa
push ebx
push 1
lea esi, [ebp + 0x70]
mov byte [ebp - 4], 4
call fcn.00409a53
xor eax, eax
mov esi, 0x206
push esi
mov word [ebp + 0x2b0], ax
lea eax, [ebp + 0x2b2]
push ebx
push eax
call fcn.00447690
xor eax, eax
push esi
mov word [ebp + 0xa8], ax
lea eax, [ebp + 0xaa]
push ebx
push eax
call fcn.00447690
mov eax, dword [ebp + 0x4e8]
add esp, 0x18
cmp dword [ebp + 0x4fc], 8
jae 0x405c7d
lea eax, [ebp + 0x4e8]
mov cl, byte [edi + 0x59]
mov ebx, dword [ebp - 0x1c]
mov byte [ebp - 0x18], cl
push eax
push dword [ebp - 0x18]
lea ecx, [ebp + 0xa8]
lea edx, [ebp + 0x2b0]
call fcn.00427c90
pop ecx
pop ecx
lea eax, [ebp + 0xa8]
push eax
lea eax, [ebp + 0x2b0]
push eax
push str.BootstrapperClient::deployExtraStudioBootstrapper___Studio_version___S__url___S
mov esi, ebx
call fcn.0040939b
add esp, 0xc
mov edi, str.ROBLOX_Studio_2013
mov ecx, esi
mov byte [ebp - 4], 6
call fcn.00428b5e
mov eax, dword [ebp - 0x20]
mov al, byte [eax + 0x59]
mov byte [ebp - 0x18], al
push edi
push dword [ebp - 0x18]
mov ecx, esi
call fcn.00428c25
pop ecx
pop ecx
mov dword [ebp - 4], 4
mov ebx, dword [ebp - 0x20]
cmp byte [ebx + 0x36b], 0
mov byte [ebp - 0x11], 0
je 0x405db0
lea eax, [ebp + 0x5c]
call fcn.00429909
lea edx, [ebp + 0x8c]
lea ecx, [ebp + 0x70]
mov byte [ebp - 4], 8
call fcn.0042a4b5
mov ecx, eax
lea edi, [ebp + 0x5c]
mov byte [ebp - 4], 9
call fcn.00429a12
push 0
push 1
lea ecx, [ebp + 0x70]
mov esi, eax
mov byte [ebp - 4], 8
call fcn.004097af
test esi, esi
je 0x405da4
mov eax, edi
push eax
lea ecx, [ebp + 0x70]
call fcn.00429c2f
lea eax, [ebx + 0x330]
mov byte [ebp - 4], 0xa
cmp dword [eax + 0x18], 0x10
jb 0x405d84
mov eax, dword [eax + 4]
jmp 0x405d87
add eax, 4
push eax
lea eax, [ebp + 0x70]
call fcn.00408552
test eax, eax
je 0x405d98
mov byte [ebp - 0x11], 1
push 0
push 1
lea ecx, [ebp + 0x70]
call fcn.004097af
lea esi, [ebp + 0x5c]
mov byte [ebp - 4], 4
call fcn.0042992b
lea eax, [ebp + 0x2b0]
push eax
lea esi, [ebp - 0x54]
call fcn.0040858a
xor ebx, ebx
mov byte [ebp - 4], 0xb
inc ebx
cmp dword [eax + 0x14], 0
mov dword [ebp - 0x1c], ebx
je 0x405e39
cmp byte [ebp - 0x11], 0
jne 0x405e39
mov edi, dword [ebp - 0x20]
mov eax, dword [edi]
lea ecx, [ebp - 0x78]
push ecx
mov ecx, edi
call dword [eax]
mov dword [ebp - 4], 0xc
mov edx, eax
lea ecx, [ebp + 0x54]
mov dword [ebp - 0x1c], 3
call fcn.0042a528
mov dword [ebp - 0x18], eax
lea eax, [ebp + 0xa8]
mov dword [ebp - 4], 0xd
push eax
lea esi, [ebp + 0x70]
mov dword [ebp - 0x1c], 7
call fcn.0040858a
mov dword [ebp - 4], 0xe
mov ecx, dword [ebp - 0x18]
push 0xf
pop ebx
mov dword [ebp - 0x1c], ebx
call fcn.0040b998
test al, al
je 0x405e3c
mov byte [ebp - 0x11], 1
jmp 0x405e40
mov edi, dword [ebp - 0x20]
mov byte [ebp - 0x11], 0
test bl, 8
je 0x405e54
push 0
push 1
lea esi, [ebp + 0x70]
and ebx, 0xfffffff7
call fcn.00409a53
test bl, 4
je 0x405e68
push 0
push 1
lea esi, [ebp + 0x54]
and ebx, 0xfffffffb
call fcn.00409a53
test bl, 2
je 0x405e7c
push 0
push 1
lea ecx, [ebp - 0x78]
and ebx, 0xfffffffd
call fcn.004097af
mov dword [ebp - 4], 4
test bl, 1
je 0x405e94
push 0
push 1
lea esi, [ebp - 0x54]
call fcn.00409a53
cmp byte [ebp - 0x11], 0
je 0x405f7b
lea ebx, [edi + 0x188]
push str.BootstrapperClient::deployExtraStudioBootstrapper___Studio_bootstrapper_version_is_present_and_URL_is_current_one
mov esi, ebx
call fcn.0040939b
cmp dword [ebp + 0xa4], 8
mov eax, dword [ebp + 0x90]
pop ecx
jae 0x405ec6
lea eax, [ebp + 0x90]
push eax
call fcn.0042af75
pop ecx
test al, al
je 0x405f7b
push str.BootstrapperClient::deployExtraStudioBootstrapper___Studio_bootstrapper_is_present._updating_links_and_leaving
mov esi, ebx
call fcn.0040939b
cmp dword [ebp + 0xa4], 8
mov eax, dword [ebp + 0x90]
pop ecx
jae 0x405ef7
lea eax, [ebp + 0x90]
mov cl, byte [edi + 0x59]
push 1
push 0
mov esi, str._ide
push esi
push eax
mov byte [ebp - 0x18], cl
push dword [ebp - 0x18]
mov ecx, dword [ebp - 0x24]
push ebx
call fcn.004281e4
mov eax, dword [ebp + 0x90]
add esp, 0x18
cmp dword [ebp + 0xa4], 8
jae 0x405f2c
lea eax, [ebp + 0x90]
push dword [ebp + 0x500]
mov cl, byte [edi + 0x59]
push 1
push esi
push eax
mov byte [ebp - 0x18], cl
push dword [ebp - 0x18]
mov ecx, dword [ebp - 0x24]
push ebx
call fcn.004281e4
add esp, 0x18
xor edi, edi
xor ebx, ebx
push edi
inc ebx
push ebx
lea esi, [ebp + 0x8c]
call fcn.00409a53
push edi
push ebx
lea ecx, [ebp + 0x1c]
call fcn.004097af
push edi
push ebx
lea ecx, [ebp + 0x4c4]
call fcn.004097af
push edi
push ebx
jmp 0x406459
mov ecx, 0x46a518
lea ebx, [ebp + 0x38]
call fcn.004092d7
mov byte [ebp - 4], 0xf
cmp dword [ebp + 0x50], 8
mov eax, dword [ebp + 0x3c]
jae 0x405f98
lea eax, [ebp + 0x3c]
push eax
lea eax, [ebp - 0x100]
push eax
push 0x20
pop ecx
call fcn.00408975
mov byte [ebp - 4], 0x10
cmp dword [ebp + 0x4dc], 0x10
mov eax, dword [ebp + 0x4c8]
jae 0x405fc1
lea eax, [ebp + 0x4c8]
push eax
sub esp, 0x1c
mov ecx, esp
mov dword [ebp - 0x18], esp
push str.versionQTStudio
call fcn.004084cc
mov edi, dword [ebp - 0x20]
lea eax, [ebp - 0x54]
push eax
mov ecx, edi
call fcn.004171d4
mov byte [ebp - 4], 0x11
cmp dword [eax + 0x18], 0x10
jb 0x405ff1
mov eax, dword [eax + 4]
jmp 0x405ff4
add eax, 4
push eax
push str.__s__s
lea esi, [ebp + 0x54]
call fcn.0042a6df
add esp, 0xc
xor ebx, ebx
push ebx
push 1
lea ecx, [ebp - 0x54]
call fcn.004097af
sub esp, 0x20
mov esi, esp
mov dword [ebp - 0x18], esp
push dword [ebp - 0x34]
mov eax, fcn.0040ce6e
push eax
call fcn.0040b9ba
push ebx
push ebx
lea ecx, [ebp + 0x70]
lea esi, [ebp - 0x100]
mov dword [ebp + 0x88], 0xf
call fcn.0040a537
lea eax, [ebp + 0x70]
mov byte [ebp - 4], 0x15
cmp dword [ebp + 0x6c], 0x10
push eax
mov eax, dword [ebp + 0x58]
jae 0x406056
lea eax, [ebp + 0x58]
sub esp, 0x1c
mov ecx, esp
mov dword [ebp - 0x1c], esp
push eax
call fcn.004084cc
sub esp, 0x1c
mov byte [ebp - 4], 0x16
mov eax, dword [edi]
mov ecx, esp
mov dword [ebp - 0x2c], esp
push ecx
mov ecx, edi
call dword [eax + 4]
mov edx, esi
mov ecx, edi
mov byte [ebp - 4], 0x17
call fcn.0042ed22
add esp, 0x60
push ebx
push 1
lea ecx, [ebp + 0x70]
call fcn.004097af
push ebx
push 1
lea ecx, [ebp + 0x54]
call fcn.004097af
lea eax, [ebp - 0x100]
mov byte [ebp - 4], 0xf
call fcn.00406489
cmp dword [ebp + 0xa4], 8
mov eax, dword [ebp + 0x90]
jae 0x4060c2
lea eax, [ebp + 0x90]
push eax
call fcn.0042af75
pop ecx
test al, al
je 0x4060fa
push str.BootstrapperClient::deployExtraStudioBootstrapper___deleting_old_studio_bootstrapper
lea esi, [edi + 0x188]
call fcn.0040939b
cmp dword [ebp + 0xa4], 8
mov eax, dword [ebp + 0x90]
pop ecx
jae 0x4060f3
lea eax, [ebp + 0x90]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
cmp dword [ebp + 0xa4], 8
mov ecx, dword [ebp + 0x90]
jae 0x40610f
lea ecx, [ebp + 0x90]
cmp dword [ebp + 0x50], 8
mov eax, dword [ebp + 0x3c]
jae 0x40611b
lea eax, [ebp + 0x3c]
push ecx
lea ebx, [edi + 0x188]
push eax
mov ecx, ebx
call fcn.0042745c
cmp dword [ebp + 0x4fc], 8
mov eax, dword [ebp + 0x4e8]
pop ecx
pop ecx
jae 0x406141
lea eax, [ebp + 0x4e8]
mov cl, byte [edi + 0x59]
mov byte [ebp - 0x18], cl
mov ecx, 0x46bc80
push ecx
push eax
push dword [ebp - 0x18]
mov edx, ebx
call fcn.00427aea
mov eax, dword [ebp + 0x90]
add esp, 0xc
cmp dword [ebp + 0xa4], 8
jae 0x406170
lea eax, [ebp + 0x90]
mov cl, byte [edi + 0x59]
push 1
push 0
mov esi, str._ide
push esi
push eax
mov byte [ebp - 0x18], cl
push dword [ebp - 0x18]
mov ecx, dword [ebp - 0x24]
push ebx
call fcn.004281e4
mov eax, dword [ebp + 0x90]
add esp, 0x18
cmp dword [ebp + 0xa4], 8
jae 0x4061a5
lea eax, [ebp + 0x90]
push dword [ebp + 0x500]
mov cl, byte [edi + 0x59]
push 1
push esi
push eax
mov byte [ebp - 0x18], cl
push dword [ebp - 0x18]
mov ecx, dword [ebp - 0x24]
push ebx
call fcn.004281e4
add esp, 0x18
lea edx, [ebp + 0x4c4]
lea ecx, [ebp]
call fcn.0042a528
mov byte [ebp - 4], 0x18
mov al, byte [edi + 0x59]
mov byte [ebp - 0x18], al
push dword [ebp - 0x18]
lea eax, [ebp - 0x78]
push eax
call fcn.004170d7
lea ecx, [ebp]
push ecx
push eax
lea eax, [ebp - 0x54]
push eax
mov byte [ebp - 4], 0x19
call fcn.0040b8bc
add esp, 0xc
mov byte [ebp - 4], 0x1a
cmp dword [eax + 0x18], 8
jb 0x40620c
mov ecx, dword [eax + 4]
jmp 0x40620f
lea ecx, [eax + 4]
mov al, byte [edi + 0x59]
push 0
push ecx
push dword [ebp - 0x28]
xor ecx, ecx
test al, al
sete cl
mov ebx, closesocket
lea eax, [ebp - 0x38]
add ecx, ebx
push ecx
push eax
call fcn.0042720b
add esp, 0x14
push 0
push 1
lea esi, [ebp - 0x54]
call fcn.00409a53
push 0
push 1
lea esi, [ebp - 0x78]
mov byte [ebp - 4], 0x1d
call fcn.00409a53
mov eax, dword [edi]
lea ecx, [ebp + 0x54]
push ecx
mov ecx, edi
call dword [eax + 4]
mov edx, eax
lea ecx, [ebp + 0x70]
mov byte [ebp - 4], 0x1e
call fcn.0042a528
mov byte [ebp - 4], 0x1f
cmp dword [eax + 0x18], 8
jb 0x406277
mov eax, dword [eax + 4]
jmp 0x40627a
add eax, 4
push str.Failed_to_set_install_host_key_value
push 1
push eax
push str.install_host
lea eax, [ebp - 0x38]
push eax
call fcn.0040cf04
push eax
call fcn.0042702d
pop ecx
pop ecx
push 0
push 1
lea esi, [ebp + 0x70]
call fcn.00409a53
push 0
push 1
lea ecx, [ebp + 0x54]
call fcn.004097af
cmp byte [edi + 0x59], 0
mov eax, reloc.OLEAUT32.dll_SysReAllocString
je 0x4062bd
mov eax, ebx
and dword [ebp - 0x30], 0
and dword [ebp - 0x2c], 0
push dword [ebp - 0x28]
lea ecx, [ebp - 0x30]
push eax
mov eax, 0x20006
mov byte [ebp - 4], 0x20
call fcn.0040cfe9
lea esi, [edi + 0x188]
test eax, eax
jne 0x40633e
push str.BootstrapperClient::deployExtraStudioBootstrapper___studio_reg_key_opened
call fcn.0040939b
cmp dword [ebp + 0xa4], 8
mov eax, dword [ebp + 0x90]
pop ecx
jae 0x406304
lea eax, [ebp + 0x90]
push 1
push eax
push 0x46bc80
lea eax, [ebp - 0x30]
push eax
call fcn.0040cf04
test eax, eax
jl 0x406336
cmp dword [ebp + 0xa4], 8
mov eax, dword [ebp + 0x90]
jae 0x40632e
lea eax, [ebp + 0x90]
push eax
push str.BootstrapperClient::deployExtraStudioBootstrapper___studio_reg_key_set_to__S
jmp 0x406344
push eax
push str.BootstrapperClient::deployExtraStudioBootstrapper___studio_reg_key_write_failed__error0x_X
jmp 0x406344
push eax
push str.BootstrapperClient::deployExtraStudioBootstrapper___studio_reg_key_open_failed__error0x_X
call fcn.0040939b
pop ecx
pop ecx
push dword [ebp - 0x28]
lea esi, [ebp + 0x70]
call fcn.0040858a
lea ecx, [ebp - 0x78]
mov byte [ebp - 4], 0x21
mov eax, dword [edi]
push ecx
mov ecx, edi
call dword [eax]
mov ebx, eax
lea ecx, [ebp - 0x54]
mov byte [ebp - 4], 0x22
call fcn.00428007
lea ecx, [ebp + 0x8c]
push ecx
push eax
mov ecx, esi
mov edx, edi
mov byte [ebp - 4], 0x23
call fcn.00415efe
xor ebx, ebx
push ebx
push 1
lea esi, [ebp - 0x54]
call fcn.00409a53
push ebx
push 1
lea ecx, [ebp - 0x78]
call fcn.004097af
push ebx
push 1
lea esi, [ebp + 0x70]
call fcn.00409a53
cmp dword [ebp - 0x30], ebx
je 0x4063b8
push dword [ebp - 0x30]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
cmp dword [ebp - 0x38], ebx
je 0x4063c9
push dword [ebp - 0x38]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov dword [ebp - 0x38], ebx
push ebx
push 1
lea esi, [ebp]
mov dword [ebp - 0x34], ebx
call fcn.00409a53
push ebx
push 1
lea esi, [ebp + 0x38]
call fcn.00409a53
push ebx
push 1
lea esi, [ebp + 0x8c]
call fcn.00409a53
xor esi, esi
push ebx
inc esi
push esi
lea ecx, [ebp + 0x1c]
call fcn.004097af
mov dword [ebp - 4], esi
mov eax, dword [edi]
push str.BootstrapperDeployStudioBootstrapperSuccess
mov ecx, edi
call dword [eax + 0x6c]
jmp 0x406448
push ebx
push 1
lea ecx, [ebp + 0x4c4]
call fcn.004097af
push ebx
push 1
lea esi, [ebp + 0x4e4]
call fcn.00409a53
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp + 0x4b8]
xor ecx, ebp
call fcn.00443d6d
add ebp, 0x4bc
leave
ret 0x44