Function at 0x1800392e0
Capabilities:
Download url
Receive data

Disassembly:
mov qword [rsp + 0x18], rbx
push rbp
push rsi
push rdi
push r12
push r13
push r14
push r15
lea rbp, [rsp - 0x130]
sub rsp, 0x230
mov rax, qword [0x180068240]
xor rax, rsp
mov qword [rbp + 0x120], rax
mov r14, rdx
mov rsi, rcx
mov qword [rsp + 0x50], rcx
mov qword [rsp + 0x58], rdx
xor r12d, r12d
mov dword [rsp + 0x30], r12d
mov r8, rdx
cmp qword [rdx + 0x18], 0xf
jbe 0x180039335
mov r8, qword [rdx]
mov dword [rsp + 0x28], r12d
mov qword [rsp + 0x20], r12
mov r9d, dword [rdx + 0x10]
xor edx, edx
mov ecx, 0xfde9
call qword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
movsxd rbx, eax
xorps xmm0, xmm0
movups xmmword [rsp + 0x68], xmm0
xorps xmm1, xmm1
movdqu xmmword [rsp + 0x78], xmm1
mov r8, rbx
xor edx, edx
lea rcx, [rsp + 0x68]
call fcn.180035600
nop
lea rax, [rsp + 0x68]
cmp qword [rbp - 0x80], 7
cmova rax, qword [rsp + 0x68]
mov r8, r14
cmp qword [r14 + 0x18], 0xf
jbe 0x180039391
mov r8, qword [r14]
mov dword [rsp + 0x28], ebx
mov qword [rsp + 0x20], rax
mov r9d, dword [r14 + 0x10]
xor edx, edx
mov ecx, 0xfde9
call qword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
lea rdx, [rsp + 0x68]
cmp qword [rbp - 0x80], 7
cmova rdx, qword [rsp + 0x68]
mov qword [rsp + 0x20], r12
xor r9d, r9d
lea r8, [rsp + 0x50]
xor ecx, ecx
call sub.urlmon.dll_URLOpenBlockingStreamW
test eax, eax
je 0x180039485
xorps xmm0, xmm0
movups xmmword [rsi], xmm0
mov qword [rsi + 0x10], r12
mov qword [rsi + 0x18], r12
mov r8d, 2
lea rdx, [0x180059928]
mov rcx, rsi
call fcn.180035500
nop
mov rdx, qword [rbp - 0x80]
cmp rdx, 7
jbe 0x18003943c
lea rdx, [rdx*2 + 2]
mov rcx, qword [rsp + 0x68]
mov rax, rcx
cmp rdx, 0x1000
jb 0x180039437
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x180039702
call fcn.1800511f0
movdqa xmm0, xmmword [0x180059a20]
movdqu xmmword [rsp + 0x78], xmm0
mov word [rsp + 0x68], r12w
mov rcx, r14
call fcn.180036330
mov rax, rsi
mov rcx, qword [rbp + 0x120]
xor rcx, rsp
call fcn.180051310
mov rbx, qword [rsp + 0x280]
add rsp, 0x230
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
ret
xor edx, edx
mov r8d, 0xf8
lea rcx, [rbp - 0x50]
call sub.VCRUNTIME140.dll_memset
lea rax, [0x180059918]
mov qword [rbp - 0x50], rax
lea rax, [0x180059920]
mov qword [rbp - 0x40], rax
lea rcx, [rbp + 0x48]
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 r8d, r8d
lea rdx, [rbp - 0x38]
lea rcx, [rbp - 0x50]
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 - 0x50]
movsxd rcx, dword [rax + 4]
lea r13, vtable.std::basic_stringstream_char__struct_std::char_traits_char___class_std::allocator_char__.0
mov qword [rbp + rcx - 0x50], r13
mov rax, qword [rbp - 0x50]
movsxd rcx, dword [rax + 4]
lea edx, [rcx - 0x98]
mov dword [rbp + rcx - 0x54], edx
lea rcx, [rbp - 0x38]
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 - 0x38], rax
mov qword [rbp + 0x30], r12
mov dword [rbp + 0x38], r12d
mov rcx, qword [rsp + 0x50]
mov rax, qword [rcx]
lea r9, [rsp + 0x60]
mov r8d, 0x64
lea rdx, [rbp + 0xb0]
call qword [rax + 0x18]
mov eax, dword [rsp + 0x60]
test eax, eax
je 0x180039579
nop dword [rax]
mov r8d, eax
lea rdx, [rbp + 0xb0]
lea rcx, [rbp - 0x40]
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__::write_char_const____ptr64__long_long___int64_____ptr64]
mov rcx, qword [rsp + 0x50]
mov rax, qword [rcx]
lea r9, [rsp + 0x60]
mov r8d, 0x64
lea rdx, [rbp + 0xb0]
call qword [rax + 0x18]
mov eax, dword [rsp + 0x60]
test eax, eax
jne 0x180039540
mov rcx, qword [rsp + 0x50]
mov rax, qword [rcx]
call qword [rax + 0x10]
nop
xorps xmm0, xmm0
movups xmmword [rbp - 0x78], xmm0
mov qword [rbp - 0x68], r12
mov qword [rbp - 0x60], 0xf
mov byte [rbp - 0x78], 0
mov dword [rsp + 0x30], 0xa
movups xmmword [rsp + 0x38], xmm0
mov rbx, r12
mov ecx, dword [rbp + 0x38]
mov eax, ecx
and al, 0x22
cmp al, 2
je 0x180039600
lea rcx, [rbp - 0x38]
call qword [sym.imp.MSVCP140.dll_protected:_char____ptr64___cdecl_std::basic_streambuf_char__struct_std::char_traits_char__::pptr_void_const___ptr64]
test rax, rax
je 0x1800395fd
lea rcx, [rbp - 0x38]
call qword [sym.imp.MSVCP140.dll_protected:_char____ptr64___cdecl_std::basic_streambuf_char__struct_std::char_traits_char__::pbase_void_const___ptr64]
mov r15, rax
lea rcx, [rbp - 0x38]
call qword [sym.imp.MSVCP140.dll_protected:_char____ptr64___cdecl_std::basic_streambuf_char__struct_std::char_traits_char__::pptr_void_const___ptr64]
mov rdi, rax
mov rbx, qword [rbp + 0x30]
lea rcx, [rbp - 0x38]
call qword [sym.imp.MSVCP140.dll_protected:_char____ptr64___cdecl_std::basic_streambuf_char__struct_std::char_traits_char__::epptr_void_const___ptr64]
cmp rdi, rbx
cmovb rdi, rbx
sub rdi, r15
mov rbx, r15
jmp 0x18003963e
mov ecx, dword [rbp + 0x38]
test cl, 4
jne 0x180039672
mov rdi, r12
lea rcx, [rbp - 0x38]
call qword [sym.imp.MSVCP140.dll_protected:_char____ptr64___cdecl_std::basic_streambuf_char__struct_std::char_traits_char__::gptr_void_const___ptr64]
test rax, rax
je 0x180039639
lea rcx, [rbp - 0x38]
call qword [sym.imp.MSVCP140.dll_protected:_char____ptr64___cdecl_std::basic_streambuf_char__struct_std::char_traits_char__::eback_void_const___ptr64]
mov r15, rax
lea rcx, [rbp - 0x38]
call qword [sym.imp.MSVCP140.dll_protected:_char____ptr64___cdecl_std::basic_streambuf_char__struct_std::char_traits_char__::egptr_void_const___ptr64]
mov rdi, rax
sub rdi, r15
mov rbx, r15
jmp 0x18003963e
mov r15, qword [rsp + 0x38]
test rbx, rbx
je 0x180039672
lea rcx, [rbp - 0x78]
cmp rdi, 0xf
ja 0x180039663
mov qword [rbp - 0x68], rdi
mov r8, rdi
mov rdx, r15
call sub.VCRUNTIME140.dll_memmove
mov byte [rbp + rdi - 0x78], 0
jmp 0x180039672
mov r9, r15
xor r8d, r8d
mov rdx, rdi
call fcn.180035a70
nop
movups xmm0, xmmword [rbp - 0x78]
movups xmmword [rsi], xmm0
movups xmm1, xmmword [rbp - 0x68]
movups xmmword [rsi + 0x10], xmm1
mov rax, qword [rbp - 0x50]
movsxd rcx, dword [rax + 4]
mov qword [rbp + rcx - 0x50], r13
mov rax, qword [rbp - 0x50]
movsxd rcx, dword [rax + 4]
lea edx, [rcx - 0x98]
mov dword [rbp + rcx - 0x54], edx
lea rcx, [rbp - 0x38]
call fcn.1800363a0
lea rcx, [rbp - 0x30]
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 + 0x48]
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 - 0x80]
cmp rdx, 7
jbe 0x18003943c
lea rdx, [rdx*2 + 2]
mov rcx, qword [rsp + 0x68]
mov rax, rcx
cmp rdx, 0x1000
jb 0x180039437
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x180039437
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3