Function at 0x1400229a0
Capabilities:
Connect to http server
Create http request
Query remote server for available data
Read data from internet
Receive data
Send data
Send http request

Disassembly:
push rbp
push rbx
push rsi
push rdi
push r12
push r13
push r14
push r15
lea rbp, [rsp - 0x118]
sub rsp, 0x218
mov rax, qword [0x140067040]
xor rax, rsp
mov qword [rbp + 0x100], rax
mov r13, r9
mov r14, r8
mov r12, rdx
mov rsi, rcx
mov r15, qword [rbp + 0x188]
xor ebx, ebx
mov edi, ebx
mov dword [rsp + 0x20], ebx
xor r9d, r9d
xor r8d, r8d
xor edx, edx
xor ecx, ecx
call qword [sym.imp.WININET.dll_InternetOpenW]
mov qword [rbp + 0x20], rax
test rax, rax
je 0x140022d42
lea rax, vtable.std::_Func_impl_no_alloc_class__public:_void____ptr64___cdecl_InetSend::request_wchar_t_const____ptr64__wchar_t_const____ptr64__void____ptr64__unsigned_long_int__unsigned_long_int____ptr64____ptr64::_2::_lambda_1___void___.0
mov qword [rsp + 0x50], rax
lea rax, [rbp + 0x20]
mov qword [rsp + 0x58], rax
lea rax, [rsp + 0x50]
mov qword [rbp - 0x78], rax
mov qword [rbp + 0xf8], rbx
lea rdx, [rbp + 0xc0]
lea rcx, [rsp + 0x50]
call fcn.140022ff0
mov qword [rbp + 0xf8], rax
mov rcx, qword [rbp - 0x78]
test rcx, rcx
je 0x140022a60
mov rax, qword [rcx]
lea rdx, [rsp + 0x50]
cmp rcx, rdx
setne dl
call qword [rax + 0x20]
mov qword [rbp - 0x78], rbx
mov dword [rbp + 0x30], 0x7530
mov dword [rsp + 0x40], 2
mov dword [rsp + 0x44], 6
mov dword [rsp + 0x48], 5
nop
mov r9d, 4
lea r8, [rbp + 0x30]
mov edx, dword [rsp + rbx*4 + 0x40]
mov rcx, qword [rbp + 0x20]
call qword [sym.imp.WININET.dll_InternetSetOptionW]
inc rbx
cmp rbx, 3
jb 0x140022a80
xor ebx, ebx
mov qword [rsp + 0x38], rbx
mov dword [rsp + 0x30], ebx
mov dword [rsp + 0x28], 3
mov qword [rsp + 0x20], rbx
xor r9d, r9d
movzx r8d, word [rsi + 0x14]
mov rdx, qword [rsi]
mov rcx, qword [rbp + 0x20]
call qword [sym.imp.WININET.dll_InternetConnectW]
mov qword [rbp + 0x28], rax
test rax, rax
jne 0x140022ade
mov edi, ebx
jmp 0x140022d0d
lea rax, vtable.std::_Func_impl_no_alloc_class__public:_void____ptr64___cdecl_InetSend::request_wchar_t_const____ptr64__wchar_t_const____ptr64__void____ptr64__unsigned_long_int__unsigned_long_int____ptr64____ptr64::_2::_lambda_2___void___.0
mov qword [rbp - 0x70], rax
lea rax, [rbp + 0x28]
mov qword [rbp - 0x68], rax
lea rax, [rbp - 0x70]
mov qword [rbp - 0x38], rax
mov qword [rbp + 0xb8], rbx
lea rdx, [rbp + 0x80]
lea rcx, [rbp - 0x70]
call fcn.140022fc0
mov qword [rbp + 0xb8], rax
mov rcx, qword [rbp - 0x38]
test rcx, rcx
je 0x140022b34
mov rax, qword [rcx]
lea rdx, [rbp - 0x70]
cmp rcx, rdx
setne dl
call qword [rax + 0x20]
mov qword [rbp - 0x38], rbx
mov eax, 0x80403000
mov ecx, 0x80803000
cmp byte [rsi + 0x16], 2
cmove eax, ecx
mov dword [rbp + 0x14], eax
mov qword [rsp + 0x38], rbx
mov dword [rsp + 0x30], eax
mov qword [rsp + 0x28], rbx
mov qword [rsp + 0x20], rbx
xor r9d, r9d
mov r8, qword [rsi + 8]
mov rdx, r12
mov rcx, qword [rbp + 0x28]
call qword [sym.imp.WININET.dll_HttpOpenRequestW]
mov qword [rbp + 0x18], rax
test rax, rax
jne 0x140022b80
mov rdi, rbx
jmp 0x140022cd1
lea rax, vtable.std::_Func_impl_no_alloc_class__public:_void____ptr64___cdecl_InetSend::request_wchar_t_const____ptr64__wchar_t_const____ptr64__void____ptr64__unsigned_long_int__unsigned_long_int____ptr64____ptr64::_2::_lambda_3___void___.0
mov qword [rbp - 0x30], rax
lea rax, [rbp + 0x18]
mov qword [rbp - 0x28], rax
lea rax, [rbp - 0x30]
mov qword [rbp + 8], rax
mov qword [rbp + 0x78], rbx
lea rdx, [rbp + 0x40]
lea rcx, [rbp - 0x30]
call fcn.140022f90
mov qword [rbp + 0x78], rax
mov rcx, qword [rbp + 8]
test rcx, rcx
je 0x140022bcd
mov rax, qword [rcx]
lea rdx, [rbp - 0x30]
cmp rcx, rdx
setne dl
call qword [rax + 0x20]
mov qword [rbp + 8], rbx
mov dword [rbp + 0x38], 4
mov dword [rbp + 0x14], ebx
lea r9, [rbp + 0x38]
lea r8, [rbp + 0x14]
mov edx, 0x1f
mov rcx, qword [rbp + 0x18]
call qword [sym.imp.WININET.dll_InternetQueryOptionW]
test eax, eax
je 0x140022c11
or dword [rbp + 0x14], 0x3180
mov r9d, 4
lea r8, [rbp + 0x14]
lea edx, [r9 + 0x1b]
mov rcx, qword [rbp + 0x18]
call qword [sym.imp.WININET.dll_InternetSetOptionW]
mov rax, r14
neg rax
sbb r8d, r8d
mov eax, dword [rbp + 0x180]
mov dword [rsp + 0x20], eax
mov r9, r13
mov rdx, r14
mov rcx, qword [rbp + 0x18]
call qword [sym.imp.WININET.dll_HttpSendRequestW]
test eax, eax
jne 0x140022c3d
mov rdi, rbx
jmp 0x140022ca1
xor esi, esi
lea r14, [rsi - 1]
mov dword [rbp + 0x10], esi
xor r9d, r9d
xor r8d, r8d
lea rdx, [rbp + 0x10]
mov rcx, qword [rbp + 0x18]
call qword [sym.imp.WININET.dll_InternetQueryDataAvailable]
test eax, eax
je 0x140022c90
mov edx, ebx
add edx, dword [rbp + 0x10]
cmovb rdx, r14
mov rcx, rdi
call fcn.14002b420
mov rdi, rax
mov edx, ebx
add rdx, rax
lea r9, [rbp + 0x10]
mov r8d, dword [rbp + 0x10]
mov rcx, qword [rbp + 0x18]
call qword [sym.imp.WININET.dll_InternetReadFile]
mov eax, dword [rbp + 0x10]
add ebx, eax
jmp 0x140022c93
mov eax, dword [rbp + 0x10]
test eax, eax
jne 0x140022c43
test r15, r15
je 0x140022c9f
mov dword [r15], ebx
xor ebx, ebx
mov rcx, qword [rbp + 0x78]
test rcx, rcx
je 0x140022d6b
mov rax, qword [rcx]
call qword [rax + 0x10]
mov rcx, qword [rbp + 0x78]
test rcx, rcx
je 0x140022cd1
mov rax, qword [rcx]
lea rdx, [rbp + 0x40]
cmp rcx, rdx
setne dl
call qword [rax + 0x20]
mov qword [rbp + 0x78], rbx
mov rcx, qword [rbp + 0xb8]
test rcx, rcx
je 0x140022d71
mov rax, qword [rcx]
call qword [rax + 0x10]
mov rcx, qword [rbp + 0xb8]
test rcx, rcx
je 0x140022d0d
mov rax, qword [rcx]
lea rdx, [rbp + 0x80]
cmp rcx, rdx
setne dl
call qword [rax + 0x20]
mov qword [rbp + 0xb8], rbx
mov rcx, qword [rbp + 0xf8]
test rcx, rcx
je 0x140022d65
mov rdx, qword [rcx]
call qword [rdx + 0x10]
mov rcx, qword [rbp + 0xf8]
test rcx, rcx
je 0x140022d3f
mov r8, qword [rcx]
lea rax, [rbp + 0xc0]
cmp rcx, rax
setne dl
call qword [r8 + 0x20]
mov rax, rdi
mov rcx, qword [rbp + 0x100]
xor rcx, rsp
call fcn.1400236d0
add rsp, 0x218
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbx
pop rbp
ret
call fcn.140024790
nop
call fcn.140024790
nop
call fcn.140024790
int3