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

Disassembly:
push rbp
push rbx
push rsi
push rdi
push r12
push r14
push r15
lea rbp, [rsp - 0x27]
sub rsp, 0x100
mov rax, qword [0x140190040]
xor rax, rsp
mov qword [rbp + 0x17], rax
mov rbx, r8
mov r15, rdx
mov r14, rcx
cmp qword [rcx], 0
jne 0x140058944
xorps xmm0, xmm0
movups xmmword [rbp + 7], xmm0
xor r12d, r12d
mov dword [rsp + 0x20], r12d
xor r9d, r9d
xor r8d, r8d
mov edx, 1
lea rcx, str.ImGui_ImageLoader
call qword [sym.imp.WININET.dll_InternetOpenA]
mov rsi, rax
mov rax, qword [sym.imp.WININET.dll_InternetCloseHandle]
mov qword [rbp + 7], rax
mov qword [rbp + 0xf], rsi
test rsi, rsi
je 0x14005898c
xorps xmm0, xmm0
movups xmmword [rbp - 0x11], xmm0
mov qword [rsp + 0x28], r12
mov dword [rsp + 0x20], 0x80000000
xor r9d, r9d
xor r8d, r8d
mov rdx, qword [rbx]
mov rcx, rsi
call qword [sym.imp.WININET.dll_InternetOpenUrlA]
mov rdi, rax
mov rax, qword [sym.imp.WININET.dll_InternetCloseHandle]
mov qword [rbp - 0x11], rax
mov qword [rbp - 9], rdi
test rdi, rdi
je 0x1400589ad
xorps xmm1, xmm1
movdqu xmmword [rbp - 0x61], xmm1
mov qword [rbp - 0x51], r12
movdqu xmmword [rbp - 0x79], xmm1
mov qword [rbp - 0x69], r12
mov ecx, 0x1027
call fcn.14005968c
test rax, rax
je 0x140058962
lea rcx, [rax + 0x27]
and rcx, 0xffffffffffffffe0
mov qword [rcx - 8], rax
mov qword [rbp - 0x79], rcx
lea rbx, [rcx + 0x1000]
mov qword [rbp - 0x69], rbx
xor edx, edx
mov r8d, 0x1000
call sub.VCRUNTIME140.dll_memset
mov qword [rbp - 0x71], rbx
mov dword [rsp + 0x58], r12d
lea r9, [rsp + 0x58]
mov r8d, 0x1000
mov rdx, qword [rbp - 0x79]
mov rcx, rdi
call qword [sym.imp.WININET.dll_InternetReadFile]
test eax, eax
je 0x140058838
mov eax, dword [rsp + 0x58]
test eax, eax
je 0x140058838
mov r9d, eax
mov r8, qword [rbp - 0x79]
mov rdx, qword [rbp - 0x59]
lea rcx, [rbp - 0x61]
call fcn.140058a50
lea r9, [rsp + 0x58]
mov r8d, 0x1000
mov rdx, qword [rbp - 0x79]
mov rcx, rdi
call qword [sym.imp.WININET.dll_InternetReadFile]
test eax, eax
jne 0x140058800
mov qword [rbp - 0x49], 0xffffffffffffffff
mov qword [rbp - 0x41], 0xffffffffffffffff
mov qword [rbp - 0x39], 0xffffffffffffffff
mov qword [rbp - 0x31], 0xffffffffffffffff
mov dword [rbp - 0x29], 0xffffffff
mov qword [rbp - 0x25], 0xfffffffffffffffd
mov dword [rbp - 0x1d], 0xffffffff
mov qword [rbp - 0x19], r12
mov r8, qword [rbp - 0x59]
mov rdx, qword [rbp - 0x61]
sub r8, rdx
mov qword [rsp + 0x30], r12
mov qword [rsp + 0x28], r14
mov qword [rsp + 0x20], r12
lea r9, [rbp - 0x49]
mov rcx, r15
call qword [sym.imp.d3dx11_43.dll_D3DX11CreateShaderResourceViewFromMemory]
test eax, eax
js 0x140058969
mov rcx, qword [rbp - 0x79]
test rcx, rcx
je 0x1400588e7
mov rdx, qword [rbp - 0x69]
sub rdx, rcx
mov rax, rcx
cmp rdx, 0x1000
jb 0x1400588d6
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x140058962
call fcn.140059910
xorps xmm0, xmm0
movdqu xmmword [rbp - 0x79], xmm0
mov qword [rbp - 0x69], r12
mov rcx, qword [rbp - 0x61]
test rcx, rcx
je 0x140058930
mov rdx, qword [rbp - 0x51]
sub rdx, rcx
mov rax, rcx
cmp rdx, 0x1000
jb 0x14005891f
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x14005891f
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.140059910
xorps xmm0, xmm0
movdqu xmmword [rbp - 0x61], xmm0
mov qword [rbp - 0x51], r12
mov rcx, rdi
call qword [sym.imp.WININET.dll_InternetCloseHandle]
nop
mov rcx, rsi
call qword [sym.imp.WININET.dll_InternetCloseHandle]
nop
mov rcx, qword [rbp + 0x17]
xor rcx, rsp
call fcn.1400593d0
add rsp, 0x100
pop r15
pop r14
pop r12
pop rdi
pop rsi
pop rbx
pop rbp
ret
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
nop
lea rdx, str.D3DX11CreateShaderResourceViewFromMemory_failed
lea rcx, [rsp + 0x40]
call fcn.1400435a0
lea rdx, [0x14018da38]
lea rcx, [rsp + 0x40]
call sub.VCRUNTIME140.dll__CxxThrowException
nop
lea rdx, str.InternetOpenA_failed
lea rcx, [rbp - 0x11]
call fcn.1400435a0
lea rdx, [0x14018da38]
lea rcx, [rbp - 0x11]
call sub.VCRUNTIME140.dll__CxxThrowException
nop
lea rdx, str.InternetOpenUrl_failed
lea rcx, [rsp + 0x40]
call fcn.1400435a0
lea rdx, [0x14018da38]
lea rcx, [rsp + 0x40]
call sub.VCRUNTIME140.dll__CxxThrowException
int3