Function at 0x10013b00
Capabilities:
Check if file exists
Create process on windows
Create process suspended
Delete file
Download url
Receive data

Disassembly:
mov eax, 0x12d4
call fcn.10019ec0
mov eax, dword [0x10022018]
xor eax, esp
mov dword [esp + 0x12cc], eax
push ebx
push ebp
push esi
push edi
xor ebx, ebx
push 0x3ff
lea eax, [esp + 0xdd]
push ebx
push eax
mov byte [esp + 0xe4], bl
call sub.MSVCR90.dll_memset
add esp, 0xc
push 0x7ff
lea ecx, [esp + 0x4dd]
push ebx
push ecx
mov byte [esp + 0x4e4], bl
call sub.MSVCR90.dll_memset
add esp, 0xc
xor eax, eax
lea ebx, [ebx]
mov cl, byte [eax + 0x10022b00]
mov byte [esp + eax + 0xd8], cl
inc eax
cmp cl, bl
jne 0x10013b60
lea edx, [esp + 0xd8]
push edx
call dword [sym.imp.SHLWAPI.dll_PathRemoveFileSpecA]
lea edi, [esp + 0xd8]
dec edi
mov al, byte [edi + 1]
inc edi
cmp al, bl
jne 0x10013b88
mov ax, word [0x1001e6d4]
mov word [edi], ax
lea eax, [esp + 0xd8]
dec eax
mov cl, byte [eax + 1]
inc eax
cmp cl, bl
jne 0x10013ba1
mov ecx, dword [str.vcrd_x86_15G.exe]
mov edx, dword [0x1001e9bc]
mov dword [eax], ecx
mov ecx, dword [0x1001e9c0]
mov dword [eax + 4], edx
mov edx, dword [0x1001e9c4]
mov dword [eax + 8], ecx
mov cl, byte [0x1001e9c8]
mov dword [eax + 0xc], edx
lea edx, [esp + 0x14]
push edx
push 0x20019
push ebx
push str.SOFTWAREMicrosoftWindowsCurrentVersionUninstall
push reloc.OLEAUT32.dll_SysReAllocString
mov byte [eax + 0x10], cl
mov dword [esp + 0x28], ebx
xor esi, esi
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x10013c05
mov esi, dword [esp + 0x14]
call fcn.10014880
mov esi, eax
mov eax, dword [esp + 0x14]
cmp eax, ebx
je 0x10013c14
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov ecx, 0x11
cmp esi, ebx
je 0x10013c7a
mov esi, str.VCRD__15_22__is_already_installed_so_exiting_directly_from_function
lea edi, [esp + 0x4d8]
rep movsd dword es:[edi], dword [esi]
lea ecx, [esp + 0x4d8]
call fcn.10002780
push 0x10022b00
push str.TRUE
push str.ISINSTALLED
push str.VCRD15Above
call dword [sym.imp.KERNEL32.dll_WritePrivateProfileStringA]
lea eax, [esp + 0xd8]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsA]
test eax, eax
je 0x10013fdd
lea ecx, [esp + 0xd8]
push ecx
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
jmp 0x10013fdd
mov esi, str.VCRD__15_22__is_not_installed_so_downloading_package_for_vcrd__15_22_
lea edi, [esp + 0x4d8]
rep movsd dword es:[edi], dword [esi]
lea ecx, [esp + 0x4d8]
movsw word es:[edi], word [esi]
call fcn.10002780
push 0x10022b00
push str.FALSE
push str.ISINSTALLED
push str.VCRD15Above
call dword [sym.imp.KERNEL32.dll_WritePrivateProfileStringA]
push ebx
push ebx
lea edx, [esp + 0xe0]
push edx
push str.https:__aka.ms_vs_17_release_vc_redist.x86.exe
push ebx
call sub.urlmon.dll_URLDownloadToFileA
mov ebp, dword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
jl 0x10013d02
mov esi, dword [sym.imp.MSVCR90.dll_sprintf]
lea eax, [esp + 0xd8]
push eax
lea ecx, [esp + 0x4dc]
push str.Package_downloaded_successfully_:__s
push ecx
call esi
add esp, 0xc
lea ecx, [esp + 0x4d8]
call fcn.10002780
mov edi, 1
jmp 0x10013d33
call ebp
mov esi, dword [sym.imp.MSVCR90.dll_sprintf]
push eax
lea edx, [esp + 0xdc]
push edx
lea eax, [esp + 0x4e0]
push str.Failed_to_download_package_:__s__GLE_:__d
push eax
call esi
add esp, 0x10
lea ecx, [esp + 0x4d8]
call fcn.10002780
xor edi, edi
lea ecx, [esp + 0xd8]
push ecx
call dword [sym.imp.SHLWAPI.dll_PathFileExistsA]
test eax, eax
jne 0x10013e2c
push 0x1ff
lea edx, [esp + 0xcdd]
push ebx
push edx
mov byte [esp + 0xce4], bl
call sub.MSVCR90.dll_memset
add esp, 0xc
push 0x40
lea eax, [esp + 0x30]
push ebx
push eax
call sub.MSVCR90.dll_memset
add esp, 0xc
lea edx, [esp + 0xd8]
push edx
lea eax, [esp + 0xcdc]
xor ecx, ecx
push str.curl.exe__o__s_https:__aka.ms_vs_17_release_vc_redist.x86.exe
push eax
mov dword [esp + 0x34], 0x44
mov dword [esp + 0x60], 1
mov word [esp + 0x64], cx
call esi
add esp, 0xc
lea ecx, [esp + 0xbc]
push ecx
lea edx, [esp + 0x2c]
push edx
push ebx
push ebx
push 0x8000020
push ebx
push ebx
push ebx
lea eax, [esp + 0xcf8]
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_CreateProcessA]
test eax, eax
je 0x10013e12
mov ecx, dword [esp + 0xbc]
push 0xffffffffffffffff
push ecx
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
mov edx, dword [esp + 0xbc]
push edx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov ecx, 0xc
mov esi, str.Package_downloaded_using_curl_:_VC_redist.x86.exe
lea edi, [esp + 0x4d8]
rep movsd dword es:[edi], dword [esi]
lea ecx, [esp + 0x4d8]
movsw word es:[edi], word [esi]
call fcn.10002780
jmp 0x10013e34
call ebp
push eax
lea eax, [esp + 0x4dc]
push str.Failed_to_download_package_using_curl_:_VC_redist.x86.exe_Error_code_:__d
push eax
call esi
add esp, 0xc
jmp 0x10013fab
cmp edi, ebx
je 0x10013fb7
mov ecx, 7
mov esi, str.__install__quiet__norestart
lea edi, [esp + 0xbc]
push 0x3ff
rep movsd dword es:[edi], dword [esi]
lea ecx, [esp + 0xedd]
push ebx
push ecx
mov byte [esp + 0xee4], bl
call sub.MSVCR90.dll_memset
add esp, 0xc
xor eax, eax
mov dword [esp + 0x18], ebx
mov dword [esp + 0x1c], eax
mov dword [esp + 0x20], eax
mov dword [esp + 0x24], eax
jmp 0x10013e80
mov cl, byte [esp + eax + 0xd8]
mov byte [esp + eax + 0xed8], cl
inc eax
cmp cl, bl
jne 0x10013e80
lea eax, [esp + 0xbc]
mov edx, eax
lea esp, [esp]
mov cl, byte [eax]
inc eax
cmp cl, bl
jne 0x10013ea0
lea edi, [esp + 0xed8]
sub eax, edx
dec edi
mov cl, byte [edi + 1]
inc edi
cmp cl, bl
jne 0x10013eb1
mov ecx, eax
shr ecx, 2
mov esi, edx
rep movsd dword es:[edi], dword [esi]
push 0x44
mov ecx, eax
lea edx, [esp + 0x74]
and ecx, 3
push ebx
push edx
rep movsb byte es:[edi], byte [esi]
call sub.MSVCR90.dll_memset
mov ecx, 7
mov esi, str.Shell_to_vcrd__15_22__package
lea edi, [esp + 0x4e4]
rep movsd dword es:[edi], dword [esi]
add esp, 0xc
lea ecx, [esp + 0x4d8]
mov dword [esp + 0x70], 0x44
movsw word es:[edi], word [esi]
call fcn.10002780
lea eax, [esp + 0x18]
push eax
lea ecx, [esp + 0x74]
push ecx
push ebx
push ebx
push ebx
push ebx
push ebx
push ebx
lea edx, [esp + 0xef8]
push edx
push ebx
call dword [sym.imp.KERNEL32.dll_CreateProcessA]
test eax, eax
je 0x10013fd3
push 0x2328
call dword [sym.imp.KERNEL32.dll_Sleep]
call fcn.100135c0
test eax, eax
je 0x10013f98
mov ecx, 0xb
mov esi, str.Vcrd__15_22__package_installed_successfully
lea edi, [esp + 0x4d8]
rep movsd dword es:[edi], dword [esi]
lea ecx, [esp + 0x4d8]
call fcn.10002780
push 0x10022b00
push str.TRUE
push str.ISINSTALLED
push str.VCRD15Above
call dword [sym.imp.KERNEL32.dll_WritePrivateProfileStringA]
lea eax, [esp + 0xd8]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsA]
test eax, eax
je 0x10013fdd
lea ecx, [esp + 0xd8]
push ecx
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
jmp 0x10013fdd
mov ecx, 9
mov esi, str.Vcrd__15_22__package_install_failed
lea edi, [esp + 0x4d8]
rep movsd dword es:[edi], dword [esi]
lea ecx, [esp + 0x4d8]
call fcn.10002780
push 0x10022b00
push str.FALSE
push str.ISINSTALLED
push str.VCRD15Above
call dword [sym.imp.KERNEL32.dll_WritePrivateProfileStringA]
jmp 0x10013fdd
mov ecx, str.VCRD__15_22__package_CreateProcess_failed
call fcn.10002780
mov ecx, dword [esp + 0x12dc]
pop edi
pop esi
pop ebp
pop ebx
xor ecx, esp
call fcn.100191d2
add esp, 0x12d4
ret