Function at 0x404680
Capabilities:
Download url
Get common file path
Get installed programs
Receive data

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x320
mov eax, dword [0x4251c0]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push edi
mov dword [ebp - 0x314], 0
mov dword [ebp - 0x31c], 0
call fcn.00404630
mov ebx, eax
push 0x41d2a8
mov dword [ebp - 0x320], ebx
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
test eax, eax
je 0x40473f
mov ecx, dword [str.9A25302D_30C0_39D9_BD6F_21E6EC160475]
xor esi, esi
test ecx, ecx
je 0x4046ee
push ecx
call sub.msi.dll_MsiRecordGetInteger
cmp eax, 3
je 0x404729
cmp eax, 5
je 0x404729
mov ecx, dword [esi*4 + 0x425150]
inc esi
test ecx, ecx
jne 0x4046d2
xor edi, edi
cmp ebx, 1
jne 0x404854
mov eax, dword [str.8220EEFE_38CD_377E_8595_13398D740ACE]
xor esi, esi
test eax, eax
je 0x404854
push eax
call sub.msi.dll_MsiRecordGetInteger
cmp eax, 3
je 0x404730
cmp eax, 5
je 0x404730
mov eax, dword [esi*4 + 0x42517c]
inc esi
test eax, eax
jne 0x404708
jmp 0x404854
mov edi, 1
jmp 0x4046f0
mov dword [ebp - 0x31c], 1
jmp 0x404854
mov esi, dword [str.9A25302D_30C0_39D9_BD6F_21E6EC160475]
xor edi, edi
mov ebx, dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test esi, esi
je 0x4047bf
push 0x104
lea eax, [ebp - 0x108]
push 0
push eax
call fcn.00407730
push esi
push 0x41d2b0
lea eax, [ebp - 0x108]
push 0x104
push eax
call fcn.00402d90
add esp, 0x1c
lea eax, [ebp - 0x318]
push eax
push 1
push 0
lea eax, [ebp - 0x108]
push eax
push reloc.OLEAUT32.dll_SysReAllocString
call ebx
test eax, eax
je 0x4047a9
mov esi, dword [edi*4 + 0x425150]
inc edi
test esi, esi
jne 0x404751
jmp 0x4047bf
push dword [ebp - 0x318]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov dword [ebp - 0x314], 1
cmp dword [ebp - 0x320], 1
jne 0x40484e
mov esi, dword [str.8220EEFE_38CD_377E_8595_13398D740ACE]
xor edi, edi
test esi, esi
je 0x40484e
nop dword [eax + eax]
push 0x104
lea eax, [ebp - 0x108]
push 0
push eax
call fcn.00407730
push esi
push str.SOFTWAREMicrosoftWindowsCurrentVersionUninstall_s
lea eax, [ebp - 0x108]
push 0x104
push eax
call fcn.00402d90
add esp, 0x1c
lea eax, [ebp - 0x318]
push eax
push 1
push 0
lea eax, [ebp - 0x108]
push eax
push reloc.OLEAUT32.dll_SysReAllocString
call ebx
test eax, eax
je 0x404838
mov esi, dword [edi*4 + 0x42517c]
inc edi
test esi, esi
jne 0x4047e0
jmp 0x40484e
push dword [ebp - 0x318]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov dword [ebp - 0x31c], 1
mov edi, dword [ebp - 0x314]
mov esi, dword [sym.imp.KERNEL32.dll_GetTempPathA]
test edi, edi
mov edi, dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
mov ebx, dword [sym.imp.KERNEL32.dll_CloseHandle]
jne 0x404ab1
push 0x104
lea eax, [ebp - 0x108]
push 0
push eax
call fcn.00407730
add esp, 0xc
lea eax, [ebp - 0x108]
push eax
push 0x104
call esi
push 0x104
lea eax, [ebp - 0x310]
push 0
push eax
call fcn.00407730
push dword [0x425140]
lea eax, [ebp - 0x108]
push eax
push 0x41d320
lea eax, [ebp - 0x310]
push 0x104
push eax
call fcn.00402d90
push 0x104
lea eax, [ebp - 0x20c]
push 0
push eax
call fcn.00407730
lea ecx, [ebp - 0x20c]
mov esi, str.http:__download.microsoft.com_download_5_D_8_5D8C65CB_C849_4025_8E95_C3966CAFD8AE_vcredist_x86.exe
mov eax, ecx
add esp, 0x2c
mov edx, 0x104
sub esi, eax
lea eax, [edx + 0x7ffffefa]
test eax, eax
je 0x40490b
mov al, byte [esi + ecx]
test al, al
je 0x40490b
mov byte [ecx], al
inc ecx
sub edx, 1
jne 0x4048f2
test edx, edx
lea eax, [ecx - 1]
push 0
cmovne eax, ecx
push 0
mov byte [eax], 0
lea eax, [ebp - 0x310]
push eax
lea eax, [ebp - 0x20c]
push eax
push 0
call sub.urlmon.dll_URLDownloadToFileA
test eax, eax
jne 0x40495c
push eax
lea eax, [ebp - 0x108]
push eax
push 0x41d38c
push dword [0x425140]
call fcn.004045b0
mov esi, eax
add esp, 0x10
test esi, esi
je 0x40495c
push 0xffffffffffffffff
push esi
call edi
push esi
call ebx
push str.IsVCRedist_x86_Installed2_n
call fcn.004010f0
push 0x104
lea eax, [ebp - 0x108]
push 0
push eax
call fcn.00407730
add esp, 0x10
lea eax, [ebp - 0x108]
push eax
mov eax, dword [sym.imp.KERNEL32.dll_GetTempPathA]
push 0x104
call eax
push 0x104
lea eax, [ebp - 0x310]
push 0
push eax
call fcn.00407730
push dword [0x425140]
lea eax, [ebp - 0x108]
push eax
push 0x41d154
lea eax, [ebp - 0x310]
push 0x104
push eax
call fcn.00402d90
push 0x104
lea eax, [ebp - 0x20c]
push 0
push eax
call fcn.00407730
lea ecx, [ebp - 0x20c]
mov esi, str.https:__aka.ms_vs_16_release_vc_redist.x86.exe
mov eax, ecx
add esp, 0x2c
mov edx, 0x104
sub esi, eax
nop
lea eax, [edx + 0x7ffffefa]
test eax, eax
je 0x404a09
mov al, byte [esi + ecx]
test al, al
je 0x404a09
mov byte [ecx], al
inc ecx
sub edx, 1
jne 0x4049f0
test edx, edx
lea eax, [ecx - 1]
push 0
cmovne eax, ecx
push 0
mov byte [eax], 0
lea eax, [ebp - 0x310]
push eax
lea eax, [ebp - 0x20c]
push eax
push 0
call sub.urlmon.dll_URLDownloadToFileA
test eax, eax
je 0x404a4e
lea eax, [ebp - 0x310]
push eax
lea eax, [ebp - 0x20c]
push eax
push 0x41d18c
call fcn.004010f0
add esp, 0xc
jmp 0x404aab
push 0
lea eax, [ebp - 0x108]
push eax
push 0x41d1a4
push dword [0x425140]
call fcn.004045b0
push dword [0x425140]
mov esi, eax
lea eax, [ebp - 0x108]
push eax
push esi
push str.__x_EXE_ShellExecuteEx_File___s_s__q____n
call fcn.004010f0
add esp, 0x20
test esi, esi
je 0x404aab
push 0xffffffffffffffff
push esi
call edi
push dword [0x425140]
lea eax, [ebp - 0x108]
push eax
push esi
push str.__x_Install_OK____s_s__q____n
call fcn.004010f0
add esp, 0x10
push esi
call ebx
mov esi, dword [sym.imp.KERNEL32.dll_GetTempPathA]
cmp dword [ebp - 0x320], 1
jne 0x404d0b
cmp dword [ebp - 0x31c], 0
jne 0x404d0b
push 0x104
lea eax, [ebp - 0x20c]
push 0
push eax
call fcn.00407730
add esp, 0xc
lea eax, [ebp - 0x20c]
push eax
push 0x104
call esi
push 0x104
lea eax, [ebp - 0x108]
push 0
push eax
call fcn.00407730
push dword [0x425144]
lea eax, [ebp - 0x20c]
push eax
push str._s_s
lea eax, [ebp - 0x108]
push 0x104
push eax
call fcn.00402d90
push 0x104
lea eax, [ebp - 0x310]
push 0
push eax
call fcn.00407730
lea ecx, [ebp - 0x310]
mov esi, str.http:__download.microsoft.com_download_5_D_8_5D8C65CB_C849_4025_8E95_C3966CAFD8AE_vcredist_x64.exe
mov eax, ecx
add esp, 0x2c
mov edx, 0x104
sub esi, eax
nop
lea eax, [edx + 0x7ffffefa]
test eax, eax
je 0x404b69
mov al, byte [esi + ecx]
test al, al
je 0x404b69
mov byte [ecx], al
inc ecx
sub edx, 1
jne 0x404b50
test edx, edx
lea eax, [ecx - 1]
push 0
cmovne eax, ecx
push 0
mov byte [eax], 0
lea eax, [ebp - 0x108]
push eax
lea eax, [ebp - 0x310]
push eax
push 0
call sub.urlmon.dll_URLDownloadToFileA
test eax, eax
jne 0x404bba
push eax
lea eax, [ebp - 0x20c]
push eax
push 0x41d3fc
push dword [0x425144]
call fcn.004045b0
mov esi, eax
add esp, 0x10
test esi, esi
je 0x404bba
push 0xffffffffffffffff
push esi
call edi
push esi
call ebx
push str.IsVCRedist_x64_Installed2_n
call fcn.004010f0
push 0x104
lea eax, [ebp - 0x108]
push 0
push eax
call fcn.00407730
add esp, 0x10
lea eax, [ebp - 0x108]
push eax
mov eax, dword [sym.imp.KERNEL32.dll_GetTempPathA]
push 0x104
call eax
push 0x104
lea eax, [ebp - 0x310]
push 0
push eax
call fcn.00407730
push dword [0x425144]
lea eax, [ebp - 0x108]
push eax
push 0x41d210
lea eax, [ebp - 0x310]
push 0x104
push eax
call fcn.00402d90
push 0x104
lea eax, [ebp - 0x20c]
push 0
push eax
call fcn.00407730
lea ecx, [ebp - 0x20c]
mov esi, str.https:__aka.ms_vs_16_release_vc_redist.x64.exe
mov eax, ecx
add esp, 0x2c
mov edx, 0x104
sub esi, eax
nop dword [eax]
lea eax, [edx + 0x7ffffefa]
test eax, eax
je 0x404c69
mov al, byte [esi + ecx]
test al, al
je 0x404c69
mov byte [ecx], al
inc ecx
sub edx, 1
jne 0x404c50
test edx, edx
lea eax, [ecx - 1]
push 0
cmovne eax, ecx
push 0
mov byte [eax], 0
lea eax, [ebp - 0x310]
push eax
lea eax, [ebp - 0x20c]
push eax
push 0
call sub.urlmon.dll_URLDownloadToFileA
test eax, eax
je 0x404cae
lea eax, [ebp - 0x310]
push eax
lea eax, [ebp - 0x20c]
push eax
push str.___URL_:__s__PATH_:__s
call fcn.004010f0
add esp, 0xc
jmp 0x404d0b
push 0
lea eax, [ebp - 0x108]
push eax
push 0x41d260
push dword [0x425144]
call fcn.004045b0
push dword [0x425144]
mov esi, eax
lea eax, [ebp - 0x108]
push eax
push esi
push str.__x_EXE_ShellExecuteEx_File___s_s__q__
call fcn.004010f0
add esp, 0x20
test esi, esi
je 0x404d0b
push 0xffffffffffffffff
push esi
call edi
push dword [0x425144]
lea eax, [ebp - 0x108]
push eax
push esi
push str.__x_Install_OK____s_s__q__
call fcn.004010f0
add esp, 0x10
push esi
call ebx
mov ecx, dword [ebp - 4]
mov eax, 1
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.004063ad
mov esp, ebp
pop ebp
ret