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

Disassembly:
mov qword [rsp + 8], rcx
push rbp
push rbx
push rsi
push rdi
push r12
push r13
lea rbp, [rsp - 0x2f]
sub rsp, 0xa8
mov qword [rbp - 0x49], 0xfffffffffffffffe
mov rbx, rcx
xor edi, edi
mov dword [rbp + 0x77], edi
mov qword [rcx], rdi
mov qword [rcx + 8], rdi
mov qword [rcx + 0x10], rdi
mov dword [rbp + 0x77], 1
mov r9, qword [rdx + 0x18]
cmp r9, 0x10
jb 0x14000318a
mov rcx, qword [rdx]
jmp 0x14000318d
mov rcx, rdx
mov rax, qword [rdx + 0x10]
lea r8, [rcx + rax]
cmp r9, 0x10
jb 0x14000319e
mov rdx, qword [rdx]
mov qword [rbp + 0xf], 7
mov qword [rbp + 7], rdi
mov word [rbp - 9], di
lea rcx, [rbp - 9]
call fcn.1400050a0
nop
mov dword [rsp + 0x20], edi
xor r9d, r9d
xor r8d, r8d
lea edx, [r9 + 1]
lea rcx, str.huorong
call qword [sym.imp.WININET.dll_InternetOpenW]
mov r12, rax
test rax, rax
jne 0x14000320f
lea rax, str.Failed_to_open_internet_connection.
mov qword [rbp + 0x7f], rax
lea rdx, [rbp + 0x7f]
lea rcx, [rbp - 0x41]
call fcn.140008cd0
lea r11, vtable.std::runtime_error.0
mov qword [rbp - 0x41], r11
lea rdx, [0x140020f40]
lea rcx, [rbp - 0x41]
call fcn.140009518
int3
lea rdx, [rbp - 9]
cmp qword [rbp + 0xf], 8
cmovae rdx, qword [rbp - 9]
mov qword [rsp + 0x28], rdi
mov dword [rsp + 0x20], 0x80000000
xor r9d, r9d
xor r8d, r8d
mov rcx, rax
call qword [sym.imp.WININET.dll_InternetOpenUrlW]
mov rsi, rax
test rax, rax
jne 0x14000327e
mov rcx, r12
call qword [sym.imp.WININET.dll_InternetCloseHandle]
lea r11, str.Failed_to_open_URL.
mov qword [rbp + 0x7f], r11
lea rdx, [rbp + 0x7f]
lea rcx, [rbp - 0x41]
call fcn.140008cd0
lea r11, vtable.std::runtime_error.0
mov qword [rbp - 0x41], r11
lea rdx, [0x140020f40]
lea rcx, [rbp - 0x41]
call fcn.140009518
int3
mov qword [rbp - 0x29], rdi
mov qword [rbp - 0x21], rdi
mov qword [rbp - 0x19], rdi
lea rcx, [rbp - 0x29]
call fcn.140004070
nop
mov dword [rbp + 0x6f], edi
mov r13, qword [rbp - 0x21]
mov rdi, qword [rbp - 0x29]
sub r13, rdi
lea r9, [rbp + 0x6f]
mov r8d, r13d
mov rdx, rdi
mov rcx, rsi
call qword [sym.imp.WININET.dll_InternetReadFile]
test eax, eax
je 0x1400032f1
nop dword [rax]
mov eax, dword [rbp + 0x6f]
test eax, eax
je 0x1400032f8
lea r9, [rdi + rax]
mov r8, rdi
mov rdx, qword [rbx + 8]
mov rcx, rbx
call fcn.140005140
lea r9, [rbp + 0x6f]
mov r8d, r13d
mov rdx, rdi
mov rcx, rsi
call qword [sym.imp.WININET.dll_InternetReadFile]
test eax, eax
jne 0x1400032c0
mov eax, dword [rbp + 0x6f]
test eax, eax
jne 0x14000334d
call qword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
je 0x14000334d
cmp eax, 0x12
je 0x14000334d
mov rcx, rsi
call qword [sym.imp.WININET.dll_InternetCloseHandle]
mov rcx, r12
call qword [sym.imp.WININET.dll_InternetCloseHandle]
lea r11, str.Failed_to_read_file_content.
mov qword [rbp + 0x7f], r11
lea rdx, [rbp + 0x7f]
lea rcx, [rbp - 0x41]
call fcn.140008cd0
lea r11, vtable.std::runtime_error.0
mov qword [rbp - 0x41], r11
lea rdx, [0x140020f40]
lea rcx, [rbp - 0x41]
call fcn.140009518
int3
mov rcx, rsi
call qword [sym.imp.WININET.dll_InternetCloseHandle]
mov rcx, r12
call qword [sym.imp.WININET.dll_InternetCloseHandle]
nop
test rdi, rdi
je 0x14000336e
mov rcx, rdi
call fcn.140009170
nop
cmp qword [rbp + 0xf], 8
jb 0x14000337e
mov rcx, qword [rbp - 9]
call fcn.140009170
mov rax, rbx
add rsp, 0xa8
pop r13
pop r12
pop rdi
pop rsi
pop rbx
pop rbp
ret