Function at 0x1400118f2
Capabilities:
Connect to http server
Create http request
Read data from internet
Receive data
Reference http user-agent string
Send data
Send http request

Disassembly:
jmp 0x14001c210
mov qword [rsp + 0x20], r9
mov qword [rsp + 0x18], r8
mov qword [rsp + 0x10], rdx
mov qword [rsp + 8], rcx
push rbp
push rdi
sub rsp, 0x9e8
lea rbp, [rsp + 0x40]
lea rdi, [rsp + 0x40]
mov ecx, 0x1aa
mov eax, 0xcccccccc
rep stosd dword [rdi], eax
mov rcx, qword [rsp + 0xa08]
mov rax, qword [0x14002d040]
xor rax, rbp
mov qword [rbp + 0x990], rax
mov dword [rbp + 0x974], 0
lea rcx, [0x1400342df]
call fcn.1400118b6
mov dword [rsp + 0x20], 0
xor r9d, r9d
xor r8d, r8d
mov edx, 1
lea rcx, str.User_Agent:_Mozilla_5.0__X11__Linux_x86_64__AppleWebKit_537.36__KHTML__like_Gecko__Chrome_51.0.2704.103_Safari_537.36
call qword [sym.imp.WININET.dll_InternetOpenW]
mov qword [rbp + 8], rax
cmp qword [rbp + 8], 0
jne 0x14001c2fa
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov eax, eax
lea rcx, str.InternetOpenW_failed_hInternet_:
add rcx, rax
mov rax, rcx
mov rdx, rax
mov rcx, qword [rbp + 0x9c8]
call fcn.1400113f7
mov eax, dword [rbp + 0x974]
or eax, 1
mov dword [rbp + 0x974], eax
mov rcx, qword [rbp + 0x9d0]
call fcn.1400111a4
nop
mov rcx, qword [rbp + 0x9d8]
call fcn.1400111a4
mov rax, qword [rbp + 0x9c8]
jmp 0x14001c776
lea rcx, [rbp + 0x28]
call fcn.1400116d1
nop
mov dword [rbp + 0x64], 0
jmp 0x14001c315
mov eax, dword [rbp + 0x64]
inc eax
mov dword [rbp + 0x64], eax
movsxd rax, dword [rbp + 0x64]
mov qword [rbp + 0x988], rax
mov rcx, qword [rbp + 0x9d0]
call fcn.14001178f
mov rcx, qword [rbp + 0x988]
cmp rcx, rax
jae 0x14001c35d
movsxd rax, dword [rbp + 0x64]
mov rdx, rax
mov rcx, qword [rbp + 0x9d0]
call fcn.140011113
movsx ax, byte [rax]
movzx edx, ax
lea rcx, [rbp + 0x28]
call fcn.140011677
jmp 0x14001c30d
lea rcx, [rbp + 0x28]
call fcn.1400112f8
mov qword [rbp + 0x88], rax
lea rcx, [rbp + 0xa8]
call fcn.1400116d1
nop
mov dword [rbp + 0xe4], 0
jmp 0x14001c394
mov eax, dword [rbp + 0xe4]
inc eax
mov dword [rbp + 0xe4], eax
movsxd rax, dword [rbp + 0xe4]
mov qword [rbp + 0x988], rax
mov rcx, qword [rbp + 0x9d8]
call fcn.14001178f
mov rcx, qword [rbp + 0x988]
cmp rcx, rax
jae 0x14001c3e5
movsxd rax, dword [rbp + 0xe4]
mov rdx, rax
mov rcx, qword [rbp + 0x9d8]
call fcn.140011113
movsx ax, byte [rax]
movzx edx, ax
lea rcx, [rbp + 0xa8]
call fcn.140011677
jmp 0x14001c386
lea rcx, [rbp + 0xa8]
call fcn.1400112f8
mov qword [rbp + 0x108], rax
mov qword [rsp + 0x38], 0
mov dword [rsp + 0x30], 0
mov dword [rsp + 0x28], 3
mov qword [rsp + 0x20], 0
xor r9d, r9d
mov r8w, 0x50
mov rdx, qword [rbp + 0x88]
mov rcx, qword [rbp + 8]
call qword [sym.imp.WININET.dll_InternetConnectW]
mov qword [rbp + 0x128], rax
cmp qword [rbp + 0x128], 0
jne 0x14001c4b8
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov eax, eax
lea rcx, str.InternetConnectW_failed_hConnect__NULL_:
add rcx, rax
mov rax, rcx
mov rdx, rax
mov rcx, qword [rbp + 0x9c8]
call fcn.1400113f7
mov eax, dword [rbp + 0x974]
or eax, 1
mov dword [rbp + 0x974], eax
lea rcx, [rbp + 0xa8]
call fcn.1400117a3
nop
lea rcx, [rbp + 0x28]
call fcn.1400117a3
nop
mov rcx, qword [rbp + 0x9d0]
call fcn.1400111a4
nop
mov rcx, qword [rbp + 0x9d8]
call fcn.1400111a4
mov rax, qword [rbp + 0x9c8]
jmp 0x14001c776
lea rax, str.text_
mov qword [rbp + 0x148], rax
mov qword [rbp + 0x150], 0
mov qword [rsp + 0x38], 0
mov dword [rsp + 0x30], 0
lea rax, [rbp + 0x148]
mov qword [rsp + 0x28], rax
mov qword [rsp + 0x20], 0
xor r9d, r9d
mov r8, qword [rbp + 0x108]
lea rdx, [0x140028900]
mov rcx, qword [rbp + 0x128]
call qword [sym.imp.WININET.dll_HttpOpenRequestW]
mov qword [rbp + 0x178], rax
cmp qword [rbp + 0x178], 0
jne 0x14001c59a
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov eax, eax
lea rcx, str.HttpOpenRequestW_failed_hRequest__NULL_:
add rcx, rax
mov rax, rcx
mov rdx, rax
mov rcx, qword [rbp + 0x9c8]
call fcn.1400113f7
mov eax, dword [rbp + 0x974]
or eax, 1
mov dword [rbp + 0x974], eax
lea rcx, [rbp + 0xa8]
call fcn.1400117a3
nop
lea rcx, [rbp + 0x28]
call fcn.1400117a3
nop
mov rcx, qword [rbp + 0x9d0]
call fcn.1400111a4
nop
mov rcx, qword [rbp + 0x9d8]
call fcn.1400111a4
mov rax, qword [rbp + 0x9c8]
jmp 0x14001c776
mov dword [rsp + 0x20], 0
xor r9d, r9d
xor r8d, r8d
xor edx, edx
mov rcx, qword [rbp + 0x178]
call qword [sym.imp.WININET.dll_HttpSendRequestW]
mov dword [rbp + 0x194], eax
cmp dword [rbp + 0x194], 0
jne 0x14001c63a
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov eax, eax
lea rcx, str._bRequestSent____HttpSendRequestW_failed_with_error_code
add rcx, rax
mov rax, rcx
mov rdx, rax
mov rcx, qword [rbp + 0x9c8]
call fcn.1400113f7
mov eax, dword [rbp + 0x974]
or eax, 1
mov dword [rbp + 0x974], eax
lea rcx, [rbp + 0xa8]
call fcn.1400117a3
nop
lea rcx, [rbp + 0x28]
call fcn.1400117a3
nop
mov rcx, qword [rbp + 0x9d0]
call fcn.1400111a4
nop
mov rcx, qword [rbp + 0x9d8]
call fcn.1400111a4
mov rax, qword [rbp + 0x9c8]
jmp 0x14001c776
lea rcx, [rbp + 0x1b8]
call fcn.1400118a7
nop
mov dword [rbp + 0x1f4], 0x400
mov dword [rbp + 0x634], 1
mov dword [rbp + 0x654], 0xffffffff
cmp dword [rbp + 0x634], 0
je 0x14001c6bc
cmp dword [rbp + 0x654], 0
je 0x14001c6bc
lea r9, [rbp + 0x654]
mov r8d, 0x400
lea rdx, [rbp + 0x220]
mov rcx, qword [rbp + 0x178]
call qword [sym.imp.WININET.dll_InternetReadFile]
mov dword [rbp + 0x634], eax
mov eax, dword [rbp + 0x654]
mov r8d, eax
lea rdx, [rbp + 0x220]
lea rcx, [rbp + 0x1b8]
call fcn.140011938
jmp 0x14001c665
lea rdx, [rbp + 0x1b8]
mov rcx, qword [rbp + 0x9c8]
call fcn.140011848
mov eax, dword [rbp + 0x974]
or eax, 1
mov dword [rbp + 0x974], eax
lea rcx, [rbp + 0x1b8]
call fcn.1400111a4
nop
lea rcx, [rbp + 0xa8]
call fcn.1400117a3
nop
lea rcx, [rbp + 0x28]
call fcn.1400117a3
nop
mov rcx, qword [rbp + 0x9d0]
call fcn.1400111a4
nop
mov rcx, qword [rbp + 0x9d8]
call fcn.1400111a4
mov rax, qword [rbp + 0x9c8]
jmp 0x14001c776
mov rdi, rax
lea rcx, [rbp - 0x40]
lea rdx, [0x140028330]
call fcn.140011749
mov rax, rdi
mov rcx, qword [rbp + 0x990]
xor rcx, rbp
call fcn.140011456
lea rsp, [rbp + 0x9a8]
pop rdi
pop rbp
ret