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

Disassembly:
push rbp
push r12
push r13
lea rbp, [rsp - 0x1170]
mov eax, 0x1270
call fcn.140017a20
sub rsp, rax
mov qword [rsp + 0x48], 0xfffffffffffffffe
mov qword [rsp + 0x1290], rbx
mov qword [rsp + 0x1298], rsi
mov qword [rsp + 0x12a0], rdi
mov r12, r8
mov rsi, rdx
mov rbx, rcx
xor r13d, r13d
mov dword [rbp + 0x11a8], r13d
mov dword [rsp + 0x20], r13d
xor r9d, r9d
xor r8d, r8d
xor edx, edx
lea rcx, [0x1400294b0]
call qword [sym.imp.WININET.dll_InternetOpenW]
mov rdi, rax
test rax, rax
je 0x140002632
mov qword [rsp + 0x28], r13
mov dword [rsp + 0x20], 0x4000000
xor r9d, r9d
xor r8d, r8d
mov rdx, rbx
mov rcx, rax
call qword [sym.imp.WININET.dll_InternetOpenUrlW]
mov rbx, rax
test rax, rax
jne 0x14000232a
mov rcx, rdi
call qword [sym.imp.WININET.dll_InternetCloseHandle]
jmp 0x140002632
lea rcx, [rbp + 0x60]
call fcn.140003620
nop
mov rcx, rbx
cmp qword [rbp + 0x100], 0
jne 0x140002369
call qword [sym.imp.WININET.dll_InternetCloseHandle]
mov rcx, rdi
call qword [sym.imp.WININET.dll_InternetCloseHandle]
nop
lea rcx, [rbp + 0x108]
call fcn.1400036d0
lea rbx, vtable.std::ios_base.0
jmp 0x14000261f
lea r9, [rbp + 0x11a8]
mov r8d, 0x1000
lea rdx, [rbp + 0x170]
call qword [sym.imp.WININET.dll_InternetReadFile]
test eax, eax
je 0x1400023ce
nop word [rax + rax]
mov eax, dword [rbp + 0x11a8]
test eax, eax
je 0x1400023ce
mov r8d, eax
lea rdx, [rbp + 0x170]
lea rcx, [rbp + 0x60]
call fcn.140002d50
lea r9, [rbp + 0x11a8]
mov r8d, 0x1000
lea rdx, [rbp + 0x170]
mov rcx, rbx
call qword [sym.imp.WININET.dll_InternetReadFile]
test eax, eax
jne 0x140002390
lea rcx, [rbp + 0x68]
call fcn.140005230
test rax, rax
jne 0x140002401
mov rax, qword [rbp + 0x60]
movsxd rcx, dword [rax + 4]
lea rcx, [rbp + rcx + 0x60]
mov edx, dword [rcx + 0x10]
or edx, 2
cmp qword [rcx + 0x48], 0
jne 0x1400023f9
or edx, 4
xor r8d, r8d
call fcn.140001d70
mov rcx, rbx
call qword [sym.imp.WININET.dll_InternetCloseHandle]
mov rcx, rdi
call qword [sym.imp.WININET.dll_InternetCloseHandle]
lea rcx, [rsp + 0x50]
call fcn.1400042c0
nop
cmp qword [rbp - 8], 0
jne 0x140002448
lea rcx, [rbp]
call fcn.140004370
lea rbx, vtable.std::ios_base.0
mov qword [rbp], rbx
lea rcx, [rbp]
call fcn.1400072f8
nop
jmp 0x140002613
mov rcx, qword [rsp + 0x50]
movsxd rax, dword [rcx + 4]
test byte [rsp + rax + 0x60], 6
jne 0x14000248a
mov rcx, qword [rbp + rax - 0x68]
mov rax, qword [rcx]
mov dword [rsp + 0x20], 1
mov r9d, 1
xor r8d, r8d
lea rdx, [rsp + 0x30]
call qword [rax + 0x50]
mov rcx, qword [rsp + 0x50]
mov rax, qword [rsp + 0x38]
mov rdx, qword [rsp + 0x30]
jmp 0x140002494
mov rdx, qword [0x1400254c0]
mov rax, r13
movsxd rbx, eax
add rbx, rdx
movsxd rax, dword [rcx + 4]
test byte [rsp + rax + 0x60], 6
jne 0x140002500
movsxd rax, dword [rcx + 4]
mov rcx, qword [rbp + rax - 0x68]
mov rax, qword [rcx]
mov dword [rsp + 0x20], 1
xor r9d, r9d
xor r8d, r8d
lea rdx, [rsp + 0x30]
call qword [rax + 0x50]
movsxd r11, dword [rsp + 0x38]
add r11, qword [rsp + 0x30]
cmp r11, qword [0x1400254c0]
jne 0x140002500
mov rax, qword [rsp + 0x50]
movsxd rcx, dword [rax + 4]
lea rcx, [rsp + rcx + 0x50]
mov edx, dword [rcx + 0x10]
or edx, 2
cmp qword [rcx + 0x48], 0
jne 0x1400024f8
or edx, 4
xor r8d, r8d
call fcn.140001d70
mov rcx, rbx
call fcn.1400082c4
mov qword [rsi], rax
mov r8, rbx
mov rdx, rax
lea rcx, [rsp + 0x50]
call fcn.140002f40
mov rcx, qword [rax]
movsxd rdx, dword [rcx + 4]
add rdx, rax
test byte [rdx + 0x10], 6
cmovne rdx, r13
test rdx, rdx
je 0x1400025b0
mov dword [r12], ebx
lea rcx, [rsp + 0x60]
call fcn.140005230
test rax, rax
jne 0x14000256c
mov rax, qword [rsp + 0x50]
movsxd rcx, dword [rax + 4]
lea rcx, [rsp + rcx + 0x50]
mov edx, dword [rcx + 0x10]
or edx, 2
cmp qword [rcx + 0x48], 0
jne 0x140002563
or edx, 4
xor r8d, r8d
call fcn.140001d70
nop
lea rcx, [rbp]
call fcn.140004370
lea rbx, vtable.std::ios_base.0
mov qword [rbp], rbx
lea rcx, [rbp]
call fcn.1400072f8
nop
lea rcx, [rbp + 0x108]
call fcn.1400036d0
mov qword [rbp + 0x108], rbx
lea rcx, [rbp + 0x108]
call fcn.1400072f8
mov al, 1
jmp 0x140002634
mov rcx, qword [rsi]
call fcn.140009b3c
mov qword [rsi], r13
mov dword [r12], r13d
lea rcx, [rsp + 0x60]
call fcn.140005230
test rax, rax
jne 0x1400025f5
mov rax, qword [rsp + 0x50]
movsxd rcx, dword [rax + 4]
lea rcx, [rsp + rcx + 0x50]
mov edx, dword [rcx + 0x10]
or edx, 2
cmp qword [rcx + 0x48], 0
jne 0x1400025ec
or edx, 4
xor r8d, r8d
call fcn.140001d70
nop
lea rcx, [rbp]
call fcn.140004370
lea rbx, vtable.std::ios_base.0
mov qword [rbp], rbx
lea rcx, [rbp]
call fcn.1400072f8
nop
lea rcx, [rbp + 0x108]
call fcn.1400036d0
mov qword [rbp + 0x108], rbx
lea rcx, [rbp + 0x108]
call fcn.1400072f8
xor al, al
lea r11, [rsp + 0x1270]
mov rbx, qword [r11 + 0x20]
mov rsi, qword [r11 + 0x28]
mov rdi, qword [r11 + 0x30]
mov rsp, r11
pop r13
pop r12
pop rbp
ret