Function at 0x18000340c
Capabilities:
Query remote server for available data
Read data from internet
Receive data
Send data
Send http request

Disassembly:
mov rax, rsp
mov qword [rax + 8], rbx
mov qword [rax + 0x18], rsi
mov qword [rax + 0x20], rdi
push rbp
push r12
push r13
push r14
push r15
lea rbp, [rax - 0x3c8]
sub rsp, 0x4a0
xor edi, edi
lea rax, [0x1800107e0]
mov r15, r8
mov qword [rbp - 0x70], rax
mov r13, rdx
mov qword [rbp - 0x68], rdi
mov rbx, rcx
mov dword [rbp + 0x3d8], edi
lea r8d, [rdi + 0x40]
mov dword [rsp + 0x40], edi
xor edx, edx
lea rcx, [rsp + 0x50]
mov r14d, r9d
mov esi, edi
call sub.msvcrt.dll_memset
mov r12d, 0x400
lea rcx, [rbp - 0x60]
mov r8d, r12d
xor edx, edx
call sub.msvcrt.dll_memset
mov edx, dword [r13 + 4]
lea rcx, [rsp + 0x50]
call fcn.180006838
mov rcx, qword [rsp + 0x60]
lea r8, [0x180010760]
mov r9, rbx
mov edx, r12d
call fcn.1800018d0
lea ecx, [rdi + 0xc]
call fcn.1800059a8
mov r9d, dword [r13 + 4]
lea r8, [r13 + 8]
mov rcx, rax
mov dword [rsp + 0x28], edi
lea rdx, [rsp + 0x50]
mov qword [rsp + 0x20], rdi
call fcn.18000626c
mov rcx, qword [rsp + 0x58]
call sub.msvcrt.dll_strlen
mov r9, qword [rsp + 0x60]
mov edx, r12d
lea rcx, [rbp - 0x60]
test rax, rax
jne 0x1800034f3
lea r8, [0x180010760]
call fcn.1800018d0
jmp 0x180003509
mov rax, qword [rsp + 0x58]
lea r8, [0x1800107e8]
mov qword [rsp + 0x20], rax
call fcn.1800018d0
mov ecx, 0x1a
call fcn.1800059a8
mov rcx, qword [0x180017130]
lea r8, [rbp - 0x60]
mov rdx, rax
xor r9d, r9d
mov rax, qword [0x180017140]
mov qword [rsp + 0x38], rax
mov eax, dword [0x180017124]
mov dword [rsp + 0x30], eax
lea rax, [rbp - 0x70]
mov qword [rsp + 0x28], rax
mov qword [rsp + 0x20], rdi
call qword [sym.imp.WININET.dll_HttpOpenRequestA]
mov rcx, rax
mov rbx, rax
call fcn.180002dc0
mov rcx, qword [rsp + 0x50]
call sub.msvcrt.dll_strlen
mov ecx, dword [rsp + 0x70]
mov r8, rax
mov r9, qword [rsp + 0x68]
mov rdx, qword [rsp + 0x50]
mov dword [rsp + 0x20], ecx
mov rcx, rbx
call qword [sym.imp.WININET.dll_HttpSendRequestA]
mov edx, dword [r13 + 4]
lea rcx, [rsp + 0x50]
call fcn.18000682c
mov rcx, rbx
call fcn.1800033c0
test eax, eax
je 0x180003626
xor r9d, r9d
lea rdx, [rbp + 0x3d8]
xor r8d, r8d
mov rcx, rbx
call qword [sym.imp.WININET.dll_InternetQueryDataAvailable]
test eax, eax
je 0x180003636
cmp dword [rbp + 0x3d8], r14d
jae 0x180003636
cmp dword [rbp + 0x3d8], edi
je 0x180003629
test r14d, r14d
je 0x180003626
mov edx, esi
lea r9, [rsp + 0x40]
add rdx, r15
mov r8d, 0x1000
mov rcx, rbx
call qword [sym.imp.WININET.dll_InternetReadFile]
test eax, eax
je 0x1800035fb
cmp dword [rsp + 0x40], edi
je 0x1800035fb
add esi, dword [rsp + 0x40]
cmp esi, r14d
jb 0x1800035cf
cmp esi, r14d
jae 0x180003626
mov rcx, rbx
call qword [sym.imp.WININET.dll_InternetCloseHandle]
mov ecx, ntohs
call fcn.1800059a8
mov rcx, rax
mov r9d, r14d
mov r8d, esi
mov rdx, r15
call fcn.1800068d4
jmp 0x180003642
or edi, 0xffffffff
mov rcx, rbx
call qword [sym.imp.WININET.dll_InternetCloseHandle]
mov eax, edi
jmp 0x180003642
mov rcx, rbx
call qword [sym.imp.WININET.dll_InternetCloseHandle]
or eax, 0xffffffff
lea r11, [rsp + 0x4a0]
mov rbx, qword [r11 + 0x30]
mov rsi, qword [r11 + 0x40]
mov rdi, qword [r11 + 0x48]
mov rsp, r11
pop r15
pop r14
pop r13
pop r12
pop rbp
ret