Function at 0x7ff668c537e0
Capabilities:
Connect to http server
Create http request
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 - 0x3d8]
sub rsp, 0x4d8
mov rax, qword [0x7ff668cee700]
xor rax, rsp
mov qword [rbp + 0x3c0], rax
mov rsi, r9
mov rbx, r8
mov rdi, rdx
mov r14, rcx
mov qword [rbp - 0x68], rcx
mov qword [rsp + 0x70], rbx
xor r13d, r13d
mov dword [rsp + 0x20], r13d
xor r9d, r9d
xor r8d, r8d
lea edx, [r13 + 1]
lea rcx, str.MyApp
call qword [sym.imp.wininet.dll_InternetOpenW]
mov r12, rax
test rax, rax
je 0x7ff668c53af3
cmp qword [rdi + 0x18], 8
jb 0x7ff668c53857
mov rdi, qword [rdi]
mov r8d, 0x1bb
mov qword [rsp + 0x38], r13
mov dword [rsp + 0x30], r13d
mov dword [rsp + 0x28], 3
mov qword [rsp + 0x20], r13
xor r9d, r9d
mov rdx, rdi
mov rcx, r12
call qword [sym.imp.wininet.dll_InternetConnectW]
mov r15, rax
test rax, rax
je 0x7ff668c53aea
mov r8, rbx
cmp qword [rbx + 0x18], 8
jb 0x7ff668c5389c
mov r8, qword [rbx]
mov qword [rsp + 0x38], r13
mov dword [rsp + 0x30], 0x800000
mov qword [rsp + 0x28], r13
mov qword [rsp + 0x20], r13
xor r9d, r9d
lea rdx, str.POST
mov rcx, r15
call qword [sym.imp.wininet.dll_HttpOpenRequestW]
mov rdi, rax
test rax, rax
je 0x7ff668c53ae1
mov eax, dword [rsi + 0x10]
cmp qword [rsi + 0x18], 0x10
jb 0x7ff668c538df
mov rsi, qword [rsi]
mov dword [rsp + 0x20], eax
mov r9, rsi
mov r8d, 0x20
lea rdx, str.Content_Type:_application_json_r_n
mov rcx, rdi
call qword [sym.imp.wininet.dll_HttpSendRequestW]
test eax, eax
je 0x7ff668c53ae1
mov dword [rsp + 0x78], r13d
mov dword [rbp - 0x68], 4
mov qword [rsp + 0x20], r13
lea r9, [rbp - 0x68]
lea r8, [rsp + 0x78]
mov edx, 0x20000013
mov rcx, rdi
call qword [sym.imp.wininet.dll_HttpQueryInfoW]
xorps xmm1, xmm1
movdqu xmmword [rbp - 0x80], xmm1
mov qword [rbp - 0x70], r13
mov dword [rsp + 0x68], r13d
lea r9, [rsp + 0x68]
mov r8d, 0x400
lea rdx, [rbp - 0x40]
mov rcx, rdi
call qword [sym.imp.wininet.dll_InternetReadFile]
test eax, eax
je 0x7ff668c5399c
nop dword [rax]
mov eax, dword [rsp + 0x68]
test eax, eax
je 0x7ff668c5399c
lea r9, [rbp - 0x40]
add r9, rax
lea r8, [rbp - 0x40]
mov rdx, qword [rbp - 0x78]
lea rcx, [rbp - 0x80]
call fcn.7ff668c56700
lea r9, [rsp + 0x68]
mov r8d, 0x400
lea rdx, [rbp - 0x40]
mov rcx, rdi
call qword [sym.imp.wininet.dll_InternetReadFile]
test eax, eax
jne 0x7ff668c53960
mov qword [rbp - 0x60], r13
mov qword [rbp - 0x50], r13
mov qword [rbp - 0x48], 0xf
mov byte [rbp - 0x60], 0
mov rdx, qword [rbp - 0x80]
mov r8, qword [rbp - 0x78]
cmp rdx, r8
je 0x7ff668c539ca
sub r8, rdx
lea rcx, [rbp - 0x60]
call fcn.7ff668bf3ef0
nop
mov rcx, rdi
call qword [sym.imp.wininet.dll_InternetCloseHandle]
mov rcx, r15
call qword [sym.imp.wininet.dll_InternetCloseHandle]
mov rcx, r12
call qword [sym.imp.wininet.dll_InternetCloseHandle]
mov eax, dword [rsp + 0x78]
mov dword [rsp + 0x40], eax
lea rdx, [rbp - 0x60]
lea rcx, [rsp + 0x48]
call fcn.7ff668bf4d40
mov eax, dword [rsp + 0x40]
mov dword [r14], eax
movups xmm0, xmmword [rsp + 0x48]
movups xmmword [r14 + 8], xmm0
movups xmm1, xmmword [rsp + 0x58]
movups xmmword [r14 + 0x18], xmm1
mov byte [r14 + 0x28], 1
mov rdx, qword [rbp - 0x48]
cmp rdx, 0x10
jb 0x7ff668c53a5a
inc rdx
mov rcx, qword [rbp - 0x60]
mov rax, rcx
cmp rdx, 0x1000
jb 0x7ff668c53a54
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x7ff668c53a54
call qword [sym.imp.ucrtbase.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.7ff668cb8f00
nop
mov rcx, qword [rbp - 0x80]
test rcx, rcx
je 0x7ff668c53aa3
mov rdx, qword [rbp - 0x70]
sub rdx, rcx
mov rax, rcx
cmp rdx, 0x1000
jb 0x7ff668c53a92
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x7ff668c53a92
call qword [sym.imp.ucrtbase.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.7ff668cb8f00
xorps xmm0, xmm0
movdqu xmmword [rbp - 0x80], xmm0
mov qword [rbp - 0x70], r13
mov rdx, qword [rbx + 0x18]
cmp rdx, 8
jb 0x7ff668c53b3b
lea rdx, [rdx*2 + 2]
mov rcx, qword [rbx]
cmp rdx, 0x1000
jb 0x7ff668c53b36
add rdx, 0x27
mov r8, qword [rcx - 8]
sub rcx, r8
lea rax, [rcx - 8]
cmp rax, 0x1f
jbe 0x7ff668c53b33
call qword [sym.imp.ucrtbase.dll__invalid_parameter_noinfo_noreturn]
nop
mov rcx, rdi
call qword [sym.imp.wininet.dll_InternetCloseHandle]
mov rcx, r15
call qword [sym.imp.wininet.dll_InternetCloseHandle]
mov rcx, r12
call qword [sym.imp.wininet.dll_InternetCloseHandle]
mov byte [r14 + 0x28], r13b
mov rdx, qword [rbx + 0x18]
cmp rdx, 8
jb 0x7ff668c53b3b
lea rdx, [rdx*2 + 2]
mov rcx, qword [rbx]
cmp rdx, 0x1000
jb 0x7ff668c53b36
add rdx, 0x27
mov r8, qword [rcx - 8]
sub rcx, r8
lea rax, [rcx - 8]
cmp rax, 0x1f
ja 0x7ff668c53b71
mov rcx, r8
call fcn.7ff668cb8f00
mov qword [rbx + 0x10], r13
mov qword [rbx + 0x18], 7
mov rax, r14
mov word [rbx], r13w
mov rcx, qword [rbp + 0x3c0]
xor rcx, rsp
call fcn.7ff668cb8ee0
add rsp, 0x4d8
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbx
pop rbp
ret
call qword [sym.imp.ucrtbase.dll__invalid_parameter_noinfo_noreturn]
int3