Function at 0x402090
Capabilities:
Create process on windows
Delete file
Download url
Get common file path
Query or enumerate registry value
Receive data

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x41ce0c
mov eax, dword fs:[0]
push eax
sub esp, 0x41c
mov eax, dword [0x42e06c]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edx, str.Checking_for_presence_of_64_bit_office...
call fcn.00402e20
push eax
call fcn.004030d0
add esp, 4
xor eax, eax
mov word [ebp - 0x418], ax
lea eax, [ebp - 0x418]
push 0x208
push eax
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
test eax, eax
je 0x402486
push 0x1fe
lea eax, [ebp - 0x210]
push 0
push eax
call fcn.00407f10
mov esi, dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
lea eax, [ebp - 0x424]
add esp, 0xc
mov dword [ebp - 0x420], 1
mov dword [ebp - 0x41c], 0x1fe
push eax
push 0x20119
push 0
push str.SOFTWAREMicrosoftOffice16.0Outlook
push 0x80000002
call esi
test eax, eax
je 0x402180
lea eax, [ebp - 0x424]
push eax
push 0x20119
push 0
push str.SOFTWAREMicrosoftOffice15.0Outlook
push 0x80000002
call esi
test eax, eax
je 0x402180
lea eax, [ebp - 0x424]
push eax
push 0x20119
push 0
push str.SOFTWAREMicrosoftOffice14.0Outlook
push 0x80000002
call esi
test eax, eax
jne 0x4021ed
lea eax, [ebp - 0x41c]
push eax
lea eax, [ebp - 0x210]
push eax
lea eax, [ebp - 0x420]
push eax
push 0
push str.Bitness
push dword [ebp - 0x424]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x4021ed
lea ecx, [ebp - 0x210]
mov eax, 0x42ab50
mov dx, word [eax]
cmp dx, word [ecx]
jne 0x4021dd
test dx, dx
je 0x4021d9
mov dx, word [eax + 2]
cmp dx, word [ecx + 2]
jne 0x4021dd
add eax, 4
add ecx, 4
test dx, dx
jne 0x4021b7
xor eax, eax
jmp 0x4021e2
sbb eax, eax
or eax, 1
mov byte [ebp - 0x425], 1
test eax, eax
je 0x4021f4
mov byte [ebp - 0x425], 0
call fcn.004012e0
mov ecx, eax
test ecx, ecx
je 0x4024ae
mov eax, dword [ecx]
call dword [eax + 0xc]
lea esi, [eax + 0x10]
mov dword [ebp - 0x41c], esi
mov dword [ebp - 4], 0
mov ecx, 1
mov eax, dword [esi - 8]
sub ecx, dword [esi - 4]
sub eax, 0x104
or eax, ecx
jge 0x402242
push 0x104
lea ecx, [ebp - 0x41c]
call fcn.00402a60
mov esi, dword [ebp - 0x41c]
cmp dword [esi - 8], 0x104
jl 0x4024a4
push esi
xor eax, eax
mov dword [esi - 0xc], 0x104
push 0x104
mov word [esi + 0x208], ax
call dword [sym.imp.KERNEL32.dll_GetTempPathW]
push dword [esi - 8]
push esi
call fcn.0040a78e
add esp, 8
test eax, eax
js 0x4024a4
cmp eax, dword [esi - 8]
jg 0x4024a4
mov dword [esi - 0xc], eax
xor ecx, ecx
mov word [esi + eax*2], cx
mov ebx, dword [esi - 0xc]
lea eax, [ebx - 1]
test eax, eax
js 0x4024a4
cmp eax, ebx
jg 0x4024a4
cmp word [esi + eax*2], 0x5c
je 0x4022ef
mov eax, dword [esi - 8]
lea edi, [ebx + 1]
mov ecx, 1
sub eax, edi
sub ecx, dword [esi - 4]
or eax, ecx
jge 0x4022d4
push edi
lea ecx, [ebp - 0x41c]
call fcn.00402a60
mov esi, dword [ebp - 0x41c]
mov eax, 0x5c
mov word [esi + ebx*2], ax
cmp edi, dword [esi - 8]
jg 0x4024a4
xor eax, eax
mov dword [esi - 0xc], edi
mov word [esi + edi*2], ax
call fcn.004012e0
mov ecx, eax
test ecx, ecx
je 0x4024b8
mov eax, dword [ecx]
call dword [eax + 0xc]
add eax, 0x10
mov dword [ebp - 0x424], eax
mov edx, str.Downloading_setup_program...
mov byte [ebp - 4], 1
call fcn.00402e20
push eax
call fcn.004030d0
add esp, 4
lea edx, [ebp - 0x41c]
cmp byte [ebp - 0x425], 0
lea ecx, [ebp - 0x420]
je 0x402392
push str.SolverSetup64.exe
call fcn.004024f0
add esp, 4
push eax
lea ecx, [ebp - 0x424]
mov byte [ebp - 4], 2
call fcn.004026b0
mov byte [ebp - 4], 1
or ebx, 0xffffffff
mov edx, dword [ebp - 0x420]
mov eax, ebx
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x402379
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov edi, dword [ebp - 0x424]
push edi
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
push 0
push 0
push edi
push str.https:__s3.amazonaws.com_frontlinesolvers_cabfiles_2017_64_SolverSetup64.exe
jmp 0x4023ea
push str.SolverSetup32.exe
call fcn.004024f0
add esp, 4
push eax
lea ecx, [ebp - 0x424]
mov byte [ebp - 4], 3
call fcn.004026b0
mov byte [ebp - 4], 1
or ebx, 0xffffffff
mov edx, dword [ebp - 0x420]
mov eax, ebx
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x4023d3
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov edi, dword [ebp - 0x424]
push edi
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
push 0
push 0
push edi
push str.https:__s3.amazonaws.com_frontlinesolvers_cabfiles_2017_32_SolverSetup32.exe
push 0
call dword [sym.imp.urlmon.dll_URLDownloadToFileW]
test eax, eax
jne 0x40241f
mov edx, str.Launching_setup_program...
call fcn.00402e20
push eax
call fcn.004030d0
add esp, 4
push 1
push 0
push 0
push edi
push str.runas
push 0
call dword [sym.imp.SHELL32.dll_ShellExecuteW]
jmp 0x40244f
push 0
push str.installer
cmp eax, 0x8007000e
jne 0x402434
push str.The_buffer_length_is_invalid__or_there_is_insufficient_memory_to_complete_the_operation.
jmp 0x402447
cmp eax, 0x800c0008
jne 0x402442
push str.The_specified_resource_or_callback_interface_was_invalid.
jmp 0x402447
push str.Unknown_Error
push 0
call dword [sym.imp.USER32.dll_MessageBoxW]
mov byte [ebp - 4], 0
add edi, 0xfffffff0
mov eax, ebx
lock xadd dword [edi + 0xc], eax
dec eax
test eax, eax
jg 0x40246a
mov ecx, dword [edi]
push edi
mov eax, dword [ecx]
call dword [eax + 4]
mov dword [ebp - 4], 0xffffffff
add esi, 0xfffffff0
lock xadd dword [esi + 0xc], ebx
dec ebx
test ebx, ebx
jg 0x402486
mov ecx, dword [esi]
push esi
mov eax, dword [ecx]
call dword [eax + 4]
xor eax, eax
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.00405dcf
mov esp, ebp
pop ebp
ret
push 0x80070057
call fcn.004011b0
push 0x80004005
call fcn.004011b0
push 0x80004005
call fcn.004011b0
int3