Function at 0x405809
Capabilities:
Delete file

Disassembly:
push ebp
sub esp, 0x4b8
lea ebp, [esp - 4]
mov eax, dword [0x48f190]
xor eax, ebp
mov dword [ebp + 0x4b8], eax
push 0xf4
mov eax, 0x469c28
call fcn.0044c87c
mov eax, dword [ebp + 0x4e0]
and dword [ebp - 0x1c], 0
mov dword [ebp - 0x20], eax
mov eax, dword [ebp + 0x504]
mov edi, ecx
mov dword [ebp - 0x24], edi
mov dword [ebp - 0x28], eax
mov dword [ebp - 4], 1
cmp dword [ebp + 0x4fc], 8
mov ecx, dword [ebp + 0x4e8]
jae 0x405867
lea ecx, [ebp + 0x4e8]
cmp dword [ebp + 0x4dc], 0x10
mov eax, dword [ebp + 0x4c8]
jae 0x40587c
lea eax, [ebp + 0x4c8]
push ecx
push dword [ebp - 0x20]
lea esi, [edi + 0x1ac]
push eax
mov ebx, str.BootstrapperClient::deployExtraStudioBootstrapper_name___s__linkName___S__component___S
push ebx
mov dword [ebp - 0x1c], esi
call fcn.0040900c
mov eax, dword [edi]
add esp, 0x10
push str.BootstrapperDeployStudioBootstrapperStarted
mov ecx, edi
call dword [eax + 0xac]
mov byte [ebp - 4], 2
cmp dword [ebp + 0x4fc], 8
mov ecx, dword [ebp + 0x4e8]
jae 0x4058c0
lea ecx, [ebp + 0x4e8]
cmp dword [ebp + 0x4dc], 0x10
mov eax, dword [ebp + 0x4c8]
jae 0x4058d5
lea eax, [ebp + 0x4c8]
mov esi, dword [ebp - 0x1c]
push ecx
push dword [ebp - 0x20]
push eax
push ebx
call fcn.0040900c
add esp, 0x10
lea eax, [ebp + 0x4c4]
push eax
lea ecx, [ebp + 0x1c]
call fcn.00408173
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.0041a12e
lea edx, [ebp + 0x1c]
lea ecx, [ebp + 0x70]
mov byte [ebp - 4], 4
call fcn.0042c7d5
push 0xffffffffffffffff
xor ebx, ebx
push ebx
lea esi, [ebp + 0x8c]
mov byte [ebp - 4], 5
call fcn.004094d1
push ebx
push 1
lea esi, [ebp + 0x70]
mov byte [ebp - 4], 4
call fcn.0040971e
xor eax, eax
mov esi, 0x206
push esi
mov word [ebp + 0x2b0], ax
lea eax, [ebp + 0x2b2]
push ebx
push eax
call fcn.0044c030
xor eax, eax
push esi
mov word [ebp + 0xa8], ax
lea eax, [ebp + 0xaa]
push ebx
push eax
call fcn.0044c030
mov eax, dword [ebp + 0x4e8]
add esp, 0x18
cmp dword [ebp + 0x4fc], 8
jae 0x40598b
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.0042aa60
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.0040900c
mov esi, str.E2016M_Studio_2013
add esp, 0xc
mov edi, esi
mov ecx, ebx
mov byte [ebp - 4], 6
call fcn.0042b956
mov edi, dword [ebp - 0x24]
mov al, byte [edi + 0x59]
mov byte [ebp - 0x18], al
push esi
push dword [ebp - 0x18]
mov ecx, ebx
call fcn.0042ba1d
pop ecx
pop ecx
mov dword [ebp - 4], 4
jmp 0x405a27
cmp byte [edi + 0x3ab], 0
mov byte [ebp - 0x11], 0
je 0x405a9f
lea eax, [ebp + 0x5c]
call fcn.00428096
lea eax, [ebp + 0x8c]
lea ecx, [ebp + 0x5c]
mov byte [ebp - 4], 8
call fcn.0042815d
test eax, eax
je 0x405a93
lea eax, [ebp + 0x5c]
push eax
lea ecx, [ebp + 0x70]
call fcn.00428328
lea eax, [edi + 0x370]
mov byte [ebp - 4], 9
cmp dword [eax + 0x18], 0x10
jb 0x405a73
mov eax, dword [eax + 4]
jmp 0x405a76
add eax, 4
push eax
lea eax, [ebp + 0x70]
call fcn.004081d6
test eax, eax
je 0x405a87
mov byte [ebp - 0x11], 1
push 0
push 1
lea ecx, [ebp + 0x70]
call fcn.00409486
lea esi, [ebp + 0x5c]
mov byte [ebp - 4], 4
call fcn.004280b8
lea eax, [ebp + 0x2b0]
push eax
lea eax, [ebp - 0x54]
call fcn.004081fb
xor ebx, ebx
mov byte [ebp - 4], 0xa
inc ebx
cmp dword [eax + 0x14], 0
mov dword [ebp - 0x1c], ebx
je 0x405b21
cmp byte [ebp - 0x11], 0
jne 0x405b21
mov eax, dword [edi]
lea ecx, [ebp - 0x78]
push ecx
mov ecx, edi
call dword [eax]
mov dword [ebp - 4], 0xb
mov edx, eax
lea ecx, [ebp + 0x54]
mov dword [ebp - 0x1c], 3
call fcn.0042c7d5
mov esi, eax
lea eax, [ebp + 0xa8]
push eax
mov dword [ebp - 4], 0xc
lea eax, [ebp + 0x70]
mov dword [ebp - 0x1c], 7
call fcn.004081fb
push 0xf
pop ebx
mov dword [ebp - 4], 0xd
mov ecx, esi
mov dword [ebp - 0x1c], ebx
call fcn.0040b50c
mov byte [ebp - 0x11], 1
test al, al
jne 0x405b25
mov byte [ebp - 0x11], 0
test bl, 8
je 0x405b39
push 0
push 1
lea esi, [ebp + 0x70]
and ebx, 0xfffffff7
call fcn.0040971e
test bl, 4
je 0x405b4d
push 0
push 1
lea esi, [ebp + 0x54]
and ebx, 0xfffffffb
call fcn.0040971e
test bl, 2
je 0x405b61
push 0
push 1
lea ecx, [ebp - 0x78]
and ebx, 0xfffffffd
call fcn.00409486
mov dword [ebp - 4], 4
test bl, 1
je 0x405b79
push 0
push 1
lea esi, [ebp - 0x54]
call fcn.0040971e
cmp byte [ebp - 0x11], 0
je 0x405c60
lea esi, [edi + 0x1ac]
push str.BootstrapperClient::deployExtraStudioBootstrapper___Studio_bootstrapper_version_is_present_and_URL_is_current_one
mov dword [ebp - 0x1c], esi
call fcn.0040900c
cmp dword [ebp + 0xa4], 8
mov eax, dword [ebp + 0x90]
pop ecx
jae 0x405bac
lea eax, [ebp + 0x90]
push eax
call fcn.0042d231
pop ecx
test al, al
je 0x405c60
push str.BootstrapperClient::deployExtraStudioBootstrapper___Studio_bootstrapper_is_present._updating_links_and_leaving
call fcn.0040900c
cmp dword [ebp + 0xa4], 8
mov eax, dword [ebp + 0x90]
pop ecx
jae 0x405bdb
lea eax, [ebp + 0x90]
mov cl, byte [edi + 0x59]
xor ebx, ebx
inc ebx
push ebx
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 dword [ebp - 0x1c]
call fcn.0042afc4
mov eax, dword [ebp + 0x90]
add esp, 0x18
cmp dword [ebp + 0xa4], 8
jae 0x405c14
lea eax, [ebp + 0x90]
push dword [ebp + 0x500]
mov cl, byte [edi + 0x59]
push ebx
push esi
push eax
mov byte [ebp - 0x18], cl
push dword [ebp - 0x18]
mov ecx, dword [ebp - 0x20]
push dword [ebp - 0x1c]
call fcn.0042afc4
add esp, 0x18
xor edi, edi
push edi
push ebx
lea esi, [ebp + 0x8c]
call fcn.0040971e
push edi
push ebx
lea ecx, [ebp + 0x1c]
call fcn.00409486
push edi
push ebx
lea ecx, [ebp + 0x4c4]
call fcn.00409486
push edi
jmp 0x40612c
push 0x470698
lea ebx, [ebp + 0x38]
call fcn.00408f3c
pop ecx
mov byte [ebp - 4], 0xe
cmp dword [ebp + 0x50], 8
mov eax, dword [ebp + 0x3c]
jae 0x405c7e
lea eax, [ebp + 0x3c]
push eax
lea eax, [ebp - 0x100]
push eax
push 0x20
pop ecx
call fcn.004085dd
mov byte [ebp - 4], 0xf
cmp dword [ebp + 0x4dc], 0x10
mov eax, dword [ebp + 0x4c8]
jae 0x405ca7
lea eax, [ebp + 0x4c8]
push eax
sub esp, 0x1c
mov ecx, esp
mov dword [ebp - 0x18], esp
push str.versionQTStudio
call fcn.00408151
lea eax, [ebp - 0x54]
push eax
mov ecx, edi
call fcn.0041a22b
mov byte [ebp - 4], 0x10
cmp dword [eax + 0x18], 0x10
jb 0x405cd4
mov eax, dword [eax + 4]
jmp 0x405cd7
add eax, 4
push eax
push str.__s__s
lea esi, [ebp + 0x54]
call fcn.0042c993
add esp, 0xc
xor ebx, ebx
push ebx
push 1
lea ecx, [ebp - 0x54]
call fcn.00409486
sub esp, 0x20
mov esi, esp
mov dword [ebp - 0x18], esp
push dword [ebp - 0x34]
mov eax, fcn.00401925
push eax
call fcn.0040b52e
push ebx
lea eax, [ebp - 0x100]
push eax
push ebx
lea ecx, [ebp + 0x70]
mov dword [ebp + 0x88], 0xf
call fcn.0040a1c3
lea eax, [ebp + 0x70]
mov byte [ebp - 4], 0x14
cmp dword [ebp + 0x6c], 0x10
push eax
mov eax, dword [ebp + 0x58]
jae 0x405d3a
lea eax, [ebp + 0x58]
sub esp, 0x1c
mov ecx, esp
mov dword [ebp - 0x1c], esp
push eax
call fcn.00408151
sub esp, 0x1c
mov byte [ebp - 4], 0x15
mov eax, dword [edi]
mov ecx, esp
mov dword [ebp - 0x2c], esp
push ecx
mov ecx, edi
call dword [eax + 4]
mov ecx, edi
mov byte [ebp - 4], 0x16
call fcn.00432b21
add esp, 0x64
push ebx
push 1
lea ecx, [ebp + 0x70]
call fcn.00409486
push ebx
push 1
lea ecx, [ebp + 0x54]
call fcn.00409486
lea eax, [ebp - 0x100]
mov byte [ebp - 4], 0xe
call fcn.0040615d
cmp dword [ebp + 0xa4], 8
mov eax, dword [ebp + 0x90]
jae 0x405da4
lea eax, [ebp + 0x90]
push eax
call fcn.0042d231
pop ecx
test al, al
je 0x405ddc
push str.BootstrapperClient::deployExtraStudioBootstrapper___deleting_old_studio_bootstrapper
lea esi, [edi + 0x1ac]
call fcn.0040900c
cmp dword [ebp + 0xa4], 8
mov eax, dword [ebp + 0x90]
pop ecx
jae 0x405dd5
lea eax, [ebp + 0x90]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
cmp dword [ebp + 0xa4], 8
mov ecx, dword [ebp + 0x90]
jae 0x405df1
lea ecx, [ebp + 0x90]
cmp dword [ebp + 0x50], 8
mov eax, dword [ebp + 0x3c]
jae 0x405dfd
lea eax, [ebp + 0x3c]
push ecx
lea ebx, [edi + 0x1ac]
push eax
mov ecx, ebx
call fcn.0042a25e
cmp dword [ebp + 0x4fc], 8
mov eax, dword [ebp + 0x4e8]
pop ecx
pop ecx
jae 0x405e23
lea eax, [ebp + 0x4e8]
mov cl, byte [edi + 0x59]
mov byte [ebp - 0x18], cl
mov ecx, 0x471e7c
push ecx
push eax
push dword [ebp - 0x18]
mov edx, ebx
call fcn.0042a8c1
mov eax, dword [ebp + 0x90]
add esp, 0xc
cmp dword [ebp + 0xa4], 8
jae 0x405e52
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.0042afc4
mov eax, dword [ebp + 0x90]
add esp, 0x18
cmp dword [ebp + 0xa4], 8
jae 0x405e87
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.0042afc4
add esp, 0x18
lea edx, [ebp + 0x4c4]
lea ecx, [ebp]
call fcn.0042c7d5
mov byte [ebp - 4], 0x17
mov al, byte [edi + 0x59]
mov byte [ebp - 0x18], al
push dword [ebp - 0x18]
lea eax, [ebp - 0x78]
push eax
call fcn.0041a12e
lea ecx, [ebp]
push ecx
push eax
lea eax, [ebp - 0x54]
push eax
mov byte [ebp - 4], 0x18
call fcn.0040b430
add esp, 0xc
mov byte [ebp - 4], 0x19
cmp dword [eax + 0x18], 8
jb 0x405eee
mov ecx, dword [eax + 4]
jmp 0x405ef1
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.0042a01e
add esp, 0x14
push 0
push 1
lea esi, [ebp - 0x54]
call fcn.0040971e
push 0
push 1
lea esi, [ebp - 0x78]
mov byte [ebp - 4], 0x1c
call fcn.0040971e
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], 0x1d
call fcn.0042c7d5
mov byte [ebp - 4], 0x1e
cmp dword [eax + 0x18], 8
jb 0x405f59
mov eax, dword [eax + 4]
jmp 0x405f5c
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.0040ca7d
push eax
call fcn.00429e3c
pop ecx
pop ecx
push 0
push 1
lea esi, [ebp + 0x70]
call fcn.0040971e
push 0
push 1
lea ecx, [ebp + 0x54]
call fcn.00409486
cmp byte [edi + 0x59], 0
mov eax, reloc.OLEAUT32.dll_SysReAllocString
je 0x405f9f
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], 0x1f
call fcn.0040cb62
lea esi, [edi + 0x1ac]
test eax, eax
jne 0x406020
push str.BootstrapperClient::deployExtraStudioBootstrapper___studio_reg_key_opened
call fcn.0040900c
cmp dword [ebp + 0xa4], 8
mov eax, dword [ebp + 0x90]
pop ecx
jae 0x405fe6
lea eax, [ebp + 0x90]
push 1
push eax
push 0x471e7c
lea eax, [ebp - 0x30]
push eax
call fcn.0040ca7d
test eax, eax
jl 0x406018
cmp dword [ebp + 0xa4], 8
mov eax, dword [ebp + 0x90]
jae 0x406010
lea eax, [ebp + 0x90]
push eax
push str.BootstrapperClient::deployExtraStudioBootstrapper___studio_reg_key_set_to__S
jmp 0x406026
push eax
push str.BootstrapperClient::deployExtraStudioBootstrapper___studio_reg_key_write_failed__error0x_X
jmp 0x406026
push eax
push str.BootstrapperClient::deployExtraStudioBootstrapper___studio_reg_key_open_failed__error0x_X
call fcn.0040900c
pop ecx
pop ecx
push dword [ebp - 0x28]
lea eax, [ebp + 0x70]
call fcn.004081fb
lea ecx, [ebp - 0x78]
mov byte [ebp - 4], 0x20
mov eax, dword [edi]
push ecx
mov ecx, edi
call dword [eax]
mov ebx, eax
lea esi, [ebp - 0x54]
mov byte [ebp - 4], 0x21
call fcn.0042addf
lea ecx, [ebp + 0x8c]
push ecx
push eax
lea ecx, [ebp + 0x70]
mov edx, edi
mov byte [ebp - 4], 0x22
call fcn.00418a82
xor ebx, ebx
push 0
inc ebx
push ebx
call fcn.0040971e
push 0
push ebx
lea ecx, [ebp - 0x78]
call fcn.00409486
push 0
push ebx
lea esi, [ebp + 0x70]
call fcn.0040971e
lea esi, [ebp - 0x30]
call fcn.0040cba0
lea esi, [ebp - 0x38]
call fcn.0040cba0
push 0
push ebx
lea esi, [ebp]
call fcn.0040971e
push 0
push ebx
lea esi, [ebp + 0x38]
call fcn.0040971e
push 0
push ebx
lea esi, [ebp + 0x8c]
call fcn.0040971e
push 0
push ebx
lea ecx, [ebp + 0x1c]
call fcn.00409486
mov dword [ebp - 4], ebx
mov eax, dword [edi]
push str.BootstrapperDeployStudioBootstrapperSuccess
mov ecx, edi
call dword [eax + 0xac]
jmp 0x40611c
push 0
push ebx
lea ecx, [ebp + 0x4c4]
call fcn.00409486
push 0
push ebx
lea esi, [ebp + 0x4e4]
call fcn.0040971e
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.004483ed
add ebp, 0x4bc
leave
ret 0x44