Function at 0x4050cf
Capabilities:
Delete file

Disassembly:
push ebp
sub esp, 0x49c
lea ebp, [esp - 4]
mov eax, dword [0x47f180]
xor eax, ebp
mov dword [ebp + 0x49c], eax
push 0x10c
mov eax, 0x45e56d
call fcn.0044229c
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 0x40512d
lea ecx, [ebp + 0x4cc]
cmp dword [ebp + 0x4c0], 0x10
mov eax, dword [ebp + 0x4ac]
jae 0x405142
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.00408201
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 0x405180
lea ecx, [ebp + 0x4cc]
cmp dword [ebp + 0x4c0], 0x10
mov eax, dword [ebp + 0x4ac]
jae 0x405195
lea eax, [ebp + 0x4ac]
push ecx
push dword [ebp - 0x20]
push eax
push ebx
call fcn.00408201
add esp, 0x10
lea eax, [ebp + 0x4a8]
push eax
lea ecx, [ebp + 0x1c]
call fcn.00407420
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.004142f2
lea edx, [ebp + 0x1c]
lea ecx, [ebp - 0x54]
mov byte [ebp - 4], 4
call fcn.0042502b
push 0xffffffffffffffff
xor ebx, ebx
push ebx
lea ecx, [ebp + 0x70]
mov byte [ebp - 4], 5
call fcn.00408684
push ebx
push 1
lea esi, [ebp - 0x54]
mov byte [ebp - 4], 4
call fcn.00408971
xor eax, eax
mov esi, 0x206
push esi
mov word [ebp + 0x8c], ax
lea eax, [ebp + 0x8e]
push ebx
push eax
call fcn.00441a50
xor eax, eax
push esi
mov word [ebp + 0x294], ax
lea eax, [ebp + 0x296]
push ebx
push eax
call fcn.00441a50
mov eax, dword [ebp + 0x4cc]
add esp, 0x18
cmp dword [ebp + 0x4e0], 8
jae 0x405242
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.004221bd
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.00408201
add esp, 0xc
lea eax, [ebp + 0x8c]
push eax
lea esi, [ebp - 0x74]
call fcn.004074dc
xor ebx, ebx
mov byte [ebp - 4], 6
inc ebx
cmp dword [eax + 0x14], 0
mov dword [ebp - 0x18], ebx
je 0x405302
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.0042502b
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.004074dc
mov dword [ebp - 4], 9
mov ecx, dword [ebp - 0x14]
push 0xf
pop ebx
mov dword [ebp - 0x18], ebx
call fcn.0040a7b1
mov byte [ebp - 0x19], 1
test al, al
jne 0x405306
mov byte [ebp - 0x19], 0
test bl, 8
je 0x40531a
push 0
push 1
lea esi, [ebp - 0x54]
and ebx, 0xfffffff7
call fcn.00408971
test bl, 4
je 0x40532e
push 0
push 1
lea esi, [ebp + 0x54]
and ebx, 0xfffffffb
call fcn.00408971
test bl, 2
je 0x405345
push 0
push 1
lea ecx, [ebp - 0x90]
and ebx, 0xfffffffd
call fcn.00408639
mov dword [ebp - 4], 4
test bl, 1
je 0x40535d
push 0
push 1
lea esi, [ebp - 0x74]
call fcn.00408971
cmp byte [ebp - 0x19], 0
je 0x405430
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.00408201
cmp dword [ebp + 0x88], 8
mov eax, dword [ebp + 0x74]
pop ecx
jae 0x40538a
lea eax, [ebp + 0x74]
push eax
call fcn.0042585f
pop ecx
test al, al
je 0x405430
push str.BootstrapperClient::deployExtraStudioBootstrapper___Studio_bootstrapper_is_present._updating_links_and_leaving
call fcn.00408201
cmp dword [ebp + 0x88], 8
mov eax, dword [ebp + 0x74]
pop ecx
jae 0x4053b3
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.00422594
mov eax, dword [ebp + 0x74]
add esp, 0x18
cmp dword [ebp + 0x88], 8
jae 0x4053e6
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.00422594
add esp, 0x18
xor edi, edi
push edi
push ebx
lea esi, [ebp + 0x70]
call fcn.00408971
push edi
push ebx
lea ecx, [ebp + 0x1c]
call fcn.00408639
push edi
push ebx
lea ecx, [ebp + 0x4a8]
call fcn.00408639
push edi
push ebx
jmp 0x405889
mov ecx, 0x464110
lea ebx, [ebp + 0x38]
call fcn.0040813d
mov byte [ebp - 4], 0xa
cmp dword [ebp + 0x50], 8
mov eax, dword [ebp + 0x3c]
jae 0x40544d
lea eax, [ebp + 0x3c]
push eax
lea eax, [ebp - 0x118]
push eax
push 0x20
pop ecx
call fcn.004078c8
mov byte [ebp - 4], 0xb
cmp dword [ebp + 0x4c0], 0x10
mov eax, dword [ebp + 0x4ac]
jae 0x405476
lea eax, [ebp + 0x4ac]
push eax
sub esp, 0x1c
mov ecx, esp
mov dword [ebp - 0x14], esp
push str.versionQTStudio
call fcn.004073fe
lea eax, [ebp - 0x74]
push eax
mov ecx, edi
call fcn.004143ef
mov byte [ebp - 4], 0xc
cmp dword [eax + 0x18], 0x10
jb 0x4054a3
mov eax, dword [eax + 4]
jmp 0x4054a6
add eax, 4
push eax
push str.__s__s
lea esi, [ebp + 0x54]
call fcn.004251e2
add esp, 0xc
xor ebx, ebx
push ebx
push 1
lea ecx, [ebp - 0x74]
call fcn.00408639
sub esp, 0x20
mov esi, esp
mov dword [ebp - 0x14], esp
push dword [ebp - 0x24]
mov eax, fcn.00410639
push eax
call fcn.0040a7d3
push ebx
push ebx
lea ecx, [ebp - 0x54]
lea esi, [ebp - 0x118]
mov dword [ebp - 0x3c], 0xf
call fcn.00409371
lea eax, [ebp - 0x54]
mov byte [ebp - 4], 0x10
cmp dword [ebp + 0x6c], 0x10
push eax
mov eax, dword [ebp + 0x58]
jae 0x405505
lea eax, [ebp + 0x58]
sub esp, 0x1c
mov ecx, esp
mov dword [ebp - 0x18], esp
push eax
call fcn.004073fe
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.00429579
add esp, 0x60
push ebx
push 1
lea ecx, [ebp - 0x54]
call fcn.00408639
push ebx
push 1
lea ecx, [ebp + 0x54]
call fcn.00408639
lea eax, [ebp - 0x118]
mov byte [ebp - 4], 0xa
call fcn.004058b9
cmp dword [ebp + 0x88], 8
mov eax, dword [ebp + 0x74]
jae 0x40556b
lea eax, [ebp + 0x74]
push eax
call fcn.0042585f
pop ecx
test al, al
je 0x40559d
push str.BootstrapperClient::deployExtraStudioBootstrapper___deleting_old_studio_bootstrapper
lea esi, [edi + 0xc8]
call fcn.00408201
cmp dword [ebp + 0x88], 8
mov eax, dword [ebp + 0x74]
pop ecx
jae 0x405596
lea eax, [ebp + 0x74]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
cmp dword [ebp + 0x88], 8
mov ecx, dword [ebp + 0x74]
jae 0x4055ac
lea ecx, [ebp + 0x74]
cmp dword [ebp + 0x50], 8
mov eax, dword [ebp + 0x3c]
jae 0x4055b8
lea eax, [ebp + 0x3c]
push ecx
lea ebx, [edi + 0xc8]
push eax
mov ecx, ebx
call fcn.00421972
cmp dword [ebp + 0x4e0], 8
mov eax, dword [ebp + 0x4cc]
pop ecx
pop ecx
jae 0x4055de
lea eax, [ebp + 0x4cc]
mov cl, byte [edi + 0x61]
mov byte [ebp - 0x14], cl
mov ecx, 0x465714
push ecx
push eax
push dword [ebp - 0x14]
mov edx, ebx
call fcn.0042201c
mov eax, dword [ebp + 0x74]
add esp, 0xc
cmp dword [ebp + 0x88], 8
jae 0x405607
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.00422594
mov eax, dword [ebp + 0x74]
add esp, 0x18
cmp dword [ebp + 0x88], 8
jae 0x405636
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.00422594
add esp, 0x18
lea edx, [ebp + 0x4a8]
lea ecx, [ebp]
call fcn.0042502b
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.004142f2
lea ecx, [ebp]
push ecx
push eax
lea eax, [ebp - 0x74]
push eax
mov byte [ebp - 4], 0x14
call fcn.0040a766
add esp, 0xc
mov byte [ebp - 4], 0x15
cmp dword [eax + 0x18], 8
jb 0x4056a0
mov ecx, dword [eax + 4]
jmp 0x4056a3
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.00421737
add esp, 0x10
push 0
push 1
lea esi, [ebp - 0x74]
call fcn.00408971
push 0
push 1
lea esi, [ebp - 0x90]
mov byte [ebp - 4], 0x18
call fcn.00408971
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.0042502b
mov byte [ebp - 4], 0x1a
cmp dword [eax + 0x18], 8
jb 0x40570c
mov eax, dword [eax + 4]
jmp 0x40570f
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.0040bc07
push eax
call fcn.00421559
pop ecx
pop ecx
push 0
push 1
lea esi, [ebp - 0x54]
call fcn.00408971
push 0
push 1
lea ecx, [ebp + 0x54]
call fcn.00408639
cmp byte [edi + 0x61], 0
mov eax, reloc.OLEAUT32.dll_SysReAllocString
je 0x405752
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.0040bce6
lea esi, [edi + 0xc8]
test eax, eax
jne 0x4057ce
push str.BootstrapperClient::deployExtraStudioBootstrapper___studio_reg_key_opened
call fcn.00408201
cmp dword [ebp + 0x88], 8
mov eax, dword [ebp + 0x74]
pop ecx
jae 0x405793
lea eax, [ebp + 0x74]
push 1
push eax
push 0x465714
lea eax, [ebp - 0x30]
push eax
call fcn.0040bc07
xor ebx, ebx
cmp eax, ebx
jl 0x4057c6
cmp dword [ebp + 0x88], 8
mov eax, dword [ebp + 0x74]
jae 0x4057b9
lea eax, [ebp + 0x74]
push eax
push str.BootstrapperClient::deployExtraStudioBootstrapper___studio_reg_key_set_to__S
call fcn.00408201
jmp 0x4057db
push eax
push str.BootstrapperClient::deployExtraStudioBootstrapper___studio_reg_key_write_failed__error0x_X
jmp 0x4057bf
push eax
push str.BootstrapperClient::deployExtraStudioBootstrapper___studio_reg_key_open_failed__error0x_X
call fcn.00408201
xor ebx, ebx
pop ecx
pop ecx
cmp dword [ebp - 0x30], ebx
je 0x4057eb
push dword [ebp - 0x30]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
cmp dword [ebp - 0x28], ebx
je 0x4057fc
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.00408971
push ebx
push 1
lea esi, [ebp + 0x38]
call fcn.00408971
push ebx
push 1
lea esi, [ebp + 0x70]
call fcn.00408971
xor esi, esi
push ebx
inc esi
push esi
lea ecx, [ebp + 0x1c]
call fcn.00408639
mov dword [ebp - 4], esi
mov eax, dword [edi]
push str.BootstrapperDeployStudioBootstrapperSuccess
mov ecx, edi
call dword [eax + 0x30]
jmp 0x405878
push ebx
push 1
lea ecx, [ebp + 0x4a8]
call fcn.00408639
push ebx
push 1
lea esi, [ebp + 0x4c8]
call fcn.00408971
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.0043e40d
add ebp, 0x4a0
leave
ret 0x44