Function at 0x1400259d0
Capabilities:
Check internet connectivity via wininet
Connect to http server
Create http request

Disassembly:
mov rax, rsp
mov qword [rax + 8], rcx
push rdi
push r12
push r13
push r14
push r15
sub rsp, 0x80
mov qword [rax - 0x40], 0xfffffffffffffffe
mov qword [rax + 0x10], rbx
mov qword [rax + 0x18], rsi
mov r15, r9
mov esi, r8d
mov r13, rdx
mov rdi, rcx
xor ebx, ebx
mov dword [rsp + 0x20], ebx
xor r9d, r9d
xor r8d, r8d
xor edx, edx
mov rcx, qword [rsp + 0xe0]
call qword [sym.imp.WININET.dll_InternetOpenA]
mov r10, rax
mov qword [rdi + 8], rax
test rax, rax
je 0x140025c47
cmp rax, 0xffffffffffffffff
je 0x140025c47
mov r12d, dword [rsp + 0xd8]
mov ecx, r12d
test r12d, r12d
je 0x140025aa8
sub ecx, 1
je 0x140025a98
cmp ecx, 1
jne 0x140025bf0
test esi, esi
je 0x140025a60
movzx eax, si
jmp 0x140025a65
mov eax, 0x1bb
mov qword [rsp + 0x38], rbx
mov dword [rsp + 0x30], ebx
mov dword [rsp + 0x28], 3
mov r14, qword [rsp + 0xd0]
mov qword [rsp + 0x20], r14
mov r9, r15
movzx r8d, ax
mov rdx, r13
mov rcx, r10
call qword [sym.imp.WININET.dll_InternetConnectA]
jmp 0x140025aeb
test esi, esi
je 0x140025aa1
movzx eax, si
jmp 0x140025a65
mov eax, 0x50
jmp 0x140025a65
test esi, esi
je 0x140025ab1
movzx eax, si
jmp 0x140025ab6
mov eax, reloc.WS2_32.dll_setsockopt
mov qword [rsp + 0x38], rbx
mov dword [rsp + 0x30], 0x8000000
mov dword [rsp + 0x28], 1
mov r14, qword [rsp + 0xd0]
mov qword [rsp + 0x20], r14
mov r9, r15
movzx r8d, ax
mov rdx, r13
mov rcx, r10
call qword [sym.imp.WININET.dll_InternetConnectA]
mov qword [rdi + 0x10], rax
dec rax
cmp rax, 0xfffffffffffffffd
ja 0x140025c2a
xor ecx, ecx
call qword [sym.imp.WININET.dll_InternetAttemptConnect]
test eax, eax
jne 0x140025c0d
mov rbx, 0xffffffffffffffff
mov r8, rbx
inc r8
cmp byte [r8 + r13], 0
jne 0x140025b16
lea rcx, [rdi + 0x20]
mov rdx, r13
call fcn.14001d4c0
test esi, esi
jne 0x140025b66
mov ecx, r12d
test r12d, r12d
je 0x140025b5a
sub ecx, 1
je 0x140025b4e
cmp ecx, 1
jne 0x140025b6c
mov dword [rdi + 0xa0], 0x1bb
jmp 0x140025b6c
mov dword [rdi + 0xa0], 0x50
jmp 0x140025b6c
mov dword [rdi + 0xa0], reloc.WS2_32.dll_setsockopt
jmp 0x140025b6c
mov dword [rdi + 0xa0], esi
mov dword [rdi + 0xa4], r12d
test r15, r15
je 0x140025b96
mov r8, rbx
nop dword [rax + rax]
inc r8
cmp byte [r15 + r8], 0
jne 0x140025b80
lea rcx, [rdi + 0x40]
mov rdx, r15
call fcn.14001d4c0
test r14, r14
je 0x140025bb9
nop dword [rax + rax]
inc rbx
cmp byte [r14 + rbx], 0
jne 0x140025ba0
lea rcx, [rdi + 0x60]
mov r8, rbx
mov rdx, r14
call fcn.14001d4c0
mov rcx, rdi
call fcn.140025e40
mov rcx, rdi
call fcn.140025ec0
nop
mov al, 1
jmp 0x140025bd3
lea r11, [rsp + 0x80]
mov rbx, qword [r11 + 0x38]
mov rsi, qword [r11 + 0x40]
mov rsp, r11
pop r15
pop r14
pop r13
pop r12
pop rdi
ret
lea rax, str.connect_failed...
mov qword [rsp + 0x48], rax
lea rdx, reloc.WS2_32.dll_accept
lea rcx, [rsp + 0x48]
call sub.VCRUNTIME140.dll__CxxThrowException
lea rax, str.connect_failed...
mov qword [rsp + 0x50], rax
lea rdx, reloc.WS2_32.dll_accept
lea rcx, [rsp + 0x50]
call sub.VCRUNTIME140.dll__CxxThrowException
lea rax, str.connect_failed...
mov qword [rsp + 0x58], rax
lea rdx, reloc.WS2_32.dll_accept
lea rcx, [rsp + 0x58]
call sub.VCRUNTIME140.dll__CxxThrowException
lea rax, str.open_internet_failed...
mov qword [rsp + 0x60], rax
lea rdx, reloc.WS2_32.dll_accept
lea rcx, [rsp + 0x60]
call sub.VCRUNTIME140.dll__CxxThrowException
int3