Function at 0x4071db
Capabilities:
Get common file path
Write file on windows

Disassembly:
push 0x1c
mov eax, 0x463c7e
call fcn.0043e9a8
mov edi, ecx
xor ebx, ebx
mov esi, 0x4872a4
push esi
lea ecx, [ebp - 0x1c]
mov byte [ebp - 0xd], bl
mov dword [ebp - 0x28], ebx
call fcn.00401c03
push esi
lea ecx, [ebp - 0x14]
mov dword [ebp - 4], ebx
call fcn.00401c03
push esi
lea ecx, [ebp - 0x20]
mov byte [ebp - 4], 1
call fcn.00401c03
push str.eula_int.html
lea ecx, [ebp - 0x20]
mov byte [ebp - 4], 2
call fcn.00402e96
mov edi, dword [edi + 0xc]
cmp word [ebp + 0xc], bx
jne 0x407247
lea eax, [ebp + 0xc]
push eax
lea eax, [ebp - 0x1c]
push eax
push str.InstUI.loc
push edi
call fcn.00421591
jmp 0x407259
lea eax, [ebp - 0x1c]
push eax
push dword [ebp + 0xc]
push str.InstUI.loc
push edi
call fcn.00420ff0
add esp, 0x10
cmp al, bl
jne 0x407270
push str.CSymProductHelper::_ExtractEULAFromRes_220__:_Failed_in_GetResourceModulePath
call fcn.004085ae
pop ecx
jmp 0x40745b
push 2
push ebx
push dword [ebp - 0x1c]
call dword [sym.imp.KERNEL32.dll_LoadLibraryExW]
mov esi, eax
push esi
push 0x17
push dword [ebp - 0x20]
lea eax, [ebp - 0x14]
push eax
call fcn.004099f7
add esp, 0x10
push esi
mov edi, eax
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
cmp edi, ebx
jge 0x4072ab
push edi
push str.CSymProductHelper::_ExtractEULAFromRes_231__:_Failed_to_LoadFromResources__Err:_0x_08x
call fcn.004085ae
pop ecx
jmp 0x40726a
push str._____if_gte_mso
lea ecx, [ebp - 0x18]
call fcn.00406ff8
push str.___endif____
lea ecx, [ebp - 0x24]
mov byte [ebp - 4], 3
call fcn.00406ff8
mov byte [ebp - 4], 4
jmp 0x4072ed
mov eax, dword [ebp - 0x24]
mov edi, dword [eax - 0xc]
push esi
push eax
lea ecx, [ebp - 0x14]
call fcn.0040207a
add eax, edi
sub eax, esi
push eax
push esi
lea ecx, [ebp - 0x14]
call fcn.004024b8
push ebx
push dword [ebp - 0x18]
lea ecx, [ebp - 0x14]
call fcn.0040207a
mov esi, eax
cmp esi, 0xffffffff
jne 0x4072cf
push str._____if__mso
lea ecx, [ebp - 0x18]
call fcn.004038eb
jmp 0x40732a
mov eax, dword [ebp - 0x24]
mov edi, dword [eax - 0xc]
push esi
push eax
call fcn.0040207a
add eax, edi
sub eax, esi
push eax
push esi
lea ecx, [ebp - 0x14]
call fcn.004024b8
push ebx
push dword [ebp - 0x18]
lea ecx, [ebp - 0x14]
call fcn.0040207a
mov esi, eax
lea ecx, [ebp - 0x14]
cmp esi, 0xffffffff
jne 0x40730f
mov edi, 0x46db00
push edi
push 0x46dafc
call fcn.00402f24
mov esi, str.__u_
push esi
push str.__a_
lea ecx, [ebp - 0x14]
call fcn.00402f24
push edi
push 0x46dae8
lea ecx, [ebp - 0x14]
call fcn.00402f24
push esi
push str.__A_
lea ecx, [ebp - 0x14]
call fcn.00402f24
mov edi, dword [ebp + 8]
mov esi, 0x104
push esi
mov ecx, edi
call fcn.00402209
push eax
push esi
call dword [sym.imp.KERNEL32.dll_GetTempPathW]
test eax, eax
jne 0x4073aa
push str.CSymProductHelper::_ExtractEULAFromRes_264__:_Failed_to_GetTempPath
call fcn.004085ae
jmp 0x407444
push esi
mov ecx, edi
call fcn.004015d6
mov eax, dword [edi]
push esi
push esi
mov ecx, edi
mov dword [ebp + 8], eax
call fcn.00402aac
push eax
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_GetLongPathNameW]
push 0xffffffffffffffff
mov ecx, edi
call fcn.00401bd9
push str.sym_eula.html
push edi
call fcn.00417145
mov edi, dword [edi]
pop ecx
pop ecx
push ebx
push 0x80
push 2
push ebx
push ebx
push 0x40000000
push edi
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov esi, eax
cmp esi, 0xffffffff
je 0x407432
mov eax, dword [ebp - 0x14]
mov ecx, dword [eax - 0xc]
push ebx
lea edx, [ebp - 0x28]
push edx
push ecx
push eax
push esi
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
jne 0x407425
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push str.CSymProductHelper::_ExtractEULAFromRes_282__:_Failed_to_write_EULA_file__Err:__d
jmp 0x40743e
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov byte [ebp - 0xd], 1
jmp 0x407445
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push str.CSymProductHelper::_ExtractEULAFromRes_291__:_Invalid_handle_value__Err:__d
call fcn.004085ae
pop ecx
pop ecx
mov ecx, dword [ebp - 0x24]
add ecx, 0xfffffff0
call fcn.004014ff
mov ecx, dword [ebp - 0x18]
add ecx, 0xfffffff0
call fcn.004014ff
mov ecx, dword [ebp - 0x20]
add ecx, 0xfffffff0
call fcn.004014ff
mov ecx, dword [ebp - 0x14]
add ecx, 0xfffffff0
call fcn.004014ff
mov ecx, dword [ebp - 0x1c]
add ecx, 0xfffffff0
call fcn.004014ff
mov al, byte [ebp - 0xd]
call fcn.0043ea80
ret 8