Function at 0x140025a20
Capabilities:
Convert ip address from string
Set socket configuration

Disassembly:
mov qword [rsp + 0x18], rbx
push rbp
push rsi
push rdi
push r12
push r13
push r14
push r15
sub rsp, 0x80
mov rax, qword [0x14008f060]
xor rax, rsp
mov qword [rsp + 0x70], rax
mov r13d, 2
xor r15d, r15d
movzx r14d, r8w
mov rdi, rdx
mov rbp, rcx
lea r12d, [r13 + 0x15]
cmp qword [rcx + 8], r15
jne 0x140025b6a
cmp qword [rdx + 0x18], 0x10
mov rbx, rdx
jb 0x140025a74
mov rbx, qword [rdx]
mov r8, qword [rdx + 0x10]
test r8, r8
je 0x140025a9c
mov edx, 0x3a
mov rcx, rbx
call fcn.140039ae0
test rax, rax
je 0x140025a9c
sub rax, rbx
cmp rax, 0xffffffffffffffff
je 0x140025a9c
xor al, al
jmp 0x140025a9e
mov al, 1
test al, al
mov ecx, r13d
cmove ecx, r12d
xor r8d, r8d
lea edx, [r8 + 1]
call qword [sym.imp.WS2_32.dll_socket]
mov rbx, rax
cmp rax, 0xffffffffffffffff
jne 0x140025ac7
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, eax
jmp 0x140025b01
mov edx, 0x29
mov dword [rsp + 0x40], r15d
lea r9, [rsp + 0x40]
mov dword [rsp + 0x20], 4
mov rcx, rbx
lea r8d, [rdx - 0xe]
call qword [sym.imp.WS2_32.dll_setsockopt]
test eax, eax
je 0x140025af9
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, eax
jmp 0x140025afc
mov esi, r15d
test rbx, rbx
jns 0x140025b66
mov qword [rsp + 0x30], r15
lea rax, [rsp + 0x40]
mov dword [rsp + 0x28], r15d
mov r9d, 0x409
mov r8d, esi
mov qword [rsp + 0x20], rax
xor edx, edx
mov qword [rsp + 0x40], r15
mov ecx, 0x1100
call qword [sym.imp.KERNEL32.dll_FormatMessageA]
mov rbx, qword [rsp + 0x40]
call fcn.14001f020
mov rcx, rax
mov qword [rsp + 0x28], rbx
lea r9, str.create_socket_failed._errno:_d__info:_s
mov dword [rsp + 0x20], esi
mov r8d, 0x28
lea rdx, str.D:GitADESv2_acerdeviceenablingservicev2AcerDeviceEnablingServiceCppNetcppnet_socketconnect_socket.cpp
call fcn.1400219d0
xor al, al
jmp 0x140025c5f
mov qword [rbp + 8], rbx
cmp qword [rdi + 0x18], 0x10
mov rbx, rdi
jb 0x140025b77
mov rbx, qword [rdi]
mov r8, qword [rdi + 0x10]
test r8, r8
je 0x140025b9a
mov edx, 0x3a
mov rcx, rbx
call fcn.140039ae0
mov rcx, rax
test rax, rax
je 0x140025b9a
sub rcx, rbx
jmp 0x140025ba1
mov rcx, 0xffffffffffffffff
cmp rcx, 0xffffffffffffffff
mov eax, r15d
mov rdx, rdi
lea rcx, [rbp + 0x10]
setne al
inc eax
mov dword [rbp + 0x10], eax
call fcn.140021f30
mov rsi, qword [rbp + 8]
lea rdi, [rbp + 0x18]
mov word [rbp + 0x38], r14w
movzx ecx, r14w
cmp dword [rbp + 0x10], 1
jne 0x140025c08
mov word [rsp + 0x40], r13w
call qword [sym.imp.WS2_32.dll_htons]
cmp qword [rdi + 0x18], 0x10
mov word [rsp + 0x42], ax
jb 0x140025bee
mov rdi, qword [rdi]
mov rcx, rdi
call qword [sym.imp.WS2_32.dll_inet_addr]
mov dword [rsp + 0x44], eax
mov r8d, reloc.WS2_32.dll_recv
lea rdx, [rsp + 0x40]
jmp 0x140025c49
mov dword [rsp + 0x54], r15d
mov dword [rsp + 0x68], r15d
mov word [rsp + 0x50], r12w
call qword [sym.imp.WS2_32.dll_htons]
cmp qword [rdi + 0x18], 0x10
mov word [rsp + 0x52], ax
jb 0x140025c2d
mov rdi, qword [rdi]
lea r8, [rsp + 0x58]
mov rdx, rdi
mov ecx, r12d
call qword [sym.imp.WS2_32.dll_inet_pton]
mov r8d, 0x1c
lea rdx, [rsp + 0x50]
mov rcx, rsi
call qword [sym.imp.WS2_32.dll_bind]
cmp eax, 0xffffffff
jne 0x140025c5d
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov al, 1
mov rcx, qword [rsp + 0x70]
xor rcx, rsp
call fcn.140036cc0
mov rbx, qword [rsp + 0xd0]
add rsp, 0x80
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
ret