Function at 0x140008b40
Capabilities:
Download url
Receive data

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x20], rsi
push rbp
push rdi
push r14
lea rbp, [rsp - 0x80]
sub rsp, 0x180
mov rax, qword [0x14002d010]
xor rax, rsp
mov qword [rbp + 0x70], rax
mov rbx, r8
mov rdi, rdx
mov qword [rsp + 0x50], rdx
mov qword [rsp + 0x60], rbx
xor esi, esi
mov dword [rsp + 0x30], esi
mov rcx, r8
cmp qword [r8 + 0x18], 0x10
jb 0x140008b8b
mov rcx, qword [r8]
call qword [sym.imp.WININET.dll_DeleteUrlCacheEntry]
mov rdx, rbx
cmp qword [rbx + 0x18], 0x10
jb 0x140008b9e
mov rdx, qword [rbx]
mov qword [rsp + 0x20], rsi
xor r9d, r9d
lea r8, [0x14002f6f8]
xor ecx, ecx
call qword [sym.imp.urlmon.dll_URLOpenBlockingStreamA]
xor edx, edx
mov r8d, 0xf8
lea rcx, [rsp + 0x70]
call sub.VCRUNTIME140.dll_memset
lea rax, [0x140021378]
mov qword [rsp + 0x70], rax
lea rax, [0x140020e90]
mov qword [rbp - 0x80], rax
lea rcx, [rbp + 8]
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 - 0x78]
lea rcx, [rsp + 0x70]
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 [rsp + 0x70]
movsxd rcx, dword [rax + 4]
lea r14, vtable.std::basic_stringstream_char__struct_std::char_traits_char___class_std::allocator_char__.0
mov qword [rsp + rcx + 0x70], r14
mov rax, qword [rsp + 0x70]
movsxd rcx, dword [rax + 4]
lea edx, [rcx - 0x98]
mov dword [rsp + rcx + 0x6c], edx
lea rcx, [rbp - 0x78]
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 - 0x78], rax
mov qword [rbp - 0x10], rsi
mov dword [rbp - 8], esi
mov rcx, qword [0x14002f6f8]
mov rax, qword [rcx]
lea r9, [0x14002f6f4]
mov r8d, 0x64
lea rdx, [0x14002f690]
call qword [rax + 0x18]
mov eax, dword [0x14002f6f4]
test eax, eax
je 0x140008cbf
nop dword [rax]
nop word [rax + rax]
mov r8d, eax
lea rdx, [0x14002f690]
lea rcx, [rbp - 0x80]
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 [0x14002f6f8]
mov rax, qword [rcx]
lea r9, [0x14002f6f4]
mov r8d, 0x64
lea rdx, [0x14002f690]
call qword [rax + 0x18]
mov eax, dword [0x14002f6f4]
test eax, eax
jne 0x140008c80
mov rcx, qword [0x14002f6f8]
mov rax, qword [rcx]
call qword [rax + 0x10]
nop
mov qword [rdi], rsi
mov qword [rdi + 0x10], rsi
mov qword [rdi + 0x18], setsockopt
mov byte [rdi], 0
mov dword [rsp + 0x30], 0xa
xorps xmm0, xmm0
movups xmmword [rsp + 0x38], xmm0
mov ecx, dword [rbp - 8]
mov eax, ecx
and al, 0x22
cmp al, 2
je 0x140008d1b
mov rax, qword [rbp - 0x38]
mov r8, qword [rax]
test r8, r8
je 0x140008d1b
mov rax, qword [rbp - 0x58]
mov rdx, qword [rax]
cmp r8, qword [rbp - 0x10]
cmovb r8, qword [rbp - 0x10]
sub r8, rdx
jmp 0x140008d4c
test cl, 4
jne 0x140008d42
mov rax, qword [rbp - 0x40]
mov rcx, qword [rax]
test rcx, rcx
je 0x140008d42
mov rax, qword [rbp - 0x60]
mov rdx, qword [rax]
mov rax, qword [rbp - 0x28]
movsxd r8, dword [rax]
sub r8, rdx
add r8, rcx
jmp 0x140008d4c
mov r8, qword [rsp + 0x40]
mov rdx, qword [rsp + 0x38]
test rdx, rdx
je 0x140008d5a
mov rcx, rdi
call fcn.140006350
nop
mov rax, qword [rsp + 0x70]
movsxd rcx, dword [rax + 4]
mov qword [rsp + rcx + 0x70], r14
mov rax, qword [rsp + 0x70]
movsxd rcx, dword [rax + 4]
lea edx, [rcx - 0x98]
mov dword [rsp + rcx + 0x6c], edx
lea rcx, [rbp - 0x78]
call fcn.140005a20
lea rcx, [rbp - 0x70]
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 + 8]
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 [rbx + 0x18]
cmp rdx, 0x10
jb 0x140008dcf
inc rdx
mov rcx, qword [rbx]
cmp rdx, 0x1000
jb 0x140008dca
add rdx, 0x27
mov r8, qword [rcx - 8]
sub rcx, r8
lea rax, [rcx - 8]
cmp rax, 0x1f
ja 0x140008e05
mov rcx, r8
call fcn.140018284
mov qword [rbx + 0x10], rsi
mov qword [rbx + 0x18], setsockopt
mov byte [rbx], 0
mov rax, rdi
mov rcx, qword [rbp + 0x70]
xor rcx, rsp
call fcn.140017fd0
lea r11, [rsp + 0x180]
mov rbx, qword [r11 + 0x20]
mov rsi, qword [r11 + 0x38]
mov rsp, r11
pop r14
pop rdi
pop rbp
ret
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3