Function at 0x405565
Capabilities:
Delete file

Disassembly:
push ebp
sub esp, 0x4b8
lea ebp, [esp - 4]
mov eax, dword [0x4861f4]
xor eax, ebp
mov dword [ebp + 0x4b8], eax
push 0xf0
mov eax, 0x463182
call fcn.00446816
mov eax, dword [ebp + 0x4e0]
and dword [ebp - 0x18], 0
mov dword [ebp - 0x20], eax
mov eax, dword [ebp + 0x504]
mov edi, ecx
mov dword [ebp - 0x2c], edi
mov dword [ebp - 0x1c], eax
mov dword [ebp - 4], 1
cmp dword [ebp + 0x4fc], 8
mov ecx, dword [ebp + 0x4e8]
jae 0x4055c3
lea ecx, [ebp + 0x4e8]
cmp dword [ebp + 0x4dc], 0x10
mov eax, dword [ebp + 0x4c8]
jae 0x4055d8
lea eax, [ebp + 0x4c8]
push ecx
push dword [ebp - 0x20]
mov ebx, str.BootstrapperClient::deployExtraStudioBootstrapper_name___s__linkName___S__component___S
push eax
lea esi, [edi + 0x188]
push ebx
call fcn.00408d03
mov eax, dword [edi]
add esp, 0x10
push str.BootstrapperDeployStudioBootstrapperStarted
mov ecx, edi
call dword [eax + 0x84]
mov byte [ebp - 4], 2
cmp dword [ebp + 0x4fc], 8
mov ecx, dword [ebp + 0x4e8]
jae 0x405619
lea ecx, [ebp + 0x4e8]
cmp dword [ebp + 0x4dc], 0x10
mov eax, dword [ebp + 0x4c8]
jae 0x40562e
lea eax, [ebp + 0x4c8]
push ecx
push dword [ebp - 0x20]
push eax
push ebx
call fcn.00408d03
add esp, 0x10
lea eax, [ebp + 0x4c4]
push eax
lea ecx, [ebp + 0x1c]
call fcn.00407e76
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.0041749c
lea edx, [ebp + 0x1c]
lea ecx, [ebp + 0x70]
mov byte [ebp - 4], 4
call fcn.00427515
push 0xffffffffffffffff
xor ebx, ebx
push ebx
lea esi, [ebp + 0x8c]
mov byte [ebp - 4], 5
call fcn.004091c8
push ebx
push 1
lea esi, [ebp + 0x70]
mov byte [ebp - 4], 4
call fcn.00409415
xor eax, eax
mov esi, 0x206
push esi
mov word [ebp + 0x2b0], ax
lea eax, [ebp + 0x2b2]
push ebx
push eax
call fcn.004463b0
xor eax, eax
push esi
mov word [ebp + 0xa8], ax
lea eax, [ebp + 0xaa]
push ebx
push eax
call fcn.004463b0
mov eax, dword [ebp + 0x4e8]
add esp, 0x18
cmp dword [ebp + 0x4fc], 8
jae 0x4056e1
lea eax, [ebp + 0x4e8]
mov cl, byte [edi + 0x59]
mov byte [ebp - 0x18], cl
push eax
push dword [ebp - 0x18]
lea ecx, [ebp + 0xa8]
lea edx, [ebp + 0x2b0]
lea ebx, [edi + 0x188]
call fcn.00426159
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
lea esi, [edi + 0x188]
call fcn.00408d03
add esp, 0xc
cmp byte [edi + 0x36f], 0
mov byte [ebp - 0x11], 0
je 0x40579d
lea eax, [ebp + 0x5c]
call fcn.004236e7
lea eax, [ebp + 0x8c]
lea ecx, [ebp + 0x5c]
mov byte [ebp - 4], 6
call fcn.004237ae
test eax, eax
je 0x405791
lea eax, [ebp + 0x5c]
push eax
lea ecx, [ebp + 0x70]
call fcn.00423979
lea eax, [edi + 0x350]
mov byte [ebp - 4], 7
cmp dword [eax + 0x18], 0x10
jb 0x405771
mov eax, dword [eax + 4]
jmp 0x405774
add eax, 4
push eax
lea eax, [ebp + 0x70]
call fcn.00407eb9
test eax, eax
je 0x405785
mov byte [ebp - 0x11], 1
push 0
push 1
lea ecx, [ebp + 0x70]
call fcn.0040917d
lea esi, [ebp + 0x5c]
mov byte [ebp - 4], 4
call fcn.00423709
lea eax, [ebp + 0x2b0]
push eax
lea eax, [ebp - 0x50]
call fcn.00407ede
xor ebx, ebx
mov byte [ebp - 4], 8
inc ebx
cmp dword [eax + 0x14], 0
mov dword [ebp - 0x18], ebx
je 0x40581f
cmp byte [ebp - 0x11], 0
jne 0x40581f
mov eax, dword [edi]
lea ecx, [ebp - 0x74]
push ecx
mov ecx, edi
call dword [eax]
mov dword [ebp - 4], 9
mov edx, eax
lea ecx, [ebp + 0x54]
mov dword [ebp - 0x18], 3
call fcn.00427515
mov esi, eax
lea eax, [ebp + 0xa8]
push eax
mov dword [ebp - 4], 0xa
lea eax, [ebp + 0x70]
mov dword [ebp - 0x18], 7
call fcn.00407ede
push 0xf
pop ebx
mov dword [ebp - 4], 0xb
mov ecx, esi
mov dword [ebp - 0x18], ebx
call fcn.0040b12e
mov byte [ebp - 0x11], 1
test al, al
jne 0x405823
mov byte [ebp - 0x11], 0
test bl, 8
je 0x405837
push 0
push 1
lea esi, [ebp + 0x70]
and ebx, 0xfffffff7
call fcn.00409415
test bl, 4
je 0x40584b
push 0
push 1
lea esi, [ebp + 0x54]
and ebx, 0xfffffffb
call fcn.00409415
test bl, 2
je 0x40585f
push 0
push 1
lea ecx, [ebp - 0x74]
and ebx, 0xfffffffd
call fcn.0040917d
mov dword [ebp - 4], 4
test bl, 1
je 0x405877
push 0
push 1
lea esi, [ebp - 0x50]
call fcn.00409415
cmp byte [ebp - 0x11], 0
je 0x40595e
lea esi, [edi + 0x188]
push str.BootstrapperClient::deployExtraStudioBootstrapper___Studio_bootstrapper_version_is_present_and_URL_is_current_one
mov dword [ebp - 0x18], esi
call fcn.00408d03
cmp dword [ebp + 0xa4], 8
mov eax, dword [ebp + 0x90]
pop ecx
jae 0x4058aa
lea eax, [ebp + 0x90]
push eax
call fcn.00427f71
pop ecx
test al, al
je 0x40595e
push str.BootstrapperClient::deployExtraStudioBootstrapper___Studio_bootstrapper_is_present._updating_links_and_leaving
call fcn.00408d03
cmp dword [ebp + 0xa4], 8
mov eax, dword [ebp + 0x90]
pop ecx
jae 0x4058d9
lea eax, [ebp + 0x90]
mov cl, byte [edi + 0x59]
xor ebx, ebx
inc ebx
push ebx
push 0
mov esi, str._ide
push esi
mov byte [ebp - 0x1c], cl
mov ecx, dword [ebp - 0x20]
push eax
push dword [ebp - 0x1c]
push dword [ebp - 0x18]
call fcn.004266bd
mov eax, dword [ebp + 0x90]
add esp, 0x18
cmp dword [ebp + 0xa4], 8
jae 0x405912
lea eax, [ebp + 0x90]
push dword [ebp + 0x500]
mov cl, byte [edi + 0x59]
push ebx
push esi
mov byte [ebp - 0x1c], cl
mov ecx, dword [ebp - 0x20]
push eax
push dword [ebp - 0x1c]
push dword [ebp - 0x18]
call fcn.004266bd
add esp, 0x18
xor edi, edi
push edi
push ebx
lea esi, [ebp + 0x8c]
call fcn.00409415
push edi
push ebx
lea ecx, [ebp + 0x1c]
call fcn.0040917d
push edi
push ebx
lea ecx, [ebp + 0x4c4]
call fcn.0040917d
push edi
jmp 0x405e2b
push 0x4690c0
lea ebx, [ebp + 0x38]
call fcn.00408c33
pop ecx
mov byte [ebp - 4], 0xc
cmp dword [ebp + 0x50], 8
mov eax, dword [ebp + 0x3c]
jae 0x40597c
lea eax, [ebp + 0x3c]
push eax
lea eax, [ebp - 0xfc]
push eax
push 0x20
pop ecx
call fcn.004082d4
mov byte [ebp - 4], 0xd
cmp dword [ebp + 0x4dc], 0x10
mov eax, dword [ebp + 0x4c8]
jae 0x4059a5
lea eax, [ebp + 0x4c8]
push eax
sub esp, 0x1c
mov ecx, esp
mov dword [ebp - 0x18], esp
push str.versionQTStudio
call fcn.00407e54
lea eax, [ebp - 0x50]
push eax
mov ecx, edi
call fcn.00417599
mov byte [ebp - 4], 0xe
cmp dword [eax + 0x18], 0x10
jb 0x4059d2
mov eax, dword [eax + 4]
jmp 0x4059d5
add eax, 4
push eax
push str.__s__s
lea esi, [ebp + 0x54]
call fcn.004276d3
add esp, 0xc
xor ebx, ebx
push ebx
push 1
lea ecx, [ebp - 0x50]
call fcn.0040917d
sub esp, 0x20
mov esi, esp
mov dword [ebp - 0x18], esp
push dword [ebp - 0x30]
mov eax, fcn.00429d9a
push eax
call fcn.0040b150
push ebx
push ebx
lea ecx, [ebp + 0x70]
lea esi, [ebp - 0xfc]
mov dword [ebp + 0x88], 0xf
call fcn.00409ee5
lea eax, [ebp + 0x70]
mov byte [ebp - 4], 0x12
cmp dword [ebp + 0x6c], 0x10
push eax
mov eax, dword [ebp + 0x58]
jae 0x405a37
lea eax, [ebp + 0x58]
sub esp, 0x1c
mov ecx, esp
mov dword [ebp - 0x58], esp
push eax
call fcn.00407e54
sub esp, 0x1c
mov byte [ebp - 4], 0x13
mov eax, dword [edi]
mov ecx, esp
mov dword [ebp - 0x24], esp
push ecx
mov ecx, edi
call dword [eax + 4]
mov edx, esi
mov ecx, edi
mov byte [ebp - 4], 0x14
call fcn.0042c6a8
add esp, 0x60
push ebx
push 1
lea ecx, [ebp + 0x70]
call fcn.0040917d
push ebx
push 1
lea ecx, [ebp + 0x54]
call fcn.0040917d
lea eax, [ebp - 0xfc]
mov byte [ebp - 4], 0xc
call fcn.00405e5c
cmp dword [ebp + 0xa4], 8
mov eax, dword [ebp + 0x90]
jae 0x405aa3
lea eax, [ebp + 0x90]
push eax
call fcn.00427f71
pop ecx
test al, al
je 0x405adb
push str.BootstrapperClient::deployExtraStudioBootstrapper___deleting_old_studio_bootstrapper
lea esi, [edi + 0x188]
call fcn.00408d03
cmp dword [ebp + 0xa4], 8
mov eax, dword [ebp + 0x90]
pop ecx
jae 0x405ad4
lea eax, [ebp + 0x90]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
cmp dword [ebp + 0xa4], 8
mov ecx, dword [ebp + 0x90]
jae 0x405af0
lea ecx, [ebp + 0x90]
cmp dword [ebp + 0x50], 8
mov eax, dword [ebp + 0x3c]
jae 0x405afc
lea eax, [ebp + 0x3c]
push ecx
lea ebx, [edi + 0x188]
push eax
mov ecx, ebx
call fcn.00425957
cmp dword [ebp + 0x4fc], 8
mov eax, dword [ebp + 0x4e8]
pop ecx
pop ecx
jae 0x405b22
lea eax, [ebp + 0x4e8]
mov cl, byte [edi + 0x59]
mov byte [ebp - 0x18], cl
mov ecx, 0x46a89c
push ecx
push eax
push dword [ebp - 0x18]
mov edx, ebx
call fcn.00425fba
mov eax, dword [ebp + 0x90]
add esp, 0xc
cmp dword [ebp + 0xa4], 8
jae 0x405b51
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 - 0x20]
push ebx
call fcn.004266bd
mov eax, dword [ebp + 0x90]
add esp, 0x18
cmp dword [ebp + 0xa4], 8
jae 0x405b86
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 - 0x20]
push ebx
call fcn.004266bd
add esp, 0x18
lea edx, [ebp + 0x4c4]
lea ecx, [ebp]
call fcn.00427515
mov byte [ebp - 4], 0x15
mov al, byte [edi + 0x59]
mov byte [ebp - 0x18], al
push dword [ebp - 0x18]
lea eax, [ebp - 0x74]
push eax
call fcn.0041749c
lea ecx, [ebp]
push ecx
push eax
lea eax, [ebp - 0x50]
push eax
mov byte [ebp - 4], 0x16
call fcn.0040b052
add esp, 0xc
mov byte [ebp - 4], 0x17
cmp dword [eax + 0x18], 8
jb 0x405bed
mov ecx, dword [eax + 4]
jmp 0x405bf0
lea ecx, [eax + 4]
mov al, byte [edi + 0x59]
push 0
push ecx
push dword [ebp - 0x1c]
xor ecx, ecx
test al, al
sete cl
mov ebx, closesocket
lea eax, [ebp - 0x34]
add ecx, ebx
push ecx
push eax
call fcn.00425717
add esp, 0x14
push 0
push 1
lea esi, [ebp - 0x50]
call fcn.00409415
push 0
push 1
lea esi, [ebp - 0x74]
mov byte [ebp - 4], 0x1a
call fcn.00409415
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], 0x1b
call fcn.00427515
mov byte [ebp - 4], 0x1c
cmp dword [eax + 0x18], 8
jb 0x405c58
mov eax, dword [eax + 4]
jmp 0x405c5b
add eax, 4
push str.Failed_to_set_install_host_key_value
push 1
push eax
push str.install_host
lea eax, [ebp - 0x34]
push eax
call fcn.0040c621
push eax
call fcn.00425535
pop ecx
pop ecx
push 0
push 1
lea esi, [ebp + 0x70]
call fcn.00409415
push 0
push 1
lea ecx, [ebp + 0x54]
call fcn.0040917d
cmp byte [edi + 0x59], 0
mov eax, reloc.OLEAUT32.dll_SysReAllocString
je 0x405c9e
mov eax, ebx
and dword [ebp - 0x28], 0
and dword [ebp - 0x24], 0
push dword [ebp - 0x1c]
lea ecx, [ebp - 0x28]
push eax
mov eax, 0x20006
mov byte [ebp - 4], 0x1d
call fcn.0040c706
lea esi, [edi + 0x188]
test eax, eax
jne 0x405d1f
push str.BootstrapperClient::deployExtraStudioBootstrapper___studio_reg_key_opened
call fcn.00408d03
cmp dword [ebp + 0xa4], 8
mov eax, dword [ebp + 0x90]
pop ecx
jae 0x405ce5
lea eax, [ebp + 0x90]
push 1
push eax
push 0x46a89c
lea eax, [ebp - 0x28]
push eax
call fcn.0040c621
test eax, eax
jl 0x405d17
cmp dword [ebp + 0xa4], 8
mov eax, dword [ebp + 0x90]
jae 0x405d0f
lea eax, [ebp + 0x90]
push eax
push str.BootstrapperClient::deployExtraStudioBootstrapper___studio_reg_key_set_to__S
jmp 0x405d25
push eax
push str.BootstrapperClient::deployExtraStudioBootstrapper___studio_reg_key_write_failed__error0x_X
jmp 0x405d25
push eax
push str.BootstrapperClient::deployExtraStudioBootstrapper___studio_reg_key_open_failed__error0x_X
call fcn.00408d03
pop ecx
pop ecx
push dword [ebp - 0x1c]
lea eax, [ebp + 0x70]
call fcn.00407ede
lea ecx, [ebp - 0x74]
mov byte [ebp - 4], 0x1e
mov eax, dword [edi]
push ecx
mov ecx, edi
call dword [eax]
mov ebx, eax
lea esi, [ebp - 0x50]
mov byte [ebp - 4], 0x1f
call fcn.004264d8
lea ecx, [ebp + 0x8c]
push ecx
push eax
lea ecx, [ebp + 0x70]
mov edx, edi
mov byte [ebp - 4], 0x20
call fcn.004167a3
xor ebx, ebx
push 0
inc ebx
push ebx
call fcn.00409415
push 0
push ebx
lea ecx, [ebp - 0x74]
call fcn.0040917d
push 0
push ebx
lea esi, [ebp + 0x70]
call fcn.00409415
lea esi, [ebp - 0x28]
call fcn.0040c744
lea esi, [ebp - 0x34]
call fcn.0040c744
push 0
push ebx
lea esi, [ebp]
call fcn.00409415
push 0
push ebx
lea esi, [ebp + 0x38]
call fcn.00409415
push 0
push ebx
lea esi, [ebp + 0x8c]
call fcn.00409415
push 0
push ebx
lea ecx, [ebp + 0x1c]
call fcn.0040917d
mov dword [ebp - 4], ebx
mov eax, dword [edi]
push str.BootstrapperDeployStudioBootstrapperSuccess
mov ecx, edi
call dword [eax + 0x84]
jmp 0x405e1b
push 0
push ebx
lea ecx, [ebp + 0x4c4]
call fcn.0040917d
push 0
push ebx
lea esi, [ebp + 0x4e4]
call fcn.00409415
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.004428bd
add ebp, 0x4bc
leave
ret 0x44