Function at 0x18000c700
Capabilities:
Connect to http server
Read data from internet
Receive data
Send data
Send http request

Disassembly:
push rbx
push rbp
push rsi
push rdi
push r12
push r13
sub rsp, 0x128
mov qword [rsp + 0x48], 0xfffffffffffffffe
mov rax, qword [0x1800ff050]
xor rax, rsp
mov qword [rsp + 0x110], rax
movzx r13d, r9w
mov rdi, r8
mov rsi, rdx
mov rbx, rcx
mov rbp, qword [rsp + 0x180]
add rcx, 0x78
call fcn.18000ce60
mov r11d, gethostbyname
mov word [rsp + 0x40], r11w
lea r9d, [r11 - 0x2e]
or r8, 0xffffffffffffffff
lea rdx, [rsp + 0x40]
mov rcx, rbp
call fcn.18000d250
cmp qword [rbp + 0x20], 8
jb 0x18000c777
mov r8, qword [rbp + 8]
jmp 0x18000c77b
lea r8, [rbp + 8]
lea r9, [rax + 1]
xor edx, edx
lea rcx, [rbx + 0x78]
call fcn.18000cd00
lea rcx, [rbx + 0x50]
or r9, 0xffffffffffffffff
xor r8d, r8d
mov rdx, rsi
call fcn.180002d10
lea rcx, [rbx + 0x28]
or r9, 0xffffffffffffffff
xor r8d, r8d
mov rdx, rdi
call fcn.180002d10
cmp qword [rsi + 0x20], 8
jb 0x18000c7bd
mov rdx, qword [rsi + 8]
jmp 0x18000c7c1
lea rdx, [rsi + 8]
xor ebp, ebp
mov qword [rsp + 0x38], rbp
mov dword [rsp + 0x30], ebp
mov dword [rsp + 0x28], 3
mov qword [rsp + 0x20], rbp
xor r9d, r9d
movzx r8d, r13w
mov rcx, qword [rbx]
call qword [sym.imp.WININET.dll_InternetConnectW]
mov rsi, rax
mov rcx, qword [rbx + 8]
test rcx, rcx
je 0x18000c7fb
call qword [sym.imp.WININET.dll_InternetCloseHandle]
mov qword [rbx + 8], rsi
mov rcx, rsi
test rsi, rsi
jne 0x18000c811
call fcn.180003180
jmp 0x18000c9d7
cmp qword [rdi + 0x20], 8
jb 0x18000c81e
mov r8, qword [rdi + 8]
jmp 0x18000c822
lea r8, [rdi + 8]
mov qword [rsp + 0x38], rbp
mov dword [rsp + 0x30], 0x84000000
mov qword [rsp + 0x28], rbp
mov qword [rsp + 0x20], rbp
xor r9d, r9d
lea rdx, [0x1800e16b0]
call qword [sym.imp.WININET.dll_HttpOpenRequestW]
mov rdi, rax
mov rcx, qword [rbx + 0x10]
test rcx, rcx
je 0x18000c85b
call qword [sym.imp.WININET.dll_InternetCloseHandle]
mov qword [rbx + 0x10], rdi
cmp rdi, rbp
jne 0x18000c86e
call fcn.180003180
jmp 0x18000c9d7
lea r8, [rbx + 0x78]
lea rdx, str.Referer:
lea rcx, [rsp + 0x50]
call fcn.18000d3c0
nop
lea r8, str._r_nAccept:__r_nRange:_bytes0_0_r_n_r_n
mov rdx, rax
lea rcx, [rsp + 0x78]
call fcn.18000d490
nop
cmp qword [rsp + 0x70], 8
jb 0x18000c8ab
mov rcx, qword [rsp + 0x58]
call fcn.18006a4d4
lea rdx, [rsp + 0x80]
cmp qword [rsp + 0x98], 8
cmovae rdx, qword [rsp + 0x80]
mov r9d, 0x20000000
or r8d, 0xffffffff
mov rcx, qword [rbx + 0x10]
call qword [sym.imp.WININET.dll_HttpAddRequestHeadersW]
test eax, eax
jne 0x18000c903
call fcn.180003180
mov ebx, eax
cmp qword [rsp + 0x98], 8
jb 0x18000c8fc
mov rcx, qword [rsp + 0x80]
call fcn.18006a4d4
mov eax, ebx
jmp 0x18000c9d7
mov dword [rsp + 0x20], ebp
xor r9d, r9d
xor r8d, r8d
xor edx, edx
mov rcx, qword [rbx + 0x10]
call qword [sym.imp.WININET.dll_HttpSendRequestW]
test eax, eax
jne 0x18000c943
call fcn.180003180
mov ebx, eax
cmp qword [rsp + 0x98], 8
jb 0x18000c93c
mov rcx, qword [rsp + 0x80]
call fcn.18006a4d4
mov eax, ebx
jmp 0x18000c9d7
mov byte [rsp + 0xa0], 0
xor edx, edx
lea r8d, [rdx + 0x63]
lea rcx, [rsp + 0xa1]
call fcn.18006cf60
mov dword [rsp + 0x40], ebp
lea r9, [rsp + 0x40]
mov r8d, 0x64
lea rdx, [rsp + 0xa0]
mov rcx, qword [rbx + 0x10]
call qword [sym.imp.WININET.dll_InternetReadFile]
test eax, eax
jne 0x18000c9a6
call fcn.180003180
mov ebx, eax
cmp qword [rsp + 0x98], 8
jb 0x18000c9a2
mov rcx, qword [rsp + 0x80]
call fcn.18006a4d4
mov eax, ebx
jmp 0x18000c9d7
cmp qword [rsp + 0x98], 8
jb 0x18000c9be
mov rcx, qword [rsp + 0x80]
call fcn.18006a4d4
mov rcx, rbx
call fcn.18000c4e0
test eax, eax
js 0x18000c9d7
cmp eax, 1
je 0x18000c9d7
mov rcx, rbx
call fcn.18000c5c0
mov rcx, qword [rsp + 0x110]
xor rcx, rsp
call fcn.18006a4f0
add rsp, 0x128
pop r13
pop r12
pop rdi
pop rsi
pop rbp
pop rbx
ret