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

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rsi
mov qword [rsp + 0x20], rdi
push rbp
push r12
push r13
push r14
push r15
lea rbp, [rsp - 0x37]
sub rsp, 0x90
mov rax, qword [0x1400900c0]
xor rax, rsp
mov qword [rbp + 0x27], rax
mov rdi, rcx
mov qword [rbp + 0x17], rcx
xor esi, esi
mov dword [rbp + 0xf], esi
mov dword [rsp + 0x20], esi
xor r9d, r9d
xor r8d, r8d
xor edx, edx
lea rcx, str.A_WinHTTP_Example_Program_1.0
call qword [sym.imp.WINHTTP.dll_WinHttpOpen]
mov r12, rax
mov r8d, 0x50
xor r9d, r9d
lea rdx, str.api.ipify.org
mov rcx, rax
call qword [sym.imp.WINHTTP.dll_WinHttpConnect]
mov r13, rax
mov dword [rsp + 0x30], esi
mov qword [rsp + 0x28], rsi
mov qword [rsp + 0x20], rsi
xor r9d, r9d
lea r8, [0x1400880cc]
lea rdx, [0x1400880d0]
mov rcx, rax
call qword [sym.imp.WINHTTP.dll_WinHttpOpenRequest]
mov r15, rax
mov qword [rsp + 0x30], rsi
mov dword [rsp + 0x28], esi
mov dword [rsp + 0x20], esi
xor r9d, r9d
xor r8d, r8d
xor edx, edx
mov rcx, rax
call qword [sym.imp.WINHTTP.dll_WinHttpSendRequest]
mov ebx, eax
mov qword [rdi], rsi
xorps xmm0, xmm0
movups xmmword [rdi + 8], xmm0
mov qword [rdi + 0x18], rsi
mov qword [rdi + 0x20], rsi
mov ecx, select
call fcn.140012f80
mov qword [rax + 8], rsi
mov qword [rdi], rax
mov qword [rax], rdi
mov qword [rdi + 0x18], rsi
mov qword [rdi + 0x20], select
mov byte [rdi + 8], sil
mov dword [rbp + 0xf], 1
test ebx, ebx
je 0x140003026
xor edx, edx
mov rcx, r15
call qword [sym.imp.WINHTTP.dll_WinHttpReceiveResponse]
mov dword [rbp + 0x1f], esi
lea rdx, [rbp + 0x1f]
mov rcx, r15
call qword [sym.imp.WINHTTP.dll_WinHttpQueryDataAvailable]
mov ecx, dword [rbp + 0x1f]
inc ecx
call fcn.140013530
mov rbx, rax
mov r8d, dword [rbp + 0x1f]
inc r8d
xor edx, edx
mov rcx, rax
call fcn.14006cd10
mov dword [rbp + 0x23], esi
lea r9, [rbp + 0x23]
mov r8d, dword [rbp + 0x1f]
mov rdx, rbx
mov rcx, r15
call qword [sym.imp.WINHTTP.dll_WinHttpReadData]
mov qword [rbp - 0x19], rsi
xorps xmm0, xmm0
movups xmmword [rbp - 0x11], xmm0
mov qword [rbp - 1], rsi
mov qword [rbp + 7], rsi
mov r8, 0xffffffffffffffff
inc r8
cmp byte [rbx + r8], 0
jne 0x140002f00
mov rdx, rbx
lea rcx, [rbp - 0x19]
call fcn.14000caa0
lea rax, [rbp - 0x19]
cmp rdi, rax
je 0x140002f65
mov rcx, rdi
call fcn.14000aa30
cmp qword [rbp + 7], 0xf
jbe 0x140002f3c
lea rdx, [rbp - 0x19]
mov rcx, rdi
call fcn.140001d70
jmp 0x140002f45
lea rcx, [rbp - 0x19]
call fcn.140001d00
movups xmm0, xmmword [rbp - 0x11]
movups xmmword [rdi + 8], xmm0
movups xmm1, xmmword [rbp - 1]
movups xmmword [rdi + 0x18], xmm1
mov qword [rbp - 1], rsi
mov qword [rbp + 7], select
mov byte [rbp - 0x11], 0
lea rcx, [rbp - 0x19]
call fcn.140001d00
mov rax, qword [rbp + 7]
cmp rax, 0xf
jbe 0x140002ffc
mov r14, qword [rbp - 0x11]
lea rsi, [rax + 1]
test r14, r14
jne 0x140002fef
test rsi, rsi
je 0x140002fef
lea rax, str.null_pointer_cannot_point_to_a_block_of_non_zero_size
mov qword [rsp + 0x28], rax
lea rax, [0x140087dac]
mov qword [rsp + 0x20], rax
xor r9d, r9d
mov r8d, 0x3b4
lea rdx, [0x140087db0]
mov ecx, 2
call fcn.14001e270
cmp eax, 1
jne 0x140002fc6
int3
mov qword [rsp + 0x20], 0
mov r9d, 0x3b4
lea r8, str.C:Program_FilesMicrosoft_Visual_Studio2022CommunityVCToolsMSVC14.40.33807includexmemory
lea rdx, [0x140087ee4]
lea rcx, str._null_pointer_cannot_point_to_a_block_of_non_zero_size_
call fcn.14001f200
mov rdx, rsi
mov rcx, r14
call fcn.14000d680
xor esi, esi
mov qword [rbp - 1], rsi
mov qword [rbp + 7], select
mov byte [rbp - 0x11], 0
mov rcx, qword [rbp - 0x19]
mov qword [rbp - 0x19], rsi
mov edx, select
call fcn.14000d680
mov rcx, rbx
call fcn.140012f60
mov rcx, r15
call qword [sym.imp.WINHTTP.dll_WinHttpCloseHandle]
mov rcx, r13
call qword [sym.imp.WINHTTP.dll_WinHttpCloseHandle]
mov rcx, r12
call qword [sym.imp.WINHTTP.dll_WinHttpCloseHandle]
mov rax, rdi
mov rcx, qword [rbp + 0x27]
xor rcx, rsp
call fcn.140012f40
lea r11, [rsp + 0x90]
mov rbx, qword [r11 + 0x38]
mov rsi, qword [r11 + 0x40]
mov rdi, qword [r11 + 0x48]
mov rsp, r11
pop r15
pop r14
pop r13
pop r12
pop rbp
ret