Function at 0x140002780
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.14001d7d0
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, [0x140030f98]
call qword [sym.imp.WININET.dll_InternetOpenW]
mov rdi, rax
test rax, rax
je 0x140002b32
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 0x14000282a
mov rcx, rdi
call qword [sym.imp.WININET.dll_InternetCloseHandle]
jmp 0x140002b32
lea rcx, [rbp + 0x60]
call fcn.140004280
nop
mov rcx, rbx
cmp qword [rbp + 0x100], 0
jne 0x140002869
call qword [sym.imp.WININET.dll_InternetCloseHandle]
mov rcx, rdi
call qword [sym.imp.WININET.dll_InternetCloseHandle]
nop
lea rcx, [rbp + 0x108]
call fcn.140004330
lea rbx, vtable.std::ios_base.0
jmp 0x140002b1f
lea r9, [rbp + 0x11a8]
mov r8d, 0x1000
lea rdx, [rbp + 0x170]
call qword [sym.imp.WININET.dll_InternetReadFile]
test eax, eax
je 0x1400028ce
nop word [rax + rax]
mov eax, dword [rbp + 0x11a8]
test eax, eax
je 0x1400028ce
mov r8d, eax
lea rdx, [rbp + 0x170]
lea rcx, [rbp + 0x60]
call fcn.1400035f0
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 0x140002890
lea rcx, [rbp + 0x68]
call fcn.1400061b0
test rax, rax
jne 0x140002901
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 0x1400028f9
or edx, 4
xor r8d, r8d
call fcn.140001e70
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.140004f20
nop
cmp qword [rbp - 8], 0
jne 0x140002948
lea rcx, [rbp]
call fcn.140004fd0
lea rbx, vtable.std::ios_base.0
mov qword [rbp], rbx
lea rcx, [rbp]
call fcn.140008db0
nop
jmp 0x140002b13
mov rcx, qword [rsp + 0x50]
movsxd rax, dword [rcx + 4]
test byte [rsp + rax + 0x60], 6
jne 0x14000298a
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 0x140002994
mov rdx, qword [0x14002ca60]
mov rax, r13
movsxd rbx, eax
add rbx, rdx
movsxd rax, dword [rcx + 4]
test byte [rsp + rax + 0x60], 6
jne 0x140002a00
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 [0x14002ca60]
jne 0x140002a00
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 0x1400029f8
or edx, 4
xor r8d, r8d
call fcn.140001e70
mov rcx, rbx
call fcn.14000c3ec
mov qword [rsi], rax
mov r8, rbx
mov rdx, rax
lea rcx, [rsp + 0x50]
call fcn.140003a10
mov rcx, qword [rax]
movsxd rdx, dword [rcx + 4]
add rdx, rax
test byte [rdx + 0x10], 6
cmovne rdx, r13
test rdx, rdx
je 0x140002ab0
mov dword [r12], ebx
lea rcx, [rsp + 0x60]
call fcn.1400061b0
test rax, rax
jne 0x140002a6c
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 0x140002a63
or edx, 4
xor r8d, r8d
call fcn.140001e70
nop
lea rcx, [rbp]
call fcn.140004fd0
lea rbx, vtable.std::ios_base.0
mov qword [rbp], rbx
lea rcx, [rbp]
call fcn.140008db0
nop
lea rcx, [rbp + 0x108]
call fcn.140004330
mov qword [rbp + 0x108], rbx
lea rcx, [rbp + 0x108]
call fcn.140008db0
mov al, 1
jmp 0x140002b34
mov rcx, qword [rsi]
call fcn.14000e3cc
mov qword [rsi], r13
mov dword [r12], r13d
lea rcx, [rsp + 0x60]
call fcn.1400061b0
test rax, rax
jne 0x140002af5
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 0x140002aec
or edx, 4
xor r8d, r8d
call fcn.140001e70
nop
lea rcx, [rbp]
call fcn.140004fd0
lea rbx, vtable.std::ios_base.0
mov qword [rbp], rbx
lea rcx, [rbp]
call fcn.140008db0
nop
lea rcx, [rbp + 0x108]
call fcn.140004330
mov qword [rbp + 0x108], rbx
lea rcx, [rbp + 0x108]
call fcn.140008db0
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