Function at 0x4050c5
Capabilities:
Delete file

Disassembly:
push ebp
sub esp, 0x49c
lea ebp, [esp - 4]
mov eax, dword [0x47e180]
xor eax, ebp
mov dword [ebp + 0x49c], eax
push 0x10c
mov eax, 0x45da2a
call fcn.0044167c
mov eax, dword [ebp + 0x4c4]
and dword [ebp - 0x18], 0
mov dword [ebp - 0x20], eax
mov eax, dword [ebp + 0x4e8]
mov edi, ecx
mov dword [ebp - 0x38], edi
mov dword [ebp - 0x34], eax
mov dword [ebp - 4], 1
cmp dword [ebp + 0x4e0], 8
mov ecx, dword [ebp + 0x4cc]
jae 0x405123
lea ecx, [ebp + 0x4cc]
cmp dword [ebp + 0x4c0], 0x10
mov eax, dword [ebp + 0x4ac]
jae 0x405138
lea eax, [ebp + 0x4ac]
push ecx
push dword [ebp - 0x20]
mov ebx, str.BootstrapperClient::deployExtraStudioBootstrapper_name___s__linkName___S__component___S
push eax
lea esi, [edi + 0xc8]
push ebx
call fcn.004081d4
mov eax, dword [edi]
add esp, 0x10
push str.BootstrapperDeployStudioBootstrapperStarted
mov ecx, edi
call dword [eax + 0x30]
mov byte [ebp - 4], 2
cmp dword [ebp + 0x4e0], 8
mov ecx, dword [ebp + 0x4cc]
jae 0x405176
lea ecx, [ebp + 0x4cc]
cmp dword [ebp + 0x4c0], 0x10
mov eax, dword [ebp + 0x4ac]
jae 0x40518b
lea eax, [ebp + 0x4ac]
push ecx
push dword [ebp - 0x20]
push eax
push ebx
call fcn.004081d4
add esp, 0x10
lea eax, [ebp + 0x4a8]
push eax
lea ecx, [ebp + 0x1c]
call fcn.00407413
mov byte [ebp - 4], 3
mov al, byte [edi + 0x61]
mov byte [ebp - 0x18], al
push dword [ebp - 0x18]
lea eax, [ebp + 0x70]
push eax
call fcn.004142be
lea edx, [ebp + 0x1c]
lea ecx, [ebp - 0x54]
mov byte [ebp - 4], 4
call fcn.00424316
push 0xffffffffffffffff
xor ebx, ebx
push ebx
lea ecx, [ebp + 0x70]
mov byte [ebp - 4], 5
call fcn.00408657
push ebx
push 1
lea esi, [ebp - 0x54]
mov byte [ebp - 4], 4
call fcn.00408944
xor eax, eax
mov esi, 0x206
push esi
mov word [ebp + 0x8c], ax
lea eax, [ebp + 0x8e]
push ebx
push eax
call fcn.00440e30
xor eax, eax
push esi
mov word [ebp + 0x294], ax
lea eax, [ebp + 0x296]
push ebx
push eax
call fcn.00440e30
mov eax, dword [ebp + 0x4cc]
add esp, 0x18
cmp dword [ebp + 0x4e0], 8
jae 0x405238
lea eax, [ebp + 0x4cc]
mov cl, byte [edi + 0x61]
mov byte [ebp - 0x18], cl
push eax
push dword [ebp - 0x18]
lea ecx, [ebp + 0x294]
lea edx, [ebp + 0x8c]
lea ebx, [edi + 0xc8]
call fcn.004214ad
pop ecx
pop ecx
lea eax, [ebp + 0x294]
push eax
lea eax, [ebp + 0x8c]
push eax
push str.BootstrapperClient::deployExtraStudioBootstrapper___Studio_version___S__url___S
lea esi, [edi + 0xc8]
call fcn.004081d4
add esp, 0xc
lea eax, [ebp + 0x8c]
push eax
lea esi, [ebp - 0x74]
call fcn.004074af
xor ebx, ebx
mov byte [ebp - 4], 6
inc ebx
cmp dword [eax + 0x14], 0
mov dword [ebp - 0x18], ebx
je 0x4052f8
mov eax, dword [edi]
lea ecx, [ebp - 0x90]
push ecx
mov ecx, edi
call dword [eax]
push 7
pop esi
mov dword [ebp - 4], esi
mov edx, eax
lea ecx, [ebp + 0x54]
mov dword [ebp - 0x18], 3
call fcn.00424316
mov dword [ebp - 0x14], eax
mov dword [ebp - 4], 8
lea eax, [ebp + 0x294]
mov dword [ebp - 0x18], esi
push eax
lea esi, [ebp - 0x54]
call fcn.004074af
mov dword [ebp - 4], 9
mov ecx, dword [ebp - 0x14]
push 0xf
pop ebx
mov dword [ebp - 0x18], ebx
call fcn.0040a778
mov byte [ebp - 0x19], 1
test al, al
jne 0x4052fc
mov byte [ebp - 0x19], 0
test bl, 8
je 0x405310
push 0
push 1
lea esi, [ebp - 0x54]
and ebx, 0xfffffff7
call fcn.00408944
test bl, 4
je 0x405324
push 0
push 1
lea esi, [ebp + 0x54]
and ebx, 0xfffffffb
call fcn.00408944
test bl, 2
je 0x40533b
push 0
push 1
lea ecx, [ebp - 0x90]
and ebx, 0xfffffffd
call fcn.0040860c
mov dword [ebp - 4], 4
test bl, 1
je 0x405353
push 0
push 1
lea esi, [ebp - 0x74]
call fcn.00408944
cmp byte [ebp - 0x19], 0
je 0x405426
lea esi, [edi + 0xc8]
push str.BootstrapperClient::deployExtraStudioBootstrapper___Studio_bootstrapper_version_is_present_and_URL_is_current_one
mov dword [ebp - 0x18], esi
call fcn.004081d4
cmp dword [ebp + 0x88], 8
mov eax, dword [ebp + 0x74]
pop ecx
jae 0x405380
lea eax, [ebp + 0x74]
push eax
call fcn.00424b4a
pop ecx
test al, al
je 0x405426
push str.BootstrapperClient::deployExtraStudioBootstrapper___Studio_bootstrapper_is_present._updating_links_and_leaving
call fcn.004081d4
cmp dword [ebp + 0x88], 8
mov eax, dword [ebp + 0x74]
pop ecx
jae 0x4053a9
lea eax, [ebp + 0x74]
mov cl, byte [edi + 0x61]
xor ebx, ebx
inc ebx
push ebx
push 0
mov esi, str._ide
push esi
push eax
mov byte [ebp - 0x14], cl
push dword [ebp - 0x14]
mov ecx, dword [ebp - 0x20]
push dword [ebp - 0x18]
call fcn.00421884
mov eax, dword [ebp + 0x74]
add esp, 0x18
cmp dword [ebp + 0x88], 8
jae 0x4053dc
lea eax, [ebp + 0x74]
push dword [ebp + 0x4e4]
mov cl, byte [edi + 0x61]
push ebx
push esi
push eax
mov byte [ebp - 0x14], cl
push dword [ebp - 0x14]
mov ecx, dword [ebp - 0x20]
push dword [ebp - 0x18]
call fcn.00421884
add esp, 0x18
xor edi, edi
push edi
push ebx
lea esi, [ebp + 0x70]
call fcn.00408944
push edi
push ebx
lea ecx, [ebp + 0x1c]
call fcn.0040860c
push edi
push ebx
lea ecx, [ebp + 0x4a8]
call fcn.0040860c
push edi
push ebx
jmp 0x40587f
mov ecx, 0x463110
lea ebx, [ebp + 0x38]
call fcn.00408110
mov byte [ebp - 4], 0xa
cmp dword [ebp + 0x50], 8
mov eax, dword [ebp + 0x3c]
jae 0x405443
lea eax, [ebp + 0x3c]
push eax
lea eax, [ebp - 0x118]
push eax
push 0x20
pop ecx
call fcn.0040789b
mov byte [ebp - 4], 0xb
cmp dword [ebp + 0x4c0], 0x10
mov eax, dword [ebp + 0x4ac]
jae 0x40546c
lea eax, [ebp + 0x4ac]
push eax
sub esp, 0x1c
mov ecx, esp
mov dword [ebp - 0x14], esp
push str.versionQTStudio
call fcn.004073f1
lea eax, [ebp - 0x74]
push eax
mov ecx, edi
call fcn.004143bb
mov byte [ebp - 4], 0xc
cmp dword [eax + 0x18], 0x10
jb 0x405499
mov eax, dword [eax + 4]
jmp 0x40549c
add eax, 4
push eax
push str.__s__s
lea esi, [ebp + 0x54]
call fcn.004244cd
add esp, 0xc
xor ebx, ebx
push ebx
push 1
lea ecx, [ebp - 0x74]
call fcn.0040860c
sub esp, 0x20
mov esi, esp
mov dword [ebp - 0x14], esp
push dword [ebp - 0x24]
mov eax, fcn.0040bb1e
push eax
call fcn.0040a79a
push ebx
push ebx
lea ecx, [ebp - 0x54]
lea esi, [ebp - 0x118]
mov dword [ebp - 0x3c], 0xf
call fcn.00409344
lea eax, [ebp - 0x54]
mov byte [ebp - 4], 0x10
cmp dword [ebp + 0x6c], 0x10
push eax
mov eax, dword [ebp + 0x58]
jae 0x4054fb
lea eax, [ebp + 0x58]
sub esp, 0x1c
mov ecx, esp
mov dword [ebp - 0x18], esp
push eax
call fcn.004073f1
sub esp, 0x1c
mov byte [ebp - 4], 0x11
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], 0x12
call fcn.0042887c
add esp, 0x60
push ebx
push 1
lea ecx, [ebp - 0x54]
call fcn.0040860c
push ebx
push 1
lea ecx, [ebp + 0x54]
call fcn.0040860c
lea eax, [ebp - 0x118]
mov byte [ebp - 4], 0xa
call fcn.004058af
cmp dword [ebp + 0x88], 8
mov eax, dword [ebp + 0x74]
jae 0x405561
lea eax, [ebp + 0x74]
push eax
call fcn.00424b4a
pop ecx
test al, al
je 0x405593
push str.BootstrapperClient::deployExtraStudioBootstrapper___deleting_old_studio_bootstrapper
lea esi, [edi + 0xc8]
call fcn.004081d4
cmp dword [ebp + 0x88], 8
mov eax, dword [ebp + 0x74]
pop ecx
jae 0x40558c
lea eax, [ebp + 0x74]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
cmp dword [ebp + 0x88], 8
mov ecx, dword [ebp + 0x74]
jae 0x4055a2
lea ecx, [ebp + 0x74]
cmp dword [ebp + 0x50], 8
mov eax, dword [ebp + 0x3c]
jae 0x4055ae
lea eax, [ebp + 0x3c]
push ecx
lea ebx, [edi + 0xc8]
push eax
mov ecx, ebx
call fcn.00420c62
cmp dword [ebp + 0x4e0], 8
mov eax, dword [ebp + 0x4cc]
pop ecx
pop ecx
jae 0x4055d4
lea eax, [ebp + 0x4cc]
mov cl, byte [edi + 0x61]
mov byte [ebp - 0x14], cl
mov ecx, 0x46471c
push ecx
push eax
push dword [ebp - 0x14]
mov edx, ebx
call fcn.0042130c
mov eax, dword [ebp + 0x74]
add esp, 0xc
cmp dword [ebp + 0x88], 8
jae 0x4055fd
lea eax, [ebp + 0x74]
mov cl, byte [edi + 0x61]
push 1
push 0
mov esi, str._ide
push esi
push eax
mov byte [ebp - 0x14], cl
push dword [ebp - 0x14]
mov ecx, dword [ebp - 0x20]
push ebx
call fcn.00421884
mov eax, dword [ebp + 0x74]
add esp, 0x18
cmp dword [ebp + 0x88], 8
jae 0x40562c
lea eax, [ebp + 0x74]
push dword [ebp + 0x4e4]
mov cl, byte [edi + 0x61]
push 1
push esi
push eax
mov byte [ebp - 0x14], cl
push dword [ebp - 0x14]
mov ecx, dword [ebp - 0x20]
push ebx
call fcn.00421884
add esp, 0x18
lea edx, [ebp + 0x4a8]
lea ecx, [ebp]
call fcn.00424316
mov byte [ebp - 4], 0x13
mov al, byte [edi + 0x61]
mov byte [ebp - 0x14], al
push dword [ebp - 0x14]
lea eax, [ebp - 0x90]
push eax
call fcn.004142be
lea ecx, [ebp]
push ecx
push eax
lea eax, [ebp - 0x74]
push eax
mov byte [ebp - 4], 0x14
call fcn.0040a72d
add esp, 0xc
mov byte [ebp - 4], 0x15
cmp dword [eax + 0x18], 8
jb 0x405696
mov ecx, dword [eax + 4]
jmp 0x405699
lea ecx, [eax + 4]
mov al, byte [edi + 0x61]
push ecx
push dword [ebp - 0x34]
xor ecx, ecx
test al, al
sete cl
mov ebx, closesocket
lea eax, [ebp - 0x28]
add ecx, ebx
push ecx
push eax
call fcn.00420a27
add esp, 0x10
push 0
push 1
lea esi, [ebp - 0x74]
call fcn.00408944
push 0
push 1
lea esi, [ebp - 0x90]
mov byte [ebp - 4], 0x18
call fcn.00408944
mov eax, dword [edi]
lea ecx, [ebp + 0x54]
push ecx
mov ecx, edi
call dword [eax + 4]
mov edx, eax
lea ecx, [ebp - 0x54]
mov byte [ebp - 4], 0x19
call fcn.00424316
mov byte [ebp - 4], 0x1a
cmp dword [eax + 0x18], 8
jb 0x405702
mov eax, dword [eax + 4]
jmp 0x405705
add eax, 4
push str.Failed_to_set_install_host_key_value
push 1
push eax
push str.install_host
lea eax, [ebp - 0x28]
push eax
call fcn.0040bbb4
push eax
call fcn.00420849
pop ecx
pop ecx
push 0
push 1
lea esi, [ebp - 0x54]
call fcn.00408944
push 0
push 1
lea ecx, [ebp + 0x54]
call fcn.0040860c
cmp byte [edi + 0x61], 0
mov eax, reloc.OLEAUT32.dll_SysReAllocString
je 0x405748
mov eax, ebx
and dword [ebp - 0x30], 0
and dword [ebp - 0x2c], 0
push dword [ebp - 0x34]
lea ecx, [ebp - 0x30]
push eax
mov eax, 0x20006
mov byte [ebp - 4], 0x1b
call fcn.0040bc93
lea esi, [edi + 0xc8]
test eax, eax
jne 0x4057c4
push str.BootstrapperClient::deployExtraStudioBootstrapper___studio_reg_key_opened
call fcn.004081d4
cmp dword [ebp + 0x88], 8
mov eax, dword [ebp + 0x74]
pop ecx
jae 0x405789
lea eax, [ebp + 0x74]
push 1
push eax
push 0x46471c
lea eax, [ebp - 0x30]
push eax
call fcn.0040bbb4
xor ebx, ebx
cmp eax, ebx
jl 0x4057bc
cmp dword [ebp + 0x88], 8
mov eax, dword [ebp + 0x74]
jae 0x4057af
lea eax, [ebp + 0x74]
push eax
push str.BootstrapperClient::deployExtraStudioBootstrapper___studio_reg_key_set_to__S
call fcn.004081d4
jmp 0x4057d1
push eax
push str.BootstrapperClient::deployExtraStudioBootstrapper___studio_reg_key_write_failed__error0x_X
jmp 0x4057b5
push eax
push str.BootstrapperClient::deployExtraStudioBootstrapper___studio_reg_key_open_failed__error0x_X
call fcn.004081d4
xor ebx, ebx
pop ecx
pop ecx
cmp dword [ebp - 0x30], ebx
je 0x4057e1
push dword [ebp - 0x30]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
cmp dword [ebp - 0x28], ebx
je 0x4057f2
push dword [ebp - 0x28]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov dword [ebp - 0x28], ebx
push ebx
push 1
lea esi, [ebp]
mov dword [ebp - 0x24], ebx
call fcn.00408944
push ebx
push 1
lea esi, [ebp + 0x38]
call fcn.00408944
push ebx
push 1
lea esi, [ebp + 0x70]
call fcn.00408944
xor esi, esi
push ebx
inc esi
push esi
lea ecx, [ebp + 0x1c]
call fcn.0040860c
mov dword [ebp - 4], esi
mov eax, dword [edi]
push str.BootstrapperDeployStudioBootstrapperSuccess
mov ecx, edi
call dword [eax + 0x30]
jmp 0x40586e
push ebx
push 1
lea ecx, [ebp + 0x4a8]
call fcn.0040860c
push ebx
push 1
lea esi, [ebp + 0x4c8]
call fcn.00408944
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp + 0x49c]
xor ecx, ebp
call fcn.0043d7ed
add ebp, 0x4a0
leave
ret 0x44