Function at 0x140001690
Capabilities:
Check http status code
Connect to http server
Create http request
Query remote server for available data
Read data from internet
Receive data
Send data
Send http request

Disassembly:
push rbx
push rbp
push rsi
push r12
push r13
push r14
push r15
sub rsp, 0x6e0
mov rax, qword [0x14000c080]
xor rax, rsp
mov qword [rsp + 0x6d0], rax
mov rbp, rcx
mov r12d, r8d
mov dword [rsp + 0x54], edx
xor esi, esi
lea rcx, [rsp + 0xa2]
xor edx, edx
mov r8d, 0x206
mov qword [rsp + 0x60], r9
mov dword [rsp + 0x44], 0x800000
mov dword [rsp + 0x48], esi
mov word [rsp + 0xa0], si
call fcn.140004600
lea r8, [rbp + 0x430]
lea rcx, [rsp + 0xa0]
mov edx, 0x103
call fcn.140001ddc
lea r8, [0x140009e80]
lea rcx, [rsp + 0xa0]
mov edx, 0x103
call fcn.140001f6c
lea r8, [rbp + 0x20]
lea rcx, [rsp + 0xa0]
mov edx, 0x103
call fcn.140001f6c
lea r8, [0x140009e84]
lea rcx, [rsp + 0xa0]
mov edx, 0x103
call fcn.140001f6c
lea rcx, [rsp + 0x2b2]
xor edx, edx
mov r8d, 0x206
mov word [rsp + 0x2b0], si
call fcn.140004600
mov ecx, dword [rbp + 8]
lea r8d, [rsi + 0xa]
lea rdx, [rsp + 0x2b0]
call fcn.140002078
lea rcx, [rsp + 0xa0]
mov edx, 0x103
mov r8, rax
call fcn.140001f6c
lea r8, [0x140009e84]
lea rcx, [rsp + 0xa0]
mov edx, 0x103
call fcn.140001f6c
mov ecx, dword [0x14000d118]
lea r8d, [rsi + 0xa]
lea rdx, [rsp + 0x2b0]
call fcn.140002078
lea rcx, [rsp + 0xa0]
mov edx, 0x103
mov r8, rax
call fcn.140001f6c
xor r9d, r9d
xor r8d, r8d
xor edx, edx
xor ecx, ecx
mov dword [rsp + 0x20], esi
call qword [sym.imp.WININET.dll_InternetOpenW]
movzx r8d, word [0x14000d114]
mov qword [rsp + 0x38], rsi
mov dword [rsp + 0x30], esi
lea rdx, [rbp + 0x228]
mov rcx, rax
xor r9d, r9d
mov dword [rsp + 0x28], 3
mov r15, rax
mov qword [rsp + 0x20], rsi
call qword [sym.imp.WININET.dll_InternetConnectW]
mov ecx, dword [rsp + 0x44]
mov qword [rsp + 0x38], rsi
mov dword [rsp + 0x30], ecx
lea r8, [rsp + 0xa0]
lea rdx, [0x140009e90]
mov rcx, rax
xor r9d, r9d
mov qword [rsp + 0x28], rsi
mov rbx, rax
mov qword [rsp + 0x58], rax
mov qword [rsp + 0x20], rsi
call qword [sym.imp.WININET.dll_HttpOpenRequestW]
lea r9d, [rsi + 4]
lea r8, [rsp + 0x44]
lea edx, [rsi + 0x1f]
mov rcx, rax
mov r13, rax
mov dword [rsp + 0x44], 0x3380
call qword [sym.imp.WININET.dll_InternetSetOptionW]
lea edx, [rsi + 0x54]
xor r9d, r9d
xor r8d, r8d
mov rcx, r13
call qword [sym.imp.WININET.dll_InternetSetOptionW]
xor eax, eax
lea r14d, [r12 + 0x18]
mov qword [rsp + 0x68], rax
mov qword [rsp + 0x90], rax
lea rdx, [rsp + 0x68]
xor r9d, r9d
xor r8d, r8d
mov rcx, r13
mov dword [rsp + 0x94], r14d
mov qword [rsp + 0x70], rax
mov qword [rsp + 0x78], rax
mov qword [rsp + 0x80], rax
mov qword [rsp + 0x88], rax
mov qword [rsp + 0x98], rax
mov dword [rsp + 0x68], 0x38
mov qword [rsp + 0x20], rsi
call qword [sym.imp.WININET.dll_HttpSendRequestExW]
test eax, eax
jne 0x140001931
lea rdx, [rsp + 0x68]
xor r9d, r9d
xor r8d, r8d
mov rcx, r13
mov qword [rsp + 0x20], rsi
call qword [sym.imp.WININET.dll_HttpSendRequestExW]
test eax, eax
jne 0x140001931
mov rcx, r13
call qword [sym.imp.WININET.dll_InternetCloseHandle]
mov rcx, rbx
call qword [sym.imp.WININET.dll_InternetCloseHandle]
mov rcx, r15
call qword [sym.imp.WININET.dll_InternetCloseHandle]
xor eax, eax
jmp 0x140001b3e
mov ecx, r14d
mov qword [rsp + 0x728], rdi
call fcn.140001ed0
mov r8d, r14d
xor edx, edx
mov rcx, rax
mov rdi, rax
call fcn.140004600
mov rcx, qword [rbp + 0x10]
mov eax, dword [rsp + 0x54]
mov rdx, qword [rsp + 0x60]
mov qword [rdi], rcx
mov rcx, qword [rbp + 0x18]
mov qword [rdi + 8], rcx
lea rcx, [rdi + 0x18]
mov r8, r12
mov dword [rdi + 0x10], eax
mov dword [rdi + 0x14], r12d
call fcn.140005f80
lea r9, [rsp + 0x50]
mov r8d, r14d
mov rdx, rdi
mov rcx, r13
mov dword [rsp + 0x50], esi
call qword [sym.imp.WININET.dll_InternetWriteFile]
test eax, eax
je 0x1400019a9
xor r9d, r9d
xor r8d, r8d
xor edx, edx
mov rcx, r13
call qword [sym.imp.WININET.dll_HttpEndRequestW]
mov rcx, rdi
call fcn.140001d60
lea rcx, [rsp + 0x4c2]
xor edx, edx
mov r8d, 0x206
mov edi, 0x2800
mov dword [rsp + 0x40], esi
mov word [rsp + 0x4c0], si
call fcn.140004600
lea r9, [rsp + 0x4c]
lea r8, [rsp + 0x4c0]
mov edx, 0x13
mov rcx, r13
mov dword [rsp + 0x4c], 0x104
mov qword [rsp + 0x20], rsi
call qword [sym.imp.WININET.dll_HttpQueryInfoW]
lea rcx, [rsp + 0x4c0]
mov ebx, eax
call fcn.140002094
test ebx, ebx
je 0x140001b16
cmp eax, 0xc8
jne 0x140001b16
mov rcx, rdi
call fcn.140001ed0
mov r12, rax
nop dword [rax]
lea rdx, [rsp + 0x40]
xor r9d, r9d
xor r8d, r8d
mov rcx, r13
call qword [sym.imp.WININET.dll_InternetQueryDataAvailable]
mov ecx, dword [rsp + 0x40]
call fcn.140001ed0
mov r8d, dword [rsp + 0x40]
xor edx, edx
mov rcx, rax
mov rbp, rax
call fcn.140004600
mov r8d, dword [rsp + 0x40]
lea r9, [rsp + 0x48]
mov rdx, rbp
mov rcx, r13
call qword [sym.imp.WININET.dll_InternetReadFile]
mov r11d, dword [rsp + 0x48]
mov ecx, dword [rsp + 0x40]
cmp r11d, ecx
jae 0x140001a9d
mov r8d, ecx
lea rdx, [rbp + r11]
lea r9, [rsp + 0x48]
mov rcx, r13
call qword [sym.imp.WININET.dll_InternetReadFile]
mov ecx, dword [rsp + 0x40]
lea eax, [rsi + rcx]
cmp eax, edi
jbe 0x140001acd
add edi, edi
mov rbx, r12
mov ecx, edi
call fcn.140001ed0
mov r8d, esi
mov rdx, rbx
mov rcx, rax
mov r12, rax
call fcn.140005f80
mov rcx, rbx
call fcn.140001d60
mov ecx, dword [rsp + 0x40]
mov r8d, ecx
mov ecx, esi
mov rdx, rbp
add rcx, r12
call fcn.140005f80
add esi, dword [rsp + 0x40]
mov rcx, rbp
call fcn.140001d60
cmp dword [rsp + 0x40], 0
jne 0x140001a30
mov ecx, esi
mov ebx, esi
call fcn.140001ed0
mov r8, rbx
mov rdx, r12
mov rcx, rax
mov rsi, rax
call fcn.140005f80
mov rcx, r12
call fcn.140001d60
mov rcx, r13
call qword [sym.imp.WININET.dll_InternetCloseHandle]
mov rcx, qword [rsp + 0x58]
call qword [sym.imp.WININET.dll_InternetCloseHandle]
mov rcx, r15
call qword [sym.imp.WININET.dll_InternetCloseHandle]
mov rdi, qword [rsp + 0x728]
mov rax, rsi
mov rcx, qword [rsp + 0x6d0]
xor rcx, rsp
call fcn.140001d40
add rsp, 0x6e0
pop r15
pop r14
pop r13
pop r12
pop rsi
pop rbp
pop rbx
ret