Function at 0x18000c820
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 [0x18010f050]
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.18000cf90
mov r11d, gethostbyname
mov word [rsp + 0x40], r11w
lea r9d, [r11 - 0x2e]
or r8, 0xffffffffffffffff
lea rdx, [rsp + 0x40]
mov rcx, rbp
call fcn.18000d380
cmp qword [rbp + 0x20], 8
jb 0x18000c897
mov r8, qword [rbp + 8]
jmp 0x18000c89b
lea r8, [rbp + 8]
lea r9, [rax + 1]
xor edx, edx
lea rcx, [rbx + 0x78]
call fcn.18000ce30
lea rcx, [rbx + 0x50]
or r9, 0xffffffffffffffff
xor r8d, r8d
mov rdx, rsi
call fcn.180002db0
lea rcx, [rbx + 0x28]
or r9, 0xffffffffffffffff
xor r8d, r8d
mov rdx, rdi
call fcn.180002db0
cmp qword [rsi + 0x20], 8
jb 0x18000c8dd
mov rdx, qword [rsi + 8]
jmp 0x18000c8e1
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 0x18000c91b
call qword [sym.imp.WININET.dll_InternetCloseHandle]
mov qword [rbx + 8], rsi
mov rcx, rsi
test rsi, rsi
jne 0x18000c931
call fcn.180003220
jmp 0x18000caf7
cmp qword [rdi + 0x20], 8
jb 0x18000c93e
mov r8, qword [rdi + 8]
jmp 0x18000c942
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, [0x1800ef140]
call qword [sym.imp.WININET.dll_HttpOpenRequestW]
mov rdi, rax
mov rcx, qword [rbx + 0x10]
test rcx, rcx
je 0x18000c97b
call qword [sym.imp.WININET.dll_InternetCloseHandle]
mov qword [rbx + 0x10], rdi
cmp rdi, rbp
jne 0x18000c98e
call fcn.180003220
jmp 0x18000caf7
lea r8, [rbx + 0x78]
lea rdx, str.Referer:
lea rcx, [rsp + 0x50]
call fcn.18000d4f0
nop
lea r8, str._r_nAccept:__r_nRange:_bytes0_0_r_n_r_n
mov rdx, rax
lea rcx, [rsp + 0x78]
call fcn.18000d5c0
nop
cmp qword [rsp + 0x70], 8
jb 0x18000c9cb
mov rcx, qword [rsp + 0x58]
call fcn.180076a50
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 0x18000ca23
call fcn.180003220
mov ebx, eax
cmp qword [rsp + 0x98], 8
jb 0x18000ca1c
mov rcx, qword [rsp + 0x80]
call fcn.180076a50
mov eax, ebx
jmp 0x18000caf7
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 0x18000ca63
call fcn.180003220
mov ebx, eax
cmp qword [rsp + 0x98], 8
jb 0x18000ca5c
mov rcx, qword [rsp + 0x80]
call fcn.180076a50
mov eax, ebx
jmp 0x18000caf7
mov byte [rsp + 0xa0], 0
xor edx, edx
lea r8d, [rdx + 0x63]
lea rcx, [rsp + 0xa1]
call fcn.1800795c0
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 0x18000cac6
call fcn.180003220
mov ebx, eax
cmp qword [rsp + 0x98], 8
jb 0x18000cac2
mov rcx, qword [rsp + 0x80]
call fcn.180076a50
mov eax, ebx
jmp 0x18000caf7
cmp qword [rsp + 0x98], 8
jb 0x18000cade
mov rcx, qword [rsp + 0x80]
call fcn.180076a50
mov rcx, rbx
call fcn.18000c600
test eax, eax
js 0x18000caf7
cmp eax, 1
je 0x18000caf7
mov rcx, rbx
call fcn.18000c6e0
mov rcx, qword [rsp + 0x110]
xor rcx, rsp
call fcn.180076a70
add rsp, 0x128
pop r13
pop r12
pop rdi
pop rsi
pop rbp
pop rbx
ret