Function at 0x140002da0
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 [0x140084180]
xor rax, rsp
mov qword [rsp + 0x70], rax
mov rdi, rcx
mov qword [rsp + 0x48], rcx
xor r12d, r12d
mov dword [rsp + 0x20], r12d
xor r9d, r9d
xor r8d, r8d
mov edx, 1
lea rcx, str.Fontesie_1.0
call qword [sym.imp.WINHTTP.dll_WinHttpOpen]
mov rbp, rax
test rax, rax
je 0x140002fcd
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
test rax, rax
je 0x140002fc4
mov dword [rsp + 0x30], r12d
mov qword [rsp + 0x28], r12
mov qword [rsp + 0x20], r12
xor r9d, r9d
lea r8, [0x1400704e4]
lea rdx, [0x1400704e8]
mov rcx, rax
call qword [sym.imp.WINHTTP.dll_WinHttpOpenRequest]
mov r14, rax
test rax, rax
je 0x140002fbb
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, rax
call qword [sym.imp.WINHTTP.dll_WinHttpSendRequest]
test eax, eax
je 0x140002fb2
xor edx, edx
mov rcx, r14
call qword [sym.imp.WINHTTP.dll_WinHttpReceiveResponse]
test eax, eax
je 0x140002fb2
mov dword [rsp + 0x50], r12d
lea rdx, [rsp + 0x50]
mov rcx, r14
call qword [sym.imp.WINHTTP.dll_WinHttpQueryDataAvailable]
xorps xmm0, xmm0
mov r8d, dword [rsp + 0x50]
lea eax, [r8 + 1]
mov esi, eax
movdqu xmmword [rsp + 0x58], xmm0
mov qword [rsp + 0x68], r12
test eax, eax
je 0x140002f23
cmp rsi, 0x1000
jb 0x140002ef6
lea rcx, [rax + 0x27]
cmp rcx, rsi
jbe 0x140003008
call fcn.140061ef0
mov rcx, rax
test rax, rax
je 0x140002fa4
add rax, 0x27
and rax, 0xffffffffffffffe0
mov qword [rax - 8], rcx
jmp 0x140002efe
mov rcx, rsi
call fcn.140061ef0
mov qword [rsp + 0x58], rax
lea rbx, [rax + rsi]
mov qword [rsp + 0x68], rbx
mov r8, rsi
xor edx, edx
mov rcx, rax
call sub.VCRUNTIME140.dll_memset
mov qword [rsp + 0x60], rbx
mov r8d, dword [rsp + 0x50]
mov dword [rsp + 0x48], r12d
lea r9, [rsp + 0x48]
mov rdx, qword [rsp + 0x58]
mov rcx, r14
call qword [sym.imp.WINHTTP.dll_WinHttpReadData]
mov ecx, dword [rsp + 0x48]
mov rax, qword [rsp + 0x58]
mov byte [rcx + rax], 0
mov rcx, r14
call qword [sym.imp.WINHTTP.dll_WinHttpCloseHandle]
mov rcx, r15
call qword [sym.imp.WINHTTP.dll_WinHttpCloseHandle]
mov rcx, rbp
call qword [sym.imp.WINHTTP.dll_WinHttpCloseHandle]
mov rdx, qword [rsp + 0x58]
mov rcx, rdi
call fcn.140012a10
nop
mov rcx, qword [rsp + 0x58]
test rcx, rcx
je 0x140002fdc
mov rdx, qword [rsp + 0x68]
sub rdx, rcx
mov rax, rcx
cmp rdx, 0x1000
jb 0x140002fab
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x140002fab
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.140062174
jmp 0x140002fdc
mov rcx, r14
call qword [sym.imp.WINHTTP.dll_WinHttpCloseHandle]
mov rcx, r15
call qword [sym.imp.WINHTTP.dll_WinHttpCloseHandle]
mov rcx, rbp
call qword [sym.imp.WINHTTP.dll_WinHttpCloseHandle]
lea rdx, str.Unknown
mov rcx, rdi
call fcn.140012a10
mov rax, rdi
mov rcx, qword [rsp + 0x70]
xor rcx, rsp
call fcn.140061ed0
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
call fcn.1400014a0
int3