Function at 0x18001bb14
Capabilities:
Query remote server for available data
Read data from internet
Receive data

Disassembly:
push rbp
push r12
push r13
push r14
push r15
sub rsp, 0x90
lea rbp, [rsp + 0x30]
mov qword [rbp + 0x18], 0xfffffffffffffffe
mov qword [rbp + 0x90], rbx
mov qword [rbp + 0x98], rsi
mov qword [rbp + 0xa0], rdi
mov rax, qword [0x1801563c0]
xor rax, rbp
mov qword [rbp + 0x58], rax
mov r13, rcx
lea r15, [rcx + 0x78]
xor esi, esi
mov qword [r15], rsi
add rcx, 0x68
call fcn.18001bf24
mov dword [r13 + 0x5c], esi
mov rbx, qword [0x18015f768]
mov qword [rbp + 0x10], rbx
mov r12d, esi
mov rcx, qword [r13 + 0x18]
call qword [sym.imp.KERNEL32.dll_ResetEvent]
mov rcx, qword [r13 + 0x20]
call qword [sym.imp.KERNEL32.dll_ResetEvent]
mov dword [r13 + 0x28], 5
mov qword [r13 + 0x70], r15
mov r14d, r13d
mov qword [rbp + 8], r14
mov qword [rsp + 0x28], r14
mov dword [rsp + 0x20], 0x84000300
xor r9d, r9d
xor r8d, r8d
mov rdx, qword [r13 + 0x60]
mov rcx, qword [r13 + 8]
call qword [sym.imp.WININET.dll_InternetOpenUrlW]
cmp rax, rsi
jne 0x18001bbf0
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x3e5
je 0x18001bbe1
mov r12d, 0x80004005
jmp 0x18001be56
mov edx, 0xea60
mov rcx, qword [r13 + 0x18]
call qword [sym.imp.KERNEL32.dll_WaitForSingleObject]
mov dword [rbp], esi
mov rdi, rsi
mov qword [rsp + 0x20], rsi
lea r9, [rbp]
xor r8d, r8d
lea edx, [r8 + 0x13]
mov rcx, qword [r15]
call qword [sym.imp.WININET.dll_HttpQueryInfoW]
cmp eax, esi
jne 0x18001bc7c
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x2f76
je 0x18001bc71
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x7a
jne 0x18001bc66
mov ecx, dword [rbp]
inc ecx
call fcn.1800d04fc
mov rdi, rax
mov qword [rsp + 0x20], rsi
lea r9, [rbp]
mov r8, rax
mov edx, socket
mov rcx, qword [r15]
call qword [sym.imp.WININET.dll_HttpQueryInfoW]
cmp eax, esi
je 0x18001bc13
cmp rdi, rsi
je 0x18001bc7c
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_lstrlenW]
jmp 0x18001bc7e
mov r12d, 0x80004005
jmp 0x18001be56
mov r12d, 0x80004005
jmp 0x18001be56
mov eax, esi
mov r8, rdi
mov edx, eax
lea rcx, [rbp + 0x10]
call fcn.180003e28
mov rcx, rdi
call fcn.1800d1434
mov dword [rbp], esi
lea rdi, [0x180117b70]
mov rbx, qword [rbp + 0x10]
mov rsi, rbx
mov ecx, 4
repe cmpsw word [rsi], word [rdi]
je 0x18001bcbc
xor esi, esi
mov r12d, 0x80004005
jmp 0x18001be56
xor esi, esi
mov dword [r13 + 0x28], 6
mov r9, r14
xor r8d, r8d
lea rdx, [rbp]
mov rcx, qword [r15]
call qword [sym.imp.WININET.dll_InternetQueryDataAvailable]
cmp eax, esi
jne 0x18001bcfd
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x3e5
jne 0x18001be48
mov edx, 0xea60
mov rcx, qword [r13 + 0x20]
call qword [sym.imp.KERNEL32.dll_WaitForSingleObject]
mov eax, dword [rbp]
cmp eax, esi
je 0x18001be56
lea ecx, [rax + 1]
call fcn.1800d04fc
mov r14, rax
mov r8d, dword [rbp]
inc r8d
xor edx, edx
mov rcx, rax
call fcn.1800d7640
mov rcx, qword [r13 + 0x20]
call qword [sym.imp.KERNEL32.dll_ResetEvent]
mov dword [r13 + 0x28], 7
xor edx, edx
lea r8d, [rdx + 0x38]
lea rcx, [rbp + 0x20]
call fcn.1800d7640
mov edx, dword [rbp]
mov dword [rbp + 0x48], edx
mov qword [rbp + 0x40], r14
mov dword [rbp + 0x20], reloc.WS2_32.dll_getservbyport
mov r9, qword [rbp + 8]
mov r8d, 1
lea rdx, [rbp + 0x20]
mov rcx, qword [r15]
call qword [sym.imp.WININET.dll_InternetReadFileExA]
cmp eax, esi
jne 0x18001bd91
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x3e5
jne 0x18001be50
mov edx, 0xea60
mov rcx, qword [r13 + 0x20]
call qword [sym.imp.KERNEL32.dll_WaitForSingleObject]
cmp r14, rsi
jne 0x18001bd9b
mov rdi, rsi
jmp 0x18001be17
mov rcx, r14
call qword [sym.imp.KERNEL32.dll_lstrlenA]
lea edx, [rax + 1]
cmp edx, 0x3fffffff
jle 0x18001bdb4
mov rdi, rsi
jmp 0x18001be17
movsxd rax, edx
add rax, rax
lea rcx, [rax + 0xf]
cmp rcx, rax
ja 0x18001bdcd
movabs rcx, 0xffffffffffffff0
and rcx, 0xfffffffffffffff0
mov rax, rcx
call fcn.1800f12f0
sub rsp, rcx
lea rsi, [rsp + 0x30]
xor eax, eax
cmp rsi, rax
je 0x18001be12
mov word [rsi], ax
mov dword [rsp + 0x28], edx
mov qword [rsp + 0x20], rsi
or r9d, 0xffffffff
mov r8, r14
xor edx, edx
lea ecx, [rax + 3]
call qword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
neg eax
sbb rdi, rdi
and rdi, rsi
xor esi, esi
jmp 0x18001be17
xor esi, esi
mov rdi, rsi
cmp rdi, rsi
jne 0x18001be20
mov eax, esi
jmp 0x18001be29
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_lstrlenW]
mov r8, rdi
mov edx, eax
lea rcx, [r13 + 0x68]
call fcn.180008324
mov rcx, r14
call fcn.1800d1434
mov r14, qword [rbp + 8]
jmp 0x18001bcbe
mov r12d, 0x80004005
jmp 0x18001be56
mov r12d, 0x80004005
mov rcx, qword [r15]
cmp rcx, rsi
je 0x18001be64
call qword [sym.imp.WININET.dll_InternetCloseHandle]
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [r13 + 0x5c], eax
lea rcx, [rbx - 0xc]
lea rax, [0x18015f758]
cmp rcx, rax
je 0x18001be90
or edx, 0xffffffff
lock xadd dword [rcx], edx
dec edx
cmp edx, esi
jg 0x18001be90
call fcn.1800d1434
mov eax, r12d
mov rcx, qword [rbp + 0x58]
xor rcx, rbp
call fcn.1800d12b0
mov rbx, qword [rbp + 0x90]
mov rsi, qword [rbp + 0x98]
mov rdi, qword [rbp + 0xa0]
lea rsp, [rbp + 0x60]
pop r15
pop r14
pop r13
pop r12
pop rbp
ret