Function at 0x140001630
Capabilities:
Download url
Query environment variable
Receive data

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
mov qword [rsp + 0x18], rdi
mov qword [rsp + 0x20], r14
push rbp
lea rbp, [rsp - 0x2d0]
sub rsp, 0x3d0
mov rax, qword [0x140010040]
xor rax, rsp
mov qword [rbp + 0x2c0], rax
xor esi, esi
xorps xmm0, xmm0
movups xmmword [rsp + 0x38], xmm0
mov qword [rsp + 0x48], rsi
mov qword [rsp + 0x50], rsi
mov r8d, 0x1a
lea rdx, str._TEMP_current_version.txt
lea rcx, [rsp + 0x38]
call fcn.140001430
nop
lea rcx, [rsp + 0x38]
cmp qword [rsp + 0x50], 7
cmova rcx, qword [rsp + 0x38]
mov r8d, 0x104
lea rdx, [rbp + 0xb0]
call qword [sym.imp.KERNEL32.dll_ExpandEnvironmentStringsW]
lea rax, [rbp + 0xb0]
mov rdx, 0xffffffffffffffff
inc rdx
cmp word [rax + rdx*2], 0
jne 0x1400016c3
mov rax, qword [rsp + 0x50]
cmp rdx, rax
ja 0x140001707
lea rdi, [rsp + 0x38]
cmp rax, 7
cmova rdi, qword [rsp + 0x38]
mov qword [rsp + 0x48], rdx
lea rbx, [rdx + rdx]
mov r8, rbx
lea rdx, [rbp + 0xb0]
mov rcx, rdi
call sub.VCRUNTIME140.dll_memmove
mov word [rbx + rdi], si
jmp 0x140001718
lea r9, [rbp + 0xb0]
lea rcx, [rsp + 0x38]
call fcn.140007670
lea r8, [rsp + 0x38]
cmp qword [rsp + 0x50], 7
cmova r8, qword [rsp + 0x38]
lea rdx, [0x140010ac8]
cmp qword [0x140010ae0], 7
cmova rdx, qword [0x140010ac8]
mov qword [rsp + 0x20], rsi
xor r9d, r9d
xor ecx, ecx
call qword [sym.imp.urlmon.dll_URLDownloadToFileW]
mov ebx, eax
test eax, eax
jns 0x1400017ae
lea rdx, str.Failed_to_download_file._HRESULT:
mov rcx, qword [sym.imp.MSVCP140.dll_class_std::basic_ostream_wchar_t__struct_std::char_traits_wchar_t___std::wcerr]
call fcn.140006c90
mov edx, ebx
mov rcx, rax
call qword [sym.imp.MSVCP140.dll_public:_class_std::basic_ostream_wchar_t__struct_std::char_traits_wchar_t______ptr64___cdecl_std::basic_ostream_wchar_t__struct_std::char_traits_wchar_t__::operator___long_int____ptr64]
lea rdx, [0x140006e70]
mov rcx, rax
call qword [sym.imp.MSVCP140.dll_public:_class_std::basic_ostream_wchar_t__struct_std::char_traits_wchar_t______ptr64___cdecl_std::basic_ostream_wchar_t__struct_std::char_traits_wchar_t__::operator___class_std::basic_ostream_wchar_t__struct_std::char_traits_wchar_t______ptr64____cdecl___class_std::basic_ostream_wchar_t__struct_std::char_traits_wchar_t______ptr64_____ptr64]
lea rdx, str.Failed_to_download_version_file.
mov rcx, qword [sym.imp.MSVCP140.dll_class_std::basic_ostream_wchar_t__struct_std::char_traits_wchar_t___std::wcerr]
call fcn.140006c90
lea rdx, [0x140006e70]
mov rcx, rax
call qword [sym.imp.MSVCP140.dll_public:_class_std::basic_ostream_wchar_t__struct_std::char_traits_wchar_t______ptr64___cdecl_std::basic_ostream_wchar_t__struct_std::char_traits_wchar_t__::operator___class_std::basic_ostream_wchar_t__struct_std::char_traits_wchar_t______ptr64____cdecl___class_std::basic_ostream_wchar_t__struct_std::char_traits_wchar_t______ptr64_____ptr64]
xor bl, bl
jmp 0x1400019be
xor edx, edx
mov r8d, 0x110
lea rcx, [rbp - 0x60]
call sub.VCRUNTIME140.dll_memset
lea rdx, [rsp + 0x38]
lea rcx, [rbp - 0x60]
call fcn.1400064e0
nop
cmp qword [rbp + 0x30], 0
jne 0x140001823
lea rdx, str.Unable_to_open_version_file.
mov rcx, qword [sym.imp.MSVCP140.dll_class_std::basic_ostream_wchar_t__struct_std::char_traits_wchar_t___std::wcerr]
call fcn.140006c90
lea rdx, [0x140006e70]
mov rcx, rax
call qword [sym.imp.MSVCP140.dll_public:_class_std::basic_ostream_wchar_t__struct_std::char_traits_wchar_t______ptr64___cdecl_std::basic_ostream_wchar_t__struct_std::char_traits_wchar_t__::operator___class_std::basic_ostream_wchar_t__struct_std::char_traits_wchar_t______ptr64____cdecl___class_std::basic_ostream_wchar_t__struct_std::char_traits_wchar_t______ptr64_____ptr64]
xorps xmm0, xmm0
movups xmmword [rsp + 0x58], xmm0
mov qword [rsp + 0x68], rsi
mov qword [rsp + 0x70], rsi
xor r8d, r8d
lea rdx, [0x14000a944]
lea rcx, [rsp + 0x58]
call fcn.140001430
jmp 0x1400018a4
xorps xmm0, xmm0
movups xmmword [rsp + 0x78], xmm0
movdqa xmm1, xmmword [0x14000b9b0]
movdqu xmmword [rbp - 0x78], xmm1
mov word [rsp + 0x78], si
mov rax, qword [rbp - 0x60]
movsxd rcx, dword [rax + 4]
lea rax, [rbp - 0x60]
add rcx, rax
mov dl, 0xa
call qword [sym.imp.MSVCP140.dll_public:_wchar_t___cdecl_std::basic_ios_wchar_t__struct_std::char_traits_wchar_t__::widen_char_const___ptr64]
movzx r8d, ax
lea rdx, [rsp + 0x78]
lea rcx, [rbp - 0x60]
call fcn.1400079c0
lea rcx, [rbp - 0x50]
call fcn.140006a60
test rax, rax
jne 0x140001891
mov rax, qword [rbp - 0x60]
movsxd rcx, dword [rax + 4]
lea rax, [rbp - 0x60]
add rcx, rax
xor r8d, r8d
mov edx, 2
call qword [sym.imp.MSVCP140.dll_public:_void___cdecl_std::basic_ios_wchar_t__struct_std::char_traits_wchar_t__::setstate_int__bool____ptr64]
movups xmm0, xmmword [rsp + 0x78]
movups xmmword [rsp + 0x58], xmm0
movups xmm1, xmmword [rbp - 0x78]
movups xmmword [rsp + 0x68], xmm1
lea rcx, [rbp - 0x60]
call fcn.140001560
nop
mov r14, qword [rsp + 0x70]
mov rsi, qword [rsp + 0x58]
mov rdi, qword [rsp + 0x68]
test rdi, rdi
jne 0x1400018ec
lea rdx, str.Failed_to_read_version_from_file.
mov rcx, qword [sym.imp.MSVCP140.dll_class_std::basic_ostream_wchar_t__struct_std::char_traits_wchar_t___std::wcerr]
call fcn.140006c90
lea rdx, [0x140006e70]
mov rcx, rax
call qword [sym.imp.MSVCP140.dll_public:_class_std::basic_ostream_wchar_t__struct_std::char_traits_wchar_t______ptr64___cdecl_std::basic_ostream_wchar_t__struct_std::char_traits_wchar_t__::operator___class_std::basic_ostream_wchar_t__struct_std::char_traits_wchar_t______ptr64____cdecl___class_std::basic_ostream_wchar_t__struct_std::char_traits_wchar_t______ptr64_____ptr64]
xor bl, bl
jmp 0x14000197f
lea rdx, [0x14000aa18]
mov rcx, qword [sym.imp.MSVCP140.dll_class_std::basic_ostream_wchar_t__struct_std::char_traits_wchar_t___std::wcout]
call fcn.140006c90
lea rbx, [0x140010110]
mov rdx, rbx
cmp qword [0x140010128], 7
cmova rdx, qword [0x140010110]
mov r8, qword [0x140010120]
mov rcx, rax
call fcn.140007b70
lea rdx, [0x140006e70]
mov rcx, rax
call qword [sym.imp.MSVCP140.dll_public:_class_std::basic_ostream_wchar_t__struct_std::char_traits_wchar_t______ptr64___cdecl_std::basic_ostream_wchar_t__struct_std::char_traits_wchar_t__::operator___class_std::basic_ostream_wchar_t__struct_std::char_traits_wchar_t______ptr64____cdecl___class_std::basic_ostream_wchar_t__struct_std::char_traits_wchar_t______ptr64_____ptr64]
cmp qword [0x140010128], 7
cmova rbx, qword [0x140010110]
lea rcx, [rsp + 0x58]
cmp r14, 7
cmova rcx, rsi
cmp rdi, qword [0x140010120]
jne 0x14000197d
test rdi, rdi
je 0x140001979
sub rcx, rbx
movzx eax, word [rbx + rcx]
cmp ax, word [rbx]
jne 0x14000197d
add rbx, 2
sub rdi, 1
jne 0x140001966
xor bl, bl
jmp 0x14000197f
mov bl, 1
cmp r14, 7
jbe 0x1400019be
lea rdx, [r14*2 + 2]
mov rax, rsi
cmp rdx, 0x1000
jb 0x1400019b5
add rdx, 0x27
mov rsi, qword [rsi - 8]
sub rax, rsi
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x1400019b5
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
mov rcx, rsi
call fcn.1400089e4
nop
mov rdx, qword [rsp + 0x50]
cmp rdx, 7
jbe 0x140001a03
lea rdx, [rdx*2 + 2]
mov rcx, qword [rsp + 0x38]
mov rax, rcx
cmp rdx, 0x1000
jb 0x1400019fe
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x1400019fe
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.1400089e4
movzx eax, bl
mov rcx, qword [rbp + 0x2c0]
xor rcx, rsp
call fcn.140008740
lea r11, [rsp + 0x3d0]
mov rbx, qword [r11 + 0x10]
mov rsi, qword [r11 + 0x18]
mov rdi, qword [r11 + 0x20]
mov r14, qword [r11 + 0x28]
mov rsp, r11
pop rbp
ret