Function at 0x140018090
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 [0x1400a6088]
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 0x14001810c
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 0x1400182ca
mov ecx, 0x4000
call fcn.1400355d8
mov rsi, rax
test rax, rax
je 0x140018155
xor edx, edx
mov r8d, 0x4000
mov rcx, rax
call fcn.140053760
jmp 0x140018158
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 0x140018210
nop
mov eax, dword [rbp - 0x50]
test eax, eax
je 0x140018210
mov byte [rax + rsi], 0
mov rbx, 0xffffffffffffffff
inc rbx
cmp byte [rsi + rbx], 0
jne 0x140018196
mov rcx, qword [rbp - 0x20]
mov rdx, qword [rbp - 0x18]
mov rax, rdx
sub rax, rcx
cmp rbx, rax
ja 0x1400181de
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.140053920
mov byte [rdi + rbx], 0
jmp 0x1400181f2
mov qword [rsp + 0x20], rbx
mov r9, rsi
mov rdx, rbx
lea rcx, [rbp - 0x30]
call fcn.1400052d0
lea r9, [rbp - 0x50]
mov r8d, 0x3fff
mov rdx, rsi
mov rcx, r12
call qword [sym.imp.WININET.dll_InternetReadFile]
test eax, eax
jne 0x140018180
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 0x140018243
mov rcx, rsi
call fcn.1400352b4
mov rax, qword [rbp - 0x18]
cmp rax, 0x10
jb 0x14001827b
lea rdx, [rax + 1]
mov rcx, qword [rbp - 0x30]
mov rax, rcx
cmp rdx, 0x1000
jb 0x140018276
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x1400183bd
call fcn.1400352b4
mov qword [rbp - 0x20], r13
mov qword [rbp - 0x18], 0xf
mov byte [rbp - 0x30], 0
mov rdx, qword [r14 + 0x18]
cmp rdx, 0x10
jb 0x140018371
inc rdx
mov rcx, qword [r14]
cmp rdx, 0x1000
jb 0x14001836c
add rdx, 0x27
mov r8, qword [rcx - 8]
sub rcx, r8
lea rax, [rcx - 8]
cmp rax, 0x1f
ja 0x1400183b1
jmp 0x140018369
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.140004110
nop
mov rdx, qword [rbp - 0x18]
cmp rdx, 0x10
jb 0x14001832b
inc rdx
mov rcx, qword [rbp - 0x30]
mov rax, rcx
cmp rdx, 0x1000
jb 0x140018326
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x1400183ab
call fcn.1400352b4
mov qword [rbp - 0x20], r13
mov qword [rbp - 0x18], 0xf
mov byte [rbp - 0x30], 0
mov rdx, qword [r14 + 0x18]
cmp rdx, 0x10
jb 0x140018371
inc rdx
mov rcx, qword [r14]
cmp rdx, 0x1000
jb 0x14001836c
add rdx, 0x27
mov r8, qword [rcx - 8]
sub rcx, r8
lea rax, [rcx - 8]
cmp rax, 0x1f
ja 0x1400183b7
mov rcx, r8
call fcn.1400352b4
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.140035290
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.14005674c
nop
call fcn.14005674c
int3
call fcn.14005674c
nop
call fcn.14005674c
int3