Function at 0x1400637e0
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 [0x1400fe700]
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 0x140063af3
cmp qword [rdi + 0x18], 8
jb 0x140063857
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 0x140063aea
mov r8, rbx
cmp qword [rbx + 0x18], 8
jb 0x14006389c
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 0x140063ae1
mov eax, dword [rsi + 0x10]
cmp qword [rsi + 0x18], 0x10
jb 0x1400638df
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 0x140063ae1
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 0x14006399c
nop dword [rax]
mov eax, dword [rsp + 0x68]
test eax, eax
je 0x14006399c
lea r9, [rbp - 0x40]
add r9, rax
lea r8, [rbp - 0x40]
mov rdx, qword [rbp - 0x78]
lea rcx, [rbp - 0x80]
call fcn.140066700
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 0x140063960
mov qword [rbp - 0x60], r13
mov qword [rbp - 0x50], r13
mov qword [rbp - 0x48], reloc.WS2_32.dll_ntohs
mov byte [rbp - 0x60], 0
mov rdx, qword [rbp - 0x80]
mov r8, qword [rbp - 0x78]
cmp rdx, r8
je 0x1400639ca
sub r8, rdx
lea rcx, [rbp - 0x60]
call fcn.140003ef0
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.140004d40
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 0x140063a5a
inc rdx
mov rcx, qword [rbp - 0x60]
mov rax, rcx
cmp rdx, 0x1000
jb 0x140063a54
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x140063a54
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.1400c8f00
nop
mov rcx, qword [rbp - 0x80]
test rcx, rcx
je 0x140063aa3
mov rdx, qword [rbp - 0x70]
sub rdx, rcx
mov rax, rcx
cmp rdx, 0x1000
jb 0x140063a92
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x140063a92
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.1400c8f00
xorps xmm0, xmm0
movdqu xmmword [rbp - 0x80], xmm0
mov qword [rbp - 0x70], r13
mov rdx, qword [rbx + 0x18]
cmp rdx, 8
jb 0x140063b3b
lea rdx, [rdx*2 + 2]
mov rcx, qword [rbx]
cmp rdx, 0x1000
jb 0x140063b36
add rdx, 0x27
mov r8, qword [rcx - 8]
sub rcx, r8
lea rax, [rcx - 8]
cmp rax, 0x1f
jbe 0x140063b33
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.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 0x140063b3b
lea rdx, [rdx*2 + 2]
mov rcx, qword [rbx]
cmp rdx, 0x1000
jb 0x140063b36
add rdx, 0x27
mov r8, qword [rcx - 8]
sub rcx, r8
lea rax, [rcx - 8]
cmp rax, 0x1f
ja 0x140063b71
mov rcx, r8
call fcn.1400c8f00
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.1400c8ee0
add rsp, 0x4d8
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbx
pop rbp
ret
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3