Function at 0x4012ec
Capabilities:
Create process on windows
Delete file
Download url
Get common file path
Move file
Receive data

Disassembly:
push 0x6e4
mov eax, 0x41ddae
call fcn.0041d66e
mov bl, dl
mov byte [ebp - 0x6ed], bl
mov esi, ecx
xor edi, edi
inc edi
test bl, bl
jne 0x401414
push 0x64
lea eax, [ebp - 0x6b0]
push 0
push eax
call fcn.0040c010
pop ecx
pop ecx
lea ecx, [ebp - 0x6b0]
call fcn.00401c8d
mov dword [ebp - 0x638], edi
lea eax, [ebp - 0x638]
mov dword [ebp - 0x634], str.Install
mov dword [ebp - 0x62c], str.Cancel
mov dword [ebp - 0x688], eax
push 2
pop ecx
mov dword [ebp - 0x630], ecx
mov dword [ebp - 0x68c], ecx
cmp esi, 9
jl 0x40136e
mov eax, 0x88
jmp 0x401383
cmp esi, 6
jl 0x401378
push 0x75
pop eax
jmp 0x401383
xor eax, eax
cmp esi, 3
setge al
add eax, 0x6a
mov dword [ebp - 0x694], eax
cmp esi, 9
jl 0x401395
mov eax, 0x87
jmp 0x4013ab
cmp esi, 6
jl 0x40139f
push 0x74
pop eax
jmp 0x4013ab
push 0x6c
pop eax
push 0x6e
cmp esi, 3
pop ecx
cmovge eax, ecx
and dword [ebp - 0x6a4], 0xfffffffd
mov dword [ebp - 0x690], eax
mov dword [ebp - 0x698], 0xfffd
cmp esi, 9
jl 0x4013cc
push 0x78
pop eax
jmp 0x4013e0
cmp esi, 6
jl 0x4013d5
push 0x73
jmp 0x4013c9
xor eax, eax
cmp esi, 3
setge al
add eax, 0x6f
push ecx
mov dword [ebp - 0x670], eax
lea eax, [ebp - 0x640]
push ecx
push eax
call dword [sym.imp.USER32.dll_GetActiveWindow]
push eax
lea ecx, [ebp - 0x6b0]
call fcn.00401a3f
test eax, eax
js 0x40140d
cmp dword [ebp - 0x640], edi
je 0x401414
mov eax, edi
jmp 0x40176d
push 0x208
lea eax, [ebp - 0x218]
push 0
push eax
call fcn.0040c010
xor eax, eax
mov edi, eax
mov dword [ebp - 0x648], edi
mov dword [ebp - 4], eax
mov dword [ebp - 0x63c], eax
push 0x38
push eax
lea eax, [ebp - 0x6e8]
mov dword [ebp - 0x6ec], 0x3c
push eax
call fcn.0040c010
mov eax, dword [0x42a8d0]
add esp, 0x18
mov dword [ebp - 0x644], eax
mov byte [ebp - 4], 2
cmp esi, 9
jl 0x401471
mov eax, 0x89
jmp 0x401486
cmp esi, 6
jl 0x40147b
push 0x76
pop eax
jmp 0x401486
xor eax, eax
cmp esi, 3
setge al
add eax, 0x68
push eax
lea ecx, [ebp - 0x644]
call fcn.00401fce
lea eax, [ebp - 0x628]
mov esi, 0x104
push eax
push esi
call dword [sym.imp.KERNEL32.dll_GetTempPathW]
test eax, eax
jne 0x4014b3
call fcn.00401c76
jmp 0x40170f
cmp eax, esi
jbe 0x4014c1
mov esi, 0x80020013
jmp 0x401711
lea eax, [ebp - 0x420]
push eax
push 0
push 0x424c90
lea eax, [ebp - 0x628]
push eax
call dword [sym.imp.KERNEL32.dll_GetTempFileNameW]
test eax, eax
je 0x4014a9
xor eax, eax
mov word [ebp - 0x21a], ax
lea eax, [ebp - 0x420]
push eax
lea eax, [ebp - 0x218]
push esi
push eax
call fcn.0040e16f
add esp, 0xc
test eax, eax
je 0x40150e
mov esi, 0x80004005
jmp 0x401711
lea eax, [ebp - 0x218]
push 0x2e
push eax
call fcn.0040b763
pop ecx
pop ecx
mov ecx, eax
push str..exe
test ecx, ecx
jne 0x4016ee
lea eax, [ebp - 0x218]
push esi
push eax
call fcn.0040e1d3
add esp, 0xc
test eax, eax
jne 0x401504
lea eax, [ebp - 0x218]
push eax
lea eax, [ebp - 0x420]
push eax
call dword [sym.imp.KERNEL32.dll_MoveFileW]
test eax, eax
je 0x4014a9
test bl, bl
jne 0x40161d
lea eax, [ebp - 0x63c]
push eax
push 0x425100
push 0x17
push 0
push 0x41f220
call dword [sym.imp.ole32.dll_CoCreateInstance]
mov eax, dword [ebp - 0x63c]
test eax, eax
je 0x40161d
mov ecx, dword [eax]
push str.Downloading
push eax
call dword [ecx + 0x14]
mov eax, dword [ebp - 0x63c]
push 0
push 0
push str.Downloading_the_.NET_Framework_installer
mov ecx, dword [eax]
push 1
push eax
call dword [ecx + 0x28]
mov eax, dword [ebp - 0x63c]
xor edx, edx
push edx
push edx
push edx
mov ecx, dword [eax]
push edx
push eax
call dword [ecx + 0xc]
and dword [ebp - 0x640], 0
lea ecx, [ebp - 0x640]
call fcn.00401b0b
test eax, eax
js 0x40161d
mov ebx, dword [ebp - 0x640]
mov esi, dword [ebp - 0x63c]
mov ecx, dword [ebx + 0x24]
cmp ecx, esi
je 0x401605
test esi, esi
je 0x4015f8
mov eax, dword [esi]
push esi
call dword [eax + 4]
mov ecx, dword [ebx + 0x24]
mov dword [ebx + 0x24], esi
test ecx, ecx
je 0x401605
mov eax, dword [ecx]
push ecx
call dword [eax + 8]
test ebx, ebx
je 0x401617
mov eax, dword [ebx]
push ebx
call dword [eax + 4]
mov edi, ebx
mov dword [ebp - 0x648], edi
mov bl, byte [ebp - 0x6ed]
push edi
push 0
lea eax, [ebp - 0x218]
push eax
push dword [ebp - 0x644]
push 0
call dword [sym.imp.urlmon.dll_URLDownloadToFileW]
mov esi, eax
mov eax, dword [ebp - 0x63c]
test eax, eax
je 0x401647
mov ecx, dword [eax]
push eax
call dword [ecx + 0x10]
test esi, esi
jne 0x401711
lea eax, [ebp - 0x218]
mov dword [ebp - 0x6e8], 0x40
mov dword [ebp - 0x6dc], eax
mov ecx, str._passive__norestart__showrmui
test bl, bl
mov dword [ebp - str._n_n_aD.Q], str.open
mov eax, str._q__norestart
mov dword [ebp - 0x6d0], 5
cmove eax, ecx
mov dword [ebp - 0x6d8], eax
lea eax, [ebp - 0x6ec]
push eax
call dword [sym.imp.SHELL32.dll_ShellExecuteExW]
test eax, eax
je 0x4014a9
push 0xffffffffffffffff
push dword [ebp - 0x6b4]
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
lea eax, [ebp - 0x64c]
push eax
push dword [ebp - 0x6b4]
call dword [sym.imp.KERNEL32.dll_GetExitCodeProcess]
test eax, eax
je 0x4014a9
mov esi, dword [ebp - 0x64c]
cmp esi, 0x669
je 0x401708
cmp esi, 0xbc2
je 0x401708
neg esi
sbb esi, esi
and esi, 0x80004005
jmp 0x401711
mov eax, ecx
lea edx, [ebp - 0x218]
sub eax, edx
sar eax, 1
sub esi, eax
push esi
push ecx
call fcn.0040e16f
jmp 0x40153a
mov cl, bl
call fcn.00401773
mov esi, eax
mov eax, dword [ebp - 0x6b4]
test eax, eax
je 0x401727
cmp eax, 0xffffffff
je 0x401727
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
cmp word [ebp - 0x218], 0
je 0x40173e
lea eax, [ebp - 0x218]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
lea ecx, [ebp - 0x644]
call fcn.00401ecc
mov byte [ebp - 4], 0
mov eax, dword [ebp - 0x63c]
test eax, eax
je 0x40175d
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
or dword [ebp - 4], 0xffffffff
test edi, edi
je 0x40176b
mov eax, dword [edi]
push edi
call dword [eax + 8]
mov eax, esi
call fcn.0041d618
ret