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

Disassembly:
push 0x6e8
mov eax, 0x41c785
call fcn.0041b933
mov bl, dl
mov byte [ebp - 0x6f1], bl
mov edi, ecx
xor esi, esi
inc esi
test bl, bl
jne 0x40135f
push 0x64
lea eax, [ebp - 0x6b4]
push 0
push eax
call fcn.0040c260
pop ecx
pop ecx
lea ecx, [ebp - 0x6b4]
call fcn.00401be2
lea eax, [ebp - 0x63c]
mov dword [ebp - 0x63c], esi
mov dword [ebp - 0x68c], eax
xor eax, eax
push 2
pop ecx
cmp edi, 3
mov dword [ebp - 0x634], ecx
push 0x6c
setge al
mov dword [ebp - 0x690], ecx
add eax, 0x6a
mov dword [ebp - 0x638], str.Install
movzx eax, ax
cmp edi, 3
mov dword [ebp - 0x698], eax
pop eax
push 0x6e
pop ecx
cmovge eax, ecx
mov dword [ebp - 0x630], str.Cancel
and dword [ebp - 0x6a8], 0xfffffffd
movzx eax, ax
mov dword [ebp - 0x694], eax
xor eax, eax
cmp edi, 3
mov dword [ebp - 0x69c], 0xfffd
push ecx
setge al
add eax, 0x6f
movzx eax, ax
mov dword [ebp - 0x674], eax
lea eax, [ebp - 0x644]
push ecx
push eax
call dword [sym.imp.USER32.dll_GetActiveWindow]
push eax
lea ecx, [ebp - 0x6b4]
call fcn.00401992
test eax, eax
js 0x401358
cmp dword [ebp - 0x644], esi
je 0x40135f
mov eax, esi
jmp 0x4016a0
push 0x208
lea eax, [ebp - 0x218]
push 0
push eax
call fcn.0040c260
xor eax, eax
mov esi, eax
mov dword [ebp - 0x64c], esi
mov dword [ebp - 4], eax
mov dword [ebp - 0x640], eax
push 0x38
push eax
lea eax, [ebp - 0x6ec]
mov dword [ebp - 0x6f0], 0x3c
push eax
call fcn.0040c260
mov eax, dword [0x4287d0]
add esp, 0x18
mov dword [ebp - 0x648], eax
xor eax, eax
mov byte [ebp - 4], 2
cmp edi, 3
lea ecx, [ebp - 0x648]
setge al
add eax, 0x68
push eax
call fcn.00401f13
lea eax, [ebp - 0x62c]
mov edi, 0x104
push eax
push edi
call dword [sym.imp.KERNEL32.dll_GetTempPathW]
test eax, eax
jne 0x4013e8
call fcn.00401bcb
jmp 0x401642
cmp eax, edi
jbe 0x4013f6
mov edi, 0x80020013
jmp 0x401644
lea eax, [ebp - 0x424]
push eax
push 0
push 0x422b58
lea eax, [ebp - 0x62c]
push eax
call dword [sym.imp.KERNEL32.dll_GetTempFileNameW]
test eax, eax
je 0x4013de
xor eax, eax
mov word [ebp - 0x21e], ax
lea eax, [ebp - 0x424]
push eax
lea eax, [ebp - 0x218]
push edi
push eax
call fcn.0040d16d
add esp, 0xc
test eax, eax
je 0x401443
mov edi, 0x80004005
jmp 0x401644
lea eax, [ebp - 0x218]
push 0x2e
push eax
call fcn.0040b9b1
pop ecx
pop ecx
mov ecx, eax
push str..exe
test ecx, ecx
jne 0x401621
lea eax, [ebp - 0x218]
push edi
push eax
call fcn.0040d1d1
add esp, 0xc
test eax, eax
jne 0x401439
lea eax, [ebp - 0x218]
push eax
lea eax, [ebp - 0x424]
push eax
call dword [sym.imp.KERNEL32.dll_MoveFileW]
test eax, eax
je 0x4013de
test bl, bl
jne 0x401550
lea eax, [ebp - 0x640]
push eax
push 0x422fc8
push 0x17
push 0
push 0x41d2a0
call dword [sym.imp.ole32.dll_CoCreateInstance]
mov eax, dword [ebp - 0x640]
test eax, eax
je 0x401550
mov ecx, dword [eax]
push str.Downloading
push eax
call dword [ecx + 0x14]
mov eax, dword [ebp - 0x640]
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 - 0x640]
xor edx, edx
push edx
push edx
push edx
mov ecx, dword [eax]
push edx
push eax
call dword [ecx + 0xc]
and dword [ebp - 0x644], 0
lea ecx, [ebp - 0x644]
call fcn.00401a60
test eax, eax
js 0x401550
mov edi, dword [ebp - 0x644]
mov ebx, dword [ebp - 0x640]
cmp dword [edi + 0x24], ebx
je 0x401538
test ebx, ebx
je 0x401528
mov eax, dword [ebx]
push ebx
call dword [eax + 4]
mov eax, dword [edi + 0x24]
mov dword [edi + 0x24], ebx
test eax, eax
je 0x401538
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
test edi, edi
je 0x40154a
mov eax, dword [edi]
push edi
call dword [eax + 4]
mov esi, edi
mov dword [ebp - 0x64c], esi
mov bl, byte [ebp - 0x6f1]
push esi
push 0
lea eax, [ebp - 0x218]
push eax
push dword [ebp - 0x648]
push 0
call dword [sym.imp.urlmon.dll_URLDownloadToFileW]
mov edi, eax
mov eax, dword [ebp - 0x640]
test eax, eax
je 0x40157a
mov ecx, dword [eax]
push eax
call dword [ecx + 0x10]
test edi, edi
jne 0x401644
lea eax, [ebp - 0x218]
mov dword [ebp - 0x6ec], 0x40
mov dword [ebp - 0x6e0], eax
mov ecx, str._passive__norestart__showrmui
test bl, bl
mov dword [ebp - 0x6e4], str.open
mov eax, str._q__norestart
mov dword [ebp - 0x6d4], 5
cmove eax, ecx
mov dword [ebp - 0x6dc], eax
lea eax, [ebp - 0x6f0]
push eax
call dword [sym.imp.SHELL32.dll_ShellExecuteExW]
test eax, eax
je 0x4013de
push 0xffffffffffffffff
push dword [ebp - 0x6b8]
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
lea eax, [ebp - 0x650]
push eax
push dword [ebp - 0x6b8]
call dword [sym.imp.KERNEL32.dll_GetExitCodeProcess]
test eax, eax
je 0x4013de
mov edi, dword [ebp - 0x650]
cmp edi, 0x669
je 0x40163b
cmp edi, 0xbc2
je 0x40163b
neg edi
sbb edi, edi
and edi, 0x80004005
jmp 0x401644
mov eax, ecx
lea edx, [ebp - 0x218]
sub eax, edx
sar eax, 1
sub edi, eax
push edi
push ecx
call fcn.0040d16d
jmp 0x40146f
mov cl, bl
call fcn.004016a6
mov edi, eax
mov eax, dword [ebp - 0x6b8]
test eax, eax
je 0x40165a
cmp eax, 0xffffffff
je 0x40165a
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
cmp word [ebp - 0x218], 0
je 0x401671
lea eax, [ebp - 0x218]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
lea ecx, [ebp - 0x648]
call fcn.00401e11
mov byte [ebp - 4], 0
mov eax, dword [ebp - 0x640]
test eax, eax
je 0x401690
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
or dword [ebp - 4], 0xffffffff
test esi, esi
je 0x40169e
mov eax, dword [esi]
push esi
call dword [eax + 8]
mov eax, edi
call fcn.0041b8dd
ret