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

Disassembly:
mov qword [rsp + 0x20], rbx
push rbp
push rsi
push rdi
push r12
push r14
lea rbp, [rsp - 0x37]
sub rsp, 0x100
mov rax, qword [0x1403768c0]
xor rax, rsp
mov qword [rbp + 0x27], rax
mov rdi, r8
mov r14, rdx
mov rsi, rcx
cmp qword [rcx], 0
jne 0x140050cd9
xorps xmm0, xmm0
movups xmmword [rbp + 0x17], xmm0
and dword [rsp + 0x20], 0
xor r9d, r9d
xor r8d, r8d
lea edx, [r9 + 1]
lea rcx, [0x1402f9d20]
call qword [sym.imp.WININET.dll_InternetOpenA]
mov rbx, rax
mov rax, qword [sym.imp.WININET.dll_InternetCloseHandle]
mov qword [rbp + 0x17], rax
mov qword [rbp + 0x1f], rbx
test rbx, rbx
je 0x140050d1f
xorps xmm0, xmm0
movups xmmword [rbp - 1], xmm0
and qword [rsp + 0x28], 0
mov dword [rsp + 0x20], 0x80000000
xor r9d, r9d
xor r8d, r8d
mov rdx, qword [rdi]
mov rcx, rbx
call qword [sym.imp.WININET.dll_InternetOpenUrlA]
mov rdi, rax
mov rax, qword [sym.imp.WININET.dll_InternetCloseHandle]
mov qword [rbp - 1], rax
mov qword [rbp + 7], rdi
test rdi, rdi
je 0x140050d40
xor eax, eax
mov qword [rbp - 0x41], rax
xorps xmm1, xmm1
movdqu xmmword [rbp - 0x51], xmm1
and qword [rbp - 0x41], rax
mov qword [rbp - 0x59], rax
movdqu xmmword [rbp - 0x69], xmm1
and qword [rbp - 0x59], rax
mov r12d, 0x1000
mov edx, r12d
lea rcx, [rbp - 0x69]
call fcn.140050620
nop
and dword [rbp - 0x71], 0
jmp 0x140050bc0
mov eax, dword [rbp - 0x71]
test eax, eax
je 0x140050bd8
mov r9d, eax
mov r8, qword [rbp - 0x69]
mov rdx, qword [rbp - 0x49]
lea rcx, [rbp - 0x51]
call fcn.1400506a8
lea r9, [rbp - 0x71]
mov r8d, r12d
mov rdx, qword [rbp - 0x69]
mov rcx, rdi
call qword [sym.imp.WININET.dll_InternetReadFile]
test eax, eax
jne 0x140050ba5
or eax, 0xffffffff
mov dword [rbp - 0x39], eax
mov dword [rbp - 0x35], eax
mov dword [rbp - 0x31], eax
mov dword [rbp - 0x2d], eax
mov dword [rbp - 0x29], eax
or dword [rbp - 0x25], 0xffffffff
mov dword [rbp - 0x21], eax
mov dword [rbp - 0x1d], eax
mov dword [rbp - 0x19], eax
mov dword [rbp - 0x15], 0xfffffffd
mov dword [rbp - 0x11], eax
mov dword [rbp - 0xd], eax
and qword [rbp - 9], 0
mov r8, qword [rbp - 0x49]
mov rdx, qword [rbp - 0x51]
sub r8, rdx
and qword [rsp + 0x30], 0
mov qword [rsp + 0x28], rsi
and qword [rsp + 0x20], 0
lea r9, [rbp - 0x39]
mov rcx, r14
call sub.d3dx11_43.dll_D3DX11CreateShaderResourceViewFromMemory
test eax, eax
js 0x140050cfc
mov rcx, qword [rbp - 0x69]
test rcx, rcx
je 0x140050c7f
mov rdx, qword [rbp - 0x59]
sub rdx, rcx
mov rax, rcx
cmp rdx, r12
jb 0x140050c6d
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x140050c6d
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.14015a4ac
xorps xmm0, xmm0
movdqu xmmword [rbp - 0x69], xmm0
and qword [rbp - 0x59], 0
mov rcx, qword [rbp - 0x51]
test rcx, rcx
je 0x140050cc5
mov rdx, qword [rbp - 0x41]
sub rdx, rcx
mov rax, rcx
cmp rdx, r12
jb 0x140050cb3
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x140050cb3
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.14015a4ac
xorps xmm0, xmm0
movdqu xmmword [rbp - 0x51], xmm0
and qword [rbp - 0x41], 0
mov rcx, rdi
call qword [sym.imp.WININET.dll_InternetCloseHandle]
nop
mov rcx, rbx
call qword [sym.imp.WININET.dll_InternetCloseHandle]
nop
mov rcx, qword [rbp + 0x27]
xor rcx, rsp
call fcn.14015a2d0
mov rbx, qword [rsp + 0x148]
add rsp, 0x100
pop r14
pop r12
pop rdi
pop rsi
pop rbp
ret
lea rdx, str.D3DX11CreateShaderResourceViewFromMemory_failed
lea rcx, [rsp + 0x40]
call fcn.140050914
lea rdx, [0x1403710a8]
lea rcx, [rsp + 0x40]
call sub.VCRUNTIME140.dll__CxxThrowException
nop
lea rdx, str.InternetOpenA_failed
lea rcx, [rbp - 1]
call fcn.140050914
lea rdx, [0x1403710a8]
lea rcx, [rbp - 1]
call sub.VCRUNTIME140.dll__CxxThrowException
nop
lea rdx, str.InternetOpenUrl_failed
lea rcx, [rsp + 0x40]
call fcn.140050914
lea rdx, [0x1403710a8]
lea rcx, [rsp + 0x40]
call sub.VCRUNTIME140.dll__CxxThrowException
int3