Function at 0x140049b40
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 [0x140080040]
xor rax, rsp
mov qword [rbp + 0x17], rax
mov rbx, r8
mov r15, rdx
mov r14, rcx
cmp qword [rcx], 0
jne 0x140049db4
xorps xmm0, xmm0
movups xmmword [rbp + 7], xmm0
xor r12d, r12d
mov dword [rsp + 0x20], r12d
xor r9d, r9d
xor r8d, r8d
lea edx, [r12 + 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 0x140049dfc
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 0x140049e1d
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.1400689f4
test rax, rax
je 0x140049dd2
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 fcn.1400699d2
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 0x140049ca8
mov eax, dword [rsp + 0x58]
test eax, eax
je 0x140049ca8
mov r9d, eax
mov r8, qword [rbp - 0x79]
mov rdx, qword [rbp - 0x59]
lea rcx, [rbp - 0x61]
call fcn.140049fc0
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 0x140049c70
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 0x140049dd9
mov rcx, qword [rbp - 0x79]
test rcx, rcx
je 0x140049d57
mov rdx, qword [rbp - 0x69]
sub rdx, rcx
mov rax, rcx
cmp rdx, 0x1000
jb 0x140049d46
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x140049dd2
call fcn.14006868c
xorps xmm0, xmm0
movdqu xmmword [rbp - 0x79], xmm0
mov qword [rbp - 0x69], r12
mov rcx, qword [rbp - 0x61]
test rcx, rcx
je 0x140049da0
mov rdx, qword [rbp - 0x51]
sub rdx, rcx
mov rax, rcx
cmp rdx, 0x1000
jb 0x140049d8f
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x140049d8f
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.14006868c
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.1400683d0
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.140049a60
lea rdx, [0x14007d6d0]
lea rcx, [rsp + 0x40]
call sub.VCRUNTIME140.dll__CxxThrowException
nop
lea rdx, str.InternetOpenA_failed
lea rcx, [rbp - 0x11]
call fcn.140049a60
lea rdx, [0x14007d6d0]
lea rcx, [rbp - 0x11]
call sub.VCRUNTIME140.dll__CxxThrowException
nop
lea rdx, str.InternetOpenUrl_failed
lea rcx, [rsp + 0x40]
call fcn.140049a60
lea rdx, [0x14007d6d0]
lea rcx, [rsp + 0x40]
call sub.VCRUNTIME140.dll__CxxThrowException
int3