Function at 0x140174a00
Capabilities:
Check if file exists
Connect to http server
Create directory
Create http request
Delete file
Move file

Disassembly:
push rbp
push rbx
push rsi
push r12
push r15
lea rbp, [rsp - 0x830]
sub rsp, 0x930
movaps xmmword [rsp + 0x910], xmm7
mov rax, qword [0x1404af540]
xor rax, rsp
mov qword [rbp + 0x800], rax
mov rbx, rcx
xor r12d, r12d
lea rcx, [0x14041de68]
mov dword [rsp + 0x20], r12d
xor r9d, r9d
xor r8d, r8d
mov edx, 1
movaps xmm7, xmm1
mov sil, 1
call qword [sym.imp.WININET.dll_InternetOpenW]
mov r15, rax
test rax, rax
je 0x140174ecc
mov qword [rsp + 0x38], r12
lea r9, [0x140425ee8]
mov dword [rsp + 0x30], 0x8000000
lea rdx, [0x140425f00]
mov dword [rsp + 0x28], 1
mov r8d, 0x1f55
mov rcx, rax
mov qword [rsp + 0x20], r9
mov qword [rsp + 0x970], rdi
call qword [sym.imp.WININET.dll_InternetConnectW]
mov rdi, rax
test rax, rax
je 0x140174e9f
lea rdx, str._x64p2_DHStrainGauge
mov rcx, rax
call qword [sym.imp.WININET.dll_FtpSetCurrentDirectoryW]
test eax, eax
je 0x140174e94
xor edx, edx
mov qword [rsp + 0x978], r14
mov r8d, 0x208
lea rcx, [rbp + 0x3e0]
call sub.VCRUNTIME140.dll_memset
xor edx, edx
lea rcx, [rbp + 0x5f0]
mov r8d, 0x208
call sub.VCRUNTIME140.dll_memset
xor edx, edx
lea rcx, [rsp + 0x40]
mov r8d, 0x250
call sub.VCRUNTIME140.dll_memset
xor r9d, r9d
mov qword [rsp + 0x20], r12
lea r8, [rsp + 0x40]
mov rcx, rdi
lea rdx, str..dll
call qword [sym.imp.WININET.dll_FtpFindFirstFileW]
mov r14, rax
test rax, rax
je 0x140174e8c
mov r9, 0xffffffffffffffff
movaps xmmword [rsp + 0x920], xmm6
lea r8, [0x1404ba700]
mov edx, 0x104
lea rcx, [rbp + 0x3e0]
call qword [sym.imp.api_ms_win_crt_string_l1_1_0.dll_wcsncpy_s]
mov r9, 0xffffffffffffffff
lea r8, str.DHStrainGauge
mov edx, 0x104
lea rcx, [rbp + 0x3e0]
call qword [sym.imp.api_ms_win_crt_string_l1_1_0.dll_wcsncat_s]
lea rcx, [rbp + 0x3e0]
call qword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
jne 0x140174b9b
xor edx, edx
lea rcx, [rbp + 0x3e0]
call qword [sym.imp.KERNEL32.dll_CreateDirectoryW]
mov r9, 0xffffffffffffffff
lea r8, [0x14043f8d8]
mov edx, 0x104
lea rcx, [rbp + 0x3e0]
call qword [sym.imp.api_ms_win_crt_string_l1_1_0.dll_wcsncat_s]
mov r9, 0xffffffffffffffff
lea r8, [rsp + 0x6c]
mov edx, 0x104
lea rcx, [rbp + 0x3e0]
call qword [sym.imp.api_ms_win_crt_string_l1_1_0.dll_wcsncat_s]
mov r9, 0xffffffffffffffff
lea r8, [rbp + 0x3e0]
mov edx, 0x104
lea rcx, [rbp + 0x5f0]
call qword [sym.imp.api_ms_win_crt_string_l1_1_0.dll_wcsncpy_s]
mov r9, 0xffffffffffffffff
lea r8, str..old
mov edx, 0x104
lea rcx, [rbp + 0x5f0]
call qword [sym.imp.api_ms_win_crt_string_l1_1_0.dll_wcsncat_s]
lea rcx, [rbp + 0x5f0]
call qword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x140174c49
mov edx, 0x180
lea rcx, [rbp + 0x5f0]
call qword [sym.imp.api_ms_win_crt_filesystem_l1_1_0.dll__wchmod]
lea rcx, [rbp + 0x5f0]
call qword [sym.imp.KERNEL32.dll_DeleteFileW]
lea rcx, [rbp + 0x3e0]
call qword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x140174c74
mov r8d, 1
lea rdx, [rbp + 0x5f0]
lea rcx, [rbp + 0x3e0]
call qword [sym.imp.KERNEL32.dll_MoveFileExW]
mov qword [rsp + 0x30], r12
lea r8, [rbp + 0x3e0]
mov dword [rsp + 0x28], 0x80000002
lea rdx, [rsp + 0x6c]
xor r9d, r9d
mov dword [rsp + reloc.SinoSPE.dll_Ordinal_32], 0x20
mov rcx, rdi
call qword [sym.imp.WININET.dll_FtpGetFileW]
movss xmm6, dword [0x140452f24]
test eax, eax
setne sil
test rbx, rbx
je 0x140174cce
mov rcx, qword [rbx + 0x470]
movaps xmm1, xmm7
divss xmm1, xmm6
mov r8b, 1
mov rax, qword [rcx]
call qword [rax + 0x3c8]
xor edx, edx
lea rcx, [rbp + 0x190]
mov r8d, 0x250
call sub.VCRUNTIME140.dll_memset
nop dword [rax]
nop word [rax + rax]
lea rdx, [rbp + 0x190]
mov rcx, r14
call qword [sym.imp.WININET.dll_InternetFindNextFileW]
test eax, eax
je 0x140174e7b
mov r9, 0xffffffffffffffff
lea r8, [0x1404ba700]
mov edx, 0x104
lea rcx, [rbp + 0x3e0]
call qword [sym.imp.api_ms_win_crt_string_l1_1_0.dll_wcsncpy_s]
mov r9, 0xffffffffffffffff
lea r8, str.DHStrainGauge_
mov edx, 0x104
lea rcx, [rbp + 0x3e0]
call qword [sym.imp.api_ms_win_crt_string_l1_1_0.dll_wcsncat_s]
mov r9, 0xffffffffffffffff
lea r8, [rbp + 0x1bc]
mov edx, 0x104
lea rcx, [rbp + 0x3e0]
call qword [sym.imp.api_ms_win_crt_string_l1_1_0.dll_wcsncat_s]
mov r9, 0xffffffffffffffff
lea r8, [rbp + 0x3e0]
mov edx, 0x104
lea rcx, [rbp + 0x5f0]
call qword [sym.imp.api_ms_win_crt_string_l1_1_0.dll_wcsncpy_s]
mov r9, 0xffffffffffffffff
lea r8, str..old
mov edx, 0x104
lea rcx, [rbp + 0x5f0]
call qword [sym.imp.api_ms_win_crt_string_l1_1_0.dll_wcsncat_s]
lea rcx, [rbp + 0x5f0]
call qword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x140174dd8
mov edx, 0x180
lea rcx, [rbp + 0x5f0]
call qword [sym.imp.api_ms_win_crt_filesystem_l1_1_0.dll__wchmod]
lea rcx, [rbp + 0x5f0]
call qword [sym.imp.KERNEL32.dll_DeleteFileW]
lea rcx, [rbp + 0x3e0]
call qword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x140174e03
mov r8d, 1
lea rdx, [rbp + 0x5f0]
lea rcx, [rbp + 0x3e0]
call qword [sym.imp.KERNEL32.dll_MoveFileExW]
mov qword [rsp + 0x30], r12
lea r8, [rbp + 0x3e0]
mov dword [rsp + 0x28], 0x80000002
lea rdx, [rbp + 0x1bc]
xor r9d, r9d
mov dword [rsp + reloc.SinoSPE.dll_Ordinal_32], 0x20
mov rcx, rdi
call qword [sym.imp.WININET.dll_FtpGetFileW]
test eax, eax
jne 0x140174e53
mov r8d, 1
lea rdx, [rbp + 0x3e0]
lea rcx, [rbp + 0x5f0]
call qword [sym.imp.KERNEL32.dll_MoveFileExW]
xor sil, sil
test rbx, rbx
je 0x140174cf0
mov rcx, qword [rbx + 0x470]
movaps xmm1, xmm7
divss xmm1, xmm6
mov r8b, 1
mov rax, qword [rcx]
call qword [rax + 0x3c8]
jmp 0x140174cf0
mov rcx, r14
call qword [sym.imp.WININET.dll_InternetCloseHandle]
movaps xmm6, xmmword [rsp + 0x920]
mov r14, qword [rsp + 0x978]
mov rcx, rdi
call qword [sym.imp.WININET.dll_InternetCloseHandle]
jmp 0x140174ebb
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov r8d, eax
lea rdx, [0x1404397d8]
lea rcx, str.CheckNewVersion
call fcn.14016d030
mov rcx, r15
call qword [sym.imp.WININET.dll_InternetCloseHandle]
mov rdi, qword [rsp + 0x970]
movzx eax, sil
mov rcx, qword [rbp + 0x800]
xor rcx, rsp
call fcn.1403ca460
movaps xmm7, xmmword [rsp + 0x910]
add rsp, 0x930
pop r15
pop r12
pop rsi
pop rbx
pop rbp
ret