Function at 0x140016870
Capabilities:
Create http request
Read data from internet
Receive data

Disassembly:
push rbp
push rsi
push rdi
push r12
push r13
push r14
push r15
mov rbp, rsp
sub rsp, 0x80
mov qword [rbp - 0x48], 0xfffffffffffffffe
mov qword [rsp + 0xd0], rbx
mov rax, qword [0x1400ab088]
xor rax, rsp
mov qword [rbp - 0x10], rax
mov r14, rdx
mov r15, rcx
mov qword [rbp - 0x50], rcx
mov qword [rbp - 0x38], rdx
xor r13d, r13d
mov qword [rbp - 0x20], r13
mov qword [rbp - 0x18], 0xf
mov byte [rbp - 0x30], r13b
mov dword [rsp + 0x20], r13d
xor r9d, r9d
xor r8d, r8d
xor edx, edx
lea rcx, str.FLiNGTrainer
call qword [sym.imp.WININET.dll_InternetOpenA]
mov rdx, r14
cmp qword [r14 + 0x18], 0x10
jb 0x1400168ec
mov rdx, qword [r14]
mov qword [rsp + 0x28], r13
mov dword [rsp + 0x20], r13d
xor r9d, r9d
xor r8d, r8d
mov rcx, rax
call qword [sym.imp.WININET.dll_InternetOpenUrlA]
mov r12, rax
test rax, rax
je 0x140016aaa
mov ecx, 0x4000
call fcn.140035af8
mov rsi, rax
test rax, rax
je 0x140016935
xor edx, edx
mov r8d, 0x4000
mov rcx, rax
call fcn.140053c80
jmp 0x140016938
mov rsi, r13
mov qword [rbp - 0x40], rsi
mov dword [rbp - 0x50], r13d
lea r9, [rbp - 0x50]
mov r8d, 0x3fff
mov rdx, rsi
mov rcx, r12
call qword [sym.imp.WININET.dll_InternetReadFile]
test eax, eax
je 0x1400169f0
nop
mov eax, dword [rbp - 0x50]
test eax, eax
je 0x1400169f0
mov byte [rax + rsi], 0
mov rbx, 0xffffffffffffffff
inc rbx
cmp byte [rsi + rbx], 0
jne 0x140016976
mov rcx, qword [rbp - 0x20]
mov rdx, qword [rbp - 0x18]
mov rax, rdx
sub rax, rcx
cmp rbx, rax
ja 0x1400169be
lea rax, [rcx + rbx]
mov qword [rbp - 0x20], rax
lea rdi, [rbp - 0x30]
cmp rdx, 0x10
cmovae rdi, qword [rbp - 0x30]
add rdi, rcx
mov r8, rbx
mov rdx, rsi
mov rcx, rdi
call fcn.140053e40
mov byte [rdi + rbx], 0
jmp 0x1400169d2
mov qword [rsp + 0x20], rbx
mov r9, rsi
mov rdx, rbx
lea rcx, [rbp - 0x30]
call fcn.140002c10
lea r9, [rbp - 0x50]
mov r8d, 0x3fff
mov rdx, rsi
mov rcx, r12
call qword [sym.imp.WININET.dll_InternetReadFile]
test eax, eax
jne 0x140016960
movups xmm0, xmmword [rbp - 0x30]
movups xmmword [r15], xmm0
movups xmm1, xmmword [rbp - 0x20]
movups xmmword [r15 + 0x10], xmm1
mov qword [rbp - 0x20], r13
mov eax, 0xf
mov qword [rbp - 0x18], rax
mov byte [rbp - 0x30], 0
test rsi, rsi
je 0x140016a23
mov rcx, rsi
call fcn.1400357d4
mov rax, qword [rbp - 0x18]
cmp rax, 0x10
jb 0x140016a5b
lea rdx, [rax + 1]
mov rcx, qword [rbp - 0x30]
mov rax, rcx
cmp rdx, 0x1000
jb 0x140016a56
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x140016b9d
call fcn.1400357d4
mov qword [rbp - 0x20], r13
mov qword [rbp - 0x18], 0xf
mov byte [rbp - 0x30], 0
mov rdx, qword [r14 + 0x18]
cmp rdx, 0x10
jb 0x140016b51
inc rdx
mov rcx, qword [r14]
cmp rdx, 0x1000
jb 0x140016b4c
add rdx, 0x27
mov r8, qword [rcx - 8]
sub rcx, r8
lea rax, [rcx - 8]
cmp rax, 0x1f
ja 0x140016b91
jmp 0x140016b49
mov qword [r15 + 0x10], r13
mov qword [r15 + 0x18], 0xf
mov byte [r15], 0
mov r8d, 5
lea rdx, str.ERROR
mov rcx, r15
call fcn.140002320
nop
mov rdx, qword [rbp - 0x18]
cmp rdx, 0x10
jb 0x140016b0b
inc rdx
mov rcx, qword [rbp - 0x30]
mov rax, rcx
cmp rdx, 0x1000
jb 0x140016b06
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x140016b8b
call fcn.1400357d4
mov qword [rbp - 0x20], r13
mov qword [rbp - 0x18], 0xf
mov byte [rbp - 0x30], 0
mov rdx, qword [r14 + 0x18]
cmp rdx, 0x10
jb 0x140016b51
inc rdx
mov rcx, qword [r14]
cmp rdx, 0x1000
jb 0x140016b4c
add rdx, 0x27
mov r8, qword [rcx - 8]
sub rcx, r8
lea rax, [rcx - 8]
cmp rax, 0x1f
ja 0x140016b97
mov rcx, r8
call fcn.1400357d4
mov qword [r14 + 0x10], r13
mov qword [r14 + 0x18], 0xf
mov rax, r15
mov byte [r14], 0
mov rcx, qword [rbp - 0x10]
xor rcx, rsp
call fcn.1400357b0
mov rbx, qword [rsp + 0xd0]
add rsp, 0x80
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
ret
call fcn.140056d64
nop
call fcn.140056d64
int3
call fcn.140056d64
nop
call fcn.140056d64
int3