Function at 0x1800a8510
Capabilities:
Check internet connectivity via wininet
Create http request
Read data from internet
Receive data

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
mov qword [rsp + 0x18], rdi
mov qword [rsp + 0x20], r12
push rbp
push r14
push r15
lea rbp, [rsp - 0x890]
sub rsp, 0x990
mov rax, qword [0x1802ad040]
xor rax, rsp
mov qword [rbp + 0x888], rax
xor r8d, r8d
lea edx, [r8 + 1]
lea rcx, str.https:__api.github.com
call qword [sym.imp.WININET.dll_InternetCheckConnectionA]
test eax, eax
je 0x1800a8d1b
xorps xmm0, xmm0
movups xmmword [rbp + 0x10], xmm0
xor r15d, r15d
mov qword [rbp + 0x20], r15
mov qword [rbp + 0x28], 0xf
mov byte [rbp + 0x10], r15b
mov edi, r15d
movups xmmword [rbp + 0x30], xmm0
mov qword [rbp + 0x40], r15
mov qword [rbp + 0x48], r15
lea r8d, [r15 + 0x49]
lea rdx, str.https:__api.github.com_repos_Svxy_TnyavnTos_GTA5_Mod_Menu_releases_latest
lea rcx, [rbp + 0x30]
call fcn.18008f930
nop
mov dword [rsp + 0x20], r15d
xor r9d, r9d
xor r8d, r8d
xor edx, edx
lea rcx, str.TnyavnTos_GTA5_Mod_Menu
call qword [sym.imp.WININET.dll_InternetOpenW]
mov r14, rax
test rax, rax
je 0x1800a8a06
lea rdx, [rbp + 0x30]
cmp qword [rbp + 0x48], 7
cmova rdx, qword [rbp + 0x30]
mov qword [rsp + 0x28], r15
mov dword [rsp + 0x20], 0x4800000
xor r9d, r9d
xor r8d, r8d
mov rcx, rax
call qword [sym.imp.WININET.dll_InternetOpenUrlW]
mov rsi, rax
test rax, rax
je 0x1800a89fc
mov dword [rsp + 0x30], r15d
xorps xmm0, xmm0
movups xmmword [rbp - 0x10], xmm0
mov qword [rbp], r15
mov qword [rbp + 8], 0xf
mov byte [rbp - 0x10], r15b
lea r9, [rsp + 0x30]
mov r8d, 0x800
lea rdx, [rbp + 0x70]
mov rcx, rax
call qword [sym.imp.WININET.dll_InternetReadFile]
test eax, eax
je 0x1800a870f
nop dword [rax + rax]
mov eax, dword [rsp + 0x30]
test eax, eax
je 0x1800a870f
cmp rax, 0x801
jae 0x1800a8dc5
mov byte [rbp + rax + 0x70], 0
xorps xmm0, xmm0
movups xmmword [rbp - 0x30], xmm0
mov qword [rbp - 0x20], r15
mov qword [rbp - 0x18], r15
lea rax, [rbp + 0x70]
mov r8, 0xffffffffffffffff
nop word [rax + rax]
inc r8
cmp byte [rax + r8], 0
jne 0x1800a8680
lea rdx, [rbp + 0x70]
lea rcx, [rbp - 0x30]
call fcn.18007a5b0
nop
lea rdx, [rbp - 0x30]
cmp qword [rbp - 0x18], 0xf
cmova rdx, qword [rbp - 0x30]
mov r8, qword [rbp - 0x20]
lea rcx, [rbp - 0x10]
call fcn.180079c70
nop
mov rdx, qword [rbp - 0x18]
cmp rdx, 0xf
jbe 0x1800a86ef
inc rdx
mov rcx, qword [rbp - 0x30]
mov rax, rcx
cmp rdx, 0x1000
jb 0x1800a86ea
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x1800a8dbf
call fcn.18010ff00
lea r9, [rsp + 0x30]
mov r8d, 0x800
lea rdx, [rbp + 0x70]
mov rcx, rsi
call qword [sym.imp.WININET.dll_InternetReadFile]
test eax, eax
jne 0x1800a8640
lea r12, vtable.Json::CharReaderBuilder.0
mov qword [rbp - 0x70], r12
mov byte [rbp - 0x60], 0
and dword [rbp - 0x60], 0xfffffeff
xorps xmm0, xmm0
movdqu xmmword [rbp - 0x58], xmm0
mov qword [rbp - 0x48], r15
lea rcx, [rbp - 0x68]
call fcn.180107500
nop
mov byte [rsp + 0x58], 0
and dword [rsp + 0x58], 0xfffffeff
xorps xmm0, xmm0
movdqu xmmword [rsp + 0x60], xmm0
mov qword [rsp + 0x70], r15
movups xmmword [rbp + 0x50], xmm0
mov qword [rbp + 0x60], r15
mov qword [rbp + 0x68], 0xf
mov byte [rbp + 0x50], 0
lea rcx, [rbp - 0x70]
call fcn.1801071b0
mov rbx, rax
mov qword [rbp - 0x40], rax
mov rax, qword [rax]
mov r10, qword [rax + 8]
lea rcx, [rbp - 0x10]
mov r8, qword [rbp]
cmp qword [rbp + 8], 0xf
jbe 0x1800a8799
mov rdx, qword [rbp - 0x10]
add r8, rdx
jmp 0x1800a87a0
add r8, rcx
lea rdx, [rbp - 0x10]
lea rax, [rbp + 0x50]
mov qword [rsp + 0x20], rax
lea r9, [rsp + 0x50]
mov rcx, rbx
call r10
test al, al
je 0x1800a8a99
lea r8, [0x1801e03dc]
lea rdx, str.name
lea rcx, [rsp + 0x50]
call fcn.18010cf60
lea rdx, [rbp - 0x30]
mov rcx, rax
call fcn.18010c4e0
mov rdi, rax
lea rax, [rbp + 0x10]
cmp rax, rdi
je 0x1800a8855
mov rdx, qword [rbp + 0x28]
cmp rdx, 0xf
jbe 0x1800a8827
inc rdx
mov rcx, qword [rbp + 0x10]
mov rax, rcx
cmp rdx, 0x1000
jb 0x1800a8822
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x1800a8dcb
call fcn.18010ff00
mov qword [rbp + 0x20], r15
mov qword [rbp + 0x28], 0xf
mov byte [rbp + 0x10], 0
movups xmm0, xmmword [rdi]
movups xmmword [rbp + 0x10], xmm0
movups xmm1, xmmword [rdi + 0x10]
movups xmmword [rbp + 0x20], xmm1
mov qword [rdi + 0x10], r15
mov qword [rdi + 0x18], 0xf
mov byte [rdi], 0
lea rcx, [rbp - 0x30]
call fcn.180079c10
lea rcx, [rbp + 0x10]
call fcn.180078a40
lea rdx, [rbp + 0x10]
lea rcx, [rbp - 0x30]
call fcn.180079790
mov rcx, rax
call fcn.180078b60
mov edi, eax
mov rcx, rsi
call qword [sym.imp.WININET.dll_InternetCloseHandle]
nop
test rbx, rbx
je 0x1800a889f
mov rcx, qword [rbx]
mov r8, qword [rcx]
mov edx, 1
mov rcx, rbx
call r8
nop
mov rdx, qword [rbp + 0x68]
cmp rdx, 0xf
jbe 0x1800a88da
inc rdx
mov rcx, qword [rbp + 0x50]
mov rax, rcx
cmp rdx, 0x1000
jb 0x1800a88d5
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x1800a8dd7
call fcn.18010ff00
mov qword [rbp + 0x60], r15
mov qword [rbp + 0x68], 0xf
mov byte [rbp + 0x50], 0
mov edx, dword [rsp + 0x58]
movzx ecx, dl
sub ecx, 4
je 0x1800a8938
sub ecx, 2
je 0x1800a8900
cmp ecx, 1
jne 0x1800a894a
mov rbx, qword [rsp + 0x50]
test rbx, rbx
je 0x1800a894a
mov r8, qword [rbx]
mov r8, qword [r8 + 8]
mov rdx, rbx
mov rcx, rbx
call fcn.18010d7f0
mov edx, 0x58
mov rcx, qword [rbx]
call fcn.18010ff00
mov edx, 0x10
mov rcx, rbx
call fcn.18010ff00
jmp 0x1800a894a
shr edx, 8
test dl, 1
je 0x1800a894a
mov rcx, qword [rsp + 0x50]
call fcn.18011bb6c
mov qword [rsp + 0x50], r15
mov rbx, qword [rsp + 0x60]
test rbx, rbx
je 0x1800a8980
lea r9, [fcn.180079740]
mov edx, 0x20
lea r8d, [rdx - 0x1d]
mov rcx, rbx
call fcn.1801106a4
nop
mov edx, 0x60
mov rcx, rbx
call fcn.18010ff00
nop
mov qword [rbp - 0x70], r12
lea rcx, [rbp - 0x68]
call fcn.18010cee0
mov qword [rbp - 0x68], r15
mov rbx, qword [rbp - 0x58]
test rbx, rbx
je 0x1800a89c1
lea r9, [fcn.180079740]
mov edx, 0x20
lea r8d, [rdx - 0x1d]
mov rcx, rbx
call fcn.1801106a4
nop
mov edx, 0x60
mov rcx, rbx
call fcn.18010ff00
nop
mov rdx, qword [rbp + 8]
cmp rdx, 0xf
jbe 0x1800a89fc
inc rdx
mov rcx, qword [rbp - 0x10]
mov rax, rcx
cmp rdx, 0x1000
jb 0x1800a89f7
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x1800a8ddd
call fcn.18010ff00
mov rcx, r14
call qword [sym.imp.WININET.dll_InternetCloseHandle]
nop
mov rdx, qword [rbp + 0x48]
cmp rdx, 7
jbe 0x1800a8a46
lea rdx, [rdx*2 + 2]
mov rcx, qword [rbp + 0x30]
mov rax, rcx
cmp rdx, 0x1000
jb 0x1800a8a41
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x1800a8dd1
call fcn.18010ff00
mov qword [rbp + 0x40], r15
mov qword [rbp + 0x48], 7
mov word [rbp + 0x30], r15w
mov rdx, qword [rbp + 0x28]
cmp rdx, 0xf
jbe 0x1800a8a92
inc rdx
mov rcx, qword [rbp + 0x10]
mov rax, rcx
cmp rdx, 0x1000
jb 0x1800a8a8d
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x1800a8db9
call fcn.18010ff00
mov eax, edi
jmp 0x1800a8d89
lea rax, str.C:UserspoupoDownloadsTnyavnTos_GTA5_Mod_Menu_mainTnyavnTos_GTA5_Mod_Menu_main_srccheatupdate.cpp
mov qword [rsp + 0x78], rax
mov dword [rbp - 0x80], 0x37
lea rax, str.Cheat::update_check::GetLatest
mov qword [rbp - 0x78], rax
lea rax, str.Failed_to_parse_JSON_data:_0
mov qword [rsp + 0x40], rax
mov qword [rsp + 0x48], 0x1e
movaps xmm0, xmmword [rsp + 0x40]
movdqa xmmword [rsp + 0x40], xmm0
movups xmm1, xmmword [rsp + 0x78]
movaps xmmword [rbp - 0x30], xmm1
movsd xmm0, qword [rbp - 0x78]
movsd qword [rbp - 0x20], xmm0
lea rax, [rbp + 0x50]
mov qword [rsp + 0x20], rax
lea r9, [rsp + 0x40]
lea rdx, [rbp - 0x30]
mov rcx, qword [0x1802d01a8]
call fcn.1800a8df0
nop
test rbx, rbx
je 0x1800a8b1c
mov rax, qword [rbx]
mov edx, 1
mov rcx, rbx
call qword [rax]
nop
mov rdx, qword [rbp + 0x68]
cmp rdx, 0xf
jbe 0x1800a8b57
inc rdx
mov rcx, qword [rbp + 0x50]
mov rax, rcx
cmp rdx, 0x1000
jb 0x1800a8b52
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x1800a8dd7
call fcn.18010ff00
mov qword [rbp + 0x60], r15
mov qword [rbp + 0x68], 0xf
mov byte [rbp + 0x50], 0
mov edx, dword [rsp + 0x58]
movzx ecx, dl
sub ecx, 4
je 0x1800a8bb5
sub ecx, 2
je 0x1800a8b7d
cmp ecx, 1
jne 0x1800a8bc7
mov rbx, qword [rsp + 0x50]
test rbx, rbx
je 0x1800a8bc7
mov r8, qword [rbx]
mov r8, qword [r8 + 8]
mov rdx, rbx
mov rcx, rbx
call fcn.18010d7f0
mov edx, 0x58
mov rcx, qword [rbx]
call fcn.18010ff00
mov edx, 0x10
mov rcx, rbx
call fcn.18010ff00
jmp 0x1800a8bc7
shr edx, 8
test dl, 1
je 0x1800a8bc7
mov rcx, qword [rsp + 0x50]
call fcn.18011bb6c
mov qword [rsp + 0x50], r15
mov rbx, qword [rsp + 0x60]
test rbx, rbx
je 0x1800a8bfd
lea r9, [fcn.180079740]
mov edx, 0x20
lea r8d, [rdx - 0x1d]
mov rcx, rbx
call fcn.1801106a4
nop
mov edx, 0x60
mov rcx, rbx
call fcn.18010ff00
nop
mov qword [rbp - 0x70], r12
lea rcx, [rbp - 0x68]
call fcn.18010cee0
mov qword [rbp - 0x68], r15
mov rbx, qword [rbp - 0x58]
test rbx, rbx
je 0x1800a8c3e
lea r9, [fcn.180079740]
mov edx, 0x20
lea r8d, [rdx - 0x1d]
mov rcx, rbx
call fcn.1801106a4
nop
mov edx, 0x60
mov rcx, rbx
call fcn.18010ff00
nop
mov rdx, qword [rbp + 8]
cmp rdx, 0xf
jbe 0x1800a8c79
inc rdx
mov rcx, qword [rbp - 0x10]
mov rax, rcx
cmp rdx, 0x1000
jb 0x1800a8c74
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x1800a8ddd
call fcn.18010ff00
mov qword [rbp], r15
mov qword [rbp + 8], 0xf
mov byte [rbp - 0x10], 0
mov rdx, qword [rbp + 0x48]
cmp rdx, 7
jbe 0x1800a8cc9
lea rdx, [rdx*2 + 2]
mov rcx, qword [rbp + 0x30]
mov rax, rcx
cmp rdx, 0x1000
jb 0x1800a8cc4
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x1800a8de3
call fcn.18010ff00
mov qword [rbp + 0x40], r15
mov qword [rbp + 0x48], 7
mov word [rbp + 0x30], r15w
mov rdx, qword [rbp + 0x28]
cmp rdx, 0xf
jbe 0x1800a8d87
inc rdx
mov rcx, qword [rbp + 0x10]
mov rax, rcx
cmp rdx, 0x1000
jb 0x1800a8d14
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x1800a8de9
call fcn.18010ff00
jmp 0x1800a8d87
lea rax, str.api.github.com_unreachable__check_your_network_configuration
mov qword [rsp + 0x40], rax
mov qword [rsp + 0x48], 0x3c
lea rax, str.C:UserspoupoDownloadsTnyavnTos_GTA5_Mod_Menu_mainTnyavnTos_GTA5_Mod_Menu_main_srccheatupdate.cpp
mov qword [rsp + 0x78], rax
mov dword [rbp - 0x80], 0x13
lea rax, str.Cheat::update_check::GetLatest
mov qword [rbp - 0x78], rax
movaps xmm0, xmmword [rsp + 0x40]
movdqa xmmword [rsp + 0x40], xmm0
movups xmm1, xmmword [rsp + 0x78]
movaps xmmword [rbp - 0x30], xmm1
movsd xmm0, qword [rbp - 0x78]
movsd qword [rbp - 0x20], xmm0
lea r9, [rsp + 0x40]
mov r8d, 3
lea rdx, [rbp - 0x30]
mov rcx, qword [0x1802d01a8]
call fcn.18007e350
xor eax, eax
mov rcx, qword [rbp + 0x888]
xor rcx, rsp
call fcn.18010fee0
lea r11, [rsp + 0x990]
mov rbx, qword [r11 + 0x20]
mov rsi, qword [r11 + 0x28]
mov rdi, qword [r11 + 0x30]
mov r12, qword [r11 + 0x38]
mov rsp, r11
pop r15
pop r14
pop rbp
ret
call fcn.18011bf24
nop
call fcn.18011bf24
nop
call fcn.180110510
nop
call fcn.18011bf24
nop
call fcn.18011bf24
nop
call fcn.18011bf24
nop
call fcn.18011bf24
nop
call fcn.18011bf24
nop
call fcn.18011bf24
int3