Function at 0x1400377e0
Capabilities:
Connect to http server
Create http request
Read data from internet
Receive data
Send data
Send http request

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rsi
mov qword [rsp + 8], rcx
push rbp
push rdi
push r12
push r14
push r15
lea rbp, [rsp - 0x3e0]
sub rsp, 0x4e0
mov rsi, r9
mov r15, r8
mov r14, rdx
mov rdi, rcx
xor r12d, r12d
mov dword [rsp + 0x40], r12d
mov dword [rsp + 0x20], r12d
xor r9d, r9d
xor r8d, r8d
lea edx, [r12 + 1]
lea rcx, [0x140049f54]
call qword [sym.imp.WININET.dll_InternetOpenW]
mov rbx, rax
test rax, rax
je 0x140037b3e
mov rdx, r14
lea rcx, [rbp - 0x68]
call fcn.140037350
nop
lea rdx, [rbp - 0x68]
cmp qword [rbp - 0x50], 8
cmovae rdx, qword [rbp - 0x68]
mov r8d, 0x1bb
mov qword [rsp + 0x38], r12
mov dword [rsp + 0x30], r12d
mov dword [rsp + 0x28], 3
mov qword [rsp + 0x20], r12
xor r9d, r9d
mov rcx, rbx
call qword [sym.imp.WININET.dll_InternetConnectW]
mov rbx, rax
lea rcx, [rsp + 0x68]
test rax, rax
je 0x140037b5a
lea rax, [0x140049f80]
mov qword [rbp - 0x78], rax
mov qword [rbp - 0x70], r12
mov rdx, r15
call fcn.140037350
nop
lea r8, [rsp + 0x68]
cmp qword [rbp - 0x80], 8
cmovae r8, qword [rsp + 0x68]
mov qword [rsp + 0x38], r12
mov dword [rsp + 0x30], 0x4800100
lea rax, [rbp - 0x78]
mov qword [rsp + 0x28], rax
mov qword [rsp + 0x20], r12
lea r9, [0x140049f90]
lea rdx, [0x140049fa8]
mov rcx, rbx
call qword [sym.imp.WININET.dll_HttpOpenRequestW]
mov r15, rax
lea rcx, [rsp + 0x48]
test rax, rax
je 0x140037b71
mov rdx, rsi
call fcn.140037350
nop
cmp qword [rsp + 0x58], r12
je 0x140037940
lea rdx, [rsp + 0x48]
cmp qword [rsp + 0x60], 8
cmovae rdx, qword [rsp + 0x48]
mov r9d, 0x20000000
mov r8d, dword [rsp + 0x58]
mov rcx, r15
call qword [sym.imp.WININET.dll_HttpAddRequestHeadersW]
test eax, eax
je 0x140037b88
mov dword [rsp + 0x20], r12d
xor r9d, r9d
xor r8d, r8d
xor edx, edx
mov rcx, r15
call qword [sym.imp.WININET.dll_HttpSendRequestW]
test eax, eax
je 0x140037b24
mov qword [rdi], r12
mov qword [rdi + 0x10], r12
mov qword [rdi + 0x18], 0xf
mov byte [rdi], 0
mov dword [rsp + 0x40], 1
mov eax, 0xffffffff
mov dword [rbp + 0x430], eax
test eax, eax
je 0x140037a12
lea r9, [rbp + 0x430]
mov r8d, 0x400
lea rdx, [rbp - 0x20]
mov rcx, r15
call qword [sym.imp.WININET.dll_InternetReadFile]
mov r14d, eax
mov esi, dword [rbp + 0x430]
mov rdx, qword [rdi + 0x10]
mov r8, qword [rdi + 0x18]
mov rcx, r8
sub rcx, rdx
cmp rsi, rcx
ja 0x1400379ee
lea rcx, [rdx + rsi]
mov qword [rdi + 0x10], rcx
mov rcx, rdi
cmp r8, 0x10
jb 0x1400379d5
mov rcx, qword [rdi]
lea rbx, [rcx + rdx]
mov r8, rsi
lea rdx, [rbp - 0x20]
mov rcx, rbx
call sub.VCRUNTIME140.dll_memmove
mov byte [rbx + rsi], 0
jmp 0x140037a02
mov qword [rsp + 0x20], rsi
lea r9, [rbp - 0x20]
mov rdx, rsi
mov rcx, rdi
call fcn.140031540
test r14d, r14d
je 0x140037a12
mov eax, dword [rbp + 0x430]
jmp 0x140037983
mov rdx, qword [rsp + 0x60]
cmp rdx, 8
jb 0x140037a57
lea rdx, [rdx*2 + 2]
mov rcx, qword [rsp + 0x48]
mov rax, rcx
cmp rdx, 0x1000
jb 0x140037a52
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x140037a52
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.14003de0c
mov qword [rsp + 0x58], r12
mov qword [rsp + 0x60], 7
mov word [rsp + 0x48], r12w
mov rdx, qword [rbp - 0x80]
cmp rdx, 8
jb 0x140037aaf
lea rdx, [rdx*2 + 2]
mov rcx, qword [rsp + 0x68]
mov rax, rcx
cmp rdx, 0x1000
jb 0x140037aaa
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x140037aaa
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.14003de0c
mov qword [rsp + 0x78], r12
mov qword [rbp - 0x80], 7
mov word [rsp + 0x68], r12w
mov rdx, qword [rbp - 0x50]
cmp rdx, 8
jb 0x140037b05
lea rdx, [rdx*2 + 2]
mov rcx, qword [rbp - 0x68]
mov rax, rcx
cmp rdx, 0x1000
jb 0x140037b00
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x140037b00
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.14003de0c
mov rax, rdi
lea r11, [rsp + 0x4e0]
mov rbx, qword [r11 + 0x38]
mov rsi, qword [r11 + 0x40]
mov rsp, r11
pop r15
pop r14
pop r12
pop rdi
pop rbp
ret
lea rdx, str.error_sending_message_to_server.
lea rcx, [rbp - 0x48]
call fcn.140030240
lea rcx, [rbp - 0x48]
call fcn.140037020
nop
lea rdx, str.error_sending_message_to_server.
lea rcx, [rsp + 0x68]
call fcn.140030240
lea rcx, [rsp + 0x68]
call fcn.140037020
nop
lea rdx, str.error_sending_message_to_server.
call fcn.140030240
lea rcx, [rsp + 0x68]
call fcn.140037020
nop
lea rdx, str.error_sending_message_to_server.
call fcn.140030240
lea rcx, [rsp + 0x48]
call fcn.140037020
nop
lea rdx, str.error_sending_message_to_server.
lea rcx, [rbp - 0x48]
call fcn.140030240
lea rcx, [rbp - 0x48]
call fcn.140037020
int3