Function at 0x140001610
Capabilities:
Download url
Receive data

Disassembly:
mov rax, rsp
mov qword [rax + 0x18], rbx
mov qword [rax + 0x20], rsi
push rbp
push rdi
push r14
lea rbp, [rax - 0xe8]
sub rsp, 0x1d0
movaps xmmword [rax - 0x28], xmm6
mov rax, qword [0x14000a040]
xor rax, rsp
mov qword [rbp + 0xb0], rax
mov rbx, rdx
mov rdi, rcx
mov qword [rsp + 0x50], rcx
xor esi, esi
mov dword [rsp + 0x30], esi
xorps xmm0, xmm0
movups xmmword [rsp + 0x60], xmm0
xorps xmm1, xmm1
movdqu xmmword [rsp + 0x70], xmm1
mov ecx, 0x20
call fcn.140004b20
mov r8, rax
mov qword [rsp + 0x60], rax
movdqa xmm0, xmmword [0x140006c70]
movdqu xmmword [rsp + 0x70], xmm0
movups xmm0, xmmword [str.C:_tempdownloaded_script.lua]
movups xmmword [rax], xmm0
movsd xmm0, qword [0x140006670]
movsd qword [rax + 0x10], xmm0
mov eax, dword [0x140006678]
mov dword [r8 + 0x18], eax
movzx eax, byte [0x14000667c]
mov byte [r8 + 0x1c], al
mov byte [r8 + 0x1d], sil
mov rdx, rbx
cmp qword [rbx + 0x18], 0xf
jbe 0x1400016c1
mov rdx, qword [rbx]
mov qword [rsp + 0x20], rsi
xor r9d, r9d
xor ecx, ecx
call qword [sym.imp.urlmon.dll_URLDownloadToFileA]
test eax, eax
jns 0x140001796
lea rdx, str.Failed_to_download_file_from_URL:
mov rcx, qword [sym.imp.MSVCP140.dll_class_std::basic_ostream_char__struct_std::char_traits_char___std::cerr]
call fcn.140003eb0
mov rdx, rbx
cmp qword [rbx + 0x18], 0xf
jbe 0x1400016f9
mov rdx, qword [rbx]
mov r8, qword [rbx + 0x10]
mov rcx, rax
call fcn.1400045f0
lea rdx, [0x140004270]
mov rcx, rax
call qword [sym.imp.MSVCP140.dll_public:_class_std::basic_ostream_char__struct_std::char_traits_char______ptr64___cdecl_std::basic_ostream_char__struct_std::char_traits_char__::operator___class_std::basic_ostream_char__struct_std::char_traits_char______ptr64____cdecl___class_std::basic_ostream_char__struct_std::char_traits_char______ptr64_____ptr64]
xorps xmm0, xmm0
movups xmmword [rdi], xmm0
mov qword [rdi + 0x10], rsi
mov qword [rdi + 0x18], 0xf
mov byte [rdi], 0
mov rdx, qword [rsp + 0x78]
cmp rdx, 0xf
jbe 0x140001767
inc rdx
mov rcx, qword [rsp + 0x60]
mov rax, rcx
cmp rdx, 0x1000
jb 0x140001762
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x1400019f2
call fcn.140004b5c
mov rax, rdi
mov rcx, qword [rbp + 0xb0]
xor rcx, rsp
call fcn.140004b00
lea r11, [rsp + 0x1d0]
mov rbx, qword [r11 + 0x30]
mov rsi, qword [r11 + 0x38]
movaps xmm6, xmmword [r11 - 0x10]
mov rsp, r11
pop r14
pop rdi
pop rbp
ret
xor edx, edx
mov r8d, 0x110
lea rcx, [rbp - 0x60]
call sub.VCRUNTIME140.dll_memset
lea rbx, [rsp + 0x60]
cmp qword [rsp + 0x78], 0xf
cmova rbx, qword [rsp + 0x60]
lea rax, [0x140006c30]
mov qword [rbp - 0x60], rax
lea rcx, [rbp + 0x50]
call qword [sym.imp.MSVCP140.dll_protected:_void___cdecl_std::basic_ios_char__struct_std::char_traits_char__::constructor_void____ptr64]
nop
mov dword [rsp + 0x30], 2
xor r9d, r9d
xor r8d, r8d
lea rdx, [rbp - 0x50]
lea rcx, [rbp - 0x60]
call qword [sym.imp.MSVCP140.dll_public:_void___cdecl_std::basic_istream_char__struct_std::char_traits_char__::constructor_class_std::basic_streambuf_char__struct_std::char_traits_char______ptr64__bool____ptr64]
nop
mov rax, qword [rbp - 0x60]
movsxd rcx, dword [rax + 4]
lea r14, vtable.std::basic_ifstream_char__struct_std::char_traits_char__.0
mov qword [rbp + rcx - 0x60], r14
mov rax, qword [rbp - 0x60]
movsxd rcx, dword [rax + 4]
lea edx, [rcx - 0xb0]
mov dword [rbp + rcx - 0x64], edx
lea rcx, [rbp - 0x50]
call qword [sym.imp.MSVCP140.dll_protected:_void___cdecl_std::basic_streambuf_char__struct_std::char_traits_char__::constructor_void____ptr64]
lea rax, vtable.std::basic_filebuf_char__struct_std::char_traits_char__.0
mov qword [rbp - 0x50], rax
mov byte [rbp + 0x2c], 0
mov byte [rbp + 0x21], 0
lea rcx, [rbp - 0x50]
call qword [sym.imp.MSVCP140.dll_protected:_void___cdecl_std::basic_streambuf_char__struct_std::char_traits_char__::_Init_void____ptr64]
mov qword [rbp + 0x30], rsi
mov rax, qword [0x14000aa00]
mov qword [rbp + 0x24], rax
mov qword [rbp + 0x18], rsi
mov r8d, 1
mov rdx, rbx
lea rcx, [rbp - 0x50]
call fcn.140003b00
test rax, rax
jne 0x140001880
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_char__struct_std::char_traits_char__::setstate_int__bool____ptr64]
nop
mov rax, qword [rbp - 0x60]
movsxd rcx, dword [rax + 4]
mov qword [rbp + rcx - 0x60], r14
mov rax, qword [rbp - 0x60]
movsxd rcx, dword [rax + 4]
lea edx, [rcx - 0xb0]
mov dword [rbp + rcx - 0x64], edx
mov qword [rsp + 0x40], rsi
mov word [rsp + 0x48], 1
mov rax, qword [rbp - 0x60]
movsxd rcx, dword [rax + 4]
mov rcx, qword [rbp + rcx - 0x18]
mov qword [rsp + 0x50], rcx
test rcx, rcx
sete byte [rsp + 0x58]
mov byte [rsp + 0x59], 0
xorps xmm0, xmm0
movups xmmword [rbp - 0x80], xmm0
xorps xmm1, xmm1
movdqu xmmword [rbp - 0x70], xmm1
movaps xmm0, xmmword [rsp + 0x50]
movaps xmmword [rsp + 0x50], xmm0
movaps xmm6, xmmword [rsp + 0x40]
test rcx, rcx
je 0x140001921
call qword [sym.imp.MSVCP140.dll_public:_int___cdecl_std::basic_streambuf_char__struct_std::char_traits_char__::sgetc_void____ptr64]
cmp eax, 0xffffffff
je 0x14000190d
mov byte [rsp + 0x59], al
mov rax, qword [rsp + 0x50]
mov byte [rsp + 0x58], 1
movaps xmm0, xmmword [rsp + 0x50]
jmp 0x140001926
mov rax, rsi
mov qword [rsp + 0x50], rax
mov byte [rsp + 0x58], 1
movaps xmm0, xmmword [rsp + 0x50]
jmp 0x140001926
movq rax, xmm0
test rax, rax
movq rax, xmm6
jne 0x1400019f9
test rax, rax
je 0x140001a02
movdqa xmmword [rsp + 0x40], xmm6
movdqa xmmword [rsp + 0x50], xmm0
lea r8, [rsp + 0x40]
lea rdx, [rsp + 0x50]
lea rcx, [rbp - 0x80]
call fcn.1400047b0
nop
lea rcx, [rbp - 0x50]
call fcn.140003a40
test rax, rax
jne 0x140001988
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_char__struct_std::char_traits_char__::setstate_int__bool____ptr64]
movups xmm0, xmmword [rbp - 0x80]
movups xmmword [rdi], xmm0
movups xmm1, xmmword [rbp - 0x70]
movups xmmword [rdi + 0x10], xmm1
movdqa xmm0, xmmword [0x140006c50]
movdqu xmmword [rbp - 0x70], xmm0
mov byte [rbp - 0x80], 0
lea rcx, [rbp - 0x60]
call fcn.140001a20
nop
mov rdx, qword [rsp + 0x78]
cmp rdx, 0xf
jbe 0x140001767
inc rdx
mov rcx, qword [rsp + 0x60]
mov rax, rcx
cmp rdx, 0x1000
jb 0x140001762
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x140001762
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
nop
test rax, rax
je 0x14000193d
movdqa xmm0, xmmword [0x140006c50]
movdqu xmmword [rbp - 0x70], xmm0
mov byte [rbp - 0x80], 0
jmp 0x14000195d