Function at 0x1400041e0
Capabilities:
Check http status code
Decode data using base64 via winapi
Get http content length
Query remote server for available data
Read data from internet
Receive data

Disassembly:
mov qword [rsp + 8], rbx
push rbp
push rsi
push rdi
push r12
push r13
push r14
push r15
mov rbp, rsp
sub rsp, 0x60
mov rax, qword [0x140025010]
xor rax, rsp
mov qword [rbp - 0x10], rax
mov r13d, dword [rbp + 0x68]
mov r12, r9
mov r15d, dword [rbp + 0x60]
mov r9d, r13d
mov dword [rbp - 0x20], r8d
lea r8, [rbp - 0x20]
call fcn.1400025e0
mov rsi, rax
test rax, rax
je 0x1400044cf
mov r14d, dword [rbp - 0x20]
xor ebx, ebx
mov edi, ebx
nop dword [rax]
nop dword [rax + rax]
mov r8d, r14d
lea rcx, vtable.CWebChannel.0
mov rdx, rsi
call fcn.1400028b0
test eax, eax
jne 0x14000425d
inc edi
cmp edi, 3
jl 0x140004240
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_LocalFree]
mov rcx, qword [0x140025a38]
test rcx, rcx
je 0x1400044cf
xor r9d, r9d
mov dword [rbp - 0x18], ebx
xor edx, edx
mov dword [rbp - 0x14], ebx
lea r8d, [r9 + 8]
call qword [sym.imp.WININET.dll_HttpEndRequestW]
mov rcx, qword [0x140025a38]
test eax, eax
je 0x1400044c2
lea r9, [rbp - 0x20]
mov dword [rbp - 0x20], 4
lea r8, [rbp - 0x18]
mov qword [rsp + 0x20], rbx
mov edx, 0x20000013
call qword [sym.imp.WININET.dll_HttpQueryInfoA]
test eax, eax
je 0x1400044bb
cmp dword [rbp - 0x18], 0xc8
jne 0x1400044bb
mov rcx, qword [0x140025a38]
lea r9, [rbp - 0x20]
lea r8, [rbp - 0x14]
mov dword [rbp - 0x20], 4
mov edx, 0x20000005
mov qword [rsp + 0x20], rbx
call qword [sym.imp.WININET.dll_HttpQueryInfoA]
test eax, eax
je 0x1400044bb
test r12, r12
je 0x1400044b4
test r15d, r15d
je 0x1400044b4
mov eax, 0xaaaaaaab
mov ecx, 0x40
mul r15d
shr edx, 1
lea r14d, [rdx*4 + 0x68]
mov edx, r14d
call qword [sym.imp.KERNEL32.dll_LocalAlloc]
mov rdi, rax
test rax, rax
je 0x1400044cf
mov dword [rbp - 0x20], ebx
mov esi, ebx
mov dword [rbp - 0x18], ebx
test r14d, r14d
je 0x1400043af
mov rcx, qword [0x140025a38]
lea rdx, [rbp - 0x20]
xor r9d, r9d
xor r8d, r8d
call qword [sym.imp.WININET.dll_InternetQueryDataAvailable]
test eax, eax
je 0x1400043af
mov r8d, dword [rbp - 0x20]
test r8d, r8d
je 0x1400043af
mov rcx, qword [0x140025a38]
lea eax, [r8 + rsi]
cmp eax, r14d
ja 0x140004475
mov edx, esi
lea r9, [rbp - 0x18]
add rdx, rdi
call qword [sym.imp.WININET.dll_InternetReadFile]
mov rcx, qword [0x140025a38]
lea rdx, [rbp - 0x20]
add esi, dword [rbp - 0x18]
xor r9d, r9d
xor r8d, r8d
mov dword [rbp - 0x20], ebx
call qword [sym.imp.WININET.dll_InternetQueryDataAvailable]
test eax, eax
jne 0x140004362
mov rcx, qword [0x140025a38]
call qword [sym.imp.WININET.dll_InternetCloseHandle]
mov qword [0x140025a38], rbx
test esi, esi
je 0x140004482
cmp esi, 4
jbe 0x14000444e
mov qword [rsp + 0x30], rbx
lea rax, [rbp - 0x20]
mov qword [rsp + 0x28], rbx
mov r9, rdi
mov r8d, 1
mov qword [rsp + 0x20], rax
mov edx, esi
mov dword [rbp - 0x20], esi
mov rcx, rdi
call qword [sym.imp.CRYPT32.dll_CryptStringToBinaryA]
test eax, eax
je 0x14000444e
mov ebx, dword [rbp - 0x20]
add ebx, 0xfffffffc
mov dword [rbp - 0x20], ebx
test r13d, r13d
je 0x140004426
mov r9d, 0x20
lea r8, [0x140025a44]
mov edx, ebx
mov rcx, rdi
call fcn.140001030
mov ebx, dword [rbp - 0x20]
mov r8d, ebx
test ebx, ebx
je 0x140004438
mov rdx, rdi
mov rcx, rdi
call fcn.1400085c0
mov eax, ebx
mov byte [rax + rdi], 0
mov eax, dword [rbp - 0x20]
mov byte [rax + rdi + 1], 0
mov ebx, dword [rbp - 0x20]
cmp ebx, r15d
ja 0x140004482
mov r8d, ebx
mov rax, r15
test ebx, ebx
je 0x1400044a7
mov rcx, r12
cmp rax, r8
jb 0x14000448d
mov rdx, rdi
call fcn.1400085c0
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_LocalFree]
mov eax, ebx
jmp 0x1400044d1
call qword [sym.imp.WININET.dll_InternetCloseHandle]
mov qword [0x140025a38], rbx
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_LocalFree]
jmp 0x1400044cf
mov r8, rax
xor edx, edx
call fcn.140005d00
call fcn.140008ccc
mov dword [rax], 0x22
call fcn.140008bac
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_LocalFree]
mov eax, ebx
jmp 0x1400044d1
mov eax, 1
jmp 0x1400044d1
mov rcx, qword [0x140025a38]
call qword [sym.imp.WININET.dll_InternetCloseHandle]
mov qword [0x140025a38], rbx
xor eax, eax
mov rcx, qword [rbp - 0x10]
xor rcx, rsp
call fcn.140004530
mov rbx, qword [rsp + 0xa0]
add rsp, 0x60
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
ret