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

Disassembly:
push 0x6e4
mov eax, 0x41d2ae
call fcn.0041cb0e
mov bl, dl
mov byte [ebp - 0x6ed], bl
mov edi, ecx
xor esi, esi
inc esi
test bl, bl
jne 0x4013cf
push 0x64
lea eax, [ebp - 0x6b0]
push 0
push eax
call fcn.0040bfc0
pop ecx
pop ecx
lea ecx, [ebp - 0x6b0]
call fcn.00401c3c
mov dword [ebp - 0x638], esi
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 edi, 6
jl 0x401348
push 0x75
pop eax
jmp 0x401353
xor eax, eax
cmp edi, 3
setge al
add eax, 0x6a
mov dword [ebp - 0x694], eax
cmp edi, 6
jl 0x401363
push 0x74
pop eax
jmp 0x40136f
push 0x6c
pop eax
push 0x6e
cmp edi, 3
pop ecx
cmovge eax, ecx
and dword [ebp - 0x6a4], 0xfffffffd
mov dword [ebp - 0x690], eax
mov dword [ebp - 0x698], 0xfffd
cmp edi, 6
jl 0x401390
push 0x73
pop eax
jmp 0x40139b
xor eax, eax
cmp edi, 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.004019ee
test eax, eax
js 0x4013c8
cmp dword [ebp - 0x640], esi
je 0x4013cf
mov eax, esi
jmp 0x40171c
push 0x208
lea eax, [ebp - 0x218]
push 0
push eax
call fcn.0040bfc0
xor eax, eax
mov esi, eax
mov dword [ebp - 0x648], esi
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.0040bfc0
mov eax, dword [0x4297d0]
add esp, 0x18
mov dword [ebp - 0x644], eax
mov byte [ebp - 4], 2
cmp edi, 6
jl 0x40142a
push 0x76
pop eax
jmp 0x401435
xor eax, eax
cmp edi, 3
setge al
add eax, 0x68
push eax
lea ecx, [ebp - 0x644]
call fcn.00401f7d
lea eax, [ebp - 0x628]
mov edi, 0x104
push eax
push edi
call dword [sym.imp.KERNEL32.dll_GetTempPathW]
test eax, eax
jne 0x401462
call fcn.00401c25
jmp 0x4016be
cmp eax, edi
jbe 0x401470
mov edi, 0x80020013
jmp 0x4016c0
lea eax, [ebp - 0x420]
push eax
push 0
push 0x423c84
lea eax, [ebp - 0x628]
push eax
call dword [sym.imp.KERNEL32.dll_GetTempFileNameW]
test eax, eax
je 0x401458
xor eax, eax
mov word [ebp - 0x21a], ax
lea eax, [ebp - 0x420]
push eax
lea eax, [ebp - 0x218]
push edi
push eax
call fcn.0040e16b
add esp, 0xc
test eax, eax
je 0x4014bd
mov edi, 0x80004005
jmp 0x4016c0
lea eax, [ebp - 0x218]
push 0x2e
push eax
call fcn.0040b713
pop ecx
pop ecx
mov ecx, eax
push str..exe
test ecx, ecx
jne 0x40169d
lea eax, [ebp - 0x218]
push edi
push eax
call fcn.0040e1cf
add esp, 0xc
test eax, eax
jne 0x4014b3
lea eax, [ebp - 0x218]
push eax
lea eax, [ebp - 0x420]
push eax
call dword [sym.imp.KERNEL32.dll_MoveFileW]
test eax, eax
je 0x401458
test bl, bl
jne 0x4015cc
lea eax, [ebp - 0x63c]
push eax
push 0x4240f0
push 0x17
push 0
push 0x41e210
call dword [sym.imp.ole32.dll_CoCreateInstance]
mov eax, dword [ebp - 0x63c]
test eax, eax
je 0x4015cc
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.00401aba
test eax, eax
js 0x4015cc
mov ebx, dword [ebp - 0x640]
mov edi, dword [ebp - 0x63c]
mov ecx, dword [ebx + 0x24]
cmp ecx, edi
je 0x4015b4
test edi, edi
je 0x4015a7
mov eax, dword [edi]
push edi
call dword [eax + 4]
mov ecx, dword [ebx + 0x24]
mov dword [ebx + 0x24], edi
test ecx, ecx
je 0x4015b4
mov eax, dword [ecx]
push ecx
call dword [eax + 8]
test ebx, ebx
je 0x4015c6
mov eax, dword [ebx]
push ebx
call dword [eax + 4]
mov esi, ebx
mov dword [ebp - 0x648], esi
mov bl, byte [ebp - 0x6ed]
push esi
push 0
lea eax, [ebp - 0x218]
push eax
push dword [ebp - 0x644]
push 0
call dword [sym.imp.urlmon.dll_URLDownloadToFileW]
mov edi, eax
mov eax, dword [ebp - 0x63c]
test eax, eax
je 0x4015f6
mov ecx, dword [eax]
push eax
call dword [ecx + 0x10]
test edi, edi
jne 0x4016c0
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 - 0x6e0], 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 0x401458
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 0x401458
mov edi, dword [ebp - 0x64c]
cmp edi, 0x669
je 0x4016b7
cmp edi, 0xbc2
je 0x4016b7
neg edi
sbb edi, edi
and edi, 0x80004005
jmp 0x4016c0
mov eax, ecx
lea edx, [ebp - 0x218]
sub eax, edx
sar eax, 1
sub edi, eax
push edi
push ecx
call fcn.0040e16b
jmp 0x4014e9
mov cl, bl
call fcn.00401722
mov edi, eax
mov eax, dword [ebp - 0x6b4]
test eax, eax
je 0x4016d6
cmp eax, 0xffffffff
je 0x4016d6
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
cmp word [ebp - 0x218], 0
je 0x4016ed
lea eax, [ebp - 0x218]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
lea ecx, [ebp - 0x644]
call fcn.00401e7b
mov byte [ebp - 4], 0
mov eax, dword [ebp - 0x63c]
test eax, eax
je 0x40170c
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
or dword [ebp - 4], 0xffffffff
test esi, esi
je 0x40171a
mov eax, dword [esi]
push esi
call dword [eax + 8]
mov eax, edi
call fcn.0041cab8
ret