Function at 0x4035a6
Capabilities:
Check if file exists
Get common file path

Disassembly:
push 0x28
mov eax, 0x4634e2
call fcn.0043e9db
xor ebx, ebx
push 0x4872a4
lea ecx, [ebp - 0x1c]
mov byte [ebp - 0x11], bl
call fcn.00401c03
mov dword [ebp - 4], ebx
mov dword [ebp - 0x20], ebx
mov dword [ebp - 0x18], ebx
mov esi, 0x104
push esi
lea ecx, [ebp - 0x1c]
mov byte [ebp - 4], 3
call fcn.00402209
push eax
push esi
call dword [sym.imp.KERNEL32.dll_GetTempPathW]
test eax, eax
jne 0x4035f6
push str.CSymProductHelper::_CreateXmlEULA_316__:_Error_getting_temp_path
call fcn.004085ae
pop ecx
push 0xffffffffffffffff
lea ecx, [ebp - 0x1c]
call fcn.00401bd9
lea eax, [ebp - 0x1c]
push str.sym_info.xml
push eax
call fcn.00417145
pop ecx
pop ecx
lea eax, [ebp - 0x20]
push eax
push 0x1001
push dword [ebp - 0x1c]
call dword [sym.imp.SHLWAPI.dll_SHCreateStreamOnFileW]
cmp eax, ebx
jge 0x40366b
push eax
push str.CSymProductHelper::_CreateXmlEULA_324__:_Error_creating_file_writer__Err:_0x_08x
call fcn.004085ae
pop ecx
pop ecx
mov eax, dword [ebp - 0x18]
mov byte [ebp - 4], 2
cmp eax, ebx
je 0x403644
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
mov eax, dword [ebp - 0x20]
mov byte [ebp - 4], 1
cmp eax, ebx
je 0x403655
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
mov ecx, dword [ebp - 0x1c]
add ecx, 0xfffffff0
call fcn.004014ff
mov al, byte [ebp - 0x11]
call fcn.0043ea80
ret 4
push ebx
lea eax, [ebp - 0x18]
push eax
push 0x46b3e0
call sub.XmlLite.dll_CreateXmlWriter
cmp eax, ebx
jge 0x403686
push eax
push str.CSymProductHelper::_CreateXmlEULA_330__:_Error_creating_xml_writer__Err:_0x_08x
jmp 0x40362c
mov eax, dword [ebp - 0x18]
push dword [ebp - 0x20]
mov ecx, dword [eax]
push eax
call dword [ecx + 0xc]
cmp eax, ebx
jge 0x40369e
push eax
push str.CSymProductHelper::_CreateXmlEULA_336__:_ErrorpWriter__SetOutput__Err:_0x_08x
jmp 0x40362c
mov eax, dword [ebp - 0x18]
mov ecx, dword [eax]
push 1
push 1
push eax
call dword [ecx + 0x14]
cmp eax, ebx
jge 0x4036ba
push eax
push str.CSymProductHelper::_CreateXmlEULA_342__:_Error_pWriter__SetProperty_XmlWriterProperty_Indent__TRUE___Err:__08.8lx
jmp 0x40362c
mov eax, dword [ebp - 0x18]
mov ecx, dword [eax]
push ebx
push eax
call dword [ecx + 0x68]
cmp eax, ebx
jge 0x4036d3
push eax
push str.CSymProductHelper::_CreateXmlEULA_348__:_Error_pWriter__WriteStartDocument_XmlStandalone_Omit___Err:_0x_08x
jmp 0x40362c
mov eax, dword [ebp - 0x18]
mov ecx, dword [eax]
push ebx
push str.ProductInfo
push ebx
push eax
call dword [ecx + 0x6c]
cmp eax, ebx
jge 0x4036f2
push eax
push str.CSymProductHelper::_CreateXmlEULA_354__:_Error_pWriter__WriteStartElement__Err:_0x_08x
jmp 0x40362c
mov edi, dword [ebp + 8]
mov eax, dword [edi + 0x30]
mov eax, dword [eax]
add edi, 0x18
push edi
push eax
lea ecx, [ebp - 0x34]
call fcn.00453596
mov eax, dword [ebp - 0x34]
mov dword [ebp - 0x2c], eax
mov eax, dword [ebp - 0x30]
mov dword [ebp - 0x28], eax
mov eax, dword [edi + 0x18]
push edi
push eax
lea ecx, [ebp - 0x34]
call fcn.00453596
lea eax, [ebp - 0x34]
push eax
lea ecx, [ebp - 0x2c]
call fcn.0043af4f
test al, al
jne 0x403757
mov esi, dword [ebp - 0x18]
lea ecx, [ebp - 0x2c]
call fcn.0041ef4c
mov eax, dword [eax]
mov ecx, dword [esi]
push ebx
push eax
push ebx
push esi
call dword [ecx + 0x6c]
cmp eax, ebx
jge 0x40376f
push eax
push str.CSymProductHelper::_CreateXmlEULA_362__:_Error_pWriter__WriteStartElement__Err:_0x_08x
call fcn.004085ae
pop ecx
pop ecx
mov eax, dword [ebp - 0x18]
mov ecx, dword [eax]
push eax
call dword [ecx + 0x38]
cmp eax, ebx
jge 0x4037cc
push eax
push str.CSymProductHelper::_CreateXmlEULA_388__:_Error_pWriter__WriteEndDocument__Err:_0x_08x
jmp 0x40362c
mov esi, dword [ebp - 0x18]
lea ecx, [ebp - 0x2c]
call fcn.0041ef4c
mov eax, dword [eax + 4]
mov ecx, dword [esi]
push eax
push esi
call dword [ecx + 0x70]
cmp eax, ebx
jge 0x403790
push eax
push str.CSymProductHelper::_CreateXmlEULA_368__:_Error_pWriter__WriteString__Err:_0x_08x
jmp 0x403750
mov eax, dword [ebp - 0x18]
mov ecx, dword [eax]
push eax
call dword [ecx + 0x3c]
cmp eax, ebx
jge 0x4037a5
push eax
push str.CSymProductHelper::_CreateXmlEULA_374__:_Error_pWriter__WriteEndElement__Err:_0x_08x
jmp 0x403750
mov eax, dword [ebp - 0x18]
mov ecx, dword [eax]
push 0x46ad58
push eax
call dword [ecx + 0x78]
cmp eax, ebx
jge 0x4037bf
push eax
push str.CSymProductHelper::_CreateXmlEULA_380__:_pWriter__WriteWhitespace__Err:_0x_08x
jmp 0x403750
lea ecx, [ebp - 0x2c]
call fcn.00431dd5
jmp 0x403713
mov eax, dword [ebp - 0x18]
mov ecx, dword [eax]
push eax
call dword [ecx + 0x7c]
cmp eax, ebx
jge 0x4037e4
push eax
push str.CSymProductHelper::_CreateXmlEULA_393__:_Error_pWriter__Flush____Err:_0x_08x
jmp 0x40362c
xor esi, esi
cmp esi, 0xa
jge 0x403633
push dword [ebp - 0x1c]
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x403805
mov byte [ebp - 0x11], 1
jmp 0x403633
push esi
push str.CSymProductHelper::_CreateXmlEULA_405__:_Waiting_for_XML_file_to_get_created__d
call fcn.00408586
pop ecx
pop ecx
push 0x1f4
call dword [sym.imp.KERNEL32.dll_Sleep]
inc esi
jmp 0x4037e6