Function at 0x140005070
Capabilities:
Initialize winhttp library
Prepare http request
Receive http response

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rbp
push rsi
push rdi
push r12
push r14
push r15
sub rsp, 0x80
mov rax, qword [0x140105ec0]
xor rax, rsp
mov qword [rsp + 0x78], rax
mov rbx, rcx
mov qword [rsp + 0x68], rcx
xor r12d, r12d
mov dword [rsp + 0x40], r12d
mov dword [rsp + 0x20], r12d
xor r9d, r9d
xor r8d, r8d
xor edx, edx
lea rcx, str.IP_Agent_1.0
call qword [sym.imp.WINHTTP.dll_WinHttpOpen]
mov r14, rax
mov r8d, 0x50
xor r9d, r9d
lea rdx, str.api.ipify.org
mov rcx, rax
call qword [sym.imp.WINHTTP.dll_WinHttpConnect]
mov r15, rax
mov dword [rsp + 0x30], r12d
mov qword [rsp + 0x28], r12
mov qword [rsp + 0x20], r12
xor r9d, r9d
xor r8d, r8d
lea rdx, [0x1400ebfb0]
mov rcx, rax
call qword [sym.imp.WINHTTP.dll_WinHttpOpenRequest]
mov rbp, rax
xorps xmm0, xmm0
movups xmmword [rbx], xmm0
mov qword [rbx + 0x10], r12
mov qword [rbx + 0x18], r12
mov esi, reloc.WS2_32.dll_ntohs
mov r8d, esi
lea rdx, str.Unavailable
mov rcx, rbx
call fcn.14001c6d0
mov dword [rsp + 0x40], 1
mov qword [rsp + 0x30], r12
mov dword [rsp + 0x28], r12d
mov dword [rsp + 0x20], r12d
xor r9d, r9d
xor r8d, r8d
xor edx, edx
mov rcx, rbp
call qword [sym.imp.WINHTTP.dll_WinHttpSendRequest]
test eax, eax
je 0x14000529b
xor edx, edx
mov rcx, rbp
call qword [sym.imp.WINHTTP.dll_WinHttpReceiveResponse]
mov dword [rsp + 0x70], r12d
lea rdx, [rsp + 0x70]
mov rcx, rbp
call qword [sym.imp.WINHTTP.dll_WinHttpQueryDataAvailable]
mov eax, dword [rsp + 0x70]
test eax, eax
je 0x14000529b
lea ecx, [rax + 1]
call fcn.1400c7764
mov rdi, rax
mov r8d, dword [rsp + 0x70]
inc r8d
xor edx, edx
mov rcx, rax
call sub.VCRUNTIME140.dll_memset
mov dword [rsp + 0x74], r12d
lea r9, [rsp + 0x74]
mov r8d, dword [rsp + 0x70]
mov rdx, rdi
mov rcx, rbp
call qword [sym.imp.WINHTTP.dll_WinHttpReadData]
xorps xmm0, xmm0
movups xmmword [rsp + 0x48], xmm0
mov qword [rsp + 0x58], r12
mov qword [rsp + 0x60], r12
mov r8, 0xffffffffffffffff
nop dword [rax]
inc r8
cmp byte [rdi + r8], 0
jne 0x1400051e0
mov rdx, rdi
lea rcx, [rsp + 0x48]
call fcn.14001c6d0
lea rax, [rsp + 0x48]
cmp rbx, rax
je 0x140005252
mov rdx, qword [rbx + 0x18]
cmp rdx, 0xf
jbe 0x140005237
inc rdx
mov rcx, qword [rbx]
cmp rdx, 0x1000
jb 0x140005232
add rdx, 0x27
mov r8, qword [rcx - 8]
sub rcx, r8
lea rax, [rcx - 8]
cmp rax, 0x1f
ja 0x140005287
mov rcx, r8
call fcn.1400c7410
mov byte [rbx], 0
movups xmm0, xmmword [rsp + 0x48]
movups xmmword [rbx], xmm0
movups xmm1, xmmword [rsp + 0x58]
movups xmmword [rbx + 0x10], xmm1
mov byte [rsp + 0x48], 0
jmp 0x140005257
mov rsi, qword [rsp + 0x60]
cmp rsi, 0xf
jbe 0x140005293
lea rdx, [rsi + 1]
mov rcx, qword [rsp + 0x48]
mov rax, rcx
cmp rdx, 0x1000
jb 0x14000528e
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x14000528e
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.1400c7410
mov rcx, rdi
call fcn.1400c7410
mov rcx, rbp
call qword [sym.imp.WINHTTP.dll_WinHttpCloseHandle]
mov rcx, r15
call qword [sym.imp.WINHTTP.dll_WinHttpCloseHandle]
mov rcx, r14
call qword [sym.imp.WINHTTP.dll_WinHttpCloseHandle]
mov rax, rbx
mov rcx, qword [rsp + 0x78]
xor rcx, rsp
call fcn.1400c73f0
lea r11, [rsp + 0x80]
mov rbx, qword [r11 + 0x38]
mov rbp, qword [r11 + 0x40]
mov rsp, r11
pop r15
pop r14
pop r12
pop rdi
pop rsi
ret